/* ===== OBR Tour - Modern CSS Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    /* Premium Travel Palette */
    --primary-gradient: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    /* Royal Blue -> Deep Purple */
    --primary-color: #2563eb;
    --primary-dark: #1e3a8a;
    --primary-light: #60a5fa;

    --secondary-gradient: linear-gradient(135deg, #be185d 0%, #db2777 100%);
    --accent-gradient: linear-gradient(135deg, #0f766e 0%, #06b6d4 100%);
    /* Teal */
    --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    /* Gold for accents */

    --success-gradient: linear-gradient(135deg, #059669 0%, #34d399 100%);
    --warning-gradient: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);

    /* Light Theme Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    /* Very light cool gray */
    --bg-tertiary: #f1f5f9;
    /* Light cool gray */
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.9);

    /* Dark Text on Light Background */
    --text-primary: #0f172a;
    /* Slate 900 - Sharp Black */
    --text-secondary: #334155;
    /* Slate 700 - Deep Gray */
    --text-muted: #64748b;
    /* Slate 500 */

    --border-color: #e2e8f0;
    /* Slate 200 */
    --border-light: #f1f5f9;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);
    /* Blue glow */

    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-blur: blur(16px);

    --container-width: 1280px;
    /* Slightly narrower for readability */
    --section-padding: 100px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle geometric pattern instead of gradients */
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input,
textarea,
select {
    font-family: inherit;
    outline: none;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

ul,
ol {
    list-style: none;
}

.font-display {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

.text-gradient {
    /* Gold/Orange gradient for maximum visibility and premium feel */
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 10px rgba(251, 191, 36, 0.2);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.85);
    /* Light transparent header */
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.region-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.region-selector:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.region-selector select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0 20px 0 0;
    margin: 0;
    box-shadow: none;
}

.region-selector::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-secondary);
    pointer-events: none;
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    font-family: 'Inter', sans-serif;
    z-index: 100;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    min-width: 180px;
    justify-content: space-between;
}

.dropdown-trigger:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.dropdown-trigger.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.dropdown-trigger i:first-child {
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    /* Aligns to right edge of trigger */
    width: 220px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    overflow: hidden;
    padding: 8px;
}

.custom-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.dropdown-item.selected {
    background: var(--primary-gradient);
    color: white;
}

/* Hide original selector */
.region-selector {
    display: none;
}

/* New Filters Container */
.filters-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

/* Premium Services Section */
.premium-services {
    padding-bottom: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.service-card {
    height: 360px;
    /* Slightly more compact height like the banner */
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 30px 40px;
    text-decoration: none;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: var(--shadow-md);
}

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

/* Backgrounds with Stronger Gradient Overlay */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.service-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.1) 100%);
}

.service-card.yacht {
    background: url('https://mxbagvhlzthzodatxclv.supabase.co/storage/v1/object/public/photos/yat.webp') center/cover no-repeat;
}

.service-card.transfer {
    background: url('https://mxbagvhlzthzodatxclv.supabase.co/storage/v1/object/public/photos/tr.webp') center/cover no-repeat;
}

.service-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
}

.service-content h3 {
    font-size: 2.25rem;
    /* Large Title */
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.1;
    color: #ffffff !important;
    /* Force White */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.service-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    /* Force Light */
    margin-bottom: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: 280px;
        padding: 24px;
    }

    .service-content h3 {
        font-size: 1.75rem;
    }
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Fixed: was missing value in snippet, setting to 1 */
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Stronger overlay for readability on illustration */
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.6) 50%, var(--bg-primary) 100%);
    backdrop-filter: contrast(1.1);
    /* Enhance image colors slightly */
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    /* Ensure above overlay */
    z-index: 2;
}

/* Hero text needs to override default dark text because it's on an image */
.hero-title,
.hero-subtitle {
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* Heavy shadow for pop */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    color: white;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-badge i {
    color: #ffd700;
    /* Gold icon for visibility on dark */
}

.hero-title {
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease 0.2s both;
    opacity: 0.9;
}

/* Search Box */
.search-box {
    background: white;
    box-shadow: var(--shadow-lg);
    /* Stronger shadow for lift */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    transition: var(--transition-fast);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input-wrapper i {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 1rem;
    color: var(--text-primary);
    padding: 0;
    box-shadow: none;
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 16px 32px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.filter-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
    margin: 0 12px;
}

/* Footer */
/* Footer - High Specificity to Ensure Dark Theme */
body .footer {
    background-color: #0f172a !important;
    /* Deep Slate - Enforce Dark Background */
    color: #f8fafc !important;
    /* Force Light Text */
    margin-top: 60px;
    border-top: 1px solid #334155;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer .logo {
    color: #ffffff !important;
}

.footer-text {
    color: #94a3b8 !important;
    /* Slate 400 */
    margin-top: 20px;
    max-width: 300px;
    line-height: 1.8;
}

.footer-col h4 {
    color: #ffffff !important;
    margin-bottom: 24px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #cbd5e1 !important;
    /* Slate 300 */
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #60a5fa !important;
    /* Blue 400 */
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid #334155;
    /* Slate 700 */
    padding-top: 24px;
    text-align: center;
    color: #64748b;
    /* Slate 500 */
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-links a:hover {
        transform: none;
    }

    .footer .logo,
    .footer-text {
        display: none !important;
    }

    /* Mobile Search Box Fix */
    .search-input-wrapper {
        flex-direction: row;
        align-items: center;
        padding: 12px 16px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .search-input-wrapper input {
        width: 100%;
        text-align: left;
        padding: 8px 0;
    }

    .search-btn {
        width: 100%;
        padding: 14px;
    }

    .hero-badge {
        display: none !important;
    }

    /* Hero Text Scaling */
    .hero-title {
        font-size: 2.5rem;
        /* Smaller on mobile */
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Tour Hero Title Visibility Fix - Global override */
.tour-hero-title {
    color: #ffffff !important;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* Mobile Menu Redesign */
.mobile-menu {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--glass-bg);
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: var(--transition-fast);
    cursor: pointer;
}

.mobile-menu-close:active {
    transform: scale(0.95);
    background: var(--border-color);
}

.mobile-menu-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
    /* Push footer down */
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    text-decoration: none;
}

.mobile-nav-link i {
    width: 24px;
    height: 24px;
    color: var(--primary-light);
    transition: var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link:active,
.mobile-nav-link.active {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.mobile-nav-link:hover i,
.mobile-nav-link:active i,
.mobile-nav-link.active i {
    color: var(--primary-color);
}

.mobile-menu-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 16px;
}

.mobile-contact-item i {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.mobile-socials {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    justify-content: center;
}

.mobile-social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.mobile-social-link:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Global Mobile Fixes for Overflowing Elements */
html {
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 600px) {

    .transfer-text h1,
    .yachts-text h1,
    .hero-title,
    .section-title {
        word-wrap: break-word;
        hyphens: auto;
    }

    .transfer-features,
    .yachts-features {
        grid-template-columns: 1fr !important;
    }
}