/* Zainadiao UI Styles */

:root {
    --fb-navy: #2f4038;
    --fb-ink: #36463f;
    --fb-ink-soft: #47564f;
    --fb-ink-strong: #2b3a33;
    --fb-yellow: #d3da7a;
    --fb-yellow-hover: #c7ce70;
    --fb-blue: #3a6f8c;
    --fb-white: #f4f7f2;
    --fb-surface: #f7f9f4;
    --fb-gray-100: #e9efe7;
    --fb-gray-200: #d5ddd1;
    --fb-gray-text: #4d5851;
    --fb-border: 1px solid var(--fb-gray-200);
    --fb-footer-start: #2f4038;
    --fb-footer-end: #223028;
    --map-marker-high: #2b7c60;
    --map-marker-mid: #3a6f8c;
    --map-marker-low: #d6a54c;
    --map-marker-poor: #e36b6b;
    
    --container-xl: 1400px; /* Wider container */
    --nav-height: 80px;

    /* Brand mark defaults (pro variant) */
    --brand-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --brand-weight: 800;
    --brand-size: 24px;
    --brand-letter-spacing: -0.5px;
    --brand-top-offset: 1px;
    --brand-skew: -4deg;
    --brand-accent-color: var(--fb-blue);
    --brand-accent-gap: 0.5px;
    --brand-logo-shadow: drop-shadow(0 2px 4px rgba(58, 111, 140, 0.25));
    --brand-hook-color: var(--brand-accent-color);
    --brand-hook-size: 0.44em;
    --brand-hook-thickness: 0.1em;
    --brand-hook-offset-x: 0.02em;
    --brand-hook-offset-y: -0.05em;
    --brand-hook-rotate: 14deg;
    --brand-hook-opacity: 0.95;
    --brand-hook-pad: 0.22em;
    --brand-cut-bg: var(--fb-surface);
    --brand-cut-size: 0.22em;
    --brand-cut-offset-x: -0.02em;
    --brand-cut-offset-y: -0.12em;
    --brand-cut-rotate: 45deg;
    --brand-cut-opacity: 0.9;
    --fb-radius-sm: 8px;
    --fb-radius-md: 12px;
    --fb-radius-lg: 16px;
    --fb-radius-xl: 24px;
    --fb-radius-xxl: 40px;
    --fb-radius-pill: 999px;
}

@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
    }
}

body {
    margin: 0;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Inter",
        system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--fb-ink);
    background-color: var(--fb-white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

body.brand-variant-natural {
    --brand-font: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --brand-weight: 600;
    --brand-size: 25px;
    --brand-letter-spacing: 0.5px;
    --brand-top-offset: 0;
    --brand-skew: 0deg;
    --brand-accent-color: #3a6fc0;
    --brand-accent-gap: 0;
    --brand-logo-shadow: drop-shadow(0 1px 2px rgba(58, 111, 140, 0.18));
    --brand-hook-color: #3a6fc0;
    --brand-hook-size: 0.42em;
    --brand-hook-thickness: 0.09em;
    --brand-hook-offset-x: 0.01em;
    --brand-hook-offset-y: -0.05em;
    --brand-hook-rotate: 12deg;
    --brand-hook-opacity: 0.93;
    --brand-hook-pad: 0.2em;
    --brand-cut-size: 0.2em;
    --brand-cut-offset-y: -0.11em;
    --brand-cut-opacity: 0.88;
}

body.brand-variant-pro {
    --brand-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --brand-weight: 800;
    --brand-size: 24px;
    --brand-letter-spacing: -0.5px;
    --brand-top-offset: 1px;
    --brand-skew: -4deg;
    --brand-accent-color: var(--fb-blue);
    --brand-accent-gap: 0.5px;
    --brand-logo-shadow: drop-shadow(0 2px 4px rgba(58, 111, 140, 0.25));
    --brand-hook-color: var(--fb-blue);
    --brand-hook-size: 0.44em;
    --brand-hook-thickness: 0.1em;
    --brand-hook-offset-x: 0.02em;
    --brand-hook-offset-y: -0.05em;
    --brand-hook-rotate: 14deg;
    --brand-hook-opacity: 0.95;
    --brand-hook-pad: 0.22em;
    --brand-cut-size: 0.22em;
    --brand-cut-offset-y: -0.12em;
    --brand-cut-opacity: 0.9;
}

body.brand-variant-literary {
    --brand-font: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --brand-weight: 600;
    --brand-size: 26px;
    --brand-letter-spacing: 1px;
    --brand-top-offset: 0;
    --brand-skew: 0deg;
    --brand-accent-color: #4a6ea8;
    --brand-accent-gap: 0;
    --brand-logo-shadow: drop-shadow(0 1px 2px rgba(76, 111, 134, 0.16));
    --brand-hook-color: #4a6ea8;
    --brand-hook-size: 0.4em;
    --brand-hook-thickness: 0.09em;
    --brand-hook-offset-x: 0.01em;
    --brand-hook-offset-y: -0.04em;
    --brand-hook-rotate: 10deg;
    --brand-hook-opacity: 0.9;
    --brand-hook-pad: 0.18em;
    --brand-cut-size: 0.2em;
    --brand-cut-offset-y: -0.1em;
    --brand-cut-opacity: 0.86;
}

a { text-decoration: none; color: inherit; transition: opacity 0.2s; }
* { box-sizing: border-box; }
a, button, input, select, textarea, [role="button"], .fb-icon-btn, .filter-chip, .tab-link, .province-chip, .quality-tab-btn, .tag-pill {
    touch-action: manipulation;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fb-navbar {
    height: var(--nav-height);
    background: var(--fb-surface);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: var(--fb-border);
}

.fb-nav-wrapper {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
}

/* ---- Mobile Nav ---- */
@media (max-width: 768px) {
    .fb-navbar {
        height: 56px;
        padding-top: env(safe-area-inset-top, 0);
    }

    .fb-nav-wrapper {
        padding: 0 12px;
    }

    .fb-brand {
        margin-right: auto;
    }

    /* Hide desktop nav links & other items on mobile — only Logo + Hamburger */
    .fb-nav-links,
    .fb-hide-mobile {
        display: none !important;
    }

    .fb-nav-right {
        gap: 0;
    }

}

/* Hide backdrop on desktop */
.fb-menu-backdrop { display: none; }

.fb-nav-left {
    display: flex;
    align-items: center;
}

.fb-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
    margin-right: 32px;
}

.fb-brand:hover { opacity: 0.9; }

.fb-brand-logo {
    width: 32px;
    height: 32px;
    /* Adding a subtle drop shadow to the icon for depth */
    filter: var(--brand-logo-shadow);
}

.brand-text {
    font-family: var(--brand-font);
    font-weight: var(--brand-weight);
    font-size: var(--brand-size);
    letter-spacing: var(--brand-letter-spacing);
    color: var(--fb-ink);
    line-height: 1;
    position: relative;
    top: var(--brand-top-offset);
    
    display: inline-block;
    transform: skewX(var(--brand-skew));
    
    /* Crisp edges */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.brand-wordmark {
    display: inline-flex;
    align-items: center;
}

.brand-wordmark-svg {
    height: 1em;
    width: auto;
    display: block;
}

.brand-wordmark-text {
    font-family: var(--brand-font);
    font-weight: var(--brand-weight);
    font-size: 72px;
    letter-spacing: var(--brand-letter-spacing);
    fill: var(--fb-ink);
}

.brand-wordmark-accent {
    fill: var(--brand-accent-color);
}

.brand-wordmark-eraser {
    fill: var(--brand-cut-bg);
}

.brand-wordmark-hook,
.brand-wordmark-hook-barb {
    fill: none;
    stroke: var(--brand-hook-color);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-wordmark-hook {
    stroke-width: 7;
}

.brand-wordmark-hook-barb {
    stroke-width: 6;
}

.brand-cut {
    position: relative;
    display: inline-block;
}

.brand-cut::after {
    content: "";
    position: absolute;
    width: var(--brand-cut-size);
    height: var(--brand-cut-size);
    right: var(--brand-cut-offset-x);
    top: var(--brand-cut-offset-y);
    background: var(--brand-cut-bg);
    transform: rotate(var(--brand-cut-rotate));
    opacity: var(--brand-cut-opacity);
    pointer-events: none;
}

.brand-accent {
    color: var(--brand-accent-color);
    margin-left: var(--brand-accent-gap);
    position: relative;
    display: inline-block;
    padding-right: var(--brand-hook-pad);
}

.brand-accent::after {
    content: "";
    position: absolute;
    width: var(--brand-hook-size);
    height: var(--brand-hook-size);
    right: calc(-1 * var(--brand-hook-offset-x));
    bottom: var(--brand-hook-offset-y);
    border-right: var(--brand-hook-thickness) solid var(--brand-hook-color);
    border-bottom: var(--brand-hook-thickness) solid var(--brand-hook-color);
    border-radius: 0 0 0.6em 0.6em;
    transform: rotate(var(--brand-hook-rotate));
    opacity: var(--brand-hook-opacity);
    pointer-events: none;
    box-sizing: border-box;
}

.fb-nav-links {
    display: flex;
    gap: 32px;
    font-weight: 600;
    font-size: 15px;
    margin-right: auto; /* This pushes the right section to the end */
}

.fb-nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 10px;
    color: var(--fb-ink);
}
.fb-nav-links a:hover { color: var(--fb-blue); }

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

/* Log in Button - Bordered Style */
.fb-btn-login {
    background: transparent;
    color: var(--fb-ink);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    text-decoration: none;
    border: 1.5px solid var(--fb-ink-soft);
    border-radius: var(--fb-radius-pill);
    cursor: pointer;
    transition: all 0.2s;
}

.fb-btn-login:hover {
    background: var(--fb-ink-strong);
    color: var(--fb-white);
}

/* Icon Buttons (Search & Menu) */
.fb-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    color: var(--fb-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.fb-icon-btn:hover {
    opacity: 0.6;
}

.fb-search-btn svg,
.fb-menu-btn svg {
    display: block;
}

/* Hamburger Menu Dropdown */
.fb-menu-wrapper {
    position: relative;
}

.fb-menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: var(--fb-surface);
    border-radius: var(--fb-radius-lg);
    box-shadow: 0 20px 60px rgba(31, 42, 36, 0.16);
    border: var(--fb-border);
    padding: 12px 0;
    z-index: 1001;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    transform-origin: top right;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.fb-menu-wrapper.active .fb-menu-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

/* Mobile nav links: hidden on desktop, shown on mobile */
.menu-nav-mobile {
    display: none;
}

@media (max-width: 768px) {
    .menu-nav-mobile {
        display: block;
        border-bottom: var(--fb-border);
    }
}

.fb-menu-dropdown .menu-section {
    padding: 8px 0;
}

.fb-menu-dropdown .menu-section a {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--fb-ink);
    transition: background 0.1s;
}

.fb-menu-dropdown .menu-section a:hover {
    background: var(--fb-gray-100);
}

.fb-menu-dropdown .menu-section a.menu-highlight {
    color: var(--fb-blue);
}

.fb-menu-dropdown .menu-badges {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fb-menu-dropdown .store-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--fb-ink-strong);
    color: white !important;
    padding: 10px 16px;
    border-radius: var(--fb-radius-sm);
    text-align: center;
}

.fb-menu-dropdown .store-link span {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.8;
    color: white;
}

.fb-menu-dropdown .store-link strong {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.fb-menu-dropdown .store-link:hover {
    background: #1c2923;
}

.fb-menu-dropdown .menu-badges a:hover {
    background: transparent;
}

/* Mobile: full-width menu dropdown with backdrop */
@media (max-width: 768px) {
    .fb-menu-dropdown {
        position: fixed;
        top: 56px;
        top: calc(56px + env(safe-area-inset-top, 0px));
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: var(--fb-border);
        box-shadow: 0 12px 40px rgba(31, 42, 36, 0.2);
        max-height: calc(100vh - 56px - env(safe-area-inset-top, 0px));
        overflow-y: auto;
        transform: translateY(-12px);
        transform-origin: top center;
    }

    .fb-menu-wrapper.active .fb-menu-dropdown {
        transform: translateY(0);
    }

    .fb-menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    .fb-menu-wrapper.active .fb-menu-backdrop {
        display: block;
    }
}

/* User Center */
.fb-user-center {
    position: relative;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.fb-avatar-small {
    width: 40px;
    height: 40px;
    background: var(--fb-ink-strong);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
    border: 2px solid var(--fb-surface);
    box-shadow: 0 2px 8px rgba(31, 42, 36, 0.12);
}

.fb-user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0; /* Align right to avatar */
    left: auto;
    width: 260px;
    background: var(--fb-surface);
    border-radius: var(--fb-radius-lg);
    box-shadow: 0 20px 60px rgba(31, 42, 36, 0.14);
    border: var(--fb-border);
    padding: 8px 0;
    z-index: 1001;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    transform-origin: top right;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* 点击显示下拉菜单，而不是悬停 */
.fb-user-center.active .fb-user-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

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

.dropdown-header {
    padding: 16px 20px;
    font-weight: 800;
    font-size: 15px;
    color: var(--fb-ink);
}

.dropdown-divider {
    height: 1px;
    background: var(--fb-gray-200);
    margin: 4px 0;
}

.fb-user-dropdown a, .fb-user-dropdown button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--fb-ink);
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.1s;
}

.fb-user-dropdown a:hover, .fb-user-dropdown button:hover {
    background: var(--fb-gray-100);
}

.fb-user-dropdown button.text-red {
    color: #ef4444;
}

/* --- Hero Section --- */
.fb-hero {
    padding: 80px 0 100px;
    overflow: hidden;
    color: var(--fb-white);
    position: relative;
}

.fb-hero-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.fb-hero-text h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--fb-white);
    margin: 0 0 24px 0;
}

.fb-hero-text p {
    font-size: 20px;
    color: rgba(244, 247, 242, 0.85);
    margin: 0 0 40px 0;
    max-width: 500px;
    line-height: 1.6;
}

.fb-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(47, 64, 56, 0.65);
    z-index: 1;
}

.fb-hero-search {
    flex: 1;
    padding: 12px 16px;
    border: var(--fb-border);
    border-radius: var(--fb-radius-sm);
    font-size: 16px;
    background: var(--fb-surface);
    color: var(--fb-ink);
}

.fb-hero-search::placeholder {
    color: var(--fb-gray-text);
}

.fb-hero-search-btn {
    padding: 12px 24px;
    background: var(--fb-blue);
    color: var(--fb-white);
    border: none;
    border-radius: var(--fb-radius-sm);
    font-weight: 700;
    cursor: pointer;
}

.fb-btn-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--fb-blue);
    color: var(--fb-white);
    border: 1px solid transparent;
    border-radius: var(--fb-radius-pill);
    padding: 14px 28px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fb-btn-pro:hover {
    background: #315f78;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(58, 111, 140, 0.2);
}

.store-badges {
    display: flex;
    gap: 16px;
}
.store-badge {
    height: 56px;
    width: 180px;
    background: var(--fb-ink-strong);
    border-radius: var(--fb-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: var(--fb-ink-strong);
    border-radius: var(--fb-radius-xxl);
    margin: 0 auto;
    border: 8px solid var(--fb-ink-strong);
    box-shadow: 0 40px 80px rgba(31, 42, 36, 0.18);
    overflow: hidden;
    position: relative;
    background-image: linear-gradient(to bottom, var(--fb-surface) 0%, var(--fb-gray-100) 100%);
    display: flex;
    flex-direction: column;
}

.mockup-header {
    height: 60px;
    background: var(--fb-surface);
    border-bottom: var(--fb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.mockup-map {
    flex: 1;
    background: #b6d7d3;
    position: relative;
}

.map-dot {
    width: 12px;
    height: 12px;
    background: var(--fb-yellow);
    border: 2px solid var(--fb-surface);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* --- Section: Statistics --- */
.fb-stats-section {
    background-color: var(--fb-gray-100);
    padding: 100px 0;
    text-align: center;
}

.fb-stat-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    max-width: var(--container-xl);
    margin: 0 auto;
}

.fb-stat-num {
    font-size: 48px;
    font-weight: 900;
    color: var(--fb-ink-strong);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.fb-stat-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--fb-gray-text);
}

/* --- Waters Section --- */
.fb-waters-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--fb-ink-strong);
}

.fb-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 24px;
}

.fb-water-card {
    border: var(--fb-border);
    border-radius: var(--fb-radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--fb-surface);
}
.fb-water-card:hover {
    box-shadow: 0 30px 60px rgba(31, 42, 36, 0.12);
    transform: translateY(-8px);
    border-color: transparent;
}

.water-card-img {
    height: 200px;
    background: var(--fb-gray-100);
    position: relative;
}

.water-card-content {
    padding: 24px;
}

.water-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--fb-ink-strong);
}

/* --- Footer --- */
.fb-footer {
    background: linear-gradient(180deg, var(--fb-footer-start) 0%, var(--fb-footer-end) 100%);
    color: white;
    padding: 80px 0 60px;
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 40px;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .fb-footer {
        padding-top: 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 20px;
        padding: 0 20px;
    }

    .footer-col h4 {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .footer-col a {
        font-size: 13px;
        padding: 5px 0;
    }

    .footer-copyright {
        margin-top: 32px !important;
        font-size: 12px !important;
        padding: 0 20px;
    }
}

/* --- Mobile Bottom Tab Bar --- */
.fb-tab-bar {
    display: none;
}

@media (max-width: 768px) {
    .fb-tab-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: var(--fb-surface);
        border-top: var(--fb-border);
        z-index: 1200;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -2px 12px rgba(31, 42, 36, 0.08);
    }

    .fb-tab-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-decoration: none;
        color: var(--fb-gray-text);
        font-size: 11px;
        font-weight: 500;
        transition: color 0.15s;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .fb-tab-item svg {
        width: 22px;
        height: 22px;
    }

    .fb-tab-item.active {
        color: var(--fb-blue);
    }

    .fb-tab-item.active svg {
        stroke-width: 2.5;
    }

    /* Add bottom padding to footer so tab bar doesn't cover content */
    .fb-footer {
        padding-bottom: calc(40px + 56px + env(safe-area-inset-bottom, 0px));
    }
}

/* Auth pages (login/register) - hide tab bar, simplify footer */
.page-auth .fb-tab-bar {
    display: none !important;
}

.page-auth .fb-footer {
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

.page-auth .footer-grid {
    display: none;
}

/* Auth page branding enhancement */
.page-auth .section {
    padding-top: 48px;
    padding-bottom: 48px;
    min-height: calc(100vh - var(--nav-height) - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-auth .section > .container { width: 100%; }
.page-auth .card {
    padding: 32px;
    border: none;
    box-shadow: 0 8px 32px rgba(43, 58, 51, 0.10);
    position: relative;
    overflow: hidden;
}
.page-auth .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--fb-blue), #2b7c60);
}
.page-auth .card h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--fb-ink-strong);
    margin-bottom: 24px;
}
.page-auth .card input:focus {
    border-color: var(--fb-blue);
    box-shadow: 0 0 0 3px rgba(58, 111, 140, 0.12);
    outline: none;
}
.page-auth .button {
    padding: 14px 18px;
    font-size: 16px;
    border-radius: var(--fb-radius-md);
}

@media (max-width: 1024px) {
    .fb-hero-container { grid-template-columns: 1fr; text-align: center; }
    .fb-hero-text h1 { font-size: 48px; }
    .store-badges { justify-content: center; }
    .fb-stat-grid { flex-direction: column; gap: 40px; }
}

/* --- Map & Listing Layout --- */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
}

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

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin: 12px 0;
    color: var(--fb-ink-strong);
}

.hero p {
    margin: 0;
    color: var(--fb-gray-text);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--fb-radius-pill);
    background: var(--fb-gray-100);
    border: var(--fb-border);
    color: var(--fb-ink);
}

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

.split-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1.3fr);
    gap: 32px;
    align-items: start;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sticky {
    position: sticky;
    top: 100px;
}

.card {
    background: var(--fb-surface);
    border: var(--fb-border);
    border-radius: var(--fb-radius-lg);
    padding: 16px;
    box-shadow: 0 12px 28px rgba(43, 58, 51, 0.06);
}

.card h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: var(--fb-ink-strong);
}

.card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--fb-ink);
    margin-bottom: 6px;
}

.card input,
.card select,
.card textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--fb-radius-sm);
    border: var(--fb-border);
    background: var(--fb-surface);
    color: var(--fb-ink);
    font-size: 14px;
}

.card input::placeholder,
.card textarea::placeholder {
    color: var(--fb-gray-text);
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: var(--fb-blue);
    color: var(--fb-white);
    border: none;
    border-radius: var(--fb-radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    background: #315f78;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(58, 111, 140, 0.2);
}

.button.secondary {
    background: transparent;
    color: var(--fb-ink);
    border: var(--fb-border);
    box-shadow: none;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--fb-radius-pill);
    background: var(--fb-gray-100);
    border: var(--fb-border);
    color: var(--fb-ink);
    font-size: 12px;
}

.spot-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spot-card h3 {
    margin: 0 0 6px 0;
}

.spot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(43, 58, 51, 0.12);
}

.spot-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.metric {
    font-size: 12px;
    color: var(--fb-gray-text);
    background: var(--fb-white);
    border: var(--fb-border);
    padding: 4px 8px;
    border-radius: var(--fb-radius-pill);
}

.map-shell {
    position: relative;
    background: var(--fb-surface);
    border: var(--fb-border);
    border-radius: var(--fb-radius-lg);
    overflow: hidden;
}

.map-canvas {
    height: 360px;
    min-height: 320px;
}

.map-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--fb-surface);
    border: var(--fb-border);
    border-radius: var(--fb-radius-md);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--fb-ink);
}

.map-legend {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--fb-surface);
    border: var(--fb-border);
    border-radius: var(--fb-radius-md);
    padding: 8px 12px;
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--fb-ink);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.high { background: var(--map-marker-high); }
.legend-dot.mid { background: var(--map-marker-mid); }
.legend-dot.low { background: var(--map-marker-low); }
.legend-dot.poor { background: var(--map-marker-poor); }

.map-detail {
    padding: 16px;
}

.map-detail-empty {
    color: var(--fb-gray-text);
    text-align: center;
    padding: 18px 8px;
}

.map-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.map-detail-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--fb-ink-strong);
}

.map-detail-sub {
    font-size: 12px;
    color: var(--fb-gray-text);
    margin-top: 4px;
}

.map-detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-fav-btn {
    padding: 6px 12px;
    border-radius: var(--fb-radius-pill);
    border: var(--fb-border);
    background: var(--fb-surface);
    color: var(--fb-ink);
    font-weight: 700;
    cursor: pointer;
}

.map-fav-btn.active {
    background: var(--fb-blue);
    border-color: transparent;
    color: var(--fb-white);
}

.map-detail-link {
    font-size: 12px;
    color: var(--fb-blue);
    font-weight: 700;
}

.map-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chip {
    background: var(--fb-gray-100);
    border: var(--fb-border);
    color: var(--fb-ink);
    padding: 4px 10px;
    border-radius: var(--fb-radius-pill);
    font-size: 12px;
}

.map-detail-metrics {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.metric-card {
    background: var(--fb-white);
    border: var(--fb-border);
    border-radius: var(--fb-radius-md);
    padding: 10px 12px;
}

.metric-label {
    font-size: 12px;
    color: var(--fb-gray-text);
}

.metric-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--fb-ink-strong);
    margin-top: 4px;
}

.map-detail-section-title {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--fb-ink);
}

.map-detail-chart {
    margin-top: 8px;
}

.map-detail-chart-empty {
    font-size: 12px;
    color: var(--fb-gray-text);
    margin-top: 8px;
}

.map-detail-logs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-item {
    border-bottom: var(--fb-border);
    padding-bottom: 8px;
}

.log-item:last-child {
    border-bottom: none;
}

.log-main {
    font-size: 13px;
    color: var(--fb-ink);
}

.log-meta {
    font-size: 12px;
    color: var(--fb-gray-text);
    margin-top: 4px;
}

@media (max-width: 1100px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .map-canvas {
        height: 320px;
    }
    .map-detail-metrics {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 12px 16px 60px;
    }

    .hero {
        padding: 40px 16px 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .card {
        padding: 12px;
    }

    /* Mobile: limit tag rows to 1 line */
    .spot-card .tag-row {
        flex-wrap: nowrap;
        overflow: hidden;
        gap: 6px;
        margin-top: 8px;
    }
    .spot-card .tag {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .spot-card .spot-metrics {
        flex-wrap: nowrap;
        overflow: hidden;
    }
    .spot-card .spot-metrics .metric {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .sticky {
        position: static;
    }
}

/* --- Explore Page --- */
.explore-page {
    background: var(--fb-white);
    color: var(--fb-ink);
}

.explore-hero {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 80px 24px 40px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
}

.explore-eyebrow {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: var(--fb-radius-pill);
    border: var(--fb-border);
    background: var(--fb-gray-100);
    font-size: 12px;
    font-weight: 600;
    color: var(--fb-ink);
}

.explore-hero-text h1 {
    font-size: 48px;
    margin: 16px 0 12px;
    color: var(--fb-ink-strong);
}

.explore-subtitle {
    font-size: 18px;
    color: var(--fb-gray-text);
    max-width: 520px;
}

.explore-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.explore-rating {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--fb-radius-lg);
    border: var(--fb-border);
    background: var(--fb-surface);
    box-shadow: 0 14px 32px rgba(43, 58, 51, 0.08);
}

.rating-score {
    font-size: 32px;
    font-weight: 800;
    color: var(--fb-ink-strong);
}

.rating-meta {
    font-size: 14px;
    color: var(--fb-gray-text);
}

.explore-cta-note {
    font-size: 12px;
    color: var(--fb-gray-text);
}

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

.explore-section-head h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: var(--fb-ink-strong);
}

.explore-section-head p {
    margin: 0;
    color: var(--fb-gray-text);
}

.explore-water-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.water-type-card {
    border: var(--fb-border);
    border-radius: var(--fb-radius-lg);
    background: var(--fb-surface);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(43, 58, 51, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.water-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(43, 58, 51, 0.12);
}

.water-type-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--fb-ink-strong);
}

.water-type-desc {
    font-size: 13px;
    color: var(--fb-gray-text);
}

.water-type-count {
    font-size: 12px;
    color: var(--fb-ink);
}

.explore-search {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.explore-search-form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.explore-search-form select,
.explore-search-form input {
    padding: 12px 14px;
    border-radius: var(--fb-radius-sm);
    border: var(--fb-border);
    background: var(--fb-surface);
    color: var(--fb-ink);
}

.explore-search-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.explore-link {
    font-size: 12px;
    color: var(--fb-blue);
    font-weight: 700;
}

.explore-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.explore-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--fb-radius-md);
    border: var(--fb-border);
    background: var(--fb-white);
}

.list-title {
    font-weight: 600;
    color: var(--fb-ink);
}

.list-meta {
    font-size: 12px;
    color: var(--fb-gray-text);
}

.list-empty {
    color: var(--fb-gray-text);
    font-size: 13px;
}

.explore-ranked {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.explore-ranked li a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: var(--fb-radius-md);
    border: var(--fb-border);
    background: var(--fb-surface);
}

.rank-name {
    font-weight: 700;
    color: var(--fb-ink-strong);
}

.rank-meta {
    font-size: 13px;
    color: var(--fb-gray-text);
}

.explore-active-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.active-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: var(--fb-radius-lg);
    border: var(--fb-border);
    background: var(--fb-surface);
    box-shadow: 0 12px 26px rgba(43, 58, 51, 0.08);
}

.map-thumb {
    height: 140px;
    border-radius: var(--fb-radius-md);
    background: linear-gradient(135deg, #dfe8e1 0%, #f7f9f4 100%);
    position: relative;
    overflow: hidden;
}

.map-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(0deg, rgba(255,255,255,0.5) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.5;
}

.map-thumb::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--fb-blue);
    left: var(--dot-x, 40%);
    top: var(--dot-y, 60%);
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 16px rgba(58, 111, 140, 0.35);
}

.active-title {
    font-weight: 700;
    color: var(--fb-ink-strong);
}

.active-meta {
    font-size: 12px;
    color: var(--fb-gray-text);
}

.active-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--fb-gray-text);
}

.explore-download .download-card {
    border-radius: var(--fb-radius-lg);
    border: var(--fb-border);
    background: var(--fb-surface);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 12px 26px rgba(43, 58, 51, 0.08);
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.explore-faq {
    display: grid;
    gap: 12px;
}

.explore-faq details {
    border: var(--fb-border);
    border-radius: var(--fb-radius-md);
    padding: 12px 16px;
    background: var(--fb-surface);
}

.explore-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--fb-ink);
}

.explore-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.explore-list-block h3 {
    margin: 0 0 12px;
    color: var(--fb-ink-strong);
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 1024px) {
    .explore-hero {
        grid-template-columns: 1fr;
    }
    .explore-search {
        grid-template-columns: 1fr;
    }
    .explore-lists {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   NEW HOMEPAGE
   ============================================ */

/* Hero Section - Two Overlapping Phones */
.fb-hero-new {
    background: var(--fb-white);
    padding: 60px 0 100px;
    overflow: hidden;
}

.fb-hero-content {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.fb-hero-text-side h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--fb-ink-strong);
    margin: 0 0 16px 0;
}

.fb-hero-subtitle {
    font-size: 18px;
    color: var(--fb-gray-text);
    margin: 0 0 40px 0;
}

.store-badges-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.qr-code-box {
    background: white;
    padding: 12px;
    border-radius: var(--fb-radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.store-badges-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-badges-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-badge-new {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--fb-ink-strong);
    color: white;
    padding: 10px 20px;
    border-radius: var(--fb-radius-sm);
    text-decoration: none;
    transition: background 0.2s;
}

.store-badge-new:hover {
    background: #1c2923;
}

.store-badge-new svg {
    flex-shrink: 0;
}

.store-badge-new .store-label {
    display: block;
    font-size: 10px;
    opacity: 0.8;
}

.store-badge-new .store-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.store-badge-new.large {
    padding: 14px 28px;
}

.store-badge-new.large .store-name {
    font-size: 18px;
}

.app-ratings {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-stars .stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: -1px;
}

.rating-num {
    font-weight: 700;
    color: var(--fb-ink);
}

.rating-count {
    font-size: 12px;
    color: var(--fb-gray-text);
}

/* Hero Phones Container */
.fb-hero-phones {
    position: relative;
    height: 680px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone {
    position: absolute;
    transition: transform 0.3s ease;
}

.hero-phone-back {
    transform: translateX(-80px) rotate(-5deg);
    z-index: 1;
}

.hero-phone-front {
    transform: translateX(80px) rotate(5deg);
    z-index: 2;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 12px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.25);
    position: relative;
}

.phone-frame.dark {
    background: #0a0a0a;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--fb-surface);
    border-radius: 36px;
    overflow: hidden;
    position: relative;
}

/* Map View Mock (Back Phone) */
.app-header-mock {
    height: 56px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--fb-gray-200);
}

.header-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--fb-ink);
}

.header-icons {
    display: flex;
    gap: 12px;
}

.icon-circle {
    width: 32px;
    height: 32px;
    background: var(--fb-gray-100);
    border-radius: 50%;
}

.map-view-mock {
    height: calc(100% - 56px - 100px);
    background: linear-gradient(135deg, #3d5a45 0%, #2d4535 50%, #1d3525 100%);
    position: relative;
    overflow: hidden;
}

.map-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(100, 180, 120, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(80, 160, 100, 0.2) 0%, transparent 35%);
}

.map-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #10b981;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
}

.marker-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.map-bottom-card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.bottom-card-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.bottom-card-info {
    flex: 1;
}

.card-user {
    font-weight: 700;
    font-size: 14px;
    color: var(--fb-ink);
}

.card-meta {
    font-size: 11px;
    color: var(--fb-gray-text);
}

.card-text {
    width: 100%;
    font-size: 12px;
    color: var(--fb-ink);
    margin-top: 4px;
}

/* Catch Post Mock (Front Phone) */
.catch-post-mock {
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    padding-top: 40px;
}

.post-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-user {
    font-weight: 700;
    font-size: 14px;
    color: var(--fb-ink);
}

.post-location {
    font-size: 11px;
    color: var(--fb-gray-text);
}

.follow-btn {
    background: var(--fb-blue);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.follow-btn.small {
    padding: 4px 12px;
    font-size: 11px;
}

.post-image {
    position: relative;
    flex: 1;
    min-height: 200px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-size {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.post-actions {
    display: flex;
    gap: 20px;
    padding: 12px 16px;
    border-top: 1px solid var(--fb-gray-200);
}

.action-btn {
    font-size: 12px;
    color: var(--fb-ink);
}

.post-likes {
    padding: 0 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fb-ink);
}

.post-comments {
    padding: 8px 16px 16px;
    font-size: 12px;
    color: var(--fb-ink);
}

.post-comments .comment {
    margin-bottom: 4px;
}

/* Stats Section Icons */
.stat-icon {
    margin-bottom: 16px;
}

/* Feature Sections */
.fb-feature-section {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.feature-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.feature-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 35%, rgba(255,255,255,0.5) 60%, rgba(255,255,255,0) 80%);
}

/* Reverse layout: text on right side needs stronger overlay from right */
.feature-content.reverse + .feature-bg-image::after,
.fb-feature-section:has(.feature-content.reverse) .feature-bg-image::after {
    background: linear-gradient(-90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 35%, rgba(255,255,255,0.5) 60%, rgba(255,255,255,0) 80%);
}

.feature-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.feature-content.reverse {
    direction: rtl;
}

.feature-content.reverse > * {
    direction: ltr;
}

.feature-content.reverse .feature-bg-image::after {
    background: linear-gradient(-90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 40%, rgba(255,255,255,0) 70%);
}

.feature-text-area {
    background: rgba(255, 255, 255, 0.92);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.feature-text-area h2 {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--fb-ink-strong);
    margin: 0 0 20px 0;
}

.feature-text-area p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--fb-ink);
    margin: 0 0 24px 0;
    max-width: 440px;
}

.feature-link {
    display: inline-block;
    color: #dc2626;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
}

.feature-link:hover {
    text-decoration: underline;
}

.feature-subtitle {
    font-size: 14px;
    color: var(--fb-gray-text);
}

/* Feature Phone */
.feature-phone-area {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.feature-phone {
    position: relative;
}

.feature-phone .phone-frame {
    width: 300px;
    height: 620px;
}

/* Depth Map Mock */
.depth-map-mock {
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Water Quality Mock Screen */
.water-quality-mock {
    background: linear-gradient(180deg, #1a3a5c 0%, #0d2840 100%);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    box-sizing: border-box;
}

.wq-header {
    text-align: center;
}

.wq-location {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.wq-time {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

.wq-index-ring {
    width: 100px;
    height: 100px;
    margin: 8px auto;
    border-radius: 50%;
    background: conic-gradient(#4ade80 0deg 310deg, rgba(255,255,255,0.1) 310deg 360deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wq-index-ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: #0d2840;
    border-radius: 50%;
}

.ring-value {
    position: relative;
    font-size: 32px;
    font-weight: 700;
    color: #4ade80;
    line-height: 1;
}

.ring-label {
    position: relative;
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

.wq-params {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.wq-param {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.param-icon {
    font-size: 16px;
}

.param-label {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
}

.param-value {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.param-value.good {
    color: #4ade80;
}

.wq-chart {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px;
}

.chart-label {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}

.mini-chart {
    width: 100%;
    height: 40px;
}

/* Fishing Community Mock Screen */
.fishing-community-mock {
    background: #f8f9fa;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.community-tabs {
    display: flex;
    background: white;
    padding: 12px 16px;
    gap: 20px;
    border-bottom: 1px solid #eee;
}

.community-tabs .tab {
    font-size: 13px;
    color: var(--fb-gray-text);
    font-weight: 500;
}

.community-tabs .tab.active {
    color: var(--fb-blue);
    font-weight: 600;
}

.community-post {
    background: white;
    margin: 8px;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.community-post.mini {
    padding: 10px 12px;
}

.post-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2e7d32;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.user-info-small {
    display: flex;
    flex-direction: column;
}

.user-info-small .username {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.user-info-small .post-time {
    font-size: 11px;
    color: var(--fb-gray-text);
}

.post-catch-photo {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #4a7c59 0%, #2d5a3d 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.post-catch-photo::before {
    content: '🐟';
    position: absolute;
    font-size: 48px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.catch-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 8px;
}

.catch-weight, .catch-species {
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.catch-weight {
    background: #ff6b35;
}

.post-text-small {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
}

.post-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #666;
}

.depth-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        #2d5a4a 0%,
        #3d7a6a 20%,
        #5aada0 40%,
        #8dd4cc 60%,
        #b8f0eb 80%,
        #e0fffc 100%);
}

.depth-contours {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 40% 30%, transparent 30%, rgba(255,255,255,0.15) 32%, transparent 34%),
        radial-gradient(ellipse 60% 40% at 50% 50%, transparent 35%, rgba(255,255,255,0.12) 37%, transparent 39%),
        radial-gradient(ellipse 70% 45% at 45% 70%, transparent 40%, rgba(255,255,255,0.1) 42%, transparent 44%);
}

.depth-markers {
    position: absolute;
    inset: 0;
}

.depth-marker {
    position: absolute;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.map-marker.spot {
    background: #10b981;
    width: 20px;
    height: 20px;
}

.depth-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.partner-badge {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

/* Store Badges Mini */
.store-badges-mini {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.store-badge-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--fb-ink-strong);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.store-badge-mini:hover {
    background: #1c2923;
}

/* Report Post Mock */
.feature-phone.with-cards {
    position: relative;
}

.report-post-mock {
    height: 100%;
    background: white;
}

.report-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    padding-top: 40px;
}

.report-header img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.report-user {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.report-user .name {
    font-weight: 700;
    font-size: 13px;
}

.report-user .meta {
    font-size: 10px;
    color: var(--fb-gray-text);
}

.report-image {
    width: 100%;
    height: 220px;
}

.report-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-caption {
    padding: 12px 16px;
    font-size: 12px;
    line-height: 1.5;
}

/* Floating Cards */
.floating-cards {
    position: absolute;
    bottom: 180px;
    right: -60px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.info-card {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    text-align: center;
}

.info-card .card-label {
    font-size: 10px;
    color: var(--fb-gray-text);
    margin-bottom: 4px;
}

.info-card .card-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--fb-ink);
}

.bait-card {
    position: absolute;
    bottom: 60px;
    right: -40px;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 10;
}

.bait-card img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.bait-info {
    display: flex;
    flex-direction: column;
}

.bait-brand {
    font-size: 10px;
    color: var(--fb-gray-text);
}

.bait-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--fb-ink);
}

.bait-rating {
    font-size: 11px;
    color: #f59e0b;
}

/* Regulations Phone */
.reg-header {
    padding: 40px 16px 16px;
    background: white;
}

.reg-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 16px;
    color: var(--fb-ink);
    margin-bottom: 4px;
}

.reg-coords {
    font-size: 11px;
    color: var(--fb-gray-text);
}

.reg-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: white;
}

.reg-tabs .tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fb-gray-text);
    background: var(--fb-gray-100);
}

.reg-tabs .tab.active {
    background: var(--fb-blue);
    color: white;
}

.reg-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin: 0 16px 12px;
    background: var(--fb-gray-100);
    border-radius: 8px;
    font-size: 13px;
    color: var(--fb-gray-text);
}

.fish-list {
    padding: 0 16px;
}

.fish-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--fb-gray-200);
}

.fish-item img {
    width: 60px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
}

.fish-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fish-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--fb-ink);
}

.fish-status {
    font-size: 11px;
    font-weight: 600;
}

.fish-status.open {
    color: #10b981;
}

.fish-status.closed {
    color: #ef4444;
}

.reg-btn {
    background: var(--fb-gray-100);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--fb-ink);
    cursor: pointer;
}

/* Logbook Phone */
.logbook-header {
    padding: 40px 12px 12px;
    background: white;
    display: flex;
    gap: 8px;
}

.logbook-photo {
    flex: 2;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 80px;
}

.logbook-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-date {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
}

.stats-preview {
    flex: 1;
    background: var(--fb-gray-100);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.stats-preview img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.stats-preview span {
    font-size: 10px;
    color: var(--fb-gray-text);
}

.stats-preview .arrow {
    font-size: 14px;
    color: var(--fb-ink);
}

.catches-label {
    padding: 12px 16px 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--fb-ink);
}

.catches-list {
    padding: 0 12px;
}

.catch-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--fb-gray-200);
}

.catch-item img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.catch-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.catch-species {
    font-weight: 700;
    font-size: 13px;
    color: var(--fb-ink);
}

.catch-size {
    font-size: 11px;
    font-weight: 600;
    color: var(--fb-ink);
}

.catch-location {
    font-size: 10px;
    color: var(--fb-gray-text);
}

.catch-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 11px;
    color: var(--fb-gray-text);
}

.catch-bait {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

/* CTA Section */
.fb-cta-section {
    background: var(--fb-gray-100);
    padding: 100px 40px;
    text-align: center;
}

.fb-cta-section h2 {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--fb-ink-strong);
    margin: 0 0 16px 0;
}

.fb-cta-section p {
    font-size: 18px;
    color: var(--fb-gray-text);
    margin: 0 0 40px 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* CTA Download Row */
.cta-download-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

.cta-qr-code {
    background: white;
    padding: 8px;
    border-radius: var(--fb-radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    line-height: 0;
}

.cta-qr-code svg {
    display: block;
}

.cta-buttons-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cta-buttons-col .store-badge-new {
    padding: 12px 20px;
}

.cta-buttons-col .store-badge-new .store-label {
    font-size: 9px;
}

.cta-buttons-col .store-badge-new .store-name {
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .fb-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .fb-hero-text-side h1 {
        font-size: 44px;
    }

    .store-badges-row {
        justify-content: center;
    }

    .fb-hero-phones {
        height: 500px;
    }

    .hero-phone-back {
        transform: translateX(-60px) rotate(-5deg) scale(0.85);
    }

    .hero-phone-front {
        transform: translateX(60px) rotate(5deg) scale(0.85);
    }

    .feature-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .feature-content.reverse {
        direction: ltr;
    }

    .feature-text-area {
        order: 1;
    }

    .feature-text-area p {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-phone-area {
        order: 2;
    }

    .floating-cards {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: 200px;
    }

    .bait-card {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: 80px;
    }
}

@media (max-width: 768px) {
    .fb-hero-text-side h1 {
        font-size: 36px;
    }

    .fb-hero-phones {
        height: 280px;
    }

    .phone-frame {
        width: 180px;
        height: 380px;
    }

    .hero-phone-back {
        transform: translateX(-30px) rotate(-5deg) scale(0.7);
    }

    .hero-phone-front {
        transform: translateX(30px) rotate(5deg) scale(0.7);
    }

    .feature-text-area h2 {
        font-size: 32px;
    }

    .feature-phone .phone-frame {
        width: 240px;
        height: 500px;
    }

    .fb-cta-section h2 {
        font-size: 32px;
    }
}

/* =============================================
   DISCOVER PAGE STYLES
   ============================================= */

.discover-page {
    background: var(--fb-white);
}

/* Hero Section */
.discover-hero {
    background: linear-gradient(135deg, #2f4038 0%, #3a6f8c 100%);
    padding: 100px 24px 80px;
    text-align: center;
    color: white;
}

.discover-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.discover-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -1px;
}

.discover-hero p {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 32px;
}

.discover-search-form {
    max-width: 560px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--fb-radius-pill);
    padding: 6px 6px 6px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.search-input-wrapper .search-icon {
    color: var(--fb-gray-text);
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px 16px;
    background: transparent;
    color: var(--fb-ink);
}

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

.search-input-wrapper button {
    background: var(--fb-blue);
    color: white;
    border: none;
    border-radius: var(--fb-radius-pill);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-input-wrapper button:hover {
    background: #2f5f78;
}

/* Sub Navigation Tabs */
.discover-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 24px;
    background: var(--fb-surface);
    border-bottom: var(--fb-border);
    position: sticky;
    top: var(--nav-height);
    z-index: 90;
}

.tab-link {
    padding: 10px 20px;
    border-radius: var(--fb-radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--fb-ink-soft);
    text-decoration: none;
    transition: all 0.2s;
}

.tab-link:hover {
    background: var(--fb-gray-100);
    color: var(--fb-ink);
}

.tab-link.active {
    background: var(--fb-blue);
    color: white;
}

/* Section Styles */
.discover-section {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--fb-ink);
}

.section-header p {
    font-size: 16px;
    color: var(--fb-gray-text);
    margin: 0;
}

/* Water Type Tabs */
.water-type-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.water-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--fb-gray-200);
    border-radius: var(--fb-radius-pill);
    background: white;
    font-size: 15px;
    font-weight: 500;
    color: var(--fb-ink-soft);
    cursor: pointer;
    transition: all 0.2s;
}

.water-tab:hover {
    border-color: var(--fb-blue);
    color: var(--fb-blue);
}

.water-tab.active {
    background: var(--fb-blue);
    border-color: var(--fb-blue);
    color: white;
}

.water-tab svg {
    width: 20px;
    height: 20px;
}

.water-type-panel {
    display: none;
}

.water-type-panel.active {
    display: block;
}

/* Spot Cards Grid */
.spot-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.spot-cards-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.discover-spot-card {
    background: white;
    border: var(--fb-border);
    border-radius: var(--fb-radius-md);
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.discover-spot-card:hover {
    border-color: var(--fb-blue);
    box-shadow: 0 4px 12px rgba(58, 111, 140, 0.1);
    transform: translateY(-2px);
}

.spot-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.spot-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--fb-ink);
    flex: 1;
    margin-right: 12px;
}

.spot-index {
    font-size: 18px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--fb-radius-sm);
}

.spot-index.high {
    background: #e8f5e9;
    color: #2e7d32;
}

.spot-index.medium {
    background: #fff3e0;
    color: #ef6c00;
}

.spot-index.low {
    background: #ffebee;
    color: #c62828;
}

.spot-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--fb-gray-text);
}

.quality-badge {
    background: var(--fb-gray-100);
    padding: 2px 8px;
    border-radius: var(--fb-radius-sm);
    font-size: 12px;
}

/* Province Explorer */
.province-section {
    background: var(--fb-surface);
    max-width: none;
    padding: 60px 24px;
}

.province-explorer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.china-map-container {
    background: white;
    border-radius: var(--fb-radius-lg);
    padding: 24px;
    border: var(--fb-border);
}

.china-map {
    width: 100%;
    height: auto;
}

.province-list-container {
    background: white;
    border-radius: var(--fb-radius-lg);
    padding: 24px;
    border: var(--fb-border);
    max-height: 500px;
    overflow-y: auto;
}

.province-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.province-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--fb-radius-sm);
    text-decoration: none;
    color: var(--fb-ink);
    font-size: 14px;
    transition: all 0.2s;
}

.province-item:hover {
    background: var(--fb-gray-100);
}

.province-item.active {
    background: var(--fb-blue);
    color: white;
}

.province-name {
    font-weight: 500;
}

.province-count {
    font-size: 12px;
    opacity: 0.7;
}

.province-spots-panel {
    max-width: 1200px;
    margin: 0 auto;
}

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

.panel-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--fb-ink);
}

.view-all {
    font-size: 14px;
    color: var(--fb-blue);
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

/* Ranking Section */
.ranking-container {
    max-width: 700px;
    margin: 0 auto;
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: rank;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border: var(--fb-border);
    border-radius: var(--fb-radius-md);
    margin-bottom: 8px;
    transition: all 0.2s;
}

.ranking-item:hover {
    border-color: var(--fb-blue);
    box-shadow: 0 2px 8px rgba(58, 111, 140, 0.1);
}

.rank-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fb-gray-100);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    color: var(--fb-ink-soft);
}

.ranking-item:nth-child(1) .rank-number {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: white;
}

.ranking-item:nth-child(2) .rank-number {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: white;
}

.ranking-item:nth-child(3) .rank-number {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: white;
}

.rank-content {
    flex: 1;
    text-decoration: none;
}

.rank-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--fb-ink);
    margin-bottom: 4px;
}

.rank-meta {
    font-size: 13px;
    color: var(--fb-gray-text);
}

.rank-score {
    font-size: 20px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--fb-radius-sm);
}

.rank-score.high {
    background: #e8f5e9;
    color: #2e7d32;
}

.rank-score.medium {
    background: #fff3e0;
    color: #ef6c00;
}

.rank-score.low {
    background: #ffebee;
    color: #c62828;
}

/* Active Spots Carousel */
.active-carousel {
    overflow-x: auto;
    margin: 0 -24px;
    padding: 0 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.active-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 20px;
    padding-bottom: 8px;
}

.active-card {
    flex: 0 0 280px;
    background: white;
    border: var(--fb-border);
    border-radius: var(--fb-radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
}

.active-card:hover {
    border-color: var(--fb-blue);
    box-shadow: 0 4px 16px rgba(58, 111, 140, 0.12);
    transform: translateY(-2px);
}

.active-card-map {
    height: 120px;
    background: linear-gradient(135deg, #e8f4f8 0%, #c5e4ed 100%);
    position: relative;
}

.active-card-map::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--fb-blue);
    border: 2px solid white;
    border-radius: 50%;
    top: var(--dot-y, 50%);
    left: var(--dot-x, 50%);
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.active-card-content {
    padding: 16px;
}

.active-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--fb-ink);
    margin-bottom: 4px;
}

.active-card-meta {
    font-size: 13px;
    color: var(--fb-gray-text);
    margin-bottom: 12px;
}

.active-card-stats {
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.stat-index {
    color: var(--fb-blue);
    font-weight: 500;
}

.stat-logs {
    color: var(--fb-gray-text);
}

/* Quality Tabs */
.quality-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.quality-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--fb-gray-200);
    border-radius: var(--fb-radius-pill);
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: var(--fb-ink-soft);
    cursor: pointer;
    transition: all 0.2s;
}

.quality-tab:hover {
    border-color: var(--fb-blue);
}

.quality-tab.active {
    background: var(--fb-blue);
    border-color: var(--fb-blue);
    color: white;
}

.quality-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.quality-dot.quality-1 { background: #4caf50; }
.quality-dot.quality-2 { background: #8bc34a; }
.quality-dot.quality-3 { background: #ffeb3b; }
.quality-dot.quality-4 { background: #ff9800; }
.quality-dot.quality-5 { background: #f44336; }

.quality-panel {
    display: none;
}

.quality-panel.active {
    display: block;
}

/* Tags Section */
.tags-section {
    background: var(--fb-surface);
    max-width: none;
    padding: 60px 24px;
}

.tags-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.tags-block h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--fb-ink);
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    padding: 8px 16px;
    background: white;
    border: var(--fb-border);
    border-radius: var(--fb-radius-pill);
    font-size: 14px;
    color: var(--fb-ink);
    text-decoration: none;
    transition: all 0.2s;
}

a.tag-chip:hover {
    border-color: var(--fb-blue);
    color: var(--fb-blue);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2f4038 0%, #3a6f8c 100%);
    max-width: none;
    padding: 80px 24px;
}

.cta-card {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cta-qr {
    background: white;
    padding: 12px;
    border-radius: var(--fb-radius-md);
}

.cta-qr img {
    display: block;
    width: 100px;
    height: 100px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cta-buttons .store-badge img {
    height: 40px;
    width: auto;
}

/* No data message */
.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--fb-gray-text);
    font-size: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .province-explorer {
        grid-template-columns: 1fr;
    }

    .china-map-container {
        order: 2;
    }

    .province-list-container {
        order: 1;
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .discover-hero {
        padding: 80px 20px 60px;
    }

    .discover-hero h1 {
        font-size: 32px;
    }

    .discover-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 16px 20px;
    }

    .tab-link {
        white-space: nowrap;
    }

    .water-type-tabs {
        flex-wrap: wrap;
    }

    .province-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tags-row {
        grid-template-columns: 1fr;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        flex-direction: column;
    }
}
