/* Homepage styles for the lower sections (moved out of index.php so browsers cache them). */
/* Featured Destinations */
        .featured-destinations-section {
            padding: 80px 0;
            background: white;
        }

        .featured-destinations-section .section-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 20px;
            color: #1a1a1a;
        }

        .continent-tabs {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .continent-tab {
            background: #f1f1f1;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: 500;
            color: #555;
            cursor: pointer;
            transition: all 0.3s;
        }

        .continent-tab.active {
            background: #2563eb;
            color: #fff;
        }

        .continent-tab:hover:not(.active) {
            background: #e0e0e0;
        }

        /* Compact Destination Cards - Optimized for Performance */
        .destinations-hero-slider-container {
            position: relative;
            padding: 0 70px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .destinations-hero-slider {
            display: flex;
            gap: 20px;
            overflow-x: auto;
            scroll-behavior: smooth;
            scroll-snap-type: x mandatory;
            padding: 10px 0 30px;
            scrollbar-width: none;
        }

        .destinations-hero-slider::-webkit-scrollbar {
            display: none;
        }

        .dest-hero-card {
            flex: 0 0 calc(25% - 15px);
            min-width: 280px;
            height: 280px;
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            scroll-snap-align: start;
            will-change: transform;
        }

        .dest-hero-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        }

        .dest-hero-card-img {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
        }

        .dest-hero-card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .dest-hero-card:hover .dest-hero-card-img img {
            transform: scale(1.05);
        }

        .dest-hero-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 70%);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 20px;
            color: white;
            z-index: 2;
        }

        .dest-hero-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            line-height: 1.2;
            text-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }

        .dest-hero-stats {
            font-size: 0.85rem;
            margin-bottom: 10px;
            opacity: 0.95;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .dest-hero-stats span {
            background: rgba(255,255,255,0.15);
            backdrop-filter: blur(10px);
            padding: 4px 10px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.8rem;
        }

        .dest-hero-stats i {
            font-size: 0.75rem;
        }

        .dest-hero-badge {
            background: rgba(37, 99, 235, 0.9);
            backdrop-filter: blur(10px);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            width: fit-content;
        }

        .dest-hero-slider-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: white;
            border: none;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            z-index: 10;
        }

        .dest-hero-slider-btn:hover {
            background: #2563eb;
            color: white;
            transform: translateY(-50%) scale(1.05);
            box-shadow: 0 6px 16px rgba(0,0,0,0.15);
        }

        .dest-hero-prev-btn {
            left: 10px;
        }

        .dest-hero-next-btn {
            right: 10px;
        }

        .dest-hero-slider-btn i {
            font-size: 1.1rem;
        }

        /* Responsive */
        @media (max-width: 1400px) {
            .dest-hero-card {
                flex: 0 0 calc(33.333% - 14px);
            }
        }

        @media (max-width: 1024px) {
            .dest-hero-card {
                flex: 0 0 calc(50% - 10px);
            }
        }

        @media (max-width: 768px) {
            .destinations-hero-slider-container {
                padding: 0 50px;
            }
            
            .dest-hero-card {
                flex: 0 0 85%;
                min-width: 260px;
                height: 260px;
            }

            .dest-hero-title {
                font-size: 1.3rem;
            }

            .dest-hero-stats {
                font-size: 0.75rem;
            }

            .dest-hero-badge {
                font-size: 0.8rem;
            }

            .dest-hero-slider-btn {
                width: 40px;
                height: 40px;
            }

            .dest-hero-slider-btn i {
                font-size: 1rem;
            }
        }

        @media (max-width: 576px) {
            .dest-hero-card {
                flex: 0 0 100%;
            }
        }

            background: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0,0,0,0.15);
            z-index: 10;
            transition: all 0.3s ease;
        }

        .slider-nav:hover {
            background: #4a90e2;
            color: white;
            transform: translateY(-50%) scale(1.1);
        }

        .slider-prev {
            left: -25px;
        }

        .slider-next {
            right: -25px;
        }

        @media (max-width: 768px) {
            .destination-card {
                min-width: 280px;
                height: 380px;
            }
            
            .slider-nav {
                width: 40px;
                height: 40px;
            }
            
            .slider-prev {
                left: 10px;
            }
            
            .slider-next {
                right: 10px;
            }
        }
            position: relative;
            border-radius: 24px;
            overflow: hidden;
            height: 320px;
            cursor: pointer;
            transition: all 0.4s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .destination-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
        }

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

        .destination-card:hover img {
            transform: scale(1.08);
        }

        .view-all-tours-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 12px 28px;
            background: linear-gradient(135deg, #2563eb, #10b981);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            font-size: 15px;
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .view-all-tours-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
            background: linear-gradient(135deg, #1d4ed8, #059669);
        }

        .view-all-tours-btn i {
            font-size: 14px;
            transition: transform 0.3s ease;
        }

        .view-all-tours-btn:hover i {
            transform: translateX(4px);
        }

        .featured-tours-section .related-tours-grid {
            display: grid !important;
            grid-template-columns: repeat(4, 1fr) !important;
            gap: 20px !important;
        }

        @media screen and (max-width: 1400px) {
            .featured-tours-section .related-tours-grid {
                grid-template-columns: repeat(3, 1fr) !important;
            }
        }
        
        /* Nest Hub only (1024x600 resolution) */
        @media screen and (min-width: 1020px) and (max-width: 1030px) and (min-height: 590px) and (max-height: 610px) {
            .featured-tours-section .related-tours-grid[style*="grid-template-columns"] {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 15px !important;
            }
            
            .featured-tours-section .container[style] {
                max-width: 100% !important;
                padding: 0 15px !important;
            }
            
            .featured-tours-section .related-tours-grid > div:nth-child(n+4) {
                display: none !important;
            }
            
            .related-tour-card {
                height: 320px !important;
            }
        }
        
        /* Fallback for Nest Hub - width only */
        @media screen and (width: 1024px) {
            .featured-tours-section .related-tours-grid {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 15px !important;
            }
            
            .featured-tours-section .related-tours-grid > div:nth-child(n+4) {
                display: none !important;
            }
        }
        
        /* iPad Air Landscape */
        @media screen and (min-width: 1024px) and (max-width: 1180px) and (orientation: landscape) {
            .featured-tours-section .related-tours-grid {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 18px !important;
            }
            
            .featured-tours-section {
                padding: 60px 0 !important;
            }
        }
        
        /* iPad Air Portrait */
        @media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
            .featured-tours-section .related-tours-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 20px !important;
            }
            
            .featured-tours-section {
                padding: 60px 0 !important;
            }
            
            .featured-tours-section h2 {
                font-size: 2.2rem !important;
            }
        }

        @media screen and (max-width: 1024px) {
            .featured-tours-section .related-tours-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 20px !important;
            }
        }
        
        /* Z Fold and wider mobile devices (600-900px) */
        @media screen and (min-width: 600px) and (max-width: 900px) {
            .featured-tours-section .related-tours-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 16px !important;
            }
            
            .featured-tours-section {
                padding: 50px 0 !important;
            }
        }
        
        /* Mobile Landscape */
        @media screen and (max-width: 767px) and (orientation: landscape) {
            .featured-tours-section .related-tours-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 12px !important;
            }
            
            .featured-tours-section {
                padding: 40px 0 !important;
            }
            
            .featured-tours-section h2 {
                font-size: 1.8rem !important;
                margin-bottom: 15px !important;
            }
            
            .featured-tours-section p {
                font-size: 1rem !important;
            }
        }

        /* Mobile Portrait - Small screens only */
        @media screen and (max-width: 599px) {
            .featured-tours-section .related-tours-grid {
                grid-template-columns: 1fr !important;
                gap: 16px !important;
            }
        }
        
        /* Z Fold Folded (280-320px) */
        @media screen and (max-width: 360px) {
            .featured-tours-section .related-tours-grid {
                grid-template-columns: 1fr !important;
                gap: 12px !important;
            }
            
            .featured-tours-section {
                padding: 40px 0 !important;
            }
            
            .featured-tours-section .container {
                padding: 0 15px !important;
            }
            
            .featured-tours-section h2 {
                font-size: 1.75rem !important;
                margin-bottom: 12px !important;
            }
            
            .featured-tours-section p {
                font-size: 0.95rem !important;
            }
        }

        .featured-tours-section .related-tours-grid > div {
            display: flex !important;
            height: 100% !important;
        }

        .related-tour-card {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            border: 2px solid #ddd !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1) !important;
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
            background: white !important;
            cursor: pointer;
            display: flex !important;
            flex-direction: column !important;
            width: 100% !important;
            height: 100% !important;
        }

        @media screen and (min-width: 769px) {
            .related-tour-card {
                min-height: 480px !important;
                max-height: 480px !important;
            }
        }

        @media screen and (max-width: 768px) {
            .related-tour-card {
                min-height: auto !important;
                max-height: none !important;
            }
        }

        .related-tour-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16), 0 8px 32px rgba(0, 0, 0, 0.12) !important;
        }

        .related-tour-image {
            position: relative;
            width: 100%;
            height: 220px !important;
            min-height: 220px !important;
            max-height: 220px !important;
            overflow: hidden;
            flex-shrink: 0;
        }

        @media screen and (max-width: 768px) {
            .related-tour-image {
                height: 200px !important;
                min-height: 200px !important;
                max-height: 200px !important;
            }
        }

        .related-tour-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .related-tour-card:hover .related-tour-image img {
            transform: scale(1.05);
        }

        .tour-country-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            color: white;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
            z-index: 3;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }

        .tour-country-badge i {
            font-size: 12px;
            color: #10b981;
        }

        .related-tour-card:hover .tour-country-badge {
            background: rgba(0, 0, 0, 0.85);
            transform: translateY(-2px);
        }

        .related-tour-wishlist {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 999;
            pointer-events: auto;
        }

        .related-tour-wishlist:hover {
            background: white;
            transform: scale(1.1);
        }

        .related-tour-wishlist i {
            color: #666;
            font-size: 18px;
            transition: color 0.3s ease;
        }

        .related-tour-wishlist.favorited i {
            color: #ef4444;
        }

        .related-tour-wishlist:hover i {
            color: #ef4444;
        }

        .related-tour-price {
            position: absolute;
            bottom: 15px;
            right: 15px;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            z-index: 2;
        }

        .related-tour-price-current {
            color: white;
            font-size: 24px;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .related-tour-content {
            padding: 20px;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        @media screen and (max-width: 768px) {
            .related-tour-content {
                padding: 16px;
            }
        }

        .related-tour-activities {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
            min-height: 32px !important;
            height: 32px !important;
        }

        .related-tour-title {
            font-size: 17px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 15px;
            line-height: 1.4;
            height: 48px !important;
            min-height: 48px !important;
            max-height: 48px !important;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        @media screen and (max-width: 768px) {
            .related-tour-title {
                height: auto !important;
                min-height: auto !important;
                max-height: none !important;
                font-size: 16px;
            }
        }

        .related-tour-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 15px;
            border-top: 1px solid #eee;
            margin-top: auto;
            min-height: 85px !important;
            height: 85px !important;
        }

        @media screen and (max-width: 768px) {
            .related-tour-meta {
                min-height: 75px !important;
                height: auto !important;
            }
        }

        .related-tour-meta-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            flex: 1;
        }

        .related-tour-meta-item:not(:last-child) {
            border-right: 1px solid #eee;
        }

        .related-tour-meta-icon {
            font-size: 18px;
            color: #666;
        }

        .related-tour-meta-label {
            font-size: 11px;
            color: #999;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .related-tour-meta-value {
            font-size: 14px;
            color: #1a1a1a;
            font-weight: 600;
        }
