:root {
    /* Core brand */
    --ranch-navy: #073B4C;
    --deep-teal: #075A67;
    --coastal-teal: #168C91;
    --lake-aqua: #35B6B4;
    --palmetto-green: #5B8F4A;
    --sunset-orange: #F4A261;
    --sky-blue: #72C7E7;

    /* Soft supporting */
    --soft-green: #E8F2E5;
    --soft-orange: #FFF0DF;
    --soft-aqua: #E1F4F5;
    --sky-panel: #E6F6FB;

    /* Semantic tokens */
    --color-primary: #073B4C;
    --color-primary-hover: #075A67;
    --color-secondary: #168C91;
    --color-secondary-hover: #11777C;
    --color-accent: #F4A261;
    --color-success: #5B8F4A;
    --color-background: #F8FBFA;
    --color-surface: #FFFFFF;
    --color-surface-secondary: #EEF3F2;
    --color-border: #DDE7E5;
    --color-text: #183238;
    --color-text-muted: #64777A;
    --color-link: #168C91;

    /* Legacy aliases (mapped to coastal system) */
    --ranch-blue: var(--ranch-navy);
    --lake-teal: var(--lake-aqua);
    --sand: var(--color-background);
    --charcoal: var(--color-text);

    /* App tokens used across existing CSS */
    --bh-green: var(--color-secondary);
    --bh-green-dark: var(--color-primary);
    --bh-green-light: var(--lake-aqua);
    --bh-green-soft: var(--soft-aqua);
    --bh-green-bg: var(--soft-aqua);
    --bh-text: var(--color-text);
    --bh-text-muted: var(--color-text-muted);
    --bh-border: var(--color-border);
    --bh-surface: var(--color-surface);
    --bh-page-bg: var(--color-background);
    --bh-orange: var(--color-accent);
    --bh-red: #E63946;
    --bh-bottom-nav-height: 76px;
    --bh-radius: 10px;
    --bh-radius-lg: 16px;
    --bh-shadow: 0 4px 16px rgba(7, 59, 76, 0.07);
    --bh-shadow-md: 0 8px 24px rgba(7, 59, 76, 0.10);
    --bh-font-display: "Montserrat", "Segoe UI", sans-serif;
    --bh-font-body: "Open Sans", "Segoe UI", sans-serif;
    --bh-font-accent: "Allura", cursive;
}

html, body {
    font-family: var(--bh-font-body);
    margin: 0;
    background: var(--bh-page-bg);
    color: var(--bh-text);
    -webkit-font-smoothing: antialiased;
}

#app { min-height: 100vh; }

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    background: var(--bh-page-bg);
    box-shadow: 0 0 0 1px var(--bh-border);
}

@media (min-width: 768px) {
    .app-shell {
        max-width: 100%;
        box-shadow: none;
    }

    .app-main {
        max-width: 1440px;
        margin: 0 auto;
        width: 100%;
        padding: 32px 40px 40px;
    }

    .page-container {
        padding: 0;
    }
}

.app-bar {
    background: var(--bh-green-dark) !important;
    color: white !important;
}

.site-header {
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 0;
    background: var(--color-primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 16px rgba(7, 59, 76, 0.18);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 76px;
}

/* Tablet: keep brand flush left (pre-alignment look); desktop keeps content-column padding. */
@media (min-width: 768px) and (max-width: 1199px) {
    .site-header-inner {
        padding-left: 0;
        padding-right: 24px;
    }
}

.site-header-nav {
    display: flex;
    align-items: stretch;
    gap: 2px;
    height: 76px;
    flex-shrink: 1;
    min-width: 0;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-family: var(--bh-font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-bottom: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.site-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.site-nav-link.active {
    color: white;
    border-bottom-color: var(--lake-aqua);
}

.app-brand-name {
    display: inline;
    margin-left: 10px;
    color: white;
    font-family: var(--bh-font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    line-height: 1;
}

@media (max-width: 1100px) and (min-width: 768px) {
    .app-brand-name { font-size: 0.95rem; }
}

@media (max-width: 940px) and (min-width: 768px) {
    .app-brand-name { font-size: 0.85rem; margin-left: 8px; }
}

.site-header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 8px 12px;
    background: var(--bh-surface);
    border-bottom: 1px solid var(--bh-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.app-brand { font-weight: 700; letter-spacing: 0.04em; }

.app-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
    color: inherit;
}

.app-brand-link:hover {
    text-decoration: none;
    color: inherit;
}

.app-brand-link-desktop {
    align-self: stretch;
    background: #FFFFFF;
    padding: 8px 36px 8px 16px;
    margin-left: 0;
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 100%, 0 100%);
    box-shadow: 4px 0 16px rgba(7, 59, 76, 0.12);
    border-radius: 0 0 0 0;
}

.app-brand-link-mobile {
    justify-content: center;
    max-width: calc(100% - 88px);
    flex: 1;
    gap: 10px;
    min-width: 0;
}

.app-brand-mark {
    display: block;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
}

.app-brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    line-height: 1;
}

.app-brand-title {
    font-family: var(--bh-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ranch-navy);
    white-space: nowrap;
}

.app-brand-hub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--bh-font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--palmetto-green);
    white-space: nowrap;
}

.app-brand-hub-rule {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--palmetto-green);
    opacity: 0.85;
}

.app-brand-tag {
    margin-top: 1px;
    font-family: var(--bh-font-display);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--deep-teal);
    white-space: nowrap;
}

.app-brand-tag .sep {
    color: var(--sunset-orange);
    margin: 0 0.15em;
    font-weight: 700;
}

.app-brand-link-mobile .app-brand-mark {
    width: 48px;
    height: 48px;
}

.app-brand-link-mobile .app-brand-title {
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

.app-brand-link-mobile .app-brand-hub {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    gap: 6px;
}

.app-brand-link-mobile .app-brand-hub-rule {
    width: 14px;
}

.app-brand-link-mobile .app-brand-tag {
    font-size: 0.52rem;
}

/* Legacy full-lockup image classes (auth/about still use the PNG) */
.app-brand-logo {
    display: block;
    width: auto;
    height: auto;
}

@media (max-width: 1100px) and (min-width: 768px) {
    .app-brand-mark { width: 52px; height: 52px; }
    .app-brand-title { font-size: 0.88rem; }
    .app-brand-hub { font-size: 0.76rem; }
    .site-nav-link {
        padding: 0 12px;
        font-size: 0.875rem;
    }
}

@media (max-width: 900px) and (min-width: 768px) {
    .app-brand-link-desktop {
        padding: 6px 32px 6px 14px;
        clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 0 100%);
        gap: 10px;
    }

    .app-brand-mark { width: 46px; height: 46px; }
    .app-brand-title { font-size: 0.78rem; letter-spacing: 0.04em; }
    .app-brand-hub { font-size: 0.68rem; gap: 6px; }
    .app-brand-hub-rule { width: 12px; }
    .app-brand-tag { display: none; }

    .site-nav-link {
        padding: 0 10px;
    }
}

@media (max-width: 380px) {
    .app-brand-link-mobile { gap: 8px; }
    .app-brand-link-mobile .app-brand-mark { width: 42px; height: 42px; }
    .app-brand-link-mobile .app-brand-title { font-size: 0.72rem; }
    .app-brand-link-mobile .app-brand-hub { font-size: 0.64rem; }
    .app-brand-link-mobile .app-brand-tag { display: none; }
    .site-header-mobile { min-height: 60px; padding: 6px 10px; }
}

.app-main {
    flex: 1;
    padding-bottom: calc(var(--bh-bottom-nav-height) + 12px);
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .app-main {
        padding: 32px 40px 48px;
    }
}

.page-container {
    padding: 16px 16px 8px;
}

.app-copyright {
    margin: 24px 0 8px;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--bh-text-muted, #6b7280);
}

.app-disclaimer {
    margin: 20px 12px 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--bh-text-muted, #6b7280);
}

.app-disclaimer + .app-copyright {
    margin-top: 8px;
}

.page-header {
    margin-bottom: 20px;
}

.page-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.page-greeting {
    font-family: var(--bh-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bh-text);
    line-height: 1.2;
    margin: 0;
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--bh-text-muted);
    margin: 4px 0 0;
}

.brand-tagline {
    font-family: var(--bh-font-accent);
    font-size: 1.5rem;
    color: var(--ranch-blue);
    margin: 6px 0 0;
    line-height: 1.2;
}

.page-title {
    font-family: var(--bh-font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--bh-text);
    margin: 0;
}

.section-block { margin-bottom: 24px; }

.welcome-banner-host {
    padding-top: 12px;
    padding-bottom: 0;
}

.welcome-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 14px 14px 16px;
    border-radius: var(--bh-radius-lg);
    border: 1px solid var(--color-border);
    background: linear-gradient(135deg, var(--soft-aqua) 0%, var(--color-surface) 100%);
}

.welcome-banner-body {
    flex: 1;
    min-width: 0;
}

.welcome-banner-title {
    margin: 0 0 4px;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-primary);
}

.welcome-banner-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.welcome-banner-dismiss {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -4px -4px 0 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
}

.welcome-banner-dismiss:hover {
    background: rgba(7, 59, 76, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--bh-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.section-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-link);
    text-decoration: none;
    white-space: nowrap;
}

.section-link:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
}

.card {
    background: var(--bh-surface);
    border-radius: var(--bh-radius-lg);
    border: 1px solid var(--bh-border);
    box-shadow: var(--bh-shadow);
}

/* Today ? events */
.event-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bh-border);
}

.event-row:last-child { border-bottom: none; }

.event-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bh-text-muted);
    min-width: 64px;
}

.event-when {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 72px;
    line-height: 1.2;
}

.event-when-date {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--bh-text);
    letter-spacing: 0.01em;
}

.event-when-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bh-text-muted);
}

.event-date-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    padding: 6px 8px;
    border-radius: 12px;
    background: var(--soft-aqua);
    line-height: 1.05;
    flex-shrink: 0;
}

.event-date-month {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--coastal-teal);
}

.event-date-day {
    font-family: var(--bh-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
}

.event-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-icon.green { background: var(--soft-green); color: var(--palmetto-green); }
.event-icon.blue { background: var(--soft-aqua); color: var(--coastal-teal); }
.event-icon.orange { background: var(--soft-orange); color: var(--sunset-orange); }

.event-info { flex: 1; min-width: 0; }

.event-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bh-text);
    margin: 0;
}

.event-location {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin: 2px 0 0;
}

/* Pulse update card */
.pulse-update-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--bh-radius-lg);
    box-shadow: var(--bh-shadow);
}

.pulse-update-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pulse-update-text { flex: 1; }

.pulse-update-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
}

.pulse-update-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-link);
    text-decoration: none;
    margin-top: 4px;
    display: inline-block;
}

/* Community news */
.news-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bh-border);
}

.news-row:last-child { border-bottom: none; }

.news-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bh-green-soft);
    color: var(--bh-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-icon.green { background: var(--soft-green); color: var(--palmetto-green); }
.news-icon.blue { background: var(--soft-aqua); color: var(--coastal-teal); }
.news-icon.orange { background: var(--soft-orange); color: var(--sunset-orange); }

.news-row-link {
    text-decoration: none;
    color: inherit;
    align-items: center;
    cursor: pointer;
}

.news-row-link > div:not(.news-icon) {
    flex: 1;
    min-width: 0;
}

.news-lead {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--bh-text);
    margin: 0 0 16px;
}

.news-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
}

.news-detail {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin: 2px 0 0;
}

/* Filter pills */
.filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--bh-border);
    background: white;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bh-text-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-pill.active {
    background: var(--bh-green);
    border-color: var(--bh-green);
    color: white;
}

/* Pulse map */
.pulse-map {
    position: relative;
    height: 340px;
    background: linear-gradient(180deg, #E8F5E9 0%, #C8E6C9 40%, #A5D6A7 100%);
    border-radius: var(--bh-radius-lg);
    overflow: hidden;
    margin-bottom: 0;
}

/* Phone landscape: keep map usable when viewport height is short. */
@media (orientation: landscape) and (max-height: 500px) {
    .pulse-map {
        height: min(58vh, 240px);
    }

    .site-header {
        min-height: 64px;
    }

    .site-header-inner {
        min-height: 64px;
    }

    .site-header-nav {
        height: 64px;
    }

    .app-brand-mark {
        width: 44px;
        height: 44px;
    }

    .app-brand-tag {
        display: none;
    }

    .bottom-nav {
        height: 64px;
    }
}

.pulse-map-google {
    background: #1a1a1a;
}

.pulse-map-canvas {
    width: 100%;
    height: 100%;
}

.pulse-map-locate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 10px 10px 0;
    padding: 0;
    border: none;
    border-radius: 2px;
    background: #fff;
    color: #666;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.pulse-map-locate-btn:hover {
    color: #1a73e8;
    background: #f8f9fa;
}

.pulse-map-locate-btn:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 1px;
}

.pulse-map-fallback-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;
}

.pulse-map-label {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--bh-green-dark);
    opacity: 0.7;
}

.hotspot {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--bh-shadow-md);
    border: none;
    padding: 0;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hotspot.selected {
    outline: 3px solid white;
    outline-offset: 2px;
    z-index: 2;
}

.pulse-map-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.pulse-update-link-card {
    display: flex;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease;
}

.pulse-update-link-card:hover {
    transform: translateY(-1px);
}

.checkin-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: var(--bh-radius);
    background: var(--bh-green-bg);
    color: var(--bh-green);
    font-weight: 600;
    font-size: 0.875rem;
}

.hotspot.quiet { background: var(--bh-green-light); width: 36px; height: 36px; }
.hotspot.active { background: var(--bh-orange); width: 42px; height: 42px; }
.hotspot.busy { background: var(--bh-red); width: 48px; height: 48px; }

.hotspot.busy::before,
.hotspot.busy::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--bh-red);
    opacity: 0.4;
    animation: pulse-ring 2s ease-out infinite;
}

.hotspot.busy::before { width: 64px; height: 64px; }
.hotspot.busy::after { width: 80px; height: 80px; animation-delay: 0.5s; }

/* Category markers (fallback map) ? soft category tile + activity ring */
.hotspot.hotspot-category {
    width: 44px;
    height: 44px;
    background: #fff;
    box-shadow: var(--bh-shadow-md);
    border: 3px solid var(--bh-green-light);
}

.hotspot.hotspot-category.quiet { border-color: var(--bh-green-light); }
.hotspot.hotspot-category.active { border-color: var(--bh-orange); width: 46px; height: 46px; }
.hotspot.hotspot-category.busy {
    border-color: var(--bh-red);
    width: 48px;
    height: 48px;
}

.hotspot.hotspot-category.busy::before,
.hotspot.hotspot-category.busy::after {
    border-color: var(--bh-red);
}

.hotspot-category-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.hotspot-category-thumb.green { background: var(--soft-green); color: var(--palmetto-green); }
.hotspot-category-thumb.blue { background: #DBEAFE; color: #2563EB; }
.hotspot-category-thumb.orange { background: #FFEDD5; color: #EA580C; }

.hotspot-category-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--bh-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
    box-shadow: var(--bh-shadow-sm);
}

.hotspot.hotspot-category.quiet .hotspot-category-count { background: var(--bh-green-light); }
.hotspot.hotspot-category.active .hotspot-category-count { background: var(--bh-orange); }
.hotspot.hotspot-category.busy .hotspot-category-count { background: var(--bh-red); }

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 0; }
}

/* Location drawer */
.location-drawer {
    background: white;
    border-radius: var(--bh-radius-lg) var(--bh-radius-lg) 0 0;
    border: 1px solid var(--bh-border);
    border-bottom: none;
    margin-top: -12px;
    padding: 16px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.location-drawer-handle {
    width: 36px;
    height: 4px;
    background: var(--bh-border);
    border-radius: 2px;
    margin: 0 auto 12px;
}

.location-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.location-meta {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin: 4px 0 12px;
}

.comment-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--bh-border);
}

.comment-author {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bh-text);
}

.comment-time {
    font-size: 0.75rem;
    color: var(--bh-text-muted);
    margin-left: 8px;
}

.comment-text {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin: 4px 0 0;
}

.btn-checkin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    border: none;
    border-radius: var(--bh-radius);
    background: var(--bh-green);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.pulse-checkin-cta {
    margin: 0 0 12px;
}

.pulse-location-search {
    max-width: 420px;
}

.pulse-place-finder-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 520px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius);
    background: var(--bh-surface);
    color: var(--bh-text);
    box-shadow: var(--bh-shadow);
    cursor: pointer;
    text-align: left;
}

.pulse-place-finder-label {
    flex: 1;
    font-size: 0.9375rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pulse-place-finder-chevron {
    color: var(--bh-text-muted);
}

.pulse-place-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1200;
}

.pulse-place-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1201;
    max-height: min(78vh, 640px);
    display: flex;
    flex-direction: column;
    background: var(--bh-surface);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18);
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

@media (orientation: landscape) and (max-height: 560px) {
    .pulse-place-sheet {
        max-height: min(88vh, 480px);
    }
}

.pulse-place-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: var(--bh-border);
    margin: 10px auto 6px;
}

.pulse-place-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px 8px;
}

.pulse-place-sheet-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
}

.pulse-place-sheet-close {
    border: none;
    background: transparent;
    padding: 6px;
    cursor: pointer;
    color: var(--bh-text-muted);
}

.pulse-place-sheet-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px 14px;
    margin-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.pulse-place-sheet-categories::-webkit-scrollbar {
    height: 4px;
}

.pulse-place-sheet-categories::-webkit-scrollbar-thumb {
    background: #c5c9ce;
    border-radius: 999px;
}

.pulse-place-cat-chip {
    flex: 0 0 auto;
    border: 1px solid var(--bh-border);
    background: #fff;
    color: var(--bh-text);
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.pulse-place-cat-chip.active {
    background: var(--bh-green);
    border-color: var(--bh-green);
    color: #fff;
}

.pulse-place-sheet-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px 8px;
    -webkit-overflow-scrolling: touch;
}

.pulse-place-sheet-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 12px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.pulse-place-sheet-item:hover,
.pulse-place-sheet-item.selected {
    background: var(--bh-green-bg);
}

.pulse-place-sheet-item-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bh-text);
}

.pulse-place-sheet-item-meta {
    font-size: 0.75rem;
    color: var(--bh-text-muted);
}

.pulse-place-sheet-footer {
    padding: 8px 16px 0;
    border-top: 1px solid var(--bh-border);
}

.pulse-place-sheet-type-toggle {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--bh-green);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 10px;
    cursor: pointer;
}

.pulse-place-sheet-type {
    width: 100%;
}

.pulse-nearby-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pulse-nearby-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--bh-border, rgba(0, 0, 0, 0.12));
    border-radius: var(--bh-radius);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.pulse-nearby-item:hover {
    background: rgba(11, 61, 74, 0.06);
}

.pulse-nearby-name {
    font-weight: 600;
    color: var(--bh-text, inherit);
}

.pulse-nearby-meta {
    margin-top: 2px;
    font-size: 0.8125rem;
    color: var(--bh-text-muted, rgba(0, 0, 0, 0.54));
}

.btn-checkin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkin-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.checkin-actions .btn-checkin {
    margin-top: 0;
}

/* Explore search */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius);
    margin-bottom: 20px;
    box-shadow: var(--bh-shadow);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    background: transparent;
    color: var(--bh-text);
}

.search-bar input::placeholder { color: #9CA3AF; }

.category-scroll {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    width: 72px;
    min-width: 72px;
    text-decoration: none;
    color: var(--bh-text-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.category-item.active .category-icon {
    border-color: var(--bh-green);
    background: rgba(91, 143, 74, 0.10);
}

.category-item.active {
    color: var(--bh-green);
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--bh-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--bh-green);
    box-shadow: var(--bh-shadow);
}

.category-item > span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-align: center;
    line-height: 1.2;
    height: 2.4em;
    width: 100%;
    word-break: break-word;
}

/* Place cards */
.place-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-lg);
    margin-bottom: 10px;
    box-shadow: var(--bh-shadow);
}

.place-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--bh-green-soft), #B7E4C7);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bh-green);
}

.place-thumb.green { background: var(--soft-green); color: var(--palmetto-green); }
.place-thumb.blue { background: #DBEAFE; color: #2563EB; }
.place-thumb.orange { background: #FFEDD5; color: #EA580C; }

.place-thumb-image {
    background-size: cover;
    background-position: center;
}

.place-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
}

.place-meta {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin: 4px 0 0;
}

.place-hours {
    font-size: 0.75rem;
    color: var(--bh-green);
    font-weight: 600;
    margin-top: 4px;
}

/* Explore event date badge */
.explore-event {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bh-border);
}

.explore-event:last-child { border-bottom: none; }

.date-badge {
    width: 48px;
    text-align: center;
    flex-shrink: 0;
}

.date-badge-month {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--bh-green);
    letter-spacing: 0.04em;
}

.date-badge-day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bh-text);
    line-height: 1;
}

/* Marketplace */
.marketplace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.btn-add-listing {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bh-green);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--bh-shadow-md);
}

.featured-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
    scrollbar-width: none;
}

.featured-scroll::-webkit-scrollbar {
    display: none;
}

.featured-card-btn {
    width: 140px;
    min-width: 140px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
}

.featured-card {
    min-width: 140px;
    flex-shrink: 0;
}

.featured-image {
    width: 140px;
    height: 140px;
    border-radius: var(--bh-radius);
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.featured-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bh-green);
    line-height: 1.2;
}

.featured-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bh-text);
    margin: 4px 0 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-location {
    font-size: 0.75rem;
    color: var(--bh-text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: white;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-lg);
    margin-bottom: 10px;
    box-shadow: var(--bh-shadow);
}

.listing-row-body {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.listing-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    flex-shrink: 0;
}

.listing-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--bh-green);
}

.listing-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-meta {
    font-size: 0.75rem;
    color: var(--bh-text-muted);
    margin-top: 2px;
}

.listing-link {
    width: 100%;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.marketplace-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bh-green);
    margin: 12px 0 4px;
}

.marketplace-hero-placeholder {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
}

.marketplace-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.marketplace-gallery-image {
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--bh-radius-lg);
    flex-shrink: 0;
}

.marketplace-edit-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.marketplace-edit-image {
    position: relative;
    width: 96px;
    height: 96px;
}

.marketplace-edit-image img,
.marketplace-edit-image-fallback {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
}

.marketplace-edit-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    color: var(--bh-text-muted);
}

.marketplace-edit-image .mud-icon-button {
    position: absolute;
    top: -8px;
    right: -8px;
    background: white;
}

.file-upload {
    position: relative;
    display: inline-flex;
    width: 100%;
    cursor: pointer;
}

.file-upload.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

.file-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--bh-green);
    background: var(--bh-green-bg);
    color: var(--bh-green-dark);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.2;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.file-upload:hover:not(.is-disabled) .file-upload-btn {
    background: var(--bh-green-soft);
    border-color: var(--bh-green-dark);
}

.file-upload:focus-within .file-upload-btn {
    outline: 2px solid var(--bh-green-light);
    outline-offset: 2px;
}

.message-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-lg);
    margin-bottom: 10px;
    box-shadow: var(--bh-shadow);
}

.message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bh-green-soft), var(--bh-green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bh-green);
    flex-shrink: 0;
}

.message-row-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}

.message-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bh-text);
}

.message-time {
    font-size: 0.75rem;
    color: var(--bh-text-muted);
    flex-shrink: 0;
}

.message-listing,
.message-listing-header {
    font-size: 0.75rem;
    color: var(--bh-green);
    margin-top: 2px;
}

.message-preview {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-unread {
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: var(--bh-green);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    flex-shrink: 0;
}

.message-thread-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
}

.message-thread-header {
    margin-bottom: 12px;
}

.message-thread {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.message-bubble {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 16px;
}

.message-bubble.mine {
    align-self: flex-end;
    background: var(--bh-green);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble.theirs {
    align-self: flex-start;
    background: white;
    border: 1px solid var(--bh-border);
    border-bottom-left-radius: 4px;
}

.message-bubble-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

.message-bubble-time {
    display: block;
    font-size: 0.6875rem;
    opacity: 0.75;
    margin-top: 4px;
}

.message-compose {
    margin-top: auto;
}

.notification-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-lg);
    margin-bottom: 10px;
    box-shadow: var(--bh-shadow);
}

.notification-row.unread {
    border-color: #C8E6C9;
    background: #F9FFF9;
}

.notification-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bh-text);
}

.notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bh-green);
    flex-shrink: 0;
}

/* More ? profile */
.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: white;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-lg);
    margin-bottom: 16px;
    box-shadow: var(--bh-shadow);
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bh-green-soft), var(--bh-green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bh-green-dark);
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-name {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    color: var(--bh-green);
    font-size: 1.125rem;
}

.profile-subtitle {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin: 2px 0 0;
}

.menu-card {
    background: white;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-lg);
    overflow: hidden;
    box-shadow: var(--bh-shadow);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--bh-border);
    text-decoration: none;
    color: var(--bh-text);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    background: white;
    width: 100%;
    border-left: none;
    border-right: none;
    border-top: none;
    text-align: left;
}

.menu-item:last-child { border-bottom: none; }

.menu-item:hover { background: var(--bh-green-bg); }

.menu-item.disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.menu-item-icon {
    color: var(--bh-green);
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item-chevron {
    margin-left: auto;
    color: #D1D5DB;
}

.menu-section-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--bh-text-muted);
    padding: 12px 16px 4px;
    text-transform: uppercase;
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--bh-bottom-nav-height);
    background: white;
    border-top: 1px solid var(--bh-border);
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .bottom-nav { max-width: 100%; left: 0; transform: none; }
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    text-decoration: none;
    color: #9CA3AF;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-bottom: 8px;
    min-height: 52px;
}

.bottom-nav-item .mud-icon-root { font-size: 1.375rem; }

.bottom-nav-item.active { color: var(--bh-green); }

.bottom-nav-icon-wrap {
    position: relative;
    display: inline-flex;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
}

.site-nav-link-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mobile-notif-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--bh-text);
    padding: 8px;
    flex-shrink: 0;
}

.mobile-notif-link .nav-badge {
    position: absolute;
    top: 2px;
    right: 0;
}

.mobile-header-spacer {
    width: 40px;
    flex-shrink: 0;
}

.bottom-nav-item-badge .nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
}

.message-bubble-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.message-report-btn {
    border: 0;
    background: transparent;
    color: var(--bh-text-muted);
    font-size: 0.7rem;
    padding: 0;
    cursor: pointer;
}

.message-report-btn:hover {
    color: var(--bh-text);
}

.menu-item-label {
    flex: 1;
    min-width: 0;
}

.pulse-nav-item {
    position: relative;
    justify-content: flex-end;
    padding-bottom: 6px;
}

.pulse-button {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--bh-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(91, 143, 74, 0.45);
    margin-top: -28px;
    margin-bottom: 2px;
    border: 4px solid white;
}

.pulse-nav-item span {
    color: var(--bh-green);
    font-weight: 700;
}

.pulse-nav-desktop { border-radius: 999px !important; }

.auth-page { max-width: 480px; margin: 0 auto; }

.form-inline-alert {
    border-radius: 10px;
}

.legal-card {
    padding: 20px 18px;
}

.legal-body {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.55;
}

.legal-body h2 {
    margin: 1.35rem 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bh-green-dark);
}

.legal-body h3 {
    margin: 0.9rem 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 650;
    color: #1f2937;
}

.legal-body p,
.legal-body ul {
    margin: 0 0 0.75rem;
}

.legal-body ul {
    padding-left: 1.2rem;
}

.legal-body li {
    margin-bottom: 0.35rem;
}

.legal-note {
    margin-top: 1.25rem !important;
    padding-top: 0.85rem;
    border-top: 1px solid var(--bh-border);
    font-size: 0.8rem;
    color: #6b7280;
}

.auth-account-type.mud-input-control {
    margin-top: 0;
}

.auth-account-type .mud-input-control-boolean-input,
.auth-account-type .mud-radio {
    display: inline-flex !important;
    align-items: center;
    vertical-align: middle;
}

.auth-account-type .mud-radio {
    margin-inline-end: 1.25rem;
    margin-bottom: 0;
}

.auth-account-type .mud-button-root.mud-icon-button,
.auth-account-type .mud-radio-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
}

.auth-account-type .mud-radio .mud-typography,
.auth-account-type .mud-radio > span,
.auth-account-type .mud-radio .mud-radio-content {
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
}

/* Loading & offline */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #E4DFD4;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--bh-green-light);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--bh-green-dark);
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.offline-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: var(--bh-page-bg);
}

.offline-container h1 { color: var(--bh-green-dark); }

/* Clickable list items */
.event-row-link,
.place-card-link,
.explore-event-link,
.news-row-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.event-row-link:hover,
.place-card-link:hover,
.explore-event-link:hover,
.news-row-link:hover {
    background: rgba(91, 143, 74, 0.06);
}

.place-card-link {
    align-items: center;
}

.place-card-body,
.explore-event-body {
    flex: 1;
    min-width: 0;
}

.explore-event-link {
    align-items: center;
}

.list-chevron {
    color: var(--bh-text-muted);
    flex-shrink: 0;
    opacity: 0.5;
}

/* Detail pages */
.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    color: var(--bh-green);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
}

.detail-hero {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-hero.green { background: var(--bh-green-soft); color: var(--bh-green); }
.detail-hero.blue { background: #DBEAFE; color: #2563EB; }
.detail-hero.orange { background: #FFEDD5; color: #EA580C; }
.detail-hero.location { background: var(--bh-green-soft); color: var(--bh-green); }

.detail-hero-image {
    width: 100%;
    height: 180px;
    min-height: 180px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    margin-bottom: 16px;
}

.detail-heading {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}

.detail-heading-body {
    min-width: 0;
    flex: 1;
}

.detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.detail-chips .detail-chip {
    margin-bottom: 0;
}

.detail-heading-body > .detail-hours-banner:last-child {
    margin-bottom: 0;
}

.detail-layout {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-cta {
    margin-top: 4px;
    width: 100%;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.detail-title-row .detail-title {
    flex: 1;
    margin-bottom: 0;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bh-text);
    margin: 0 0 8px;
    line-height: 1.25;
}

.detail-chip {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bh-green-soft);
    color: var(--bh-green);
    margin-right: 6px;
    margin-bottom: 16px;
}

.detail-chip.featured { background: #FFEDD5; color: #EA580C; }
.detail-chip.pulse { background: #DBEAFE; color: #2563EB; }

.detail-hours-banner {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bh-green);
    margin: 0 0 16px;
}

.detail-section {
    padding: 16px;
    margin-bottom: 12px;
}

.detail-section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bh-text-muted);
    margin: 0 0 8px;
}

.detail-body {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--bh-text);
    margin: 0;
    white-space: pre-line;
}

.detail-row {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bh-border);
}

.detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.detail-row:first-child { padding-top: 0; }

.detail-row-icon { color: var(--bh-green); flex-shrink: 0; margin-top: 2px; }

.detail-row-body {
    min-width: 0;
    flex: 1;
}

.detail-row-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bh-text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-row-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bh-text);
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.detail-row-sub {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin: 2px 0 0;
}

.detail-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bh-green-dark);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.detail-link:hover {
    text-decoration: underline;
}

.detail-link-break {
    word-break: break-all;
}

.business-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bh-green);
}

.business-featured-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bh-green-soft), #B7E4C7);
    color: var(--bh-green);
}

.business-row {
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.claim-result-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bh-border);
}

.claim-result-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.claim-result-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.claim-result-name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--bh-text);
}

.claim-result-category {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.3;
    color: var(--bh-green);
}

.claim-result-action {
    align-self: flex-start;
}

.billing-plan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .billing-plan-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.billing-plan-card {
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius-lg);
    padding: 14px;
    background: var(--bh-surface);
}

.billing-plan-card.current {
    border-color: var(--bh-green);
    background: var(--bh-green-bg);
}

.billing-plan-name {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
}

.billing-plan-price {
    margin: 4px 0 8px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--bh-green-dark);
}

.billing-plan-desc {
    margin: 0 0 12px;
    font-size: 0.875rem;
    color: var(--bh-text-secondary, #4B5563);
}

.business-hero {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero {
    text-align: center;
    margin: 0 -16px 24px;
}

.about-hero-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(62vh, 520px);
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
}

.about-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--bh-green), var(--ranch-blue));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--bh-shadow);
}

.about-logo-img {
    width: min(320px, 88vw);
    height: auto;
    display: block;
    margin: 0 auto;
}

.auth-brand {
    text-align: center;
    margin-bottom: 16px;
}

.auth-logo {
    width: min(360px, 90vw);
    height: auto;
    display: inline-block;
}

.about-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--bh-border);
}

.about-feature:last-child {
    border-bottom: none;
}

.about-feature-link {
    text-decoration: none;
    color: inherit;
}

.about-feature-link .list-chevron {
    margin-left: auto;
    color: #9CA3AF;
}

.help-email-link {
    color: var(--bh-green);
    font-weight: 600;
    text-decoration: none;
}

.help-email-link:hover {
    text-decoration: underline;
}

.help-faq-panels .mud-expand-panel {
    background: transparent !important;
    box-shadow: none !important;
}

.help-faq-panels .mud-expand-panel-header {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-weight: 600;
}

.help-faq-panels .mud-expand-panel-content {
    padding: 0 8px 12px !important;
}

.event-icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
}

.event-icon-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border: 1px solid var(--bh-border);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--bh-text-muted);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.event-icon-option:hover {
    border-color: var(--bh-green-light);
    color: var(--bh-green);
}

.event-icon-option.selected {
    border-color: var(--bh-green);
    background: var(--bh-green-soft);
    color: var(--bh-green-dark);
}

/* =============================================
   DESKTOP ENHANCEMENTS (768px+)
   Mobile layout is completely unchanged above.
   ============================================= */

@media (min-width: 768px) {

    .pulse-map {
        height: min(52vh, 540px);
        min-height: 420px;
    }

    .about-hero {
        margin: 0 0 28px;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: var(--bh-shadow-md);
    }

    .about-hero-img {
        max-height: min(58vh, 560px);
        border-radius: 20px;
    }

    /* -- Page hero banner -- */
    .desktop-hero {
        background:
            linear-gradient(
                110deg,
                #073B4C 0%,
                #075A67 42%,
                rgba(22, 140, 145, 0.92) 72%,
                rgba(53, 182, 180, 0.78) 100%
            ),
            url("../images/about-hero.jpg") right center / cover no-repeat;
        border-radius: 18px;
        padding: 36px 40px;
        margin-bottom: 28px;
        color: white;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        box-shadow: var(--bh-shadow-md);
        position: relative;
        overflow: hidden;
        margin-top: 4px;
        min-height: 180px;
    }

    .desktop-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            90deg,
            rgba(7, 59, 76, 0.88) 0%,
            rgba(7, 90, 103, 0.72) 48%,
            rgba(7, 59, 76, 0.28) 78%,
            rgba(7, 59, 76, 0.12) 100%
        );
        pointer-events: none;
    }

    .desktop-hero::after {
        display: none;
    }

    .desktop-hero-text {
        position: relative;
        z-index: 1;
        max-width: 560px;
    }

    .desktop-hero-text .page-greeting {
        font-size: 2rem;
        color: white;
        font-weight: 800;
    }

    .desktop-hero-text .page-subtitle {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.84);
        margin-top: 6px;
    }

    .desktop-hero-tagline {
        margin: 18px 0 0;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.92);
    }

    .desktop-hero-tagline .sep {
        color: var(--color-accent);
        margin: 0 0.35em;
        font-weight: 700;
    }

    /* -- Two-column grid for Today -- */
    .desktop-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.75fr);
        gap: 28px;
        align-items: start;
    }

    .desktop-grid-main { min-width: 0; }

    .desktop-sidebar {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    /* -- Section headings -- */
    .section-title {
        font-size: 1.125rem;
        font-weight: 800;
        letter-spacing: -0.01em;
        color: var(--color-primary);
    }

    /* -- Cards -- */
    .card {
        border-radius: 16px;
        box-shadow: var(--bh-shadow);
        transition: box-shadow 0.15s ease, border-color 0.15s ease;
    }

    a.card:hover,
    .card:has(a:hover) {
        box-shadow: var(--bh-shadow-md);
    }

    /* -- Event rows -- */
    .event-row {
        padding: 14px 0;
    }

    .event-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .event-name { font-size: 1rem; }

    .event-time {
        min-width: 72px;
        font-size: 0.8125rem;
    }

    .event-when {
        min-width: 80px;
    }

    .event-when-date {
        font-size: 0.75rem;
    }

    .event-when-time {
        font-size: 0.8125rem;
    }

    /* -- Pulse card -- */
    .pulse-update-card {
        border-radius: 18px;
        padding: 20px 24px;
        gap: 16px;
    }

    .pulse-update-icon {
        width: 52px;
        height: 52px;
    }

    .pulse-update-title { font-size: 1.0625rem; }

    /* -- News rows -- */
    .news-title { font-size: 1rem; }

    /* -- Filter pills -- */
    .filter-pills { margin-bottom: 20px; }

    .filter-pill {
        padding: 9px 20px;
        font-size: 0.875rem;
    }

    /* -- Listing grid -- */
    .desktop-listing-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }

    .desktop-listing-grid .listing-row {
        flex-direction: column;
        padding: 0;
        overflow: hidden;
        border-radius: 18px;
    }

    .desktop-listing-grid .listing-thumb {
        width: 100%;
        height: 180px;
        border-radius: 0;
    }

    .desktop-listing-grid .listing-row-body {
        padding: 14px 16px;
    }

    /* -- Page title -- */
    .page-title { font-size: 1.625rem; }

    .page-subtitle { font-size: 0.9375rem; }

    /* -- Detail pages -- */
    .detail-page {
        max-width: 960px;
    }

    .detail-heading {
        flex-direction: row;
        align-items: center;
        gap: 24px;
        margin-bottom: 28px;
    }

    .detail-hero:not(.detail-hero-image) {
        width: 96px;
        height: 96px;
        border-radius: 20px;
    }

    .detail-hero-image {
        height: 240px;
        min-height: 240px;
        margin-bottom: 24px;
        border-radius: 20px;
    }

    .detail-title {
        font-size: 2rem;
        letter-spacing: -0.02em;
    }

    .detail-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 28px;
        align-items: start;
    }

    .detail-layout:not(:has(.detail-layout-aside)),
    .detail-layout-single {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .detail-layout-main {
        grid-column: 1;
        grid-row: 1;
    }

    .detail-layout-aside {
        grid-column: 2;
        grid-row: 1;
        position: sticky;
        top: 96px;
    }

    .detail-contact-card .detail-row {
        padding: 10px 0;
    }

    .detail-layout-single .detail-layout-main {
        grid-column: 1;
    }

    .detail-cta {
        width: auto;
    }

    .detail-section {
        padding: 20px 22px;
    }

    /* -- More / Settings sidebar -- */
    .desktop-more-layout {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 28px;
        align-items: start;
    }

    /* -- Auth pages -- */
    .auth-page {
        max-width: 440px;
        margin: 0 auto;
        padding-top: 40px;
    }

    /* -- Explore grid -- */
    .desktop-explore-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 14px;
    }

    .desktop-explore-grid .listing-row {
        flex-direction: column;
        padding: 0;
        border-radius: 16px;
        overflow: hidden;
    }

    .desktop-explore-grid .listing-thumb {
        width: 100%;
        height: 140px;
        border-radius: 0;
    }

    .desktop-explore-grid .listing-row-body {
        padding: 12px 16px;
    }

    /* -- Section card headers -- */
    .section-header { margin-bottom: 16px; }

    /* -- Admin -- */
    .mud-tabs .mud-tab { font-size: 0.9375rem; font-weight: 600; }

    /* -- Quick links sidebar -- */
    .desktop-quick-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        text-decoration: none;
        color: var(--bh-text);
        border-bottom: 1px solid var(--bh-border);
        font-size: 0.9375rem;
        font-weight: 600;
        transition: background 0.12s;
    }

    .desktop-quick-link:hover { background: var(--color-surface-secondary); }

    .desktop-quick-link-body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .desktop-quick-link-title {
        color: var(--color-text);
        font-weight: 600;
        line-height: 1.25;
    }

    .desktop-quick-link-desc {
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--color-text-muted);
        line-height: 1.3;
    }

    .desktop-quick-link-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .desktop-quick-link-icon.explore {
        background: var(--soft-green);
        color: var(--palmetto-green);
    }

    .desktop-quick-link-icon.marketplace {
        background: var(--soft-orange);
        color: var(--sunset-orange);
    }

    .desktop-quick-link-icon.services {
        background: var(--soft-aqua);
        color: var(--coastal-teal);
    }

    .desktop-quick-link-icon.community {
        background: var(--sky-panel);
        color: var(--coastal-teal);
    }

    .desktop-quick-link-icon.more {
        background: var(--color-surface-secondary);
        color: var(--color-text-muted);
    }

    .community-slogan-card {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-top: 16px;
        padding: 16px;
        border-radius: 16px;
        border: 1px solid var(--color-border);
        background: var(--soft-green);
        box-shadow: var(--bh-shadow);
    }

    .community-slogan-icon {
        color: var(--palmetto-green) !important;
        margin-top: 2px;
    }

    .community-slogan-title {
        margin: 0;
        font-size: 0.875rem;
        font-weight: 700;
        color: var(--color-primary);
        line-height: 1.35;
    }

    .community-slogan-tagline {
        margin: 4px 0 0;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--color-text-muted);
    }

    /* -- ms-auto utility if not already present -- */
    .ms-auto { margin-left: auto !important; }
}

.detail-chip.residents-only {
    background: rgba(230, 57, 70, 0.12);
    color: var(--bh-red);
}

.detail-chip.open-everyone {
    background: var(--bh-green-soft);
    color: var(--bh-green-dark);
}

.event-day-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

/* Admin dashboard stats */
.admin-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-stats-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius);
    background: var(--bh-surface);
    color: var(--bh-text);
    box-shadow: var(--bh-shadow);
    cursor: pointer;
    text-align: left;
}

.admin-stats-toggle-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--bh-green);
    flex-shrink: 0;
}

.admin-stats-toggle-summary {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-stats-grid {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-stats-grid.is-open {
    display: grid;
}

.admin-stat-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: var(--bh-surface);
    border: 1px solid var(--bh-border);
    border-radius: var(--bh-radius);
    box-shadow: var(--bh-shadow);
}

.admin-stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--bh-green);
}

.admin-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bh-text);
}

@media (min-width: 600px) {
    .admin-stats-grid,
    .admin-stats-grid.is-open {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .admin-stats-toggle {
        display: none;
    }

    .admin-stats-grid,
    .admin-stats-grid.is-open {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
    }

    .admin-stat-card {
        padding: 10px 12px;
    }

    .admin-stat-value {
        font-size: 1.375rem;
    }
}

/* Admin dashboard navigation */
.admin-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-nav-desktop {
    display: none;
}

.admin-nav-mobile {
    display: block;
}

.admin-section-select,
.admin-filter-select {
    max-width: 100%;
}

.admin-panel {
    background: var(--mud-palette-surface, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    min-width: 0;
}

.admin-panel-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
}

.admin-panel-body {
    padding: 16px;
    min-width: 0;
    overflow-x: hidden;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-toolbar-title {
    margin: 0;
}

.admin-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-csv-upload {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.admin-csv-upload.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

.admin-csv-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid var(--mud-palette-secondary);
    color: var(--mud-palette-secondary);
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02857em;
}

.admin-csv-upload:hover:not(.is-disabled) .admin-csv-upload-btn {
    background: rgba(var(--mud-palette-secondary-rgb), 0.06);
}

.admin-toolbar-search {
    min-width: min(100%, 240px);
    max-width: 320px;
}

.admin-toolbar-filter {
    min-width: 140px;
    max-width: 200px;
}

.admin-table .mud-table-container {
    overflow-x: visible !important;
}

.admin-cell-wrap {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.admin-cell-actions,
.admin-cell-actions-wide {
    white-space: nowrap;
    vertical-align: middle !important;
}

.admin-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.admin-user-primary {
    font-weight: 650;
    line-height: 1.25;
}

.admin-user-secondary {
    font-size: 0.75rem;
    color: #6B7280;
    line-height: 1.3;
}

.admin-user-email {
    margin-top: 2px;
}

.admin-flag-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-flag-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.8125rem;
    color: #4B5563;
    white-space: nowrap;
    cursor: pointer;
}

.admin-flag-row .mud-switch {
    margin-inline: 0 !important;
}

/* Mobile: MudTable card layout (Breakpoint.Md and below) */
@media (max-width: 959px) {
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-toolbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-toolbar-search,
    .admin-toolbar-filter {
        max-width: none;
        width: 100%;
        min-width: 0;
    }

    .admin-table .mud-table-root {
        table-layout: auto;
        min-width: 0 !important;
    }

    .admin-table .mud-table-cell {
        padding: 10px 12px !important;
        font-size: 0.875rem;
        overflow: visible;
        vertical-align: middle;
    }

    .admin-table .mud-table-row {
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        margin-bottom: 12px;
        background: #fff;
    }

    .admin-cell-actions,
    .admin-cell-actions-wide {
        width: auto !important;
        text-align: left;
        justify-content: flex-end;
    }

    .admin-flag-stack {
        gap: 6px;
        width: 100%;
    }

    .admin-flag-row {
        font-size: 0.875rem;
    }
}

/* Desktop: fixed columns, no horizontal scroll */
@media (min-width: 960px) {
    .admin-table .mud-table-root {
        width: 100%;
        table-layout: fixed;
        min-width: 0 !important;
    }

    .admin-table .mud-table-cell {
        padding: 8px 10px !important;
        font-size: 0.8125rem;
        vertical-align: top;
        overflow: hidden;
    }

    .admin-table thead .mud-table-cell {
        white-space: nowrap;
        font-weight: 650;
    }

    .admin-cell-actions {
        width: 52px;
        text-align: right;
    }

    .admin-cell-actions-wide {
        width: 108px;
        text-align: right;
    }

    .admin-flag-row {
        font-size: 0.7rem;
        gap: 4px;
    }
}

.admin-nav-group {
    margin-bottom: 8px;
}

.admin-nav-group:last-child {
    margin-bottom: 0;
}

.admin-nav-group-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bh-text-muted);
    padding: 6px 10px 4px;
}

.admin-nav-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    width: 100%;
    margin: 0;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--bh-text);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-nav-item:hover {
    background: var(--bh-green-bg);
}

.admin-nav-item.active {
    background: var(--bh-green-soft);
    color: var(--bh-green-dark);
    font-weight: 600;
}

.admin-nav-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--bh-green);
}

.admin-nav-item.active .admin-nav-item-icon {
    color: var(--bh-green-dark);
}

.admin-nav-item-icon .mud-icon-root {
    font-size: 1.125rem !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
    margin: 0;
}

.admin-nav-item-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 900px) {
    .app-main:has(.admin-page) {
        max-width: 1440px;
    }

    .admin-layout {
        display: grid;
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 20px;
        align-items: start;
    }

    .admin-nav-mobile {
        display: none;
    }

    .admin-nav-desktop {
        display: block;
        position: sticky;
        top: 80px;
        background: var(--mud-palette-surface, #fff);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        padding: 12px;
    }

    .admin-panel-header {
        display: none;
    }

    .admin-panel-body {
        padding: 18px 20px;
    }
}

@media (min-width: 1200px) {
    .admin-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

/* Microsoft Clarity masks #app when class "clarity-mask" is toggled by analytics.js on sensitive routes. */

/* MudBlazor primary button polish */
.mud-button-filled.mud-button-filled-primary {
    background-color: var(--color-secondary) !important;
    border-radius: 10px !important;
}
.mud-button-filled.mud-button-filled-primary:hover {
    background-color: var(--color-secondary-hover) !important;
}
.mud-button-outlined.mud-button-outlined-primary {
    color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    border-radius: 10px !important;
}
.mud-button-outlined.mud-button-outlined-primary:hover {
    background: var(--soft-aqua) !important;
}
.mud-link {
    color: var(--color-link) !important;
}

/* -- Babcock Boost ----------------------------------------- */
.boost-section { margin-bottom: 1.25rem; }
.boost-card {
    background: linear-gradient(135deg, #EEF7F6 0%, var(--color-surface) 55%, #FFF8F0 100%);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 14px 16px 16px;
    box-shadow: 0 1px 2px rgba(7, 59, 76, 0.06);
}
.boost-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.boost-card-brand {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
}
.boost-card-bolt { margin-right: 2px; }
.boost-card-badge {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: var(--color-surface-secondary);
    border-radius: 4px;
    padding: 2px 8px;
}
.boost-card-body {
    display: grid;
    gap: 12px;
}
.boost-card-body.has-image {
    grid-template-columns: 1fr 88px;
    align-items: start;
}
@media (max-width: 420px) {
    .boost-card-body.has-image { grid-template-columns: 1fr 72px; }
}
.boost-card-business {
    margin: 0 0 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}
.boost-card-business-link {
    color: inherit;
    text-decoration: none;
}
.boost-card-business-link:hover { color: var(--color-link); }
.boost-card-headline {
    margin: 0 0 6px;
    font-size: 1.15rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.boost-card-desc {
    margin: 0 0 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--color-text);
}
.boost-card-time {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.boost-card-media { border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--color-surface-secondary); }
.boost-card-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.boost-card-actions { margin-top: 12px; }
.boost-card-cta { width: 100%; }
.boost-promo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.boost-owner-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--color-border);
}
.boost-owner-headline { margin: 0; font-weight: 600; }
.boost-owner-meta { margin: 2px 0 0; font-size: 0.8rem; color: var(--color-text-muted); }
.boost-wizard-steps { display: flex; gap: 8px; }
.boost-wizard-step {
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
    background: var(--color-surface-secondary); color: var(--color-text-muted);
}
.boost-wizard-step.active { background: var(--color-primary); color: #fff; }
.boost-wizard-step.done { background: var(--color-secondary); color: #fff; }
.boost-wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.boost-slot-list { display: flex; flex-direction: column; gap: 8px; }
.boost-slot {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    width: 100%; text-align: left; padding: 12px 14px;
    border: 1px solid var(--color-border); border-radius: 10px;
    background: var(--color-surface); color: var(--color-text); cursor: pointer;
}
.boost-slot.selected { border-color: var(--color-secondary); background: #EEF7F6; }
.boost-slot.unavailable { opacity: 0.55; cursor: not-allowed; }
.boost-slot-meta { font-size: 0.8rem; color: var(--color-text-muted); }
.boost-admin-schedule { display: flex; flex-direction: column; gap: 6px; }
.boost-admin-block {
    padding: 8px 10px; border-radius: 8px; font-size: 0.85rem;
    background: var(--color-surface-secondary); border-left: 3px solid var(--color-border);
}
.boost-admin-block.kind-booked, .boost-admin-block.kind-active { border-left-color: var(--color-secondary); }
.boost-admin-block.kind-held { border-left-color: var(--color-accent); }
.boost-admin-block.kind-blocked { border-left-color: var(--color-text-muted); }
.boost-admin-stripe { font-size: 0.7rem; color: var(--color-text-muted); word-break: break-all; }

.boost-admin-filters {
    display: grid;
    gap: 12px;
}
@media (min-width: 720px) {
    .boost-admin-filters {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }
}
.boost-admin-filter-field {
    width: 100%;
    min-width: 0;
}
.boost-image-picker {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
}
.boost-image-picker .boost-image-label {
    display: block;
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}
.boost-image-picker .boost-image-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}
.boost-image-picker .boost-image-preview img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-surface-secondary);
}
.boost-image-picker .admin-csv-upload {
    margin-top: 0;
}
