/* BASE & DESIGN SYSTEM - ORANGE iOS LUXE */
:root {
    /* Colors - Light Mode (Warm Soft Grey/White) */
    --bg-primary: #F9F6F2;
    --bg-secondary: #FFFFFF;
    --text-main: #2A1A0D;
    --text-light: #7A604D;
    
    /* Gradients */
    --accent-orange: linear-gradient(135deg, #FF6B00, #FF9500);
    --accent-secondary: linear-gradient(135deg, #FF9500, #FFB347);
    --midnight-yacht: linear-gradient(135deg, #2A1A0D, #4A3018);
    
    /* Glassmorphism System */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(255, 107, 0, 0.05);
    
    /* Layout */
    --max-width: 1440px;
    --border-radius-lg: 32px;
    --border-radius-md: 20px;
    --border-radius-pill: 40px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Auto Toggle */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0C0805;
        --bg-secondary: #140E0A;
        --text-main: #FFFFFF;
        --text-light: #A89B8F;
        --glass-bg: rgba(20, 14, 10, 0.65);
        --glass-border: rgba(255, 255, 255, 0.08);
        --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    }
}

/* RESET & TYPOGRAPHY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

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

/* BUTTON SYSTEM */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent-orange);
    color: #FFF;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 25px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.9);
    color: #FF6B00;
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

/* FORM ELEMENTS */
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-light); }
.input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 12px; border-radius: 12px;
    border: 1px solid var(--glass-border); background: var(--bg-secondary);
    color: var(--text-main); font-family: inherit; transition: var(--transition-smooth);
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none; border-color: #FF6B00; box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

/* FLOATING iOS NAVBAR */
.ios-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: var(--max-width);
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-pill);
    padding: 12px 24px;
    z-index: 1000;
    transition: var(--transition-smooth);
    box-shadow: var(--glass-shadow);
}

.ios-nav.scrolled {
    top: 10px;
    padding: 8px 24px;
    width: 90%;
    background: rgba(var(--bg-secondary), 0.85);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #FF6B00;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* MOBILE BOTTOM TAB BAR */
.mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid var(--glass-border);
    padding: 12px 20px 24px;
    z-index: 1000;
    justify-content: space-between;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 500;
}

.tab-item.active, .tab-item:hover {
    color: #FF6B00;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}

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

.hero-video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.1); }
}

.glass-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(12, 10, 8, 0.2), rgba(12, 10, 8, 0.6));
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    color: #FFF;
    animation: fadeUp 1s ease-out;
}

.hero-content .tagline {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #FFB347;
}

.hero-content h1 {
    font-size: clamp(40px, 6vw, 72px);
    margin-bottom: 24px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #FFF;
    font-size: 12px;
    opacity: 0.7;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid #FFF;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #FFF;
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

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

/* SECTION LAYOUTS */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px 40px;
}

.bg-alternate {
    background: var(--bg-secondary);
    border-radius: 60px;
    margin: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.02);
}

@media (prefers-color-scheme: dark) {
    .bg-alternate {
        background: #140E0A;
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    margin-bottom: 16px;
    background: var(--midnight-yacht);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (prefers-color-scheme: dark) {
    .section-header h2 {
        background: var(--accent-orange);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* YACHT CARDS (TOP 5) - REDESIGNED LAYOUT */
.yacht-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 40px;
}

@media (min-width: 1024px) {
    .yacht-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .yacht-grid article:nth-child(1),
    .yacht-grid article:nth-child(2) {
        grid-column: span 3;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
    .yacht-grid article:nth-child(2) {
        flex-direction: row-reverse;
    }
    .yacht-grid article:nth-child(1) .yacht-img-wrap,
    .yacht-grid article:nth-child(2) .yacht-img-wrap {
        width: 55%;
        height: 450px;
        margin: 24px;
        flex-shrink: 0;
        border-radius: calc(var(--border-radius-lg) - 12px);
    }
    .yacht-grid article:nth-child(1) .yacht-info,
    .yacht-grid article:nth-child(2) .yacht-info {
        width: 45%;
        padding: 40px 60px;
        justify-content: center;
    }
    .yacht-grid article:nth-child(1) .yacht-info {
        padding-left: 10px;
    }
    .yacht-grid article:nth-child(2) .yacht-info {
        padding-right: 10px;
    }
}

.yacht-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.yacht-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
    .yacht-card {
        background: var(--glass-bg);
    }
    .yacht-card:hover { box-shadow: 0 20px 40px rgba(255, 107, 0, 0.2); }
}

.yacht-img-wrap {
    position: relative;
    height: 280px;
    margin: 12px 12px 0 12px;
    border-radius: calc(var(--border-radius-lg) - 12px);
    overflow: hidden;
}

.yacht-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.yacht-card:hover .yacht-img-wrap img {
    transform: scale(1.06);
}

.badge {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--accent-orange);
    color: #FFF;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    z-index: 2;
}

.wishlist-btn {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
    z-index: 2;
    color: #333;
}

@media (prefers-color-scheme: dark) {
    .wishlist-btn {
        background: rgba(0,0,0,0.5);
        color: #FFF;
        backdrop-filter: blur(10px);
    }
}

.wishlist-btn:hover {
    transform: scale(1.1);
    color: #FF6B00;
}

.yacht-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.yacht-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 500;
}

.yacht-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.yacht-meta svg {
    width: 16px; height: 16px;
    color: #FF6B00;
}

.yacht-info h3 {
    font-size: 26px;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.yacht-desc {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.6;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.features span {
    background: rgba(255, 107, 0, 0.08);
    color: #FF6B00;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

@media (prefers-color-scheme: dark) {
    .features span {
        background: rgba(255, 107, 0, 0.15);
    }
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
    margin-top: auto;
}

.price {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
}

.price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}

/* EXPERIENCES GRID */
.experiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.experience-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 350px;
}

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

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

.exp-content {
    position: absolute;
    bottom: 20px; left: 20px; right: 20px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #FFF;
}

.exp-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.exp-content p {
    font-size: 13px;
    opacity: 0.9;
}

/* DESTINATIONS LAYOUT */
.destinations-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 320px);
    gap: 30px;
}

.dest-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.dest-card.large-card {
    grid-column: span 7;
    grid-row: span 2;
}

.dest-card.small-card {
    grid-column: span 5;
    grid-row: span 1;
}

.dest-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.dest-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(12, 8, 5, 0.9) 0%, rgba(12, 8, 5, 0.3) 60%, rgba(0,0,0,0) 100%);
    z-index: 1;
    transition: var(--transition-smooth);
}

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

.dest-card:hover .dest-overlay {
    background: linear-gradient(to top, rgba(12, 8, 5, 0.95) 0%, rgba(12, 8, 5, 0.5) 60%, rgba(0,0,0,0.1) 100%);
}

.dest-info {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: #FFF;
    transition: var(--transition-smooth);
    transform: translateY(20px);
}

.dest-info h3 { 
    font-size: 32px; 
    margin-bottom: 12px; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.dest-info p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    max-width: 90%;
    line-height: 1.5;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #FFB347;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dest-card:hover .dest-info {
    transform: translateY(0);
}

.dest-card:hover .explore-btn {
    opacity: 1;
    max-height: 30px;
}

.small-card .dest-info {
    padding: 30px;
}

.small-card .dest-info h3 {
    font-size: 24px;
}

/* PAGE HEADER & TEXT CONTENT (Legal/Static Pages) */
.page-hero {
    padding: 160px 20px 80px;
    text-align: center;
    background: var(--midnight-yacht);
    color: #FFF;
    margin-bottom: 60px;
}
@media (prefers-color-scheme: dark) {
    .page-hero { background: var(--bg-secondary); }
}
.page-hero h1 { font-size: 48px; margin-bottom: 16px; }
.page-hero p { font-size: 18px; opacity: 0.8; max-width: 600px; margin: 0 auto; }

.text-content {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 20px;
}
.text-content h2 { font-size: 28px; margin: 40px 0 16px; }
.text-content p { margin-bottom: 16px; color: var(--text-light); }
.text-content ul { margin-bottom: 16px; padding-left: 20px; color: var(--text-light); }
.text-content li { margin-bottom: 8px; }

/* DETAIL PAGE SPECIFIC STYLES (Yachts) */
.detail-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    margin-top: 80px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}
.detail-hero img {
    width: 100%; height: 100%; object-fit: cover;
}
.detail-content {
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.yacht-full-info h2 { margin-bottom: 16px; }
.yacht-full-info h3 { margin-top: 40px; margin-bottom: 20px; }
.detail-meta { margin-top: 10px; margin-bottom: 30px; }
.description { color: var(--text-light); margin-bottom: 20px; font-size: 17px; line-height: 1.7; }
.detail-features { margin-bottom: 40px; }
.booking-disclaimer { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 16px; }

.booking-widget {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    position: sticky;
    top: 100px;
    box-shadow: var(--glass-shadow);
}
.booking-widget h3.booking-price { margin-bottom: 20px; font-size: 28px; }
.booking-widget h3.booking-price span { font-size: 16px; font-weight: 400; color: var(--text-light); }
.booking-btn { width: 100%; margin-top: 20px; }

.gallery-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px;
}
.gallery-grid img {
    width: 100%; height: 200px; object-fit: cover; border-radius: var(--border-radius-md);
}

/* FOOTER */
.glass-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 80px 40px 40px;
    margin-top: 60px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-light);
    font-size: 15px;
}

.footer-links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.link-group h4 {
    margin-bottom: 20px;
    font-size: 16px;
}

.link-group a {
    display: block;
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 14px;
    transition: color 0.2s;
}

.link-group a:hover {
    color: #FF6B00;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-light);
    font-size: 14px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .destinations-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .dest-card.large-card,
    .dest-card.small-card {
        grid-column: span 1;
        grid-row: auto;
        height: 350px;
    }
    .dest-info {
        transform: translateY(0);
    }
    .explore-btn {
        opacity: 1;
        max-height: 30px;
    }
    .bg-alternate { margin: 20px; border-radius: 40px; }
}

@media (max-width: 900px) {
    .detail-content { grid-template-columns: 1fr; padding: 0 20px; }
    .detail-hero { margin-top: 0; border-radius: 0; height: 50vh; }
}

@media (max-width: 768px) {
    .ios-nav { display: none; }
    .mobile-tab-bar { display: flex; }
    
    .hero-content h1 { font-size: 36px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions a { width: 100%; }
    
    .section-container { padding: 80px 20px; }
    .footer-content { flex-direction: column; gap: 40px; }
    .footer-links { gap: 40px; flex-direction: column; }
    
    body { padding-bottom: 70px; } /* Space for tab bar */
}