:root {
    --bh-green: #2D6A4F;
    --bh-green-dark: #1B4332;
    --bh-green-light: #52B788;
    --bh-green-soft: #D8F3DC;
    --bh-green-bg: #F0FAF4;
    --bh-text: #1A1A1A;
    --bh-text-muted: #6B7280;
    --bh-border: #E5E7EB;
    --bh-surface: #FFFFFF;
    --bh-page-bg: #FAFAFA;
    --bh-orange: #F4A261;
    --bh-red: #E63946;
    --bh-bottom-nav-height: 76px;
    --bh-radius: 12px;
    --bh-radius-lg: 16px;
    --bh-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --bh-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html, body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    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: 1200px;
        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: 72px;
    padding: 0;
    background: var(--bh-green-dark);
    color: white;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 72px;
}

.site-header-nav {
    display: flex;
    align-items: stretch;
    gap: 4px;
    height: 72px;
}

.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-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(--bh-green-light);
}

.app-brand-name {
    display: inline;
    margin-left: 10px;
    color: white;
    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: center;
    min-height: 64px;
    max-height: 72px;
    padding: 6px 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;
    text-decoration: none;
    line-height: 0;
    flex-shrink: 0;
}

.app-brand-link-mobile {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    line-height: 1.05;
}

.app-brand-logo {
    display: block;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
}

.app-brand-logo-desktop {
    height: 42px;
    width: 42px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    padding: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

.app-brand-logo-mobile {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.app-brand-name-mobile {
    color: var(--bh-green-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    white-space: nowrap;
    line-height: 1;
}

@media (max-width: 360px) {
    .app-brand-name-mobile { display: none; }
    .app-brand-logo-mobile { height: 44px; width: 44px; }
    .site-header-mobile { min-height: 56px; max-height: 60px; }
}

.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;
}

.page-header {
    margin-bottom: 20px;
}

.page-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.page-greeting {
    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;
}

.page-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--bh-text);
    margin: 0;
}

.section-block { margin-bottom: 24px; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bh-text);
    margin: 0;
}

.section-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bh-green);
    text-decoration: none;
}

.section-link:hover { text-decoration: underline; }

.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-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-icon.green { background: var(--bh-green-soft); color: var(--bh-green); }
.event-icon.blue { background: #DBEAFE; color: #2563EB; }
.event-icon.orange { background: #FFEDD5; color: #EA580C; }

.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(--bh-green-bg);
    border: 1px solid var(--bh-green-soft);
    border-radius: var(--bh-radius-lg);
}

.pulse-update-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bh-green);
    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;
}

.pulse-update-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bh-green);
    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(--bh-green-soft); color: var(--bh-green); }
.news-icon.blue { background: #DBEAFE; color: #2563EB; }
.news-icon.orange { background: #FFEDD5; color: #EA580C; }

.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: 56px;
    }

    .site-header-inner {
        min-height: 56px;
    }

    .bottom-nav {
        height: 64px;
    }
}

.pulse-map-google {
    background: #1a1a1a;
}

.pulse-map-canvas {
    width: 100%;
    height: 100%;
}

.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(--bh-green-soft); color: var(--bh-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 {
    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(27, 67, 50, 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(45, 106, 79, 0.08);
}

.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(--bh-green-soft); color: var(--bh-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: 2px 0 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;
}

.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); }

.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(45, 106, 79, 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: #e8eeeb;
    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(45, 106, 79, 0.04);
}

.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-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;
}

.detail-row-sub {
    font-size: 0.8125rem;
    color: var(--bh-text-muted);
    margin: 2px 0 0;
}

.detail-link {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bh-green);
    margin-top: 4px;
    text-decoration: none;
}

.detail-link:hover { text-decoration: underline; }

.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;
}

.business-hero {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero {
    text-align: center;
    margin-bottom: 24px;
}

.about-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--bh-green), #2D6A4F);
    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(280px, 82vw);
    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;
    }

    /* ── Page hero banner ── */
    .desktop-hero {
        background: linear-gradient(135deg, var(--bh-green-dark) 0%, #2D6A4F 60%, #40916C 100%);
        border-radius: 20px;
        padding: 36px 40px;
        margin-bottom: 32px;
        color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        box-shadow: 0 4px 24px rgba(27,67,50,0.18);
        position: relative;
        overflow: hidden;
        margin-top: 4px;
    }

    .desktop-hero::after {
        content: "";
        position: absolute;
        right: -60px;
        top: -60px;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: rgba(255,255,255,0.06);
        pointer-events: none;
    }

    .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.75);
        margin-top: 6px;
    }

    /* ── Two-column grid for Today ── */
    .desktop-grid {
        display: grid;
        grid-template-columns: 1fr 360px;
        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;
    }

    /* ── Cards ── */
    .card {
        border-radius: 18px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        transition: box-shadow 0.15s;
    }

    /* ── 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;
    }

    /* ── 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-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: 12px 16px;
        text-decoration: none;
        color: var(--bh-text);
        border-bottom: 1px solid var(--bh-border);
        font-size: 0.9375rem;
        font-weight: 500;
        transition: background 0.12s;
    }

    .desktop-quick-link:hover { background: var(--bh-page-bg); }

    .desktop-quick-link-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    /* ── 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: auto;
}

.admin-businesses-table .mud-table-root {
    min-width: 920px;
}

.admin-businesses-table thead .mud-table-cell:last-child,
.admin-businesses-table tbody .mud-table-cell:last-child {
    position: sticky;
    right: 0;
    z-index: 5;
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    padding-left: 4px !important;
    padding-right: 8px !important;
    white-space: nowrap;
    overflow: hidden;
    /* Must be opaque — Mud hover tokens are often translucent overlays. */
    background-color: #ffffff !important;
    box-shadow: -12px 0 12px -10px rgba(0, 0, 0, 0.22);
}

.admin-businesses-table thead .mud-table-cell:last-child::before,
.admin-businesses-table tbody .mud-table-cell:last-child::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: #ffffff;
}

.admin-businesses-table tbody tr:hover .mud-table-cell:last-child,
.admin-businesses-table tbody tr:hover .mud-table-cell:last-child::before {
    background-color: #eeeeee !important;
}

.admin-businesses-table .mud-table-cell:nth-last-child(2) {
    overflow: hidden;
    padding-right: 16px;
}

.admin-businesses-table .mud-table-cell:nth-last-child(2) .mud-chip {
    position: relative;
    z-index: 0;
}

.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) {
    .admin-layout {
        display: grid;
        grid-template-columns: 220px 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;
    }
}
