:root {
    --bg: #f6efe5;
    --bg-soft: #fff8ef;
    --ink: #1f2b27;
    --muted: #5f6b65;
    --line: rgba(31, 43, 39, 0.12);
    --accent: #d6673b;
    --accent-deep: #a94b2a;
    --teal: #2a7867;
    --card: rgba(255, 250, 244, 0.9);
    --shadow: 0 18px 45px rgba(41, 33, 23, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body.app-body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    min-height: 100vh;
    position: relative;
}

.site-background {
    background:
        radial-gradient(circle at top right, rgba(214, 103, 59, 0.14), transparent 28%),
        radial-gradient(circle at left 10%, rgba(42, 120, 103, 0.12), transparent 22%),
        linear-gradient(180deg, #fff9f1 0%, #f6efe5 100%);
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

h1, h2, h3, h4 {
    font-family: "Fraunces", serif;
    letter-spacing: -0.03em;
}

a {
    color: var(--accent-deep);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

.nav-shell {
    background: rgba(255, 249, 241, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.brand-mark {
    align-items: center;
    display: flex;
    gap: 0.85rem;
}

.brand-mark img {
    height: 44px;
    width: 44px;
}

.brand-mark span {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-mark small {
    color: var(--muted);
    font-size: 0.75rem;
}

.nav-search {
    max-width: 360px;
    width: 100%;
}

.hero-shell,
.section-shell {
    padding: 2rem 0 1.5rem;
}

.hero-shell {
    padding-top: 3rem;
}

.hero-shell-local {
    padding-top: 1.75rem;
}

.hero-local-stage {
    background:
        linear-gradient(135deg, rgba(255, 248, 239, 0.98), rgba(250, 235, 220, 0.96)),
        radial-gradient(circle at top right, rgba(42, 120, 103, 0.18), transparent 30%);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 36px;
    box-shadow: 0 28px 70px rgba(41, 33, 23, 0.12);
    padding: clamp(1.5rem, 3vw, 2.4rem);
    position: relative;
    overflow: hidden;
}

.hero-local-stage::after {
    background: linear-gradient(90deg, rgba(214, 103, 59, 0.18), transparent);
    border-radius: 999px;
    content: "";
    height: 180px;
    position: absolute;
    right: -60px;
    top: -50px;
    width: 180px;
}

.hero-copy h1,
.hero-shell-local h1,
.section-heading h1,
.section-heading h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    margin-bottom: 1rem;
}

.hero-copy p,
.content-panel p,
.spot-card-body p,
.mini-card p,
.event-card p {
    color: var(--muted);
}

.hero-panel,
.content-panel,
.spot-card,
.mini-card,
.empty-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel,
.content-panel,
.empty-card {
    padding: 1.5rem;
}

.hero-panel h2 {
    font-size: 1.6rem;
}

.feature-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding-left: 1.1rem;
}

.eyebrow {
    color: var(--teal);
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.hero-image-frame {
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.hero-shell-local .hero-image-frame {
    border: 8px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 24px 50px rgba(31, 43, 39, 0.16);
}

.hero-image-frame img,
.spot-card img,
.article-image,
.banner-card img {
    display: block;
    object-fit: cover;
    width: 100%;
}

.hero-image-frame img {
    aspect-ratio: 4 / 3;
}

.hero-shell-local .hero-image-frame img {
    aspect-ratio: 16 / 11;
}

.media-credit,
.subtle-note,
.source-note,
.source-note a {
    color: var(--muted);
    font-size: 0.92rem;
}

.source-note-right {
    text-align: right;
}

.source-note-accent,
.source-note-accent a {
    color: #b3261e;
    font-weight: 700;
}

.media-credit {
    margin: 0.85rem 0 0;
}

.hero-lead {
    font-size: 1.08rem;
    max-width: 44rem;
}

.route-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.route-chip {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 43, 39, 0.1);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.6rem 0.95rem;
}

.section-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.spot-card,
.banner-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.spot-card img {
    aspect-ratio: 16 / 10;
    background: #efe5d8;
    color: transparent;
    min-height: 180px;
}

.example-media {
    display: block;
    overflow: hidden;
    position: relative;
}

.example-media img {
    display: block;
    width: 100%;
}

.media-gallery-trigger,
.asset-thumb-button {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: zoom-in;
    display: block;
    font: inherit;
    margin: 0;
    padding: 0;
    text-align: inherit;
    width: 100%;
}

.media-gallery-trigger:focus-visible,
.asset-thumb-button:focus-visible {
    outline: 3px solid rgba(42, 120, 103, 0.35);
    outline-offset: 3px;
}

.commerce-media {
    background: #f7efe5;
}

.commerce-media .media-gallery-trigger {
    align-items: center;
    aspect-ratio: 16 / 10;
    display: flex;
    justify-content: center;
}

.commerce-media img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.example-media-sm {
    border-radius: 16px;
    flex: 0 0 auto;
    height: 72px;
    width: 72px;
}

.example-media-sm img {
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.example-media-sm.commerce-media .media-gallery-trigger,
.example-media-sm.commerce-media img {
    aspect-ratio: 1;
    height: 72px;
    width: 72px;
}

.example-media-sm.commerce-media img {
    object-fit: contain;
}

.example-ribbon {
    background: #c62828;
    box-shadow: 0 6px 16px rgba(105, 20, 20, 0.24);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 900;
    left: -3.2rem;
    letter-spacing: 0.08em;
    padding: 0.38rem 3.2rem;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    top: 1.15rem;
    transform: rotate(-38deg);
    z-index: 2;
}

.example-media-sm .example-ribbon {
    font-size: 0.48rem;
    left: -2.5rem;
    padding: 0.18rem 2.4rem;
    top: 0.55rem;
}

.spot-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.35rem;
}

.asset-strip {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    margin-top: 0.1rem;
}

.asset-strip-under-media {
    background: rgba(255, 255, 255, 0.62);
    border-bottom: 1px solid var(--line);
    margin-top: 0;
    overflow-x: auto;
    padding: 0.7rem;
    scrollbar-width: thin;
}

.asset-thumb {
    aspect-ratio: 1;
    border: 1px solid rgba(31, 43, 39, 0.12);
    border-radius: 14px;
    height: 52px;
    background: #f7efe5;
    min-height: 0;
    object-fit: contain;
    width: 52px;
}

.asset-thumb-button {
    border-radius: 14px;
    flex: 0 0 auto;
    width: auto;
}

.upload-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.75rem;
}

.upload-preview-item {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    width: 112px;
}

.upload-preview-item img {
    aspect-ratio: 1;
    background: #f7efe5;
    display: block;
    object-fit: contain;
    width: 100%;
}

.upload-preview-meta {
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.35rem 0.45rem 0;
    text-transform: uppercase;
}

.upload-preview-actions {
    display: flex;
    gap: 0.25rem;
    padding: 0.4rem;
}

.upload-preview-actions button {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    flex: 1;
    font-size: 0.72rem;
    font-weight: 800;
    min-height: 28px;
}

.upload-preview-actions button:disabled {
    color: var(--muted);
    opacity: 0.45;
}

.asset-more,
.extra-media-note {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.asset-more {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
}

.mini-card {
    padding: 1.2rem;
}

.mini-date,
.event-date {
    color: var(--accent-deep);
    font-size: 0.9rem;
    font-weight: 800;
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    padding: 0.55rem 0.95rem;
}

.chip-active,
.chip:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.list-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--line);
    border-radius: 20px;
    display: flex;
    gap: 1rem;
    padding: 0.85rem;
}

.list-card img {
    border-radius: 16px;
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.stack-list {
    display: grid;
    gap: 1rem;
}

.event-card {
    border-bottom: 1px solid var(--line);
    padding: 0.95rem 0;
}

.event-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.banner-grid {
    display: grid;
    gap: 1rem;
}

.banner-card {
    align-items: center;
    background: linear-gradient(120deg, rgba(214, 103, 59, 0.15), rgba(42, 120, 103, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    color: var(--ink);
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 120px 1fr;
    padding: 1rem;
}

.banner-card img {
    aspect-ratio: 1;
    border-radius: 18px;
}

.price-tag {
    color: var(--accent-deep);
    font-size: 1.15rem;
}

.fact-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.fact-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.55rem;
}

.fact-label {
    color: var(--teal);
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

.gallery-card img {
    aspect-ratio: 4 / 3;
    min-height: 220px;
}

.section-context {
    margin-top: -0.4rem;
}

.context-ribbon {
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(244, 233, 220, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 34px;
    box-shadow: var(--shadow);
    padding: clamp(1.35rem, 3vw, 2rem);
}

.context-intro {
    margin-bottom: 1.5rem;
    max-width: 54rem;
}

.context-intro h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 0.75rem;
}

.mini-bullet-grid,
.insight-list {
    display: grid;
    gap: 0.85rem;
    margin: 1rem 0 1.2rem;
}

.mini-bullet,
.insight-item {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink);
    padding: 0.9rem 1rem;
}

.surrounding-card,
.participation-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 238, 0.88));
}

.surrounding-card-compact {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.surrounding-media {
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    width: 100%;
}

.surrounding-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.15rem 1.15rem 1.2rem;
}

.surrounding-copy h3 {
    font-size: 1.4rem;
    margin-bottom: 0;
}

.editorial-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 233, 0.86));
}

.editorial-panel p + p {
    margin-top: 1rem;
}

.guideline-list,
.story-list {
    display: grid;
    gap: 1rem;
}

.guideline-item,
.story-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1rem 1.1rem;
}

.guideline-item strong,
.story-card h3 {
    display: block;
    margin-bottom: 0.45rem;
}

.story-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.type-pill {
    background: rgba(42, 120, 103, 0.12);
    border: 1px solid rgba(42, 120, 103, 0.2);
    border-radius: 999px;
    color: var(--teal);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.35rem 0.8rem;
}

.live-update-card {
    border-left: 6px solid transparent;
}

.live-update-spotlight {
    background:
        linear-gradient(135deg, rgba(255, 250, 244, 0.98), rgba(255, 240, 226, 0.95)),
        radial-gradient(circle at top right, rgba(214, 103, 59, 0.18), transparent 35%);
    border-left: 8px solid transparent;
}

.live-update-image {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    object-fit: cover;
    width: 100%;
}

.priority-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
}

.priority-high {
    background: rgba(181, 54, 44, 0.12);
    border-left-color: rgba(181, 54, 44, 0.75);
    color: #8f241c;
}

.priority-medium {
    background: rgba(214, 148, 36, 0.14);
    border-left-color: rgba(214, 148, 36, 0.72);
    color: #946100;
}

.priority-low {
    background: rgba(46, 120, 191, 0.12);
    border-left-color: rgba(46, 120, 191, 0.7);
    color: #1d5f96;
}

.history-pre {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--line);
    border-radius: 18px;
    font-family: inherit;
    padding: 1rem;
    white-space: pre-wrap;
}

.article-image {
    aspect-ratio: 1;
    border-radius: 24px;
}

.media-gallery-modal .modal-content {
    background: #0f1513;
    color: #fff;
    max-height: 100dvh;
    overflow: hidden;
}

.media-gallery-modal .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.media-gallery-modal .modal-title {
    font-family: "Fraunces", serif;
    font-size: 1.25rem;
}

.media-gallery-modal .btn-close {
    filter: invert(1) grayscale(1);
}

.media-gallery-modal .modal-body {
    overflow: hidden;
    min-height: 0;
    padding: 0;
}

.media-gallery-modal .carousel,
.media-gallery-modal .carousel-inner {
    height: 100%;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
}

.media-gallery-modal .carousel-item {
    background: #0f1513;
    height: min(78vh, 760px);
    max-width: 100%;
    overflow: hidden;
    padding: 0.75rem;
    text-align: center;
    width: 100%;
}

.media-gallery-modal .carousel-item.active,
.media-gallery-modal .carousel-item-next,
.media-gallery-modal .carousel-item-prev {
    align-items: center;
    display: flex;
    justify-content: center;
}

.media-gallery-modal .carousel-item img {
    display: block;
    flex: 0 1 auto;
    height: auto;
    margin: auto;
    max-height: 100%;
    max-width: 100%;
    min-height: 0;
    min-width: 0;
    object-fit: contain;
    width: auto;
}

.media-gallery-modal .carousel-control-prev,
.media-gallery-modal .carousel-control-next {
    width: 12%;
}

.media-gallery-count {
    background: rgba(0, 0, 0, 0.62);
    border-radius: 999px;
    bottom: 1rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    left: 50%;
    padding: 0.35rem 0.75rem;
    position: absolute;
    transform: translateX(-50%);
    z-index: 2;
}

@media (max-width: 991.98px) {
    .media-gallery-modal .modal-dialog {
        height: var(--gallery-viewport-height, 100dvh);
        margin: 0;
        max-width: 100vw;
        width: 100vw;
    }

    .media-gallery-modal .modal-content {
        border: 0;
        border-radius: 0;
        height: var(--gallery-viewport-height, 100dvh);
        max-height: var(--gallery-viewport-height, 100dvh);
    }

    .media-gallery-modal .modal-header {
        flex: 0 0 auto;
        min-height: 56px;
        padding: 0.75rem 1rem;
    }

    .media-gallery-modal .modal-title {
        font-size: 1rem;
    }

    .media-gallery-modal .modal-body {
        display: flex;
        flex: 1 1 auto;
        height: calc(var(--gallery-viewport-height, 100dvh) - 56px);
        max-height: calc(var(--gallery-viewport-height, 100dvh) - 56px);
        overflow: hidden;
    }

    .media-gallery-modal .carousel {
        flex: 1 1 auto;
        max-height: 100%;
        min-width: 0;
        width: 100%;
    }

    .media-gallery-modal .carousel-inner,
    .media-gallery-modal .carousel-item {
        height: 100%;
        max-height: 100%;
    }

    .media-gallery-modal .carousel-item {
        padding: 0.75rem 0.5rem 3.25rem;
    }

    .media-gallery-modal .carousel-item img {
        height: auto !important;
        max-height: calc(var(--gallery-viewport-height, 100dvh) - 56px - 4rem);
        max-width: calc(100vw - 1rem);
        width: auto !important;
    }

    .media-gallery-modal .carousel-control-prev,
    .media-gallery-modal .carousel-control-next {
        bottom: 3rem;
        top: 0;
        width: 18%;
    }
}

.list-card .commerce-media img,
.spot-card .commerce-media img {
    object-fit: contain;
}

.local-nav-shell {
    padding-top: 1rem;
}

.mobile-directory-filter {
    display: none;
}

.mobile-bottom-nav {
    background: rgba(255, 249, 241, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    bottom: 0;
    display: none;
    inset-inline: 0;
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
    position: fixed;
    z-index: 1035;
}

.mobile-bottom-link {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex: 1;
    font-size: 0.78rem;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    text-transform: uppercase;
}

.mobile-bottom-link.is-active {
    color: var(--accent-deep);
}

.install-app-button {
    background: var(--ink);
    border: 0;
    border-radius: 999px;
    bottom: 5.25rem;
    box-shadow: var(--shadow);
    color: #fff;
    display: none;
    padding: 0.75rem 1rem;
    position: fixed;
    right: 1rem;
    z-index: 1036;
}

.footer-shell {
    border-top: 1px solid var(--line);
    margin-top: 2rem;
    padding: 1.5rem 0 2.5rem;
}

.sticky-panel {
    position: sticky;
    top: 6rem;
}

.admin-list .list-group-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    padding-inline: 0;
}

.admin-list .list-group-item.active {
    background: transparent;
    color: var(--accent-deep);
    font-weight: 800;
}

.flash-stack {
    margin-bottom: 1rem;
}

.empty-card {
    color: var(--muted);
    text-align: center;
}

.moderation-image-wrap {
    background: rgba(179, 38, 30, 0.06);
    border: 1px solid rgba(179, 38, 30, 0.16);
    border-radius: 16px;
    margin: 0.75rem 0 1rem;
    padding: 0.75rem;
}

.moderation-image-heading {
    color: var(--accent-deep);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
}

.moderation-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.moderation-image-link {
    background: #fff;
    border: 2px solid rgba(179, 38, 30, 0.25);
    border-radius: 12px;
    display: block;
    height: 96px;
    overflow: hidden;
    width: 96px;
}

.moderation-image-link:hover,
.moderation-image-link:focus {
    border-color: var(--accent-deep);
}

.moderation-image-link img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 991px) {
    body.app-body {
        padding-bottom: 5.5rem;
    }

    .hero-shell,
    .section-shell {
        padding: 1.35rem 0 1rem;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .local-nav-shell {
        background: rgba(255, 249, 241, 0.92);
        border-bottom: 1px solid var(--line);
        padding-top: 0.6rem;
        position: sticky;
        top: 4.2rem;
        z-index: 1020;
    }

    .local-nav-shell .btn {
        border-radius: 999px;
        white-space: nowrap;
    }

    .directory-filter {
        display: none;
    }

    .mobile-directory-filter {
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid var(--line);
        border-radius: 18px;
        display: block;
        padding: 0.9rem;
    }

    .mobile-directory-filter .form-label {
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0;
        margin-bottom: 0.45rem;
        text-transform: uppercase;
    }

    .mobile-directory-filter .form-select,
    .mobile-directory-filter .btn {
        border-radius: 14px;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .install-app-button.is-visible {
        display: inline-flex;
    }

    .sticky-panel {
        position: static;
    }

    .banner-card {
        grid-template-columns: 1fr;
    }

    .footer-shell {
        padding-bottom: 6rem;
    }

}
