/* ========================================
   Trending Destinations Section
   ======================================== */

.trending-destinations-section {
    padding: 4rem 0;
    background: transparent;
    position: relative;
}

/* Gradient fade at edges to indicate scrollability */
.trending-destinations-section::before,
.trending-destinations-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.8;
}

.trending-destinations-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary, #fff) 0%, transparent 100%);
}

.trending-destinations-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary, #fff) 0%, transparent 100%);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-header::after {
    content: '← Scroll to explore →';
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    opacity: 0.7;
    animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% {
        opacity: 0.7;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(5px);
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #d9863e, #e89f5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Destinations Grid - Horizontal Scrollable */
.destinations-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0 2rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar for Webkit browsers */
.destinations-grid::-webkit-scrollbar {
    height: 8px;
}

.destinations-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.destinations-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #9b8579, #b5a295);
    border-radius: 10px;
}

.destinations-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7d6e63, #9b8579);
}

/* Destination Card */
.destination-card {
    position: relative;
    flex: 0 0 calc(25% - 1.125rem); /* Show 4 cards at a time */
    min-width: 280px;
    max-width: 380px;
}

.destination-card-link {
    display: block;
    text-decoration: none;
    background: var(--bg-card, #fff);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(155, 133, 121, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(155, 133, 121, 0.08);
    cursor: pointer;
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 247, 0.98));
}

.destination-card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #e89654, #f5b76e, #f0a36c, #e89654);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 10;
    border-radius: 24px 24px 0 0;
}

.destination-card-link:hover::before {
    transform: scaleX(1);
}

.destination-card-link::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #e89654, #f5b76e, #f0a36c);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.destination-card-link:hover::after {
    opacity: 0.3;
}

.destination-card-link:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 25px 60px rgba(155, 133, 121, 0.18);
    border-color: rgba(155, 133, 121, 0.2);
}

/* Destination Image */
.destination-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-bottom: 3px solid rgba(155, 133, 121, 0.1);
}

.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card-link:hover .destination-image img {
    transform: scale(1.15) rotate(2deg);
}

.destination-card-link:hover .destination-overlay {
    opacity: 1;
}

.destination-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e89654 0%, #f5b76e 50%, #f9d18a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.destination-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.destination-icon {
    font-size: 4.5rem;
    opacity: 0.95;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

/* Destination Overlay */
.destination-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}


.destination-count {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(135deg, rgba(155, 133, 121, 0.95), rgba(125, 110, 99, 0.95));
    backdrop-filter: blur(15px);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Destination Content */
.destination-content {
    padding: 2rem 1.75rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(247, 250, 255, 0.5) 100%);
}

.destination-name {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d9863e, #c77832);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.destination-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.destination-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #d9863e, #e89f5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.destination-card-link:hover .destination-link {
    gap: 0.75rem;
}

/* No Destinations Message */
.no-destinations {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Back to Destinations Button */
.back-to-destinations {
    background: linear-gradient(135deg, #9b8579, #b5a295);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(155, 133, 121, 0.2);
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-destinations:hover {
    background: linear-gradient(135deg, #7d6e63, #9b8579);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(155, 133, 121, 0.3);
}

.back-to-destinations:active {
    transform: translateY(0);
}

/* ========================================
   Dark Theme Support
   ======================================== */

body[data-theme="dark"] .trending-destinations-section {
    background: transparent;
}

body[data-theme="dark"] .trending-destinations-section::before {
    background: linear-gradient(to right, #000000 0%, transparent 100%);
}

body[data-theme="dark"] .trending-destinations-section::after {
    background: linear-gradient(to left, #000000 0%, transparent 100%);
}

body[data-theme="dark"] .section-header::after {
    color: #94a3b8;
}

body[data-theme="dark"] .section-title {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
}

body[data-theme="dark"] .section-subtitle {
    color: #cbd5e1;
}

body[data-theme="dark"] .destination-card-link {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
    border-color: rgba(96, 165, 250, 0.2);
}

body[data-theme="dark"] .destination-card-link:hover {
    background: linear-gradient(145deg, rgba(10, 15, 25, 0.98), rgba(15, 20, 30, 0.95));
    border-color: rgba(212, 165, 116, 0.3);
    box-shadow: 0 25px 60px rgba(212, 165, 116, 0.2);
}

body[data-theme="dark"] .destination-card-link::after {
    background: linear-gradient(135deg, #682b07, #4d4946, #9b8579);
}

body[data-theme="dark"] .destination-name {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
}

body[data-theme="dark"] .destination-content {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 0%, rgba(30, 41, 59, 0.3) 100%);
}

body[data-theme="dark"] .destination-description {
    color: #ffffff !important;
}

body[data-theme="dark"] .destination-link {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
}

body[data-theme="dark"] .back-to-destinations {
    background: linear-gradient(135deg, #9b8579, #b5a295);
}

body[data-theme="dark"] .back-to-destinations:hover {
    background: linear-gradient(135deg, #7d6e63, #9b8579);
    box-shadow: 0 6px 16px rgba(155, 133, 121, 0.4);
}

body[data-theme="dark"] .destinations-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

body[data-theme="dark"] .destinations-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #9b8579, #b5a295);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1400px) {
    .destination-card {
        min-width: 300px;
    }
}

@media (max-width: 1024px) {
    .destination-card {
        min-width: 280px;
    }
    
    .destinations-grid {
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .trending-destinations-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-header::after {
        display: none; /* Hide scroll hint on mobile - it's obvious */
    }
    
    .trending-destinations-section::before,
    .trending-destinations-section::after {
        width: 30px; /* Smaller fade on mobile */
    }
    
    .destination-card {
        min-width: 260px;
    }
    
    .destinations-grid {
        gap: 1rem;
        padding: 1rem 0.5rem 1.5rem 0.5rem;
    }
    
    .destination-image {
        height: 220px;
    }
    
    .destination-content {
        padding: 1.5rem;
    }
    
    .destination-name {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .destination-card {
        min-width: 240px;
    }
    
    .destination-image {
        height: 200px;
    }
    
    .destination-content {
        padding: 1.25rem;
    }
}

