/* ============================================
   Mission Bear Hug - Outdoor Theme
   ============================================ */

:root {
    /* Primary Colors */
    --mbh-primary: #2F3E37;
    --mbh-primary-dark: #253029;
    --mbh-primary-light: #3A4A42;

    /* Accent Colors */
    --mbh-accent: #D98C3F;
    --mbh-accent-dark: #C47A2D;
    --mbh-accent-light: #E5A55A;
    --mbh-accent-tint: rgba(217, 140, 63, 0.15);

    /* Text Colors */
    --mbh-text-primary: #F5F5F5;
    --mbh-text-secondary: #E0E0E0;
    --mbh-text-muted: #B0B0B0;

    /* Surface Colors */
    --mbh-surface: #3A4A42;
    --mbh-surface-dark: #2F3E37;
    --mbh-surface-light: #4A5A52;

    /* Semantic Colors */
    --mbh-success: #4CAF50;
    --mbh-error: #F44336;
    --mbh-warning: #FF9800;
    --mbh-info: #2196F3;

    /* Fonts */
    --mbh-font-heading: 'Bebas Neue', Impact, sans-serif;
    --mbh-font-body: 'Montserrat', 'Roboto', 'Helvetica Neue', sans-serif;

    /* Type Scale */
    --mbh-h1-size: 2.5rem;
    --mbh-h2-size: 2rem;
    --mbh-h3-size: 1.75rem;
    --mbh-h4-size: 1.5rem;
    --mbh-h5-size: 1.25rem;
    --mbh-h6-size: 1rem;
    --mbh-body1: 1rem;
    --mbh-body2: 0.875rem;
    --mbh-caption: 0.75rem;
    --mbh-eyebrow: 0.75rem;
    --mbh-hero: 3.5rem;

    /* Spacing & Radii */
    --mbh-touch-target: 48px;
    --mbh-border-radius: 12px;
    --mbh-card-radius: 16px;

    /* Shadows */
    --mbh-shadow-card: 0 4px 12px rgba(0, 0, 0, 0.3);
    --mbh-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.3);
    --mbh-shadow-focus: 0 0 0 2px rgba(217, 140, 63, 0.2);

    /* Overlays */
    --mbh-hero-overlay: linear-gradient(to bottom, rgba(47, 62, 55, 0.4) 0%, rgba(47, 62, 55, 0.6) 50%, rgba(47, 62, 55, 0.8) 100%);
}

/* ---- Design System Typography Classes ---- */

.mbh-hero-title {
    font-family: var(--mbh-font-heading);
    font-size: var(--mbh-hero);
    letter-spacing: 0.08em;
    color: var(--mbh-text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.mbh-eyebrow {
    font-family: var(--mbh-font-body);
    font-size: var(--mbh-eyebrow);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mbh-text-muted);
}

.mbh-brand {
    font-family: var(--mbh-font-heading);
    letter-spacing: 0.1em;
    color: var(--mbh-text-primary);
}

.mbh-value {
    font-family: var(--mbh-font-heading);
    color: var(--mbh-accent);
    line-height: 1;
}

.mbh-button-label {
    font-family: var(--mbh-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

html, body {
    font-family: var(--mbh-font-body);
    background-color: var(--mbh-primary);
    color: var(--mbh-text-primary);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ============================================
   Bear paw brand loader
   ============================================ */
.mbh-loader {
    display: inline-block;
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

.mbh-loader--sm { width: 16px; height: 16px; }
.mbh-loader--md { width: 32px; height: 32px; }
.mbh-loader--lg { width: 72px; height: 72px; }
.mbh-loader--xl { width: 160px; height: 160px; }

/* Blazor boot splash — fills viewport, centers the bear paw and label */
.mbh-boot {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: linear-gradient(180deg, #1a221e 0%, #253029 100%);
    color: var(--mbh-text-primary);
    font-family: var(--mbh-font-body);
}

.mbh-boot::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(217, 140, 63, 0.12), transparent 60%);
    pointer-events: none;
}

.mbh-boot__title {
    font-family: var(--mbh-font-heading);
    font-size: 28px;
    letter-spacing: 0.08em;
    margin: 0;
    z-index: 1;
}

.mbh-boot__title span { color: var(--mbh-accent); }

.mbh-boot__hint {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--mbh-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.mbh-boot .mbh-loader { z-index: 1; }

.mbh-boot__percent {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--mbh-accent);
    font-weight: 700;
    z-index: 1;
}

.mbh-boot__percent::after {
    content: var(--blazor-load-percentage-text, "");
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ============================================
   Buttons
   ============================================ */

/* Text button styling for dark theme */
.mud-button-text {
    color: var(--mbh-text-primary) !important;
}

.mud-button-text.mud-button-text-primary {
    color: var(--mbh-accent) !important;
}

.mud-button-text.mud-button-text-secondary {
    color: var(--mbh-text-primary) !important;
}

.mud-button-text.mud-button-text-default {
    color: var(--mbh-text-primary) !important;
}

/* Primary CTA button (orange) */
.mbh-btn-primary {
    background-color: var(--mbh-accent) !important;
    color: white !important;
    min-height: var(--mbh-touch-target);
    border-radius: var(--mbh-border-radius) !important;
    font-family: var(--mbh-font-body);
    font-weight: 600;
    padding: 12px 24px !important;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.mbh-btn-primary:hover {
    background-color: var(--mbh-accent-dark) !important;
    transform: translateY(-1px);
}

.mbh-btn-primary:active {
    transform: translateY(0);
}

/* Secondary CTA (text link style) */
.mbh-btn-secondary {
    color: var(--mbh-accent) !important;
    background: transparent !important;
    min-height: var(--mbh-touch-target);
    font-weight: 600;
}

.mbh-btn-secondary:hover {
    color: var(--mbh-accent-light) !important;
    background: rgba(217, 140, 63, 0.1) !important;
}

/* Icon button styling for dark theme */
.mud-icon-button {
    color: var(--mbh-text-primary) !important;
}

/* Ensure text buttons are visible on dark background */
.mud-button {
    color: inherit;
}

.mud-button.mud-button-outlined {
    color: var(--mbh-text-primary) !important;
}

/* Legacy orange action buttons */
.mud-button-action {
    background-color: var(--mbh-accent) !important;
    color: white !important;
}

.mud-button-action:hover {
    background-color: var(--mbh-accent-dark) !important;
}

/* ============================================
   Cards
   ============================================ */

.mbh-card {
    background-color: var(--mbh-surface) !important;
    border-radius: var(--mbh-card-radius) !important;
    padding: 16px 20px;
    min-height: var(--mbh-touch-target);
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.mbh-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Typography
   ============================================ */

.mbh-heading {
    font-family: var(--mbh-font-heading);
    letter-spacing: 0.05em;
    color: var(--mbh-text-primary);
}

.mbh-title-large {
    font-family: var(--mbh-font-heading);
    font-size: 2.5rem;
    letter-spacing: 0.05em;
}

.mbh-subtitle {
    font-family: var(--mbh-font-body);
    color: var(--mbh-text-secondary);
    font-weight: 300;
}

/* ============================================
   Layout - Mobile First
   ============================================ */

/* Mobile-first responsive utilities */
@media (max-width: 600px) {
    .mud-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .mbh-title-large {
        font-size: 1.75rem;
    }
}

@media (min-width: 768px) {
    .mbh-title-large {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .mbh-title-large {
        font-size: 3rem;
    }
}

/* Page container — replaces my-4 so we own the vertical margins without fighting Bootstrap !important */
.mbh-page-container {
    margin-top: 24px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .mbh-page-container {
        margin-top: 8px;
        margin-bottom: 8px;
    }
}

/* Add padding at bottom for fixed bottom navigation (handled by media queries below) */

/* No padding for landing page */
.mud-main-content.no-padding {
    padding: 0;
}

.mud-main-content.no-padding .mud-container {
    padding: 0;
    max-width: none;
}

/* ============================================
   MudBlazor Overrides for Dark Theme
   ============================================ */

/* Override Primary color to use orange (accent) instead of green */
.mud-button.mud-button-filled.mud-button-filled-primary {
    background-color: var(--mbh-accent) !important;
    color: white !important;
}

.mud-button.mud-button-filled.mud-button-filled-primary:hover {
    background-color: var(--mbh-accent-dark) !important;
}

.mud-button.mud-button-outlined.mud-button-outlined-primary {
    border-color: var(--mbh-accent) !important;
    color: var(--mbh-accent) !important;
}

.mud-button.mud-button-outlined.mud-button-outlined-primary:hover {
    background-color: rgba(217, 140, 63, 0.15) !important;
}

.mud-button-text.mud-button-text-primary {
    color: var(--mbh-accent) !important;
}

.mud-icon-button.mud-icon-button-color-primary {
    color: var(--mbh-accent) !important;
}

/* Override icon button Primary color */
.mud-icon-button.mud-icon-button-color-primary:hover {
    background-color: rgba(217, 140, 63, 0.15) !important;
}

/* Override text Primary color */
.mud-typography.mud-text-primary {
    color: var(--mbh-accent) !important;
}

/* Override Success color to use orange instead of green */
.mud-button.mud-button-filled.mud-button-filled-success {
    background-color: var(--mbh-accent) !important;
    color: white !important;
}

.mud-button.mud-button-filled.mud-button-filled-success:hover {
    background-color: var(--mbh-accent-dark) !important;
}

.mud-button.mud-button-outlined.mud-button-outlined-success {
    border-color: var(--mbh-accent) !important;
    color: var(--mbh-accent) !important;
}

.mud-button.mud-button-outlined.mud-button-outlined-success:hover {
    background-color: rgba(217, 140, 63, 0.15) !important;
}

.mud-icon-button.mud-icon-button-color-success {
    color: var(--mbh-accent) !important;
}

.mud-icon-button.mud-icon-button-color-success:hover {
    background-color: rgba(217, 140, 63, 0.15) !important;
}

/* Success chips should be green, not orange */
.mud-chip.mud-chip-color-success {
    background-color: #4caf50 !important;  /* Green color */
    color: white !important;
}

/* Override Default color to use light text for visibility */
.mud-icon-button.mud-icon-button-color-default {
    color: var(--mbh-text-primary) !important;
}

.mud-button.mud-button-text.mud-button-text-default {
    color: var(--mbh-text-primary) !important;
}

.mud-chip.mud-chip-color-default {
    background-color: var(--mbh-surface-light) !important;
    color: var(--mbh-text-primary) !important;
}

/* Override MudIcon Success color to orange */
.mud-icon.mud-icon-color-success {
    color: var(--mbh-accent) !important;
}

/* Override disabled button colors - ensure they're visible, not green */
.mud-button:disabled,
.mud-icon-button:disabled {
    color: var(--mbh-text-muted) !important;
    opacity: 0.6;
}

.mud-button.mud-button-filled:disabled {
    background-color: var(--mbh-surface-light) !important;
    color: var(--mbh-text-muted) !important;
}

.mud-error-text:disabled {
    color: var(--mbh-text-muted) !important;
}

.mud-icon-button.mud-error-text:disabled {
    color: var(--mbh-text-muted) !important;
}

.mud-paper {
    background-color: var(--mbh-surface) !important;
    color: var(--mbh-text-primary) !important;
}

.mud-table {
    background-color: var(--mbh-surface) !important;
}

.mud-table-cell {
    border-bottom-color: var(--mbh-surface-light) !important;
}

.mud-input-control .mud-input-slot {
    color: var(--mbh-text-primary) !important;
}

.mud-input-label {
    color: var(--mbh-text-secondary) !important;
}

/* Dialog styling */
.mud-dialog {
    background-color: var(--mbh-surface) !important;
}

.mud-dialog .mud-dialog-title {
    color: var(--mbh-text-primary) !important;
}

/* Alert styling */
.mud-alert {
    background-color: var(--mbh-surface-light) !important;
}

/* Expansion panel styling */
.mud-expand-panel {
    background-color: var(--mbh-surface) !important;
}

.mud-expand-panel-header {
    background-color: var(--mbh-surface) !important;
}

/* Outlined button styling for dark theme */
.mud-button-outlined {
    border-color: var(--mbh-accent) !important;
    color: var(--mbh-accent) !important;
}

.mud-button-outlined:hover {
    background-color: rgba(217, 140, 63, 0.15) !important;
}

.mud-button-outlined.mud-button-outlined-primary {
    border-color: var(--mbh-accent) !important;
    color: var(--mbh-accent) !important;
}

.mud-button-outlined.mud-button-outlined-secondary {
    border-color: var(--mbh-text-secondary) !important;
    color: var(--mbh-text-secondary) !important;
}

.mud-button-outlined.mud-button-outlined-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Chip styling */
.mud-chip {
    background-color: var(--mbh-surface-light) !important;
    color: var(--mbh-text-primary) !important;
}

/* Selected chips should be orange */
.mud-chip.mud-chip-selected,
.mud-chip.mud-chip-selected.mud-chip-color-primary {
    background-color: var(--mbh-accent) !important;
    color: white !important;
}

/* Non-selected chips with primary color should NOT be orange */
.mud-chip.mud-chip-color-primary:not(.mud-chip-selected) {
    background-color: var(--mbh-surface-light) !important;
    color: var(--mbh-text-primary) !important;
}

/* ============================================
   Mobile Header
   ============================================ */

.mobile-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 8px;
    background-color: var(--mbh-primary);
    border-bottom: 1px solid var(--mbh-surface-light);
}

.mobile-header-burger {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--mbh-touch-target);
    height: var(--mbh-touch-target);
    background: transparent;
    border: none;
    color: var(--mbh-text-primary);
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-header-burger:hover {
    background-color: var(--mbh-surface);
}

.mobile-header-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.mobile-header-brand {
    font-family: var(--mbh-font-heading);
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--mbh-text-primary);
}

.mobile-header-subtitle {
    font-family: var(--mbh-font-body);
    font-size: 0.75rem;
    color: var(--mbh-text-muted);
    font-weight: 300;
}

.mobile-header-spacer {
    flex-shrink: 0;
    width: var(--mbh-touch-target);
    height: var(--mbh-touch-target);
}

/* Crew chat unread badge — on burger button (position: absolute relative to burger) */
.crew-badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #E53935;
    border: 2px solid var(--mbh-primary);
    pointer-events: none;
    animation: crew-badge-pulse 2s ease-in-out infinite;
}

/* Unread dot inside nav overlay Hold Chat link */
.nav-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #E53935;
    flex-shrink: 0;
    margin-left: auto;
    animation: crew-badge-pulse 2s ease-in-out infinite;
}

@keyframes crew-badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.75; transform: scale(0.88); }
}

/* Dagbog composer recording indicator */
.mbh-recording-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #E53935;
    flex-shrink: 0;
    animation: crew-badge-pulse 1.2s ease-in-out infinite;
}

/* Header countdown (mobile) */
.header-countdown {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.header-countdown-text {
    font-family: var(--mbh-font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mbh-accent);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ============================================
   Mobile Navigation Overlay
   ============================================ */

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background-color: var(--mbh-primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.visible .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--mbh-surface-light);
}

.mobile-nav-title {
    font-family: var(--mbh-font-heading);
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--mbh-text-primary);
}

.mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--mbh-touch-target);
    height: var(--mbh-touch-target);
    background: transparent;
    border: none;
    color: var(--mbh-text-primary);
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-nav-close:hover {
    background-color: var(--mbh-surface);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    flex: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    color: var(--mbh-text-primary);
    text-decoration: none;
    font-family: var(--mbh-font-body);
    font-size: 1rem;
    font-weight: 500;
    min-height: var(--mbh-touch-target);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: var(--mbh-surface);
    color: var(--mbh-accent);
}

.mobile-nav-link .nav-icon {
    color: var(--mbh-accent);
}

.mobile-nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    margin-top: auto;
    border-top: 1px solid var(--mbh-surface-light);
    color: var(--mbh-text-secondary);
    font-family: var(--mbh-font-body);
    font-size: 0.875rem;
}

.mobile-nav-user .nav-icon {
    color: var(--mbh-text-muted);
}

/* ============================================
   Desktop Header
   ============================================ */

.desktop-header {
    display: none;
}

.desktop-header-container {
    background-color: var(--mbh-primary);
    border-bottom: 1px solid var(--mbh-surface-light);
}

.desktop-header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.desktop-header-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    text-align: center;
}

.desktop-header-title {
    font-family: var(--mbh-font-heading);
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--mbh-text-primary);
}

.desktop-header-subtitle {
    font-family: var(--mbh-font-body);
    font-size: 0.875rem;
    color: var(--mbh-text-muted);
    font-weight: 300;
}

.desktop-header-countdown {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.desktop-header-countdown-text {
    font-family: var(--mbh-font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mbh-accent);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.desktop-header-actions {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.desktop-user-name {
    font-family: var(--mbh-font-body);
    font-size: 0.875rem;
    color: var(--mbh-text-secondary);
}

.desktop-login-btn,
.desktop-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-family: var(--mbh-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mbh-text-primary);
    background: transparent;
    border: 1px solid var(--mbh-surface-light);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.desktop-login-btn:hover,
.desktop-logout-btn:hover {
    background-color: var(--mbh-surface);
    border-color: var(--mbh-accent);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--mbh-primary-dark);
}

.desktop-nav-link {
    position: relative;
    padding: 12px 20px;
    font-family: var(--mbh-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mbh-text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.desktop-nav-link:hover {
    color: var(--mbh-accent);
}

.desktop-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--mbh-accent);
    transition: width 0.2s ease;
}

.desktop-nav-link:hover::after,
.desktop-nav-link.active::after {
    width: 80%;
}

.desktop-nav-link.active {
    color: var(--mbh-accent);
}

/* Show desktop header on larger screens */
@media (min-width: 769px) {
    .desktop-header {
        display: block;
    }

    .mobile-header {
        display: none;
    }
}

/* Hide mobile header on desktop */
@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }
}

/* Hide bottom app bar on desktop */
@media (min-width: 769px) {
    .mud-appbar-fixed-bottom {
        display: none !important;
    }
}

/* On mobile the sticky header is in normal flow so MudBlazor's default
   padding-top (64px from --mud-appbar-height) doubles up with it. Zero it out. */
@media (max-width: 768px) {
    .mud-main-content {
        padding-top: 0 !important;
        padding-bottom: 56px !important;
    }
}

@media (min-width: 769px) {
    .mud-main-content {
        padding-top: 32px !important;
        padding-bottom: 0 !important;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(47, 62, 55, 0.4) 0%,
        rgba(47, 62, 55, 0.6) 50%,
        rgba(47, 62, 55, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    max-width: 600px;
}

.hero-title {
    font-family: var(--mbh-font-heading);
    font-size: 2.5rem;
    letter-spacing: 0.08em;
    color: var(--mbh-text-primary);
    margin: 0 0 12px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-family: var(--mbh-font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--mbh-text-secondary);
    margin: 0 0 32px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1rem;
    padding: 14px 32px !important;
}

.hero-cta-icon {
    transition: transform 0.2s ease;
}

.hero-cta:hover .hero-cta-icon {
    transform: translateX(4px);
}

/* Home page layout - remove container padding for hero */
.home-page {
    margin: -16px;
    margin-bottom: 0;
}

/* ============================================
   Landing Page — Design System Redesign
   ============================================ */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 72vh;
    min-height: 72dvh;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    inset: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(47, 62, 55, 0.3) 0%,
        rgba(47, 62, 55, 0.5) 50%,
        rgba(47, 62, 55, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 72vh;
    min-height: 72dvh;
    padding: 0 24px 32px;
}

.hero-eyebrow {
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--mbh-accent);
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-headline {
    font-family: var(--mbh-font-heading);
    font-size: clamp(3rem, 10vw, 8rem);
    letter-spacing: 0.02em;
    line-height: 0.95;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    color: var(--mbh-text-primary);
}

.hero-headline-accent {
    color: var(--mbh-accent);
}

.hero-subtext {
    font-size: 14px;
    max-width: 640px;
    margin-top: 14px;
    line-height: 1.5;
    color: var(--mbh-text-secondary);
}

.hero-actions {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-btn-primary {
    background: var(--mbh-accent) !important;
    color: var(--mbh-primary-dark) !important;
    border-radius: 12px !important;
    padding: 12px 22px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.hero-btn-secondary {
    background: transparent !important;
    color: var(--mbh-text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    padding: 12px 22px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

.hero-scroll-indicator {
    display: none;
}

/* Stat Band */
.stat-band {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-band-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 24px;
    gap: 16px;
}

.stat-item {}

.stat-value {
    font-family: var(--mbh-font-heading);
    font-size: 36px;
    color: var(--mbh-accent);
    letter-spacing: 0.02em;
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--mbh-text-primary);
    margin-top: 6px;
    font-weight: 600;
}

.stat-sublabel {
    font-size: 12px;
    color: var(--mbh-text-muted);
    margin-top: 4px;
}

/* How It Works Section */
.how-section {
    padding: 48px 24px;
}

.how-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.how-eyebrow {
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--mbh-accent);
    font-weight: 700;
    margin-bottom: 12px;
}

.how-headline {
    font-family: var(--mbh-font-heading);
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: 0.03em;
    margin: 0 0 32px;
    line-height: 0.95;
    color: var(--mbh-text-primary);
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.how-step {
    border-top: 1px solid rgba(217, 140, 63, 0.4);
    padding-top: 20px;
    padding-bottom: 24px;
}

.how-step-num {
    font-family: var(--mbh-font-heading);
    font-size: 28px;
    color: var(--mbh-accent);
    letter-spacing: 0.05em;
}

.how-step-title {
    font-family: var(--mbh-font-heading);
    font-size: 24px;
    letter-spacing: 0.04em;
    margin-top: 6px;
    color: var(--mbh-text-primary);
}

.how-step-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--mbh-text-secondary);
    margin-top: 10px;
}

/* Gear Calculator Preview */
.calc-preview-section {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--mbh-primary-dark);
}

.calc-preview-text {
    padding: 32px 24px;
}

.calc-preview-eyebrow {
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--mbh-accent);
    font-weight: 700;
}

.calc-preview-headline {
    font-family: var(--mbh-font-heading);
    font-size: clamp(1.75rem, 4.2vw, 2.75rem);
    letter-spacing: 0.03em;
    margin: 8px 0 14px;
    line-height: 1;
    color: var(--mbh-text-primary);
}

.calc-preview-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--mbh-text-secondary);
}

.calc-preview-btn {
    margin-top: 20px !important;
    color: var(--mbh-accent) !important;
    border-color: var(--mbh-accent) !important;
    border-radius: 12px !important;
    padding: 14px 28px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.calc-preview-card-wrapper {
    background: var(--mbh-surface);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-preview-card {
    background: var(--mbh-primary);
    border-radius: var(--mbh-card-radius);
    padding: 18px;
    box-shadow: var(--mbh-shadow-card);
    width: 100%;
    max-width: 440px;
}

.calc-card-label {
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--mbh-text-muted);
    font-weight: 600;
}

.calc-card-value-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
}

.calc-card-value {
    font-family: var(--mbh-font-heading);
    font-size: 44px;
    color: var(--mbh-accent);
    letter-spacing: 0.02em;
    line-height: 1;
}

.calc-card-unit {
    font-family: var(--mbh-font-heading);
    font-size: 18px;
    color: var(--mbh-text-primary);
    letter-spacing: 0.04em;
}

.calc-card-change {
    font-size: 10px;
    color: var(--mbh-success);
    margin-left: auto;
}

.calc-card-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin-top: 14px;
    overflow: hidden;
}

.calc-card-progress-fill {
    width: 62%;
    height: 100%;
    background: linear-gradient(to right, var(--mbh-accent), var(--mbh-accent-light));
}

.calc-card-scale {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--mbh-text-muted);
    margin-top: 6px;
}

.calc-card-items {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 8px;
}

.calc-card-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.calc-item-cat {
    color: var(--mbh-text-muted);
    width: 56px;
    display: inline-block;
}

.calc-item-name {
    color: var(--mbh-text-primary);
}

.calc-item-weight {
    font-family: 'ui-monospace', 'Menlo', monospace;
    color: var(--mbh-accent);
}

/* CTA Strip */
.cta-strip {
    background: var(--mbh-accent);
    color: var(--mbh-primary-dark);
    padding: 28px 24px;
}

.cta-strip-headline {
    font-family: var(--mbh-font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 0.02em;
    margin: 0 0 16px;
    line-height: 0.95;
    color: var(--mbh-primary-dark);
}

.cta-strip-btn {
    background: var(--mbh-primary-dark) !important;
    color: var(--mbh-text-primary) !important;
    border-radius: 12px !important;
    padding: 16px 28px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    width: 100%;
}

/* Landing Footer */
.landing-footer-redesign {
    background: #1a221e;
    padding: 28px 24px 20px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    grid-column: 1 / -1;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-paw {
    width: 22px;
    height: 22px;
}

.footer-brandname {
    font-family: var(--mbh-font-heading);
    font-size: 15px;
    letter-spacing: 0.14em;
    color: var(--mbh-text-primary);
}

.footer-tagline {
    font-size: 13px;
    color: var(--mbh-text-muted);
    line-height: 1.6;
    max-width: 320px;
    margin: 0;
}

.footer-links-group {}

.footer-links-label {
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--mbh-accent);
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-link {
    display: block;
    font-size: 12px;
    color: var(--mbh-text-secondary);
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--mbh-accent);
}

.footer-copyright {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    color: var(--mbh-text-muted);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Desktop Landing Page ---- */
@media (min-width: 769px) {
    .hero-content {
        padding: 0 80px 56px;
    }

    .hero-eyebrow {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .hero-subtext {
        font-size: 17px;
        margin-top: 20px;
    }

    .hero-actions {
        margin-top: 24px;
        flex-direction: row;
        gap: 14px;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 14px 28px !important;
        font-size: 13px !important;
    }

    .hero-scroll-indicator {
        display: flex;
        position: absolute;
        bottom: 24px;
        right: 80px;
        z-index: 2;
        align-items: center;
        gap: 12px;
        font-size: 11px;
        letter-spacing: 0.2em;
        color: rgba(245, 245, 245, 0.7);
    }

    .hero-scroll-line {
        width: 48px;
        height: 1px;
        background: var(--mbh-accent);
    }

    .stat-band-inner {
        grid-template-columns: repeat(4, 1fr);
        padding: 36px 80px;
    }

    .stat-value {
        font-size: 52px;
    }

    .stat-label {
        font-size: 11px;
        margin-top: 10px;
    }

    .how-section {
        padding: 120px 80px;
    }

    .how-eyebrow {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .how-headline {
        margin-bottom: 80px;
        max-width: 900px;
    }

    .how-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
    }

    .how-step {
        padding-top: 24px;
        padding-bottom: 0;
    }

    .how-step-num {
        font-size: 40px;
    }

    .how-step-title {
        font-size: 28px;
        margin-top: 12px;
    }

    .how-step-desc {
        font-size: 15px;
        margin-top: 16px;
    }

    .calc-preview-section {
        grid-template-columns: 1fr 1fr;
    }

    .calc-preview-text {
        padding: 56px 80px;
    }

    .calc-preview-eyebrow {
        font-size: 12px;
    }

    .calc-preview-desc {
        font-size: 15px;
        max-width: 440px;
    }

    .calc-preview-card-wrapper {
        padding: 32px;
    }

    .calc-preview-card {
        padding: 24px;
    }

    .calc-card-value {
        font-size: 60px;
    }

    .calc-card-unit {
        font-size: 24px;
    }

    .cta-strip {
        padding: 44px 80px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .cta-strip-headline {
        margin-bottom: 0;
        max-width: 700px;
    }

    .cta-strip-btn {
        width: auto !important;
        padding: 14px 28px !important;
        font-size: 13px !important;
    }

    .landing-footer-redesign {
        padding: 36px 80px 28px;
    }

    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1;
    }

    .footer-brand-row {
        margin-bottom: 16px;
    }

    .footer-paw {
        width: 28px;
        height: 28px;
    }

    .footer-brandname {
        font-size: 18px;
    }
}

/* Countdown section */
.landing-countdown {
    background-color: var(--mbh-surface);
    padding: 32px 20px;
    text-align: center;
}

.countdown-title {
    font-family: var(--mbh-font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--mbh-text-primary);
    margin: 0 0 20px 0;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-value {
    font-family: var(--mbh-font-heading);
    font-size: 2.5rem;
    color: var(--mbh-accent);
    line-height: 1;
}

.countdown-label {
    font-family: var(--mbh-font-body);
    font-size: 0.7rem;
    color: var(--mbh-text-muted);
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.countdown-separator {
    font-family: var(--mbh-font-heading);
    font-size: 2rem;
    color: var(--mbh-text-muted);
    margin-bottom: 16px;
}

.countdown-date {
    font-family: var(--mbh-font-body);
    font-size: 0.9rem;
    color: var(--mbh-text-secondary);
    margin: 20px 0 0 0;
}

/* Desktop countdown */
@media (min-width: 768px) {
    .landing-countdown {
        padding: 40px 40px;
    }

    .countdown-title {
        font-size: 1.75rem;
    }

    .countdown-value {
        font-size: 3.5rem;
    }

    .countdown-item {
        min-width: 80px;
    }

    .countdown-separator {
        font-size: 2.5rem;
        margin: 0 8px;
        margin-bottom: 20px;
    }

    .countdown-label {
        font-size: 0.8rem;
    }
}

/* Features section */
.landing-features {
    background-color: var(--mbh-primary);
    padding: 40px;
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.landing-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 20px;
    transition: transform 0.2s ease;
}

.landing-feature:hover {
    transform: translateY(-4px);
}

.landing-feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--mbh-text-secondary);
}

.landing-feature-title {
    font-family: var(--mbh-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--mbh-text-primary);
    margin: 0 0 12px 0;
}

.landing-feature-location {
    font-family: var(--mbh-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mbh-text-primary);
    margin: 0 0 8px 0;
}

.landing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--mbh-font-body);
    font-size: 0.8rem;
    color: var(--mbh-text-secondary);
    line-height: 1.8;
}

.landing-feature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Landing footer */
.landing-footer {
    background-color: var(--mbh-primary-dark);
    padding: 20px;
    text-align: center;
    font-family: var(--mbh-font-body);
    font-size: 0.75rem;
    color: var(--mbh-text-muted);
}

.landing-footer p {
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .landing-header {
        padding: 16px 20px 0 20px;
    }

    .landing-title {
        font-size: 1.5rem;
    }

    .landing-nav {
        display: none !important; /* Hide landing nav on mobile */
    }

    /* Utility class for mobile-only elements */
    .hide-on-mobile {
        display: none !important;
    }

    .landing-nav-link {
        padding: 8px 12px;
        font-size: 0.7rem;
    }

    .landing-features {
        padding: 24px 20px;
    }

    .landing-features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .landing-feature {
        flex-direction: row;
        text-align: left;
        gap: 16px;
        padding: 16px;
        background-color: var(--mbh-surface);
        border-radius: var(--mbh-card-radius);
    }

    .landing-feature-icon {
        margin-bottom: 0;
    }

    .landing-feature-content {
        align-items: flex-start;
    }
}

/* Desktop responsive - hide mobile-only elements */
@media (min-width: 769px) {
    .show-only-mobile {
        display: none !important;
    }
}

/* ============================================
   Feature Cards
   ============================================ */

.feature-cards-section {
    padding: 40px 20px;
    background-color: var(--mbh-primary);
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .feature-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .feature-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .feature-cards-section {
        padding: 60px 40px;
    }
}

/* Individual Feature Card */
.feature-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px !important;
}

.feature-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(217, 140, 63, 0.15);
    color: var(--mbh-accent);
}

.feature-card-content {
    flex: 1;
}

.feature-card-title {
    font-family: var(--mbh-font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mbh-text-primary);
    margin: 0 0 8px 0;
}

.feature-card-description {
    font-family: var(--mbh-font-body);
    font-size: 0.9rem;
    color: var(--mbh-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.feature-card-list {
    margin: 0;
    padding: 0 0 0 20px;
    font-family: var(--mbh-font-body);
    font-size: 0.9rem;
    color: var(--mbh-text-secondary);
    line-height: 1.6;
}

.feature-card-list li {
    margin-bottom: 4px;
}

.feature-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    padding: 8px 0 !important;
    font-size: 0.9rem;
    text-decoration: none;
}

.feature-card-cta:hover {
    text-decoration: none;
}

/* Desktop hover effect */
@media (min-width: 769px) {
    .feature-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
}

/* ============================================
   Footer
   ============================================ */

.app-footer {
    background-color: var(--mbh-primary-dark);
    border-top: 1px solid var(--mbh-surface-light);
    padding: 24px 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright {
    font-family: var(--mbh-font-body);
    font-size: 0.875rem;
    color: var(--mbh-text-muted);
    margin: 0;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--mbh-surface);
    color: var(--mbh-text-secondary);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
    background-color: var(--mbh-accent);
    color: white;
}

.footer-social-icon {
    width: 20px;
    height: 20px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   Calculator Mobile Layout
   ============================================ */

/* Mobile: Show 3-line layout, hide desktop columns */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    /* Remove all padding on mobile table cells */
    .gear-table .mud-table-cell {
        padding: 0 !important;
    }

    .mobile-gear-item {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
        width: 100%;
    }

    /* Line 1: Name (left aligned) */
    .mobile-gear-name {
        font-family: var(--mbh-font-body);
        font-size: 1rem;
        font-weight: 600;
        color: var(--mbh-text-primary);
        text-align: left;
    }

    /* Line 2: Quantity x weight (left) - Total (right) */
    .mobile-gear-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-family: var(--mbh-font-body);
        font-size: 0.875rem;
        color: var(--mbh-text-secondary);
    }

    /* Line 3: Action buttons (right aligned) */
    .mobile-gear-actions {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
    }
}

/* Desktop: Hide mobile layout, show table columns */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }

    .mobile-gear-item {
        display: none !important;
    }

    .desktop-only {
        display: table-cell !important;
    }

    /* Desktop: Show all 3 action buttons on same line */
    .sublist-action-buttons {
        flex-direction: row !important;
    }
}

/* ============================================
   Landing Page CTA Section
   ============================================ */

.landing-cta {
    background-color: var(--mbh-surface);
    padding: 40px 20px;
    text-align: center;
}

.landing-cta-title {
    font-family: var(--mbh-font-heading);
    font-size: 1.75rem;
    letter-spacing: 0.05em;
    color: var(--mbh-text-primary);
    margin: 0 0 12px 0;
}

.landing-cta-text {
    font-family: var(--mbh-font-body);
    font-size: 1rem;
    color: var(--mbh-text-secondary);
    margin: 0 0 24px 0;
}

.landing-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

@media (min-width: 480px) {
    .landing-cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ============================================
   Dashboard Page
   ============================================ */

.dashboard-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    gap: 16px;
    color: var(--mbh-text-secondary);
}

.no-trip-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    padding: 40px 20px;
}

.no-trip-icon {
    color: var(--mbh-accent);
    font-size: 4rem !important;
    margin-bottom: 16px;
}

.no-trip-selected h2 {
    font-family: var(--mbh-font-heading);
    font-size: 1.75rem;
    color: var(--mbh-text-primary);
    margin: 0 0 8px 0;
}

.no-trip-selected p {
    font-family: var(--mbh-font-body);
    font-size: 1rem;
    color: var(--mbh-text-secondary);
    margin: 0 0 24px 0;
}

.no-trip-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 480px) {
    .no-trip-actions {
        flex-direction: row;
    }
}

/* Dashboard layout */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Dashboard hero */
.dashboard-hero {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: var(--mbh-card-radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--mbh-surface) 0%, var(--mbh-primary-dark) 100%);
}

.dashboard-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dashboard-hero-default {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mbh-surface) 0%, var(--mbh-primary-dark) 100%);
    color: var(--mbh-accent);
}

.dashboard-hero-default .mud-icon-root {
    font-size: 4rem !important;
}

.dashboard-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.dashboard-trip-name {
    font-family: var(--mbh-font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: white;
    margin: 0 0 4px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.dashboard-trip-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--mbh-font-body);
    font-size: 0.875rem;
    color: var(--mbh-text-secondary);
    margin: 0;
}

/* Dashboard countdown */
.dashboard-countdown {
    background-color: var(--mbh-surface);
    border-radius: var(--mbh-card-radius);
    padding: 24px;
}

.dashboard-countdown .countdown-timer-component {
    text-align: center;
}

/* Dashboard features grid */
.dashboard-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .dashboard-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dashboard-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background-color: var(--mbh-surface);
    border-radius: var(--mbh-card-radius);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dashboard-feature-icon {
    color: var(--mbh-accent);
    margin-bottom: 12px;
}

.dashboard-feature-title {
    font-family: var(--mbh-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--mbh-text-muted);
    margin: 0 0 8px 0;
}

.dashboard-feature-value {
    font-family: var(--mbh-font-heading);
    font-size: 1.5rem;
    color: var(--mbh-text-primary);
    margin: 0;
}

.dashboard-feature-text {
    font-family: var(--mbh-font-body);
    font-size: 0.875rem;
    color: var(--mbh-text-secondary);
    margin: 4px 0 0 0;
}

/* Dashboard actions */
.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.dashboard-actions .mud-button {
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 180px;
}

@media (max-width: 480px) {
    .dashboard-actions {
        flex-direction: column;
    }

    .dashboard-actions .mud-button {
        max-width: none;
    }
}

/* Responsive hero height */
@media (min-width: 768px) {
    .dashboard-hero {
        height: 280px;
    }

    .dashboard-trip-name {
        font-size: 2rem;
    }
}

/* ============================================
   MyTrips Page
   ============================================ */

.my-trips-page {
    padding: 16px 0;
}

.my-trips-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.my-trips-header h1 {
    font-family: var(--mbh-font-heading);
    font-size: 2rem;
    letter-spacing: 0.05em;
    color: var(--mbh-text-primary);
    margin: 0;
}

.my-trips-filters {
    margin-bottom: 24px;
}

.my-trips-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    gap: 16px;
}

.my-trips-loading p {
    color: var(--mbh-text-secondary);
    margin: 0;
}

/* No trips state */
.no-trips,
.no-trips-filtered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    background-color: var(--mbh-surface);
    border-radius: var(--mbh-card-radius);
}

.no-trips-icon {
    color: var(--mbh-accent);
    margin-bottom: 16px;
}

.no-trips h2,
.no-trips-filtered h2 {
    font-family: var(--mbh-font-heading);
    font-size: 1.5rem;
    color: var(--mbh-text-primary);
    margin: 0 0 8px 0;
}

.no-trips p,
.no-trips-filtered p {
    color: var(--mbh-text-secondary);
    margin: 0 0 24px 0;
    max-width: 300px;
}

/* Trip groups */
.trip-group {
    margin-bottom: 32px;
}

.trip-group-header {
    font-family: var(--mbh-font-heading);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--mbh-text-secondary);
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mbh-surface-light);
}

.trip-group-cards {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .trip-group-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .trip-group-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   TripCard Component
   ============================================ */

.trip-card {
    background-color: var(--mbh-surface) !important;
    border-radius: var(--mbh-card-radius) !important;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.trip-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px);
}

.trip-card.selected {
    border: 2px solid var(--mbh-accent);
    box-shadow: 0 0 0 2px rgba(217, 140, 63, 0.2);
}

.trip-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.trip-selected-star {
    flex-shrink: 0;
}

.trip-type-badge,
.trip-status-badge {
    font-size: 0.7rem !important;
    height: 24px !important;
}

.trip-card-name {
    font-family: var(--mbh-font-body);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--mbh-text-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.trip-dates,
.trip-location,
.trip-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--mbh-text-secondary);
    margin: 4px 0;
}

.trip-countdown {
    color: var(--mbh-accent);
    font-weight: 500;
}

.trip-card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.trip-card-actions .active-chip {
    font-size: 0.7rem !important;
}

/* ============================================
   TripSelector Dropdown
   ============================================ */

.trip-selector {
    display: inline-flex;
    align-items: center;
}

.trip-selector-button {
    text-transform: none !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
}

.trip-selector-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trip-selector-days {
    font-size: 0.75rem;
    color: var(--mbh-text-muted);
    margin-left: 4px;
}

/* Desktop header trip selector integration */
.desktop-header-actions .trip-selector {
    margin-right: 16px;
}

@media (max-width: 768px) {
    .trip-selector-name {
        max-width: 100px;
    }
}

/* ============================================
   About Page - Markdown Content Styling
   ============================================ */
.about-content {
    line-height: 1.7;
}

.about-content h1,
.about-content h2,
.about-content h3,
.about-content h4,
.about-content h5,
.about-content h6 {
    font-family: var(--mbh-font-heading);
    color: var(--mbh-accent);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.about-content h1 { font-size: 2rem; }
.about-content h2 { font-size: 1.5rem; }
.about-content h3 { font-size: 1.25rem; }

.about-content p {
    margin-bottom: 1rem;
}

.about-content ul,
.about-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.about-content li {
    margin-bottom: 0.5rem;
}

.about-content blockquote {
    border-left: 4px solid var(--mbh-accent);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--mbh-text-secondary);
}

.about-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--mbh-border-radius);
    margin: 1rem 0;
}

.about-content a {
    color: var(--mbh-accent);
    text-decoration: underline;
}

.about-content a:hover {
    color: var(--mbh-accent-light);
}

/* ============================================
   Planning Page — Command Card Design
   ============================================ */

.planning-section-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 36px 0 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.planning-section-bar-left {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.planning-section-heading {
    font-family: var(--mbh-font-heading);
    font-size: 30px;
    letter-spacing: 0.05em;
    margin: 0;
    color: var(--mbh-text-primary);
}

.planning-section-count {
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--mbh-text-muted);
    font-weight: 600;
}

.planning-section-toolbar {
    display: flex;
    gap: 8px;
}

.planning-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-family: var(--mbh-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.planning-btn-primary {
    background: var(--mbh-accent);
    color: #1a221e;
}

.planning-btn-primary:hover {
    background: var(--mbh-accent-light);
}

.planning-btn-ghost {
    background: transparent;
    color: var(--mbh-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.planning-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.32);
}

/* Card container */
.planning-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual card */
.planning-card {
    background: var(--mbh-primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--mbh-card-radius);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.planning-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.planning-card-open {
    border-color: rgba(217, 140, 63, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.planning-card-overview {
    background: var(--mbh-accent-tint);
    border-color: rgba(217, 140, 63, 0.28);
}

.planning-card-overview .planning-card-title {
    font-size: 30px;
}

.planning-card:not(.planning-card-overview) {
    margin-left: 8px;
}

/* Card header */
.planning-card-head {
    display: grid;
    grid-template-columns: 48px 1fr auto auto auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
}

@media (min-width: 769px) {
    .planning-card-head {
        grid-template-columns: 56px 1fr auto auto auto;
        gap: 18px;
        padding: 18px 22px;
    }
}

/* Icon tile */
.planning-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(217, 140, 63, 0.14);
    color: var(--mbh-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

@media (min-width: 769px) {
    .planning-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
}

.planning-card-icon-active {
    background: var(--mbh-accent);
    color: #1a221e;
    transform: scale(1.06);
}

/* Title area */
.planning-card-title-wrap {
    min-width: 0;
}

.planning-card-title {
    font-family: var(--mbh-font-heading);
    font-size: 18px;
    letter-spacing: 0.035em;
    line-height: 1;
    margin: 0;
    color: var(--mbh-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 769px) {
    .planning-card-title {
        font-size: 22px;
    }

    .planning-card-overview .planning-card-title {
        font-size: 30px;
    }
}

.planning-card-desc {
    font-size: 12px;
    color: var(--mbh-text-muted);
    margin-top: 4px;
}

/* Tag chips — always visible */
.planning-card-tags {
    display: none;
    gap: 6px;
    align-items: center;
}

@media (min-width: 600px) {
    .planning-card-tags {
        display: flex;
    }
}

.planning-chip {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--mbh-text-muted);
    font-family: var(--mbh-font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.planning-chip-ov {
    background: var(--mbh-accent-tint);
    color: var(--mbh-accent);
}

/* Action buttons — hidden by default, shown on card hover/open */
.planning-card-ctrl {
    display: flex;
    gap: 2px;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.planning-card:hover .planning-card-ctrl,
.planning-card-open .planning-card-ctrl {
    opacity: 1;
    transform: none;
}

/* On touch devices, always show controls */
@media (hover: none) {
    .planning-card-ctrl {
        opacity: 1;
        transform: none;
    }
}

.planning-icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--mbh-text-muted);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    padding: 0;
}

.planning-icon-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--mbh-text-primary);
}

.planning-icon-btn-danger:hover {
    color: #E5533D;
    background: rgba(229, 83, 61, 0.12);
}

.planning-icon-btn[disabled],
.planning-icon-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.planning-icon-btn[disabled]:hover,
.planning-icon-btn:disabled:hover {
    background: transparent;
    color: var(--mbh-text-muted);
}

/* Chevron */
.planning-card-chev {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mbh-text-muted);
    transition: transform 0.3s ease, color 0.2s ease, background 0.2s ease;
}

.planning-card-chev-open {
    transform: rotate(180deg);
    color: var(--mbh-accent);
    background: rgba(217, 140, 63, 0.12);
}

/* Card body (expanded content) */
.planning-card-body {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.planning-card-body-inner {
    padding: 22px 24px 26px;
}

@media (min-width: 769px) {
    .planning-card-body-inner {
        padding: 22px 24px 26px 96px;
    }
}

/* Asset group inside card body */
.planning-asset-group {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.planning-asset-label {
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--mbh-text-muted);
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.planning-asset-count {
    background: rgba(217, 140, 63, 0.16);
    color: var(--mbh-accent);
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    font-size: 10px;
}

.planning-asset-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 6px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.planning-asset-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}

.planning-asset-ctrl {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.planning-asset-row:hover .planning-asset-ctrl {
    opacity: 1;
}

@media (hover: none) {
    .planning-asset-ctrl {
        opacity: 1;
    }
}

.planning-asset-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.planning-asset-icon-pdf {
    background: rgba(229, 83, 61, 0.15);
    color: #ff7a5f;
}

.planning-asset-icon-link {
    background: rgba(110, 168, 198, 0.2);
    color: #8FBBD6;
}

.planning-asset-info {
    flex: 1;
    min-width: 0;
}

.planning-asset-title,
.planning-asset-title-link {
    font-size: 13.5px;
    color: var(--mbh-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.planning-asset-title-link:hover {
    color: var(--mbh-accent);
}

.planning-asset-meta {
    font-size: 11px;
    color: var(--mbh-text-muted);
    margin-top: 2px;
}

.planning-asset-thumb {
    width: 56px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #1a221e;
    cursor: pointer;
}

/* ============================================
   Planning — Drag-and-Drop
   ============================================ */

.planning-card-dragging {
    opacity: 0.35;
    cursor: grabbing;
}

.planning-card-drag-over {
    border-color: var(--mbh-accent) !important;
    box-shadow: 0 0 0 2px var(--mbh-accent-tint);
}

.planning-drag-handle {
    cursor: grab;
    font-size: 18px;
    color: var(--mbh-text-muted);
    padding: 0;
    user-select: none;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.planning-card:hover .planning-drag-handle,
.planning-card-open .planning-drag-handle {
    opacity: 1;
}

@media (hover: none) {
    .planning-drag-handle { opacity: 1; }
}

/* Card head with drag handle: tighter padding and gap around the dots */
.planning-card-head-editable {
    grid-template-columns: 14px 48px 1fr auto auto auto;
    gap: 8px;
    padding-left: 10px;
}

@media (min-width: 769px) {
    .planning-card-head-editable {
        grid-template-columns: 14px 56px 1fr auto auto auto;
        gap: 10px;
        padding-left: 12px;
    }
}

/* ============================================
   Content Pattern: Section Bar (shared)
   ============================================ */

.mbh-section-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 12px 0 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.mbh-section-bar .title-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.mbh-section-bar .title-group h3 {
    font-family: var(--mbh-font-heading);
    font-size: 22px;
    letter-spacing: 0.05em;
    margin: 0;
    display: inline;
    color: var(--mbh-text-primary);
}

.mbh-section-bar .count {
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--mbh-text-muted);
    font-weight: 600;
}

/* ============================================
   Content Pattern: Row List (Pattern 02)
   ============================================ */

.mbh-row-list {
    background: var(--mbh-primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

.mbh-row {
    display: grid;
    grid-template-columns: 42px 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.15s ease;
}

.mbh-row:first-child {
    border-top: none;
}

.mbh-row:hover {
    background: rgba(255, 255, 255, 0.025);
}

.mbh-row-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mbh-row-icon.img {
    background: rgba(110, 132, 120, 0.22);
    color: #AEC3B7;
}

.mbh-row-icon.pdf {
    background: rgba(229, 83, 61, 0.15);
    color: #ff7a5f;
}

.mbh-row-icon.link {
    background: rgba(110, 168, 198, 0.2);
    color: #8FBBD6;
}

.mbh-row-icon.doc {
    background: rgba(224, 182, 74, 0.18);
    color: #E0B64A;
}

.mbh-row-icon.paw {
    background: rgba(217, 140, 63, 0.14);
    color: var(--mbh-accent);
}

.mbh-row-info {
    min-width: 0;
}

.mbh-row-title {
    font-size: 14px;
    color: var(--mbh-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mbh-row-title a {
    color: var(--mbh-text-primary);
    text-decoration: none;
}

.mbh-row-title a:hover {
    color: var(--mbh-accent);
}

.mbh-row-meta {
    font-size: 11.5px;
    color: var(--mbh-text-muted);
    margin-top: 3px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.mbh-row-meta .sep {
    opacity: 0.4;
}

.mbh-row-ctrl {
    display: flex;
    gap: 2px;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mbh-row:hover .mbh-row-ctrl {
    opacity: 1;
    transform: none;
}

@media (hover: none) {
    .mbh-row-ctrl {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Content Pattern: Media Grid (Pattern 03)
   ============================================ */

.mbh-media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 600px) {
    .mbh-media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .mbh-media-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mbh-tile {
    aspect-ratio: 1 / 1;
    background: var(--mbh-primary-dark);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.mbh-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 140, 63, 0.3);
}

.mbh-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mbh-tile-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 12px 12px 10px;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 34, 30, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mbh-tile:hover .mbh-tile-overlay {
    opacity: 1;
}

.mbh-tile-label {
    font-size: 11.5px;
    color: var(--mbh-text-primary);
    font-weight: 500;
}

.mbh-tile-meta {
    font-size: 10px;
    color: var(--mbh-text-muted);
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.mbh-tile-ctrl {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mbh-tile:hover .mbh-tile-ctrl {
    opacity: 1;
}

.mbh-tile-ctrl .planning-icon-btn {
    background: rgba(26, 34, 30, 0.75);
    backdrop-filter: blur(6px);
}

@media (hover: none) {
    .mbh-tile-overlay {
        opacity: 1;
    }

    .mbh-tile-ctrl {
        opacity: 1;
    }
}

/* ============================================
   Content Pattern: Note Grid (Pattern 01 variant)
   ============================================ */

.mbh-note-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.mbh-note-card {
    background: var(--mbh-primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
    position: relative;
}

.mbh-note-card:hover {
    border-color: rgba(217, 140, 63, 0.32);
    transform: translateY(-2px);
}

.mbh-note-card .note-tag {
    font-family: var(--mbh-font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--mbh-accent);
}

.mbh-note-card h4 {
    font-family: var(--mbh-font-heading);
    font-size: 20px;
    letter-spacing: 0.03em;
    margin: 6px 0 10px;
    line-height: 1.05;
    color: var(--mbh-text-primary);
}

.mbh-note-card .note-body {
    font-size: 12.5px;
    line-height: 1.55;
    color: #D4D4D4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mbh-note-card .note-foot {
    font-size: 11px;
    color: var(--mbh-text-muted);
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
}

.mbh-note-card .note-ctrl {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mbh-note-card:hover .note-ctrl {
    opacity: 1;
}

@media (hover: none) {
    .mbh-note-card .note-ctrl {
        opacity: 1;
    }
}

/* ============================================
   Content Pattern: Article / Blog List (Pattern 04)
   ============================================ */

.mbh-blog-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mbh-blog-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
    background: var(--mbh-primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    transition: border-color 0.2s ease;
}

.mbh-blog-item:hover {
    border-color: rgba(217, 140, 63, 0.3);
}

@media (min-width: 600px) {
    .mbh-blog-item {
        grid-template-columns: 200px 1fr auto;
        gap: 20px;
    }
}

.mbh-blog-item .cover {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    background: #1a221e;
}

@media (min-width: 600px) {
    .mbh-blog-item .cover {
        width: 200px;
        height: 120px;
    }
}

.mbh-blog-item .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mbh-blog-item .blog-tag {
    font-family: var(--mbh-font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--mbh-accent);
    margin-bottom: 8px;
}

.mbh-blog-item h4 {
    font-family: var(--mbh-font-heading);
    font-size: 24px;
    letter-spacing: 0.035em;
    margin: 0 0 6px;
    line-height: 1.05;
    color: var(--mbh-text-primary);
}

.mbh-blog-item .excerpt {
    font-size: 12.5px;
    color: #D4D4D4;
    line-height: 1.55;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mbh-blog-item .blog-meta {
    font-size: 11px;
    color: var(--mbh-text-muted);
    display: flex;
    gap: 10px;
}

/* ============================================
   Content Pattern: Budget Summary Cells
   ============================================ */

.mbh-budget-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (min-width: 600px) {
    .mbh-budget-summary {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mbh-budget-cell {
    background: var(--mbh-primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
}

.mbh-budget-cell .budget-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--mbh-text-muted);
    font-weight: 700;
}

.mbh-budget-cell .budget-value {
    font-family: var(--mbh-font-heading);
    font-size: 26px;
    letter-spacing: 0.03em;
    color: var(--mbh-text-primary);
    margin-top: 4px;
    line-height: 1;
}

.mbh-budget-cell.paw .budget-value {
    color: var(--mbh-accent);
}

.mbh-budget-cell.ok .budget-value {
    color: #7FC684;
}

.mbh-budget-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.mbh-budget-progress > div {
    height: 100%;
    background: var(--mbh-accent);
    border-radius: 3px;
}

/* ============================================
   Content Pattern: Shared Chip Variants
   ============================================ */

.mbh-chip {
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--mbh-text-muted);
    font-family: var(--mbh-font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.mbh-chip.paw {
    background: var(--mbh-accent-tint);
    color: var(--mbh-accent);
}

.mbh-chip.ok {
    background: rgba(76, 175, 80, 0.14);
    color: #7FC684;
}

.mbh-chip.warn {
    background: rgba(224, 182, 74, 0.14);
    color: #E0B64A;
}

.mbh-chip.err {
    background: rgba(229, 83, 61, 0.14);
    color: #ff7a5f;
}

/* ============================================
   Content Pattern: Shared Pill (status badges)
   ============================================ */

.mbh-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    font-family: var(--mbh-font-body);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mbh-pill.ok {
    background: rgba(76, 175, 80, 0.14);
    color: #7FC684;
}

.mbh-pill.paw {
    background: var(--mbh-accent-tint);
    color: var(--mbh-accent);
}

.mbh-pill.muted {
    background: rgba(255, 255, 255, 0.06);
    color: var(--mbh-text-muted);
}

/* ============================================
   Mobile Responsive — Design System Patterns
   ============================================ */

@media (max-width: 600px) {
    /* Section bar: stack title and toolbar */
    .planning-section-bar {
        margin: 12px 0 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .planning-section-heading {
        font-size: 24px;
    }

    .planning-section-toolbar {
        flex-wrap: wrap;
        gap: 6px;
    }

    .planning-btn {
        padding: 8px 12px;
        font-size: 10px;
    }

    /* Planning cards: tighter mobile layout */
    .planning-card-head {
        grid-template-columns: 42px 1fr auto auto;
        gap: 10px;
        padding: 12px 14px;
    }

    .planning-card-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .planning-card-title {
        font-size: 16px;
    }

    .planning-card-tags {
        display: none;
    }

    .planning-card-chev {
        width: 28px;
        height: 28px;
    }

    /* Card body: reduce left padding on mobile */
    .planning-card-body-inner {
        padding: 14px 16px 18px !important;
    }

    /* Planning card controls: always visible on mobile */
    .planning-card-ctrl {
        opacity: 1;
        transform: none;
    }

    /* Row list: tighter padding */
    .mbh-row {
        padding: 10px 14px;
        gap: 10px;
    }

    .mbh-row-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .mbh-row-title {
        font-size: 13px;
    }

    .mbh-row-meta {
        font-size: 10.5px;
    }

    /* Row controls: always visible on mobile */
    .mbh-row-ctrl {
        opacity: 1;
        transform: none;
    }

    /* Note grid: single column */
    .mbh-note-grid {
        grid-template-columns: 1fr;
    }

    .mbh-note-card h4 {
        font-size: 18px;
    }

    /* Note controls: always visible */
    .mbh-note-card .note-ctrl {
        opacity: 1;
    }

    /* Media grid: 2 columns */
    .mbh-media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Tile overlays: always visible on mobile */
    .mbh-tile-overlay {
        opacity: 1;
    }

    .mbh-tile-ctrl {
        opacity: 1;
    }

    /* Blog items: stack vertically */
    .mbh-blog-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mbh-blog-item .cover {
        width: 100%;
        height: 140px;
    }

    .mbh-blog-item h4 {
        font-size: 20px;
    }

    /* Budget summary: 2 columns, smaller values */
    .mbh-budget-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .mbh-budget-cell {
        padding: 12px 14px;
    }

    .mbh-budget-cell .budget-value {
        font-size: 22px;
    }

    /* Section bar (shared) */
    .mbh-section-bar {
        margin: 8px 0 12px;
    }

    .mbh-section-bar .title-group h3 {
        font-size: 18px;
    }

    /* Chips: slightly smaller */
    .planning-chip,
    .mbh-chip {
        padding: 3px 7px;
        font-size: 9px;
    }

    /* Hero section mobile refinements */
    .hero-content {
        padding: 0 20px 40px;
    }

    .hero-eyebrow {
        font-size: 9px;
    }

    .hero-subtext {
        font-size: 14px;
    }

    /* Stat band mobile */
    .stat-band-inner {
        padding: 24px 20px;
        gap: 16px;
    }

    .stat-value {
        font-size: 36px;
    }

    /* How section mobile */
    .how-section {
        padding: 40px 20px;
    }

    .how-headline {
        margin-bottom: 24px;
    }

    /* Calc preview mobile */
    .calc-preview-text {
        padding: 40px 20px;
    }

    .calc-preview-card-wrapper {
        padding: 20px;
    }

    /* CTA strip mobile */
    .cta-strip {
        padding: 32px 20px;
    }

    /* Footer mobile */
    .landing-footer-redesign {
        padding: 32px 20px 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ============================================
   Mobile FAB (Floating Action Button)
   ============================================ */

.mbh-fab {
    display: none;
}

@media (max-width: 768px) {
    .mbh-fab {
        display: flex;
        position: fixed;
        right: 18px;
        bottom: 80px;
        z-index: 100;
        height: 52px;
        min-width: 52px;
        padding: 0 20px 0 16px;
        border-radius: 26px;
        background: var(--mbh-accent);
        color: var(--mbh-primary-dark);
        align-items: center;
        gap: 8px;
        justify-content: center;
        box-shadow: 0 6px 18px rgba(217, 140, 63, 0.35), 0 2px 6px rgba(0, 0, 0, 0.3);
        font-family: var(--mbh-font-body);
        font-weight: 700;
        font-size: 12px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        border: none;
        cursor: pointer;
        text-decoration: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mbh-fab:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(217, 140, 63, 0.45), 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .mbh-fab:active {
        transform: scale(0.96);
    }

    .mbh-fab-icon {
        font-size: 22px;
        font-weight: 400;
        line-height: 1;
    }

    /* Icon-only FAB (no label) */
    .mbh-fab.icon-only {
        padding: 0;
        width: 52px;
    }

    /* Hide desktop toolbar buttons, show FAB instead */
    .mbh-fab-replacement .planning-section-toolbar {
        display: none;
    }
}

/* ============================================
   Print Styles - Packing List
   ============================================ */

@media print {
    /* Page setup */
    @page {
        margin: 1.5cm;
        size: A4 portrait;
    }

    /* Override CSS variables for print - force all text colors to black */
    :root,
    html,
    body {
        --mbh-text-primary: #000000 !important;
        --mbh-text-secondary: #000000 !important;
        --mbh-text-muted: #000000 !important;
        --mbh-accent: #000000 !important;
    }

    /* Reset backgrounds and colors for print */
    body,
    html,
    .mud-main-content,
    .mud-container,
    .mud-paper,
    .mud-expand-panel,
    .mud-expand-panel-header,
    .mud-card {
        background: white !important;
        color: black !important;
    }

    /* Force ALL text to be black for print - comprehensive override with maximum specificity */
    * {
        color: black !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    p, span, div, h1, h2, h3, h4, h5, h6, li, td, th, label, strong, em, a, ol, ul {
        color: black !important;
    }

    /* MudBlazor specific overrides */
    .mud-typography,
    .mud-text,
    .mud-typography-h3,
    .mud-typography-h4,
    .mud-typography-h5,
    .mud-typography-h6,
    .mud-typography-body1,
    .mud-typography-body2,
    .mud-typography-subtitle1,
    .mud-typography-subtitle2 {
        color: black !important;
    }

    /* Expansion panel content */
    .mud-expand-panel-text,
    .mud-expand-panel-content,
    .mud-expand-panel-content *,
    .mud-expand-panel-content p,
    .mud-expand-panel-content li,
    .mud-expand-panel-content span,
    .mud-expand-panel-content div {
        color: black !important;
    }

    /* Markdown content - all nested elements */
    .markdown-content,
    .markdown-content *,
    .markdown-content p,
    .markdown-content li,
    .markdown-content span,
    .markdown-content div,
    .markdown-content strong,
    .markdown-content em,
    .markdown-content a,
    .markdown-content h1,
    .markdown-content h2,
    .markdown-content h3,
    .markdown-content h4,
    .markdown-content h5,
    .markdown-content h6,
    .markdown-content ol,
    .markdown-content ul {
        color: black !important;
    }

    /* App-specific heading */
    .mbh-heading,
    .mbh-heading * {
        color: black !important;
    }

    /* Hide all UI chrome and interactive elements */
    .mobile-header,
    .desktop-header,
    .desktop-header-container,
    .mobile-nav-overlay,
    .mud-appbar,
    .mud-drawer,
    button,
    .mud-button,
    .mud-icon-button,
    .mud-chip-set,
    .sublist-action-buttons,
    .mobile-gear-actions,
    .mud-expand-panel-header .mud-icon-button,
    .hide-on-print,
    .hide-on-mobile {
        display: none !important;
    }

    /* Hide weight summary cards on screen (will show in print header) */
    .mud-grid {
        display: none !important;
    }

    /* Hide category filter text */
    .mb-2 {
        display: none !important;
    }

    /* Ensure expansion panels are fully expanded */
    .mud-expand-panel {
        box-shadow: none !important;
        margin-bottom: 0 !important;
    }

    .mud-expand-panel-content {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Print header styles */
    .print-header {
        display: block !important;
        text-align: center;
        margin: 0 0 20px 0;
        padding: 0 20px 10px 20px;
        border-bottom: 2px solid #000;
    }

    .print-title {
        font-family: Arial, sans-serif;
        font-size: 24pt;
        font-weight: bold;
        margin-bottom: 8px;
        color: black;
    }

    .print-meta {
        font-size: 10pt;
        color: #333;
        margin-bottom: 4px;
    }

    .print-weights {
        display: flex !important;
        justify-content: center;
        gap: 30px;
        margin-top: 8px;
        font-size: 11pt;
        font-weight: 600;
        color: black;
    }

    /* SubList section headers */
    .print-sublist {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }

    .mud-expand-panel-header {
        background: white !important;
        padding: 8px 0 !important;
        min-height: auto !important;
    }

    .print-sublist-header {
        font-family: Arial, sans-serif;
        font-size: 14pt;
        font-weight: bold;
        margin: 15px 20px 8px 20px;
        padding-bottom: 4px;
        border-bottom: 2px solid #000;
        color: black;
    }

    /* Category headers */
    .print-category-header {
        font-family: Arial, sans-serif;
        font-size: 11pt;
        font-weight: bold;
        margin-top: 12px;
        margin-bottom: 6px;
        padding: 4px 6px;
        background-color: #e8e8e8 !important;
        color: black;
        border-left: 3px solid #000;
    }

    /* Hide the interactive MudTable, show print table */
    .gear-table,
    .mud-table {
        display: none !important;
    }

    .print-item-table {
        display: table !important;
        width: calc(100% - 40px);
        margin: 0 20px 10px 20px;
        border-collapse: collapse;
        font-family: Arial, sans-serif;
    }

    .print-item-table thead {
        display: table-header-group;
    }

    .print-item-table th {
        font-size: 9pt;
        font-weight: bold;
        text-align: left;
        padding: 4px 6px;
        border-bottom: 1px solid #000;
        background-color: #f5f5f5 !important;
        color: black;
    }

    .print-item-row {
        page-break-inside: avoid;
        border-bottom: 1px solid #ddd;
    }

    .print-item-row td {
        padding: 5px 6px;
        font-size: 10pt;
        color: black;
    }

    .print-checkbox-col {
        width: 25px;
        text-align: center;
        font-size: 12pt;
    }

    .print-name-col {
        width: 180px;
    }

    .print-quantity-col,
    .print-weight-col,
    .print-total-col {
        width: 60px;
        text-align: right;
    }

    .print-comment-col {
        width: 200px;
        border-left: 1px solid #ccc;
    }

    .print-comment-line {
        border-bottom: 1px solid #ccc;
        height: 18px;
        min-height: 18px;
    }

    /* Weight summary in print */
    .print-weight-row {
        font-weight: bold;
        background-color: #f0f0f0 !important;
    }

    .print-weight-row td {
        padding: 8px 6px !important;
        border-top: 2px solid #000;
    }

    /* Ensure proper page breaks */
    .mud-expansion-panels {
        page-break-inside: auto;
    }

    /* Hide nested expansion panels toggle icons */
    .mud-expand-panel-header .mud-icon-root {
        display: none !important;
    }

    /* Remove container padding for print */
    .mud-container {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .mud-main-content {
        padding: 0 !important;
    }

    /* ============================================
       Print Styles - Planning Page
       ============================================ */

    /* Print stats in header */
    .print-stats {
        display: flex !important;
        justify-content: center;
        gap: 20px;
        margin-top: 8px;
        font-size: 10pt;
        color: black;
    }

    /* Planning page images - constrained for print */
    img {
        max-width: 400px !important;
        width: auto !important;
        height: auto !important;
        page-break-inside: avoid;
        margin: 10px 0;
    }

    /* Route description text */
    .mud-paper {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }

    /* Planning sections */
    .mud-expansion-panel {
        page-break-inside: avoid;
        margin-bottom: 15px !important;
    }

    /* Section titles */
    .mud-expansion-panel .mud-expand-panel-header {
        font-weight: bold !important;
        font-size: 12pt !important;
        border-bottom: 1px solid #000 !important;
        padding-bottom: 4px !important;
    }

    /* Markdown content in planning sections */
    .about-content h1,
    .about-content h2,
    .about-content h3 {
        color: black !important;
        margin-top: 10px;
        margin-bottom: 6px;
        page-break-after: avoid;
    }

    .about-content h1 { font-size: 14pt !important; }
    .about-content h2 { font-size: 12pt !important; }
    .about-content h3 { font-size: 11pt !important; }

    .about-content p {
        margin-bottom: 8px;
        line-height: 1.5;
        font-size: 10pt;
    }

    .about-content ul,
    .about-content ol {
        font-size: 10pt;
        margin-bottom: 8px;
        color: black !important;
    }

    .about-content li {
        color: black !important;
    }

    /* Planning section dividers */
    .mud-divider {
        display: none !important;
    }

    /* Hide "click to enlarge" text on images */
    .mud-text.mud-text-body2 {
        display: none !important;
    }

    /* External links - show URL */
    .mud-link,
    a[target="_blank"] {
        text-decoration: none !important;
        color: black !important;
    }

    a[target="_blank"]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #666;
    }

    /* Hide lightbox overlay */
    div[style*="position: fixed"] {
        display: none !important;
    }

    /* Planning page section headings and content - add left margin */
    .mud-typography.mud-typography-h5 {
        margin-left: 20px !important;
    }

    /* Route description paper - add left margin */
    .mud-paper.pa-4 {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    /* Files and links stack - add left margin */
    .mud-stack.mud-stack-spacing-3 {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    /* Planning sections (expansion panels) - add left margin */
    .mud-expansion-panel {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    /* Planning section content and headers - add left padding */
    .mud-expand-panel-header,
    .mud-expand-panel-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Planning Command Cards - Print */
    .planning-card {
        background: white !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
        margin-bottom: 10px !important;
    }

    .planning-card-head {
        background: white !important;
        color: black !important;
    }

    .planning-card-icon {
        background: #f0f0f0 !important;
        color: black !important;
    }

    .planning-card-title {
        color: black !important;
    }

    .planning-card-desc {
        color: #666 !important;
    }

    .planning-card-body {
        display: block !important;
        border-top: 1px solid #ccc !important;
    }

    .planning-card-body-inner {
        padding: 12px 20px !important;
    }

    .planning-card-ctrl,
    .planning-asset-ctrl,
    .planning-card-chev,
    .planning-section-toolbar {
        display: none !important;
    }

    .planning-chip {
        background: #f0f0f0 !important;
        color: #333 !important;
    }

    .planning-section-heading {
        color: black !important;
    }

    .planning-section-count {
        color: #666 !important;
    }

    .planning-asset-row {
        background: white !important;
        border: 1px solid #ddd !important;
    }

    .planning-asset-title,
    .planning-asset-title-link {
        color: black !important;
    }

    .planning-asset-meta {
        color: #666 !important;
    }

    /* NUCLEAR OPTION - Force EVERYTHING to black - must be last rule */
    html *,
    body *,
    * {
        color: #000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}

/* ============================================
   Print Mode with Body Class (Alternative)
   ============================================ */
/* This is used when JS adds 'printing' class to body before calling window.print() */

/* Override CSS variables for printing - MUST be first */
body.printing {
    /* Override our custom CSS variables */
    --mbh-text-primary: #000000 !important;
    --mbh-text-secondary: #000000 !important;
    --mbh-text-muted: #000000 !important;
    --mbh-accent: #000000 !important;

    /* Override MudBlazor palette variables */
    --mud-palette-text-primary: #000000 !important;
    --mud-palette-text-secondary: #000000 !important;
    --mud-palette-text-disabled: #000000 !important;
    --mud-palette-primary: #000000 !important;
    --mud-palette-secondary: #000000 !important;

    /* CRITICAL: Explicitly override the color property itself */
    /* This overrides the "color: var(--mbh-text-primary);" from line 40 */
    color: #000 !important;
    background: white !important;
}

/* Force ALL text elements to black - highest specificity */
body.printing,
body.printing *,
body.printing p,
body.printing span,
body.printing div,
body.printing h1,
body.printing h2,
body.printing h3,
body.printing h4,
body.printing h5,
body.printing h6,
body.printing li,
body.printing ol,
body.printing ul,
body.printing td,
body.printing th,
body.printing label,
body.printing strong,
body.printing em,
body.printing a {
    color: #000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
}

/* MudBlazor component overrides */
body.printing .mud-typography,
body.printing .mud-text,
body.printing .mud-typography *,
body.printing .mud-expand-panel-content,
body.printing .mud-expand-panel-content * {
    color: #000 !important;
}

/* Markdown content - very specific */
body.printing .markdown-content,
body.printing .markdown-content *,
body.printing .markdown-content p,
body.printing .markdown-content li,
body.printing .markdown-content span,
body.printing .markdown-content div,
body.printing .markdown-content strong,
body.printing .markdown-content em,
body.printing .markdown-content a,
body.printing .markdown-content h1,
body.printing .markdown-content h2,
body.printing .markdown-content h3,
body.printing .markdown-content h4,
body.printing .markdown-content h5,
body.printing .markdown-content h6,
body.printing .markdown-content ol,
body.printing .markdown-content ul {
    color: #000 !important;
}

/* About-content class (used for markdown rendering) */
body.printing .about-content,
body.printing .about-content *,
body.printing .about-content p,
body.printing .about-content li,
body.printing .about-content ul,
body.printing .about-content ol {
    color: #000 !important;
}

/* Hide UI elements */
body.printing .mobile-header,
body.printing .desktop-header,
body.printing .desktop-header-container,
body.printing .mobile-nav-overlay,
body.printing .mud-appbar,
body.printing .mud-drawer,
body.printing button,
body.printing .mud-button,
body.printing .mud-icon-button,
body.printing .mud-chip-set,
body.printing .hide-on-print,
body.printing .hide-on-mobile {
    display: none !important;
}

/* ============================================
   Gallery map (Leaflet) — global because Leaflet
   adds markers/controls outside the component scope.
   ============================================ */

.gm-leaflet-pin {
    background: transparent;
    border: none;
}

.gm-leaflet-pin__body {
    position: relative;
    display: inline-block;
}

.gm-leaflet-pin__disc {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border-radius: 14px;
    border: 2.5px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    background-color: var(--mbh-primary-dark);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: width 0.18s ease, height 0.18s ease, border-color 0.18s ease;
}

.gm-leaflet-pin__count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--mbh-accent);
    color: var(--mbh-primary-dark);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--mbh-primary);
    font-family: var(--mbh-font-body);
    z-index: 1;
    pointer-events: none;
}

.gm-leaflet-pin__tail {
    display: block;
    width: 0;
    height: 0;
    margin: -2px auto 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #fff;
}

.gm-leaflet-pin--active .gm-leaflet-pin__disc {
    width: 62px;
    height: 62px;
    border-color: var(--mbh-accent);
}

.gm-leaflet-pin--active .gm-leaflet-pin__tail {
    border-top-color: var(--mbh-accent);
}

/* Re-skin Leaflet's default attribution on dark surfaces */
.gm-leaflet .leaflet-control-attribution {
    background: rgba(26, 34, 30, 0.78);
    color: var(--mbh-text-muted);
    font-size: 0.6rem;
}

.gm-leaflet .leaflet-control-attribution a {
    color: var(--mbh-accent-light);
}

.gm-leaflet .leaflet-control-zoom a {
    background: var(--mbh-primary);
    color: var(--mbh-text-primary);
    border-color: rgba(255, 255, 255, 0.12);
}

.gm-leaflet .leaflet-control-zoom a:hover {
    background: var(--mbh-primary-light);
    color: var(--mbh-accent);
}

/* Mini pin used inside the photo-detail map preview */
.gd-mini-pin {
    background: transparent;
    border: none;
}

.gd-mini-pin__disc {
    display: block;
    width: 14px;
    height: 14px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--mbh-accent);
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===== Udforsk (Museum / Byvandring) ===== */

.explore-mode-switch {
    display: flex;
    gap: 8px;
}

.explore-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.explore-keep-awake {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    background: transparent;
    color: var(--mbh-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.explore-keep-awake.on {
    background: var(--mbh-accent);
    color: #1a221e;
    border-color: var(--mbh-accent);
}

.explore-mode-pill {
    flex: 1;
    padding: 11px 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    background: transparent;
    color: var(--mbh-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-transform: capitalize;
}

.explore-mode-pill.active.museum {
    background: var(--mbh-accent);
    color: #1a221e;
    border-color: var(--mbh-accent);
}

.explore-mode-pill.active.byvandring {
    background: var(--mbh-success);
    color: #1a221e;
    border-color: var(--mbh-success);
}

.explore-viewfinder {
    position: relative;
    background: #1a221e;
    border-radius: var(--mbh-card-radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.explore-viewfinder.museum {
    border: 1px solid rgba(217, 140, 63, 0.33);
}

.explore-viewfinder.byvandring {
    border: 1px solid rgba(76, 175, 80, 0.33);
}

/* contain (not cover) so both portrait and landscape shots are shown uncropped */
.explore-viewfinder-photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
}

.explore-viewfinder-clear {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
}

.explore-viewfinder-clear:disabled {
    opacity: 0.5;
    cursor: default;
}

.explore-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.explore-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--mbh-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.explore-action-btn:not(:disabled) {
    color: var(--mbh-text-primary);
}

.explore-action-btn:disabled {
    cursor: not-allowed;
}

.explore-action-btn.primary.museum {
    background: var(--mbh-accent);
    color: #1a221e;
    border-color: var(--mbh-accent);
}

.explore-action-btn.primary.byvandring {
    background: var(--mbh-success);
    color: #1a221e;
    border-color: var(--mbh-success);
}

.explore-helper-line {
    font-size: 12px;
    color: #666;
    margin: 0 0 16px;
    min-height: 1em;
}

/* Fixed dock — keeps the player reachable while scrolling, vox-style: a full-width
   pointer-events:none strip pinned to the viewport bottom, with the actual pill inside
   re-enabling pointer events so it doesn't block clicks on the page behind it. */
.explore-playback-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: flex;
    justify-content: center;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}

@media (max-width: 768px) {
    /* Clear the app's fixed bottom mobile nav bar. */
    .explore-playback-dock {
        bottom: 56px;
    }
}

.explore-playback-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(18, 18, 26, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 10px 18px;
    width: fit-content;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
    pointer-events: auto;
}

.explore-playback-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--mbh-text-muted);
    cursor: pointer;
    padding: 4px;
}

.explore-playback-close:hover {
    color: var(--mbh-text-primary);
}

.explore-playback-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.explore-playback-play.museum {
    background: var(--mbh-accent);
    color: #1a221e;
}

.explore-playback-play.byvandring {
    background: var(--mbh-success);
    color: #1a221e;
}

.explore-playback-speed {
    font-size: 11px;
    font-weight: 600;
    color: var(--mbh-text-muted);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 999px;
    padding: 5px 8px;
    cursor: pointer;
    min-width: 34px;
}

.explore-playback-speed:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--mbh-text-primary);
}

.explore-status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(217, 140, 63, 0.12);
    border: 1px solid rgba(217, 140, 63, 0.4);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mbh-text-primary);
}

.explore-map-user-pin span {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4285F4;
    border: 2px solid #fff;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.35);
}

.explore-map-place-pin span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--mbh-accent);
    border: 2px solid #1a221e;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    color: #1a221e;
    font-size: 12px;
    font-weight: 700;
}

.explore-places-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.explore-places-list li {
    font-size: 13px;
    line-height: 1.4;
    color: var(--mbh-text-primary);
}

.explore-places-list strong {
    color: var(--mbh-accent);
}

.explore-places-list-item {
    cursor: pointer;
    border-radius: 8px;
    padding: 6px 8px;
    margin: -6px -8px;
    transition: background-color 0.15s;
}

.explore-places-list-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* ----- Udforsk → Spisesteder ----- */

.explore-mode-pill.active.spisesteder {
    background: #E8806F;
    color: #1a221e;
    border-color: #E8806F;
}

.rs-panel {
    margin-bottom: 16px;
}

.rs-group {
    margin-bottom: 10px;
}

.rs-map-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.rs-place-search {
    display: flex;
    align-items: center;
    flex: 1 1 180px;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding-left: 12px;
}

.rs-place-input {
    flex: 1;
    min-width: 0;
    min-height: 36px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--mbh-text-primary);
    font-size: 13px;
}

.rs-place-input::placeholder {
    color: var(--mbh-text-muted);
}

.rs-place-search:focus-within {
    border-color: var(--mbh-accent);
}

.rs-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    border-radius: 999px;
    color: var(--mbh-text-primary);
    cursor: pointer;
}

.rs-icon-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.rs-map-wrap {
    position: relative;
    margin-bottom: 12px;
}

.rs-shape-toggle {
    display: inline-flex;
    gap: 2px;
    margin-left: auto;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.rs-shape-toggle .rs-icon-btn {
    width: 32px;
    height: 32px;
}

.rs-shape-toggle .rs-shape-active {
    background: var(--mbh-accent);
    color: #1a221e;
}

/* Shape is picked by the user (Bred/Kvadrat/Høj). Width is capped so height never exceeds 70vh
   and the aspect ratio holds on wide screens; the map is then centered. */
.rs-map-frame {
    position: relative;
    width: 100%;
    min-height: 200px;
    margin-inline: auto;
}

.rs-map {
    position: absolute;
    inset: 0;
    border-radius: var(--mbh-border-radius);
    z-index: 1;
}

.rs-map-wide {
    aspect-ratio: 16 / 9;
    max-width: calc(70vh * 16 / 9);
}

.rs-map-square {
    aspect-ratio: 1 / 1;
    max-width: 70vh;
}

.rs-map-tall {
    aspect-ratio: 3 / 4;
    max-width: calc(70vh * 3 / 4);
}

/* Floats above Leaflet's panes (z-index 400) and controls (800). */
.rs-search-here,
.rs-map-hint {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 900;
    white-space: nowrap;
    border-radius: 999px;
    box-shadow: var(--mbh-shadow-card);
    font-size: 13px;
    font-weight: 700;
}

.rs-search-here {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 16px;
    border: none;
    background: var(--mbh-accent);
    color: #1a221e;
    cursor: pointer;
}

.rs-map-hint {
    padding: 8px 14px;
    background: var(--mbh-surface-dark);
    color: var(--mbh-text-primary);
    pointer-events: none;
}

.rs-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-right: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--mbh-accent);
    color: #1a221e;
    font-size: 12px;
    vertical-align: 2px;
}

.rs-label {
    display: block;
    font-size: var(--mbh-caption);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mbh-text-muted);
    margin-bottom: 2px;
}

.rs-hint {
    font-size: 12px;
    color: var(--mbh-text-muted);
    margin: 2px 0 0;
}

.rs-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 4px;
    background: none;
    border: none;
    color: var(--mbh-accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.rs-more {
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 12px;
    margin: 4px 0 8px;
}

.rs-results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    margin: 8px 0;
}

.rs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.rs-card {
    background: var(--mbh-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--mbh-border-radius);
    padding: 12px 14px;
    scroll-margin-top: 72px;
}

.rs-card-open {
    border-color: rgba(217, 140, 63, 0.5);
}

.rs-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.rs-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--mbh-accent);
    overflow-wrap: anywhere;
}

.rs-distance {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--mbh-text-muted);
}

.rs-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--mbh-text-primary);
}

.rs-rating {
    color: #F5C04E;
    font-weight: 700;
}

.rs-muted {
    color: var(--mbh-text-muted);
}

.rs-open {
    color: var(--mbh-success);
    font-weight: 600;
}

.rs-closed {
    color: var(--mbh-error);
    font-weight: 600;
}

.rs-address {
    margin-top: 2px;
    font-size: 12px;
    color: var(--mbh-text-muted);
}

.rs-summary {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--mbh-text-secondary);
}

.rs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.rs-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: var(--mbh-text-primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.rs-action:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
}

.rs-action:disabled {
    opacity: 0.6;
    cursor: default;
}

.rs-reviews {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rs-review {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

.rs-review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    font-size: 12px;
}

.rs-review p {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--mbh-text-secondary);
    white-space: pre-line;
}

.rs-attribution {
    font-size: 11px;
    color: var(--mbh-text-muted);
    margin: 0 0 8px;
}

.rs-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--mbh-accent);
    font-size: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.rs-sources {
    margin: 0 0 12px;
    padding-left: 18px;
    font-size: 12px;
}

.rs-sources a {
    color: var(--mbh-accent);
}

.explore-history-thumb {
    display: block;
    max-width: 220px;
    max-height: 220px;
    width: auto;
    border-radius: 10px;
    cursor: pointer;
    object-fit: cover;
}

.gd-mini-pin__tail {
    display: block;
    width: 0;
    height: 0;
    margin: -1px auto 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #fff;
}
