:root {
    /* Brand Colors - "Happy API" */
    --c-electric-turquoise: #00E5FF;
    --c-electric-turquoise-dark: #00B8CC;
    --c-sunset-orange: #FF5E00;
    --c-sunset-orange-dark: #CC4A00;
    --c-punchy-coral: #FF7272;
    --c-amber: #FFBF00;
    --c-bg-light: #F7FBFC;
    --c-text-dark: #1A2B3C;
    --c-text-muted: #6A7B8C;
    --c-white: #FFFFFF;
    
    /* Typography */
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    
    /* UI Values */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-soft: 0 4px 20px rgba(0, 229, 255, 0.15);
    --shadow-orange: 0 4px 20px rgba(255, 94, 0, 0.15);
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--c-bg-light);
    color: var(--c-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for mobile nav */
}

/* Typography utilities */
h1, h2, h3 { font-weight: 800; line-height: 1.2; margin-bottom: 0.5rem; }
p { color: var(--c-text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary.btn-teal {
    background-color: var(--c-electric-turquoise);
    color: var(--c-text-dark);
    box-shadow: var(--shadow-soft);
}

.btn-primary.btn-teal:hover {
    background-color: var(--c-electric-turquoise-dark);
}

.btn-primary.btn-orange {
    background-color: var(--c-sunset-orange);
    color: var(--c-white);
    box-shadow: var(--shadow-orange);
}

.btn-primary.btn-orange:hover {
    background-color: var(--c-sunset-orange-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--c-text-dark);
}

/* Navigation - Desktop */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--c-electric-turquoise-dark);
}

.nav-links a {
    text-decoration: none;
    color: var(--c-text-dark);
    font-weight: 600;
    margin: 0 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--c-punchy-coral);
}

/* Utilities */
.hidden { display: none !important; }

/* Unified Hero */
.hero-unified {
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--c-electric-turquoise);
}

/* Split Hero for Destination Pages */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65vh; /* Smaller height as requested! */
    padding: 0 5%;
    background: linear-gradient(135deg, var(--c-bg-light) 0%, #E6F7F9 100%);
    gap: 40px;
    overflow: hidden;
}

.hero-split-content {
    flex: 1;
    max-width: 600px;
    color: var(--c-text-dark);
    z-index: 2;
}

.hero-split-content h1 {
    font-size: 3.5rem;
    color: var(--c-text-dark);
    margin-bottom: 20px;
    text-shadow: none;
}

.hero-split-content p {
    color: var(--c-text-muted);
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: none;
}

.hero-split-image {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.hero-split-image img {
    max-width: 100%;
    max-height: 90%;
    object-fit: contain; /* SHOWS THE ENTIRE IMAGE EXACTLY AS IS */
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    animation: kenBurns 40s infinite alternate linear;
}

.hero-unified::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

/* Real Photo Animation */
.hero-bg-animate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero-bg_wide.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: kenBurns 40s infinite alternate linear;
}

@keyframes kenBurns {
    0% { transform: scale(1.05) translate(0, -1%); }
    25% { transform: scale(1.08) translate(1%, 0); }
    50% { transform: scale(1.12) translate(-1%, 1%); }
    75% { transform: scale(1.08) translate(1%, 2%); }
    100% { transform: scale(1.05) translate(0, -1%); }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--c-white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--c-white);
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-search-bar {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: var(--radius-full);
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-search-bar .filter-dropdown {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    padding: 10px 20px;
    font-weight: 700;
}

/* Vibe Ribbon */
.vibe-section {
    padding: 60px 20px;
    text-align: center;
}

.vibe-section h2 { margin-bottom: 20px; }

.vibe-ribbon {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar for clean look */
    justify-content: center;
}

.vibe-ribbon::-webkit-scrollbar { display: none; }

.vibe-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 12px 24px;
    background: var(--c-white);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.2s;
    color: var(--c-text-dark);
}

.vibe-btn:hover, .vibe-btn.active {
    border-color: var(--c-amber);
    color: var(--c-sunset-orange-dark);
    transform: scale(1.05);
}

/* Search Results UI */
.search-results {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

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

/* Boat Card */
.boat-card {
    background: var(--c-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.boat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.card-img-container {
    height: 220px;
    background: #E0E0E0;
    position: relative;
    overflow: hidden;
}

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

.boat-card:hover .card-img-container img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.9);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.boat-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.boat-location {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.boat-features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--c-text-muted);
}

.boat-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--c-text-dark);
}

.price span {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    font-weight: 500;
}

/* Advanced Filters Bar */
.filters-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-dropdown {
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid #E0E0E0;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--c-text-dark);
    background-color: var(--c-white);
    cursor: pointer;
    outline: none;
}

.toggle-pill {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: #F0F0F0;
    color: var(--c-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.toggle-pill.active {
    background: var(--c-electric-turquoise);
    color: var(--c-text-dark);
}

/* Skipper's Log (Blog) Layout */
.skipper-log {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.blog-card {
    background: var(--c-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card.featured {
    grid-column: 1 / -1; /* Span across full row */
    flex-direction: row;
}

.blog-card.featured img {
    width: 50%;
    height: 100%;
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card.featured .blog-content {
    justify-content: center;
    padding: 40px;
}

.category-tag {
    color: var(--c-sunset-orange);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.blog-card.featured .blog-content h3 {
    font-size: 2rem;
}

.blog-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    text-decoration: none;
    color: var(--c-electric-turquoise-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--c-amber);
}

/* Mobile Nav Styles */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--c-white);
    padding: 15px 20px 25px; /* Extra padding bottom for iOS home indicator */
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    z-index: 100;
    border-radius: 20px 20px 0 0;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .desktop-only { display: none; }
    
    .hero-split {
        flex-direction: column;
        height: auto;
    }
    
    .hero-panel {
        min-height: 50vh;
    }
    
    .vibe-ribbon {
        justify-content: flex-start; /* Better scroll on mobile */
    }
    
    .mobile-nav {
        display: flex;
        justify-content: space-around;
    }
    
    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--c-text-muted);
        font-size: 0.75rem;
        gap: 4px;
        transition: color 0.2s;
    }
    
    .mobile-nav a.active {
        color: var(--c-electric-turquoise-dark);
    }
    
    .blog-card.featured {
        flex-direction: column;
    }
    .blog-card.featured img {
        width: 100%;
        height: 250px;
    }
}
