/* Moorava Frontend Styles - Matching MyTravel Design with Outfit Font */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #013974; /* Dark Blue */
    --primary-dark: #012a5a; /* Darker Blue */
    --primary-light: #0255a3; /* Lighter Blue */
    --secondary-color: #EFBF04; /* Gold */
    --secondary-dark: #d4a904; /* Darker Gold */
    --secondary-light: #f5c933; /* Lighter Gold */
    --accent-color: #dc2626;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-primary: #e6f0f8; /* Light blue background */
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure all form elements respect box-sizing */
input, textarea, select, button {
    box-sizing: border-box;
    max-width: 100%;
}

html {
    overflow-x: hidden; /* Prevent horizontal scroll from full-width carousel */
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Frontend Main - Base spacing */
.frontend-main {
    padding-top: 0; /* Hero section handles its own spacing */
}

.frontend-main > *:first-child {
    padding-top: 0; /* Remove extra padding on first child */
}

/* Top Bar - Dark Background with Contact Info - Fixed Position (Desktop Only) */
.top-bar {
    background: rgba(1, 57, 116, 0.95);
    color: #ffffff;
    padding: 0.625rem 0;
    font-size: 0.875rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002; /* Below header (1004) so language dropdown is visible when open */
    width: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.top-bar.scrolled {
    background: rgba(1, 57, 116, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Hide top bar on mobile */
@media (max-width: 768px) {
    .top-bar.desktop-only {
        display: none;
    }
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.top-bar-contact,
.top-bar-social {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.top-bar-contact a,
.top-bar-social a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar-contact a:hover,
.top-bar-social a:hover {
    color: var(--primary-light);
}

/* Top bar social as icons only */
.top-bar-social-icons {
    gap: 0.75rem !important;
}
.top-bar-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1rem;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}
.top-bar-social-icons a:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}
.top-bar-social-icons a i {
    font-size: 1rem;
}

/* Header - Fixed Position with Glassmorphism */
header {
    background: rgba(255, 255, 255, 0.3);
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1004; /* Above top-bar (1002) so language/currency dropdowns are visible when open */
    width: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Mobile Header - Completely Different */
@media (max-width: 768px) {
    header {
        top: 0;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    header.scrolled {
        background: white;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    position: relative;
}

/* Mobile Header Content - New Layout */
.mobile-header-content {
    display: none;
}

@media (max-width: 768px) {
    .main-nav {
        padding: 0.75rem 1rem;
    }

    .mobile-header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 1rem;
    }

    .desktop-nav-wrapper {
        display: none !important;
    }
    
    .desktop-nav {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-header-content {
        display: none !important;
    }

    .mobile-nav {
        display: none !important;
    }
    
    /* Desktop Navigation Wrapper - New Layout */
    .desktop-nav-wrapper {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 2rem;
        width: 100%;
    }
    
    /* Header Left: Logo Only */
    .header-left {
        display: flex;
        align-items: center;
    }
    
    .desktop-logo {
        display: flex;
        align-items: center;
        z-index: 1003;
    }
    
    /* Center: Menu Items */
    .desktop-nav-wrapper .nav-links.desktop-nav {
        display: flex;
        justify-content: center;
        list-style: none;
        gap: 2rem;
        align-items: center;
        margin: 0;
        padding: 0;
    }
    
    /* Header Right: Search + Language + Currency + Become a Partner */
    .header-right {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    /* Header Search Form - Improved Styling */
    .header-search-form {
        display: flex;
        align-items: center;
        background: white;
        border: 2px solid var(--border-color, #e5e7eb);
        border-radius: 12px;
        overflow: hidden;
        min-width: 280px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }
    
    .header-search-form:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 4px 8px rgba(1, 57, 116, 0.15);
    }
    
    .header-search-input {
        flex: 1;
        border: none;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
        outline: none;
        background: transparent;
        color: var(--text-dark);
    }
    
    .header-search-input::placeholder {
        color: var(--text-light);
    }
    
    .header-search-btn {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 0.65rem 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s;
        min-width: 45px;
    }
    
    .header-search-btn:hover {
        background: var(--primary-dark);
    }
    
    .header-search-btn i {
        font-size: 0.9rem;
    }
    
    /* Currency Selector */
    .currency-switcher {
        display: flex;
        align-items: center;
    }
    
    .currency-select {
        padding: 0.5rem 0.75rem;
        border: 1px solid var(--border-color, #e5e7eb);
        border-radius: 8px;
        background: white;
        font-size: 0.875rem;
        cursor: pointer;
        outline: none;
        transition: border-color 0.3s;
    }
    
    .currency-select:hover {
        border-color: var(--primary-color);
    }
    
    /* Become a Partner Button - Extreme Right */
    .become-partner-btn {
        background: var(--secondary-color);
        color: var(--text-dark);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
        border-radius: 8px;
        white-space: nowrap;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .become-partner-btn:hover {
        background: var(--secondary-dark);
        color: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        transform: translateY(-1px);
    }
}

.logo-link {
    display: flex;
    align-items: center;
    z-index: 1003;
}

.logo {
    height: 50px;
    width: auto;
}

/* Mobile Header Actions */
.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-phone-btn:hover,
.mobile-phone-btn:active {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.mobile-lang-switcher {
    display: flex;
    align-items: center;
}

.mobile-lang-switcher .lang-select {
    padding: 0.4rem 0.5rem;
    padding-right: 1.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    background: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23333' d='M5 8L1 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    background-size: 10px;
    min-width: 60px;
}

.mobile-lang-switcher .lang-select-wrapper {
    position: relative;
    display: inline-block;
}

.mobile-lang-switcher .lang-select-flags {
    padding: 0.4rem 0.4rem;
    padding-right: 1.5rem;
    padding-left: 2rem;
    min-width: 45px;
    width: 45px;
    height: 32px;
    text-align: left;
    font-size: 0;
    color: transparent;
    background: transparent;
    cursor: pointer;
}

.mobile-lang-switcher .lang-select-flags option {
    font-size: 14px;
    color: #333;
    padding: 0.6rem 0.6rem 0.6rem 2.5rem;
    min-height: 32px;
    background-repeat: no-repeat;
    background-position: 0.5rem center;
    background-size: 20px 15px;
}

.mobile-lang-switcher .lang-select-flags option[value="en"] {
    background-image: url('https://flagcdn.com/w40/us.png');
}

.mobile-lang-switcher .lang-select-flags option[value="fr"] {
    background-image: url('https://flagcdn.com/w40/fr.png');
}

.mobile-lang-switcher .lang-flag-display {
    position: absolute;
    left: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.mobile-lang-switcher .lang-flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: block;
}

.mobile-lang-switcher .lang-select:hover {
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .logo {
        height: 40px;
        max-width: 140px;
        object-fit: contain;
    }

    .mobile-header-content .logo-link {
        flex: 1;
        justify-content: center;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Language Switcher with Flags */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 0;
    position: relative;
    z-index: 1010; /* Above top-bar (1003) so dropdown list is visible when open */
}

.lang-select {
    padding: 0.5rem 0.75rem;
    padding-right: 2rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px;
    min-width: 70px;
}

.lang-select-wrapper {
    position: relative;
    display: inline-block;
}

.lang-select-flags {
    padding: 0.5rem 0.5rem;
    padding-right: 2rem;
    padding-left: 2.5rem;
    min-width: 50px;
    width: 50px;
    height: 38px;
    text-align: left;
    font-size: 0;
    color: transparent;
    background: transparent;
    cursor: pointer;
}

.lang-select-flags option {
    font-size: 14px;
    color: #333;
    padding: 0.75rem 0.75rem 0.75rem 3rem;
    min-height: 36px;
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 24px 18px;
}

.lang-select-flags option[value="en"] {
    background-image: url('https://flagcdn.com/w40/us.png');
}

.lang-select-flags option[value="fr"] {
    background-image: url('https://flagcdn.com/w40/fr.png');
}

.lang-flag-display {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.lang-flag-icon {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: block;
}

.lang-select:hover {
    border-color: var(--primary-color);
}

.lang-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(1, 57, 116, 0.1);
}

/* Custom Language Dropdown - Flags always visible via <img> */
.custom-lang-dropdown {
    position: relative;
    display: inline-block;
}
.lang-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.6rem;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.lang-dropdown-trigger:hover {
    border-color: var(--primary-color);
}
.lang-dropdown-trigger .lang-flag-icon {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: block;
}
.lang-dropdown-trigger .lang-chevron {
    font-size: 0.65rem;
    color: var(--text-light, #6b7280);
    transition: transform 0.2s;
}
.lang-dropdown-trigger[aria-expanded="true"] .lang-chevron {
    transform: rotate(180deg);
}
.lang-dropdown-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: white;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 1010;
    overflow: hidden;
}
.lang-dropdown-list[hidden] {
    display: none !important;
}
.lang-dropdown-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    color: var(--text-dark, #1f2937);
}
.lang-dropdown-option:hover {
    background: #f3f4f6;
}
.lang-dropdown-option .lang-flag-icon {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}
.mobile-lang-switcher.custom-lang-dropdown .lang-dropdown-trigger {
    padding: 0.35rem 0.5rem;
}
.mobile-lang-switcher.custom-lang-dropdown .lang-dropdown-trigger .lang-flag-icon,
.mobile-lang-switcher.custom-lang-dropdown .lang-dropdown-option .lang-flag-icon {
    width: 20px;
    height: 15px;
}

/* Main Content - Fixed Padding for Overlapping Header */
main {
    position: relative;
    z-index: 1;
    flex: 1; /* Take available space in flexbox layout */
    display: flex;
    flex-direction: column;
    /* Removed conflicting padding-top and min-height - handled per page */
}

/* Hero Section - Enhanced */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    margin-top: 0;
    padding-top: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 57, 116, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 0;
}

/* Decorative Elements */
.hero-decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(239, 191, 4, 0.1);
    filter: blur(60px);
    animation: float 15s ease-in-out infinite;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.hero-shape-3 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(1, 57, 116, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    animation: fadeInDown 1s ease-out;
    z-index: 2;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-badge-icon {
    font-size: 1rem;
}

.hero-badge-text {
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title-line-1 {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, rgba(239, 191, 4, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.4s both;
    max-width: 700px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 1);
    z-index: 1000; /* Very high z-index to ensure it's above everything */
    animation: fadeIn 1s ease-out 1s both, bounce 2s ease-in-out infinite 2s;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto !important; /* Ensure it's clickable */
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-scroll-indicator * {
    pointer-events: none; /* Prevent child elements from blocking clicks */
}

.hero-scroll-indicator:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateX(-50%) translateY(-5px);
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-wheel {
    width: 5px;
    height: 10px;
    background: rgba(255, 255, 255, 1);
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(18px);
    }
}

.scroll-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Form Container */
.search-form-container {
    width: 100%;
    max-width: 1000px;
    margin-top: 2rem;
}

.hero-search-form {
    background: rgba(255, 255, 255, 0.98);
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%;
}

/* Search Tabs */
.search-tabs {
    display: flex;
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
    padding: 0;
    margin: 0;
}

.search-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
}

.search-tab:hover {
    color: var(--primary-color);
    background: rgba(249, 115, 22, 0.05);
}

.search-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: white;
}

/* Search Form Grid */
.search-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field:last-child {
    grid-column: 1 / -1;
}

.search-field label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.875rem;
    text-align: left;
}

.search-input-wrapper {
    position: relative;
}

.search-select,
.search-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
    background: white;
    color: var(--text-dark);
}

.search-select:focus,
.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.search-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 1.75rem;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Improved Search Form Styles */
.hero-search-form-improved {
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

/* Enhanced Search Form - Transparent Background */
.hero-search-form-enhanced {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.search-form-grid-enhanced {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 2fr auto;
    gap: 1.5rem;
    align-items: end;
}

.search-field-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.search-field-wrapper {
    position: relative;
}

.search-select-enhanced,
.search-input-enhanced {
    width: 100%;
    padding: 1.125rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.search-select-enhanced {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231f2937' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-color: rgba(255, 255, 255, 0.9);
    padding-right: 3rem;
}

.search-input-enhanced {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.search-select-enhanced:focus,
.search-input-enhanced:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(1, 57, 116, 0.1);
    transform: translateY(-2px);
}

.search-input-enhanced::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.search-btn-enhanced {
    background: var(--primary-gradient);
    color: white;
    padding: 1.125rem 2.5rem;
    border: none;
    border-radius: 14px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: fit-content;
    font-family: inherit;
    box-shadow: 0 8px 20px rgba(1, 57, 116, 0.4);
    letter-spacing: 0.5px;
    min-width: 180px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    touch-action: manipulation;
}

.search-btn-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.search-btn-enhanced:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(1, 57, 116, 0.5);
}

.search-btn-enhanced:active {
    transform: translateY(-1px);
}

.search-input-field-enhanced {
    flex: 1;
}

.search-btn-field-enhanced {
    display: flex;
    align-items: flex-end;
}

.search-form-grid-improved {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr auto;
    gap: 1.25rem;
    align-items: end;
}

.search-field-improved {
    display: flex;
    flex-direction: column;
}

.search-input-field {
    flex: 1;
}

.search-btn-field {
    display: flex;
    align-items: flex-end;
}

.search-select-improved,
.search-input-improved {
    width: 100%;
    padding: 1.125rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    color: var(--text-dark);
    transition: all 0.3s;
    box-sizing: border-box;
    font-weight: 500;
}

.search-select-improved {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231f2937' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 3rem;
}

.search-input-improved {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.search-select-improved:focus,
.search-input-improved:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.search-input-improved::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.search-btn-improved {
    background: var(--primary-color);
    color: white;
    padding: 1.125rem 3rem;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    height: fit-content;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    letter-spacing: 0.5px;
    min-width: 160px;
    /* Mobile-friendly touch targets */
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(249, 115, 22, 0.3);
}

.search-btn-improved:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

.search-btn-improved:active {
    transform: translateY(0);
}

/* Legacy Search Form (for backward compatibility) */
.search-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.form-group select,
.form-group input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
    box-sizing: border-box;
    max-width: 100%;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    grid-column: 1 / -1;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.see-all-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.see-all-btn:hover {
    color: var(--primary-dark);
}

/* Destinations Grid */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.destination-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 350px;
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

.destination-card:hover .destination-image {
    transform: scale(1.1);
}

.destination-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
}

.destination-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
    z-index: 2;
}

.destination-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.destination-description {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.destination-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-block;
}

.destination-link:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

/* Trending Section */
.trending-section {
    background: var(--bg-light);
}

.trending-category {
    margin-bottom: 4rem;
}

.trending-category:last-child {
    margin-bottom: 0;
}

.trending-category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.trending-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.trending-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Image Container Styles - Ensure all images are covered and centered */
.trending-image,
.activity-image img,
.excursion-image img,
.best-of-image,
.card-image,
.destination-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Image containers with fallback background */
.activity-image,
.excursion-image,
.trending-image-container,
.best-of-image-container,
.card-image-container {
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}

.trending-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center; /* Ensure images are centered */
}

.trending-card-content {
    padding: 1.5rem;
}

.trending-destination {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.trending-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.trending-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.trending-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-block;
}

.trending-link:hover {
    color: var(--primary-dark);
}

/* Enhanced Trending Cards */
.trending-card-enhanced {
    display: block;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.trending-card-enhanced:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.2);
}

.trending-badge-fire {
    position: absolute;
    top: -5px;
    right: 15px;
    z-index: 10;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
    animation: fire-pulse 2s ease-in-out infinite;
}

.trending-badge-fire i {
    color: white;
    font-size: 1.25rem;
}

@keyframes fire-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 69, 0, 0.6);
    }
}

.trending-card-image {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.trending-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trending-card-enhanced:hover .trending-card-image img {
    transform: scale(1.08) rotate(1deg);
}

.trending-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #9ca3af;
    font-size: 3.5rem;
}

.trending-card-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(1, 57, 116, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.trending-card-badge i {
    font-size: 0.75rem;
}

.trending-card-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(245, 158, 11, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.trending-card-rating i {
    font-size: 0.875rem;
}

.trending-card-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, white 0%, #fafafa 100%);
}

.trending-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.trending-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 2px solid #e5e7eb;
    margin-top: auto;
}

.trending-card-price {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.trending-card-price .price-from {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trending-card-price .price-amount {
    font-size: 1.375rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trending-card-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
}

.trending-card-enhanced:hover .trending-card-arrow {
    transform: translateX(5px) rotate(-15deg);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .trending-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trending-card-image {
        height: 220px;
    }
    
    .trending-card-content {
        padding: 1.5rem;
    }
    
    .trending-card-title {
        font-size: 1.125rem;
    }
    
    .trending-card-price .price-amount {
        font-size: 1.25rem;
    }
    
    .trending-badge-fire {
        width: 45px;
        height: 45px;
    }
    
    .trending-badge-fire i {
        font-size: 1.125rem;
    }
}

/* Best Of Section */
.best-of-section {
    background: white;
}

.best-of-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.best-of-tab,
.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
}

.best-of-tab.active,
.best-of-tab:hover,
.tab-btn.active,
.tab-btn:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.best-of-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.best-of-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.best-of-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.best-of-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center; /* Ensure images are centered */
}

.best-of-content {
    padding: 1.5rem;
}

.best-of-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.best-of-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.best-of-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.best-of-link:hover {
    color: var(--primary-dark);
}

/* Enhanced Best Of Morocco Cards */
.best-of-card-enhanced {
    display: block;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.best-of-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.best-of-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f3f4f6;
}

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

.best-of-card-enhanced:hover .best-of-card-image img {
    transform: scale(1.05);
}

.best-of-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #9ca3af;
    font-size: 3rem;
}

.best-of-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(1, 57, 116, 0.95);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.best-of-card-badge i {
    font-size: 0.75rem;
}

.best-of-card-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(245, 158, 11, 0.95);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.best-of-card-rating i {
    font-size: 0.875rem;
}

.best-of-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.best-of-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.best-of-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.best-of-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.best-of-card-price {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.best-of-card-price .price-from {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.best-of-card-price .price-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.best-of-card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.best-of-card-enhanced:hover .best-of-card-arrow {
    transform: translateX(4px) rotate(-10deg);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .best-of-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .best-of-card-image {
        height: 200px;
    }
    
    .best-of-card-content {
        padding: 1.25rem;
    }
    
    .best-of-card-title {
        font-size: 1rem;
    }
    
    .best-of-card-price .price-amount {
        font-size: 1.125rem;
    }
}

/* Best This Week Section */
.best-week-section {
    background: var(--bg-light);
}

.best-week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.best-week-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    height: 350px;
}

.best-week-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.best-week-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Ensure images are centered */
    transition: transform 0.5s;
}

.best-week-card:hover .best-week-image {
    transform: scale(1.1);
}

.best-week-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
}

.best-week-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
    z-index: 2;
}

.best-week-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.best-week-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.best-week-price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.best-week-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.best-week-link:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

/* Tips Section */
.tips-section {
    background: white;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.tip-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tip-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* Why Us Section */
.why-us-section {
    background: var(--bg-light);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.why-us-card,
.why-us-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.why-us-card:hover,
.why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-us-icon {
    margin-bottom: 0 !important;
    margin: 0 auto !important;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.why-us-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    color: var(--text-dark);
}

.why-us-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* Product/Detail Pages - Improved Layout */
.detail-page {
    padding: 2rem 0 4rem;
}

.detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem; /* Increased left/right padding */
}

/* Detail Hero - Featured Image */
.detail-hero {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-height: 600px;
    background: #f3f4f6;
}

.detail-hero img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: cover;
    min-height: 400px;
}

/* Gallery Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* FAQ Accordion Styles */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: background-color 0.3s, color 0.3s;
    font-family: 'Outfit', sans-serif;
}

.faq-question:hover {
    background: #f9fafb;
    color: var(--primary-color);
}

.faq-question span:first-child {
    flex: 1;
    text-align: left;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s;
    margin-left: 1rem;
    min-width: 24px;
    text-align: center;
}

/* Icon rotation handled by JavaScript text change */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
    background: #f9fafb;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer-content {
    padding-top: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Google Maps Container */
.google-map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.google-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Itinerary timeline (icon, title, description) + map side‑by‑side */
.itinerary-timeline {
    position: relative;
    padding-left: 0;
}
.itinerary-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.25rem;
}
.itinerary-step:last-child {
    padding-bottom: 0;
}
.itinerary-step__connector {
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 0;
    width: 3px;
    background: var(--primary-color, #013974);
    opacity: 0.5;
}
.itinerary-step:last-child .itinerary-step__connector {
    display: none;
}
.itinerary-step--travel .itinerary-step__connector {
    background: none !important;
    border: none;
    border-left: 3px dashed var(--primary-color, #013974);
    opacity: 0.8;
    width: 3px;
    box-sizing: border-box;
    left: 13px;
}
.itinerary-step__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--primary-color);
    z-index: 1;
}
.itinerary-step__icon--pickup {
    background: var(--primary-accent, #f59e0b);
    border-color: var(--primary-accent, #f59e0b);
}
.itinerary-step__icon--pickup i {
    color: #fff !important;
}
.itinerary-step__content {
    flex: 1;
    min-width: 0;
}
.itinerary-step__title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}
.itinerary-step__desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}
.itinerary-step__duration {
    color: var(--text-light);
    font-weight: 500;
}
.itinerary-map-grid {
    align-items: stretch;
}
.itinerary-map-section .map-col .google-map-container {
    min-height: 360px;
}
@media (max-width: 900px) {
    .itinerary-map-grid {
        grid-template-columns: 1fr !important;
    }
}

.detail-header {
    margin-bottom: 3rem;
}

.detail-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.detail-content {
    display: grid;
    grid-template-columns: 61% 39%;
    gap: 3rem;
    align-items: start;
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.detail-info {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.detail-main {
    min-width: 0;
}

/* Featured Image - Made Visible */
.detail-featured-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.detail-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: cover;
}

.detail-description {
    margin-bottom: 3rem;
}

.detail-description h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.detail-description p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.detail-sidebar {
    position: sticky;
    top: 140px;
    z-index: 100;
    pointer-events: auto;
}

.detail-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.detail-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Pricing Options */
.pricing-options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-option-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.pricing-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pricing-option-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-option-type {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.pricing-option-children {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Extras */
.extras-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.extra-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s;
}

.extra-item:hover {
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.extra-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    margin: 0;
}

.extra-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.extra-content {
    flex: 1;
}

.extra-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.extra-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.extra-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.extra-price-type {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: normal;
}

.total-price-display {
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.total-price-display strong {
    color: var(--primary-color);
}

#total-price {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Grid Styles */
.gallery-grid-container {
    width: 100%;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-grid-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-grid-item:hover .gallery-overlay {
    opacity: 1;
}

/* Gallery Carousel Styles - REMOVED - Now in activity-detail.css to avoid conflicts */
/* All activity gallery carousel styles are now scoped to .activity-gallery-carousel-* classes */
/* The fullscreen gallery carousel styles below are kept for the modal view */

/* Gallery Carousel Styles (Fullscreen) */
.gallery-carousel-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    margin: 0;
    padding: 2rem;
    display: none;
}

.gallery-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    max-height: calc(100vh - 200px);
    overflow: hidden;
    border-radius: 16px;
}

.gallery-carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.gallery-carousel-item {
    background: var(--primary-color); /* Fallback background color */
}

.gallery-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Ensure images are centered */
    display: block;
}

/* Center image (active) - full size */
.gallery-carousel-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 3;
    width: 100%;
    left: 0;
}

/* Left image - 35% visible */
.gallery-carousel-item.prev {
    opacity: 0.7;
    transform: scale(0.85) translateX(-65%);
    z-index: 2;
    width: 100%;
    left: 0;
    cursor: pointer;
}

/* Right image - 35% visible */
.gallery-carousel-item.next {
    opacity: 0.7;
    transform: scale(0.85) translateX(65%);
    z-index: 2;
    width: 100%;
    left: 0;
    cursor: pointer;
}

/* Hidden images */
.gallery-carousel-item.hidden {
    opacity: 0;
    z-index: 1;
}

/* Gallery Close Button */
.gallery-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-size: 1.5rem;
    color: var(--text-dark);
    transition: all 0.3s;
}

.gallery-close-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Navigation Arrows */
.gallery-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
}

.gallery-carousel-arrow:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-carousel-prev {
    left: 20px;
}

.gallery-carousel-next {
    right: 20px;
}

.gallery-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-carousel-arrow:disabled:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    transform: translateY(-50%);
}

/* Indicators */
.gallery-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    z-index: 10;
    position: relative;
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.gallery-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.gallery-indicator:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-carousel {
        height: 400px;
    }
    
    .gallery-carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .gallery-carousel-prev {
        left: 10px;
    }
    
    .gallery-carousel-next {
        right: 10px;
    }
    
    /* On mobile, show only center image */
    .gallery-carousel-item.prev,
    .gallery-carousel-item.next {
        opacity: 0;
    }
}

/* Forms - Improved Display */
.contact-form,
.booking-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row.full-width {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    /* Mobile-friendly touch targets */
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

/* Time select: gray out disabled (out-of-range) options */
#time-input-container select option:disabled {
    color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 1rem;
    /* Mobile-friendly touch targets */
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(249, 115, 22, 0.3);
}

.form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Success/Error Messages */
.success-message {
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.error-message-box {
    background: #ef4444;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Grid Layouts - Note: Generic .grid is defined later in the file for search/piscines pages */

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .detail-container {
        padding: 0 2rem; /* Still good padding on tablet */
    }
    
    .detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-sidebar {
        position: static;
    }
    
    .search-form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 72px; /* Space for mobile header */
    }
    
    header {
        top: 0;
        height: 72px;
    }

    .frontend-main {
        padding-top: 72px;
    }
    
    .hero-section {
        margin-top: 0;
        padding-top: 72px;
        height: 100vh;
        min-height: 600px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .search-form-container {
        margin-top: 1.5rem;
    }
    
    .search-form-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .search-form-grid-improved {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-field-improved {
        width: 100%;
    }
    
    .search-btn-improved {
        width: 100%;
    }
    
    .hero-search-form-improved {
        padding: 1.5rem;
    }
    
    /* Enhanced Hero Mobile Styles */
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
        width: 90%;
    }
    
    .hero-stat-item {
        width: 100%;
    }
    
    .hero-stat-divider {
        display: none;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.75rem;
    }
    
    .hero-search-form-enhanced {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .search-form-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-field-label {
        font-size: 0.7rem;
    }
    
    .search-select-enhanced,
    .search-input-enhanced {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-btn-enhanced {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
        min-width: auto;
    }
    
    .hero-scroll-indicator {
        bottom: 1rem;
    }
    
    .scroll-mouse {
        width: 20px;
        height: 32px;
    }
    
    .scroll-text {
        font-size: 0.65rem;
    }
    
    .search-tabs {
        flex-wrap: wrap;
    }
    
    .search-tab {
        flex: 1 1 auto;
        min-width: 80px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-nav {
        padding: 0.75rem 1.5rem;
        position: relative;
    }

    /* Mobile Menu Toggle Button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1003;
        gap: 5px;
        flex-shrink: 0;
    }

    .hamburger-line {
        width: 100%;
        height: 3px;
        background: var(--text-dark);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(10px, -10px);
    }
    
    .mobile-nav {
        display: none;
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        max-width: 100vw;
        height: calc(100vh - 72px);
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease;
        overflow-y: auto;
        gap: 0;
        z-index: 1002;
    }

    .mobile-nav.mobile-open {
        display: flex;
        left: 0;
    }

    .mobile-nav li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-nav li:last-child {
        border-bottom: none;
    }

    .mobile-nav a {
        display: block;
        padding: 1.25rem 1.5rem;
        width: 100%;
        font-size: 1.125rem;
        font-weight: 500;
        color: var(--text-dark);
        transition: all 0.3s;
    }

    .mobile-nav a:hover,
    .mobile-nav a.active {
        background: rgba(249, 115, 22, 0.1);
        color: var(--primary-color);
        padding-left: 2rem;
    }

    /* Mobile Menu Footer with Contact Info */
    .mobile-menu-footer {
        margin-top: auto;
        padding: 2rem 1.5rem;
        background: var(--bg-light);
        border-top: 2px solid var(--border-color);
    }

    .mobile-contact-info {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .mobile-contact-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--text-dark);
        text-decoration: none;
        font-size: 0.95rem;
        transition: color 0.3s;
    }

    .mobile-contact-link:hover {
        color: var(--primary-color);
    }

    .mobile-contact-link svg {
        flex-shrink: 0;
        color: var(--primary-color);
    }

    .mobile-social-links {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .mobile-social-link {
        color: var(--text-light);
        text-decoration: none;
        font-size: 0.875rem;
        transition: color 0.3s;
    }

    .mobile-social-link:hover {
        color: var(--primary-color);
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .detail-container {
        padding: 0 1.5rem; /* Good padding on mobile */
    }
    
    .detail-title {
        font-size: 2rem;
    }

    .detail-content {
        grid-template-columns: 1fr !important;
    }

    .detail-sidebar {
        position: static !important;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .contact-form,
    .booking-form {
        padding: 2rem 1.5rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }

    .destinations-grid,
    .trending-grid,
    .best-of-grid,
    .best-week-grid,
    .tips-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Touch-friendly buttons */
    .btn,
    .book-now-btn,
    .search-btn,
    button {
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(249, 115, 22, 0.3);
    }

    /* Better spacing for mobile */
    .detail-card,
    .booking-widget {
        padding: 1.5rem;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Mobile menu overlay */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        width: 100vw;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}


/* Booking Widget Styles */
.booking-widget {
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 120px;
}

.booking-widget h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.pricing-accordion-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.pricing-option-accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.pricing-option-header {
    width: 100%;
    text-align: left;
    padding: 1rem;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s;
}

.pricing-option-header:hover {
    background: #f3f4f6;
}

.pricing-option-content {
    padding: 1rem;
    display: none;
    background: white;
}

.pricing-option-radio {
    width: auto !important;
    margin-right: 0.5rem;
    cursor: pointer;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--text-dark);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.transport-section {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.transport-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    pointer-events: none;
}

#free_transport:checked ~ .transport-toggle-slider {
    transform: translateX(25px);
}

#free_transport:checked {
    background: var(--primary-color) !important;
}

.total-price-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.book-now-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.book-now-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.book-now-btn:active {
    transform: translateY(0);
}

/* Generic Grid Layout (for search results, piscines, activities, excursions) */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Generic Card Styles (for search results, piscines, activities, excursions) */
.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.card:hover .card-image {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.card-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-price .price-type {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Generic Section Styles */
.section {
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

/* Hero Section Styles */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
    background: var(--primary-gradient);
    color: white;
    margin-bottom: 3rem;
    margin-top: 100px; /* Account for fixed header */
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Generic Button Styles */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn:active {
    transform: translateY(0);
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    margin: 3rem 0;
}

.empty-state h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-info {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-light);
}

.pagination-info-numbers {
    font-weight: 600;
    color: var(--text-dark);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.pagination ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 44px;
    text-align: center;
}

.pagination a {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pagination .active span {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.pagination .disabled span {
    background: var(--bg-light);
    color: var(--text-light);
    border: 2px solid var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Page Header Styles (for activities index, etc.) */
.page-header {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    text-align: center;
    background: var(--primary-gradient);
    color: white;
    margin-bottom: 3rem;
    margin-top: 100px; /* Account for fixed header */
    position: relative;
}

/* Contact Hero - For static pages (privacy, terms, cookies) */
.contact-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    text-align: center;
    background: var(--primary-gradient);
    color: white;
    margin-bottom: 3rem;
    padding-top: 140px; /* Account for fixed header (100-120px) + padding */
    position: relative;
}

.contact-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for grid and cards */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 2rem;
        margin-top: 80px;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .empty-state {
        padding: 3rem 1.5rem;
    }
    
    .empty-state h2 {
        font-size: 1.75rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-header {
        min-height: 40vh;
        padding: 1.5rem 0;
        margin-top: 80px;
    }
    
    .page-header h1 {
        font-size: 2.25rem;
    }
    
    .page-header p {
        font-size: 1.125rem;
    }
    
    .contact-hero {
        min-height: 30vh;
        padding-top: 100px; /* Account for mobile header (60-70px) + padding */
    }
    
    .contact-hero h1 {
        font-size: 2.25rem;
    }
    
    .contact-hero p {
        font-size: 1.125rem;
    }
}
