:root {
    --bg: #f6f7f9;
    --panel: #ffffff;
    --border: #e2e5ea;
    --text: #1c2024;
    --muted: #697280;
    --accent: #1f6f4a;
    --up: #17803d;
    --up-bg: #e7f6ec;
    --down: #b42318;
    --down-bg: #fdeceb;
    --unknown: #8a6d1f;
    --unknown-bg: #fdf5e2;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14171a;
        --panel: #1c2024;
        --border: #2c3238;
        --text: #e8eaed;
        --muted: #98a2b0;
        --accent: #5fbf8c;
        --up: #4ec97e;
        --up-bg: #14301f;
        --down: #f77066;
        --down-bg: #38191a;
        --unknown: #e0bb5a;
        --unknown-bg: #332a12;
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

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

.status-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.status-header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.status-header h1 {
    margin: 0;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.overall {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.overall.up { background: var(--up-bg); color: var(--up); border-color: var(--up); }
.overall.down { background: var(--down-bg); color: var(--down); border-color: var(--down); }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    border-top: 3px solid var(--border);
}

.card.up { border-top-color: var(--up); }
.card.down { border-top-color: var(--down); }
.card.unknown { border-top-color: var(--unknown); }

.card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.card-head h2 {
    margin: 0;
    font-size: 1.05rem;
    flex: 1;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--muted);
    flex: none;
}

.up .dot, .overall.up .dot { background: var(--up); }
.down .dot, .overall.down .dot { background: var(--down); }
.unknown .dot { background: var(--unknown); }

.pill {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--border);
    color: var(--muted);
}

.pill.up { background: var(--up-bg); color: var(--up); }
.pill.down { background: var(--down-bg); color: var(--down); }
.pill.unknown { background: var(--unknown-bg); color: var(--unknown); }

dl {
    display: grid;
    grid-template-columns: minmax(96px, auto) 1fr;
    gap: 8px 16px;
    margin: 0;
    font-size: 0.9rem;
}

dt { color: var(--muted); }

dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.mono { font-family: var(--mono); font-size: 0.85rem; }

.error {
    margin: 16px 0 0;
    padding: 10px 12px;
    background: var(--down-bg);
    color: var(--down);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: var(--mono);
    overflow-wrap: anywhere;
}

.muted { color: var(--muted); font-size: 0.9rem; margin: 0; }

.status-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
}

.sep { margin: 0 10px; opacity: 0.5; }

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 20px;
    background: var(--unknown-bg);
    color: var(--text);
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.2);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 10px;
}

.placeholder-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 120px 24px;
    text-align: center;
}

.placeholder-page h1 {
    margin: 0 0 12px;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.placeholder-page p { margin: 0 0 8px; color: var(--muted); }

.build {
    font-weight: 600;
    color: var(--text);
}

/* ── Admin ─────────────────────────────────────────────────────────── */
.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }

.admin-nav {
    background: var(--panel); border-right: 1px solid var(--border);
    padding: 24px 18px; display: flex; flex-direction: column; gap: 24px;
}
.admin-nav .brand { display: flex; flex-direction: column; line-height: 1.3; }
.admin-nav .brand span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-nav nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav nav a {
    padding: 9px 12px; border-radius: 8px; color: var(--text);
    text-decoration: none; font-size: .92rem;
}
.admin-nav nav a:hover { background: var(--bg); }
.admin-nav nav a.active { background: var(--up-bg); color: var(--up); font-weight: 600; }
.admin-nav .who { margin-top: auto; font-size: .85rem; display: flex; flex-direction: column; gap: 6px; }
.admin-nav .who .name { font-weight: 600; }

.admin-main { padding: 36px 32px 64px; max-width: 1200px; min-width: 0; }
.admin-main h1 { margin: 0 0 4px; font-size: 1.6rem; letter-spacing: -.02em; }
.admin-main h2 { margin: 0 0 16px; font-size: 1.1rem; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 24px 0; }
.tile { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.tile-label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.tile strong { font-size: 1.6rem; }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 22px; margin-bottom: 24px; }
.panel.narrow { max-width: 460px; }
.panel label, .login-card label { display: block; margin: 14px 0 5px; font-size: .85rem; color: var(--muted); }
.panel input[type=text], .panel input[type=email], .panel input[type=password], .panel input:not([type]),
.login-card input { width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); color: var(--text); font-size: .92rem; }

label.check { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: .9rem; color: var(--text); cursor: pointer; }
label.check input { width: auto; }
label.check code { color: var(--muted); font-size: .75rem; margin-left: auto; }

.perm-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 18px; }
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
legend { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 6px; }

.role-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px; }

.actions { display: flex; gap: 10px; margin-top: 20px; }
.inline-form { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.inline-form input { flex: 1; max-width: 320px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); color: var(--text); }

button { font: inherit; cursor: pointer; border-radius: 7px; padding: 9px 16px; border: 1px solid transparent; }
button.primary { background: var(--accent); color: #fff; font-weight: 600; }
button.ghost { background: transparent; border-color: var(--border); color: var(--text); }
button.danger { background: transparent; border-color: var(--down); color: var(--down); }
button.link { background: none; border: none; padding: 0; color: var(--accent); text-decoration: underline; }
button:disabled { opacity: .6; cursor: default; }

.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; padding: 12px 14px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td.right { text-align: right; white-space: nowrap; }
tr.inactive { opacity: .55; }

.tag { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 999px; background: var(--up-bg); color: var(--up); margin-left: 6px; }
.tag.strong { background: var(--accent); color: #fff; }
.tag.muted-tag { background: var(--border); color: var(--muted); }
.chip { display: inline-block; background: var(--bg); border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; margin: 2px 4px 2px 0; font-size: .78rem; }
.small { font-size: .8rem; }

.banner { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: .9rem; }
.banner.warn { background: var(--unknown-bg); color: var(--unknown); }
.success { color: var(--up); font-size: .9rem; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 32px; width: 100%; max-width: 380px; }
.login-card h1 { margin: 0; font-size: 1.35rem; }
.login-card button { width: 100%; margin-top: 22px; }
.validation-message { color: var(--down); font-size: .82rem; display: block; margin-top: 4px; }

/* Anything that can hold long content must be allowed to shrink. */
.table-wrap, .panel, .tiles, .tile, .cards, .card { min-width: 0; }
.chip, code { overflow-wrap: anywhere; }

@media (max-width: 760px) {
    .admin-shell { grid-template-columns: minmax(0, 1fr); }

    .admin-nav {
        border-right: none; border-bottom: 1px solid var(--border);
        padding: 14px 16px; gap: 12px;
    }
    /* Links scroll sideways instead of stacking into a screen-tall menu. */
    .admin-nav nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 2px; }
    .admin-nav nav a { white-space: nowrap; padding: 7px 12px; background: var(--bg); }
    .admin-nav .who { margin-top: 0; flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }

    .admin-main { padding: 22px 16px 56px; }
    .admin-main h1 { font-size: 1.35rem; }

    .page-head { flex-wrap: wrap; }
    .page-head button { width: 100%; }

    .panel { padding: 16px; }
    .perm-groups, .role-picker, .tiles { grid-template-columns: minmax(0, 1fr); }

    .actions { flex-direction: column; }
    .actions button { width: 100%; }

    .inline-form { flex-wrap: wrap; }
    .inline-form input { max-width: none; flex: 1 1 100%; }

    /* Tables become stacked cards: five columns of buttons do not survive a phone,
       and side-scrolling a table to reach the actions is worse than no table. */
    .table-wrap { border: none; background: transparent; }
    table, thead, tbody, tr, td { display: block; width: 100%; }
    thead { display: none; }
    tr {
        background: var(--panel); border: 1px solid var(--border);
        border-radius: 10px; padding: 14px; margin-bottom: 12px;
    }
    td { border: none; padding: 5px 0; }
    td[data-label]::before {
        content: attr(data-label);
        display: block; color: var(--muted);
        font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
        margin-bottom: 3px;
    }
    td.right { text-align: left; white-space: normal; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
    td.right button { flex: 1 1 auto; }
    td:empty { display: none; }

    .status-page { padding: 28px 16px 48px; }
    .cards { grid-template-columns: minmax(0, 1fr); }
    .login-page { padding: 16px; }
    .login-card { padding: 24px; }
}

/* ── Content management ─────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; }
.panel select, .panel textarea {
    width: 100%; padding: 9px 11px; border: 1px solid var(--border);
    border-radius: 7px; background: var(--bg); color: var(--text); font: inherit; font-size: .92rem;
}
.panel textarea { resize: vertical; }
textarea.mono { font-family: var(--mono); font-size: .84rem; }

.month-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.month {
    padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--bg); color: var(--muted); font-size: .8rem;
}
.month.on { background: var(--up-bg); color: var(--up); border-color: var(--up); font-weight: 600; }
.month.all { border-style: dashed; }

.day-row {
    border: 1px solid var(--border); border-radius: 8px;
    padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px;
}
.day-head { display: flex; align-items: center; gap: 10px; }
.day-head select { flex: 1; max-width: 320px; }
.day-head strong { min-width: 54px; }

button.slim { padding: 5px 11px; font-size: .82rem; }

.search {
    width: 100%; max-width: 380px; margin-bottom: 14px; padding: 9px 12px;
    border: 1px solid var(--border); border-radius: 7px; background: var(--panel); color: var(--text);
}

.tile.link { text-decoration: none; color: var(--text); transition: border-color .12s; }
.tile.link:hover { border-color: var(--accent); }

@media (max-width: 760px) {
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .day-head { flex-wrap: wrap; }
}

h3.section {
    margin: 26px 0 4px; font-size: .8rem; text-transform: uppercase;
    letter-spacing: .07em; color: var(--muted);
    border-bottom: 1px solid var(--border); padding-bottom: 6px;
}

.uploader { display: inline-flex; align-items: center; gap: 10px; }
.upload-btn {
    position: relative; overflow: hidden; display: inline-block;
    padding: 8px 14px; border: 1px solid var(--border); border-radius: 7px;
    cursor: pointer; font-size: .85rem; background: var(--bg); color: var(--text);
    white-space: nowrap;
}
.upload-btn input[type=file] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%;
}

.hero-picker { margin: 6px 0 4px; }
.hero-preview {
    display: flex; align-items: flex-end; gap: 14px;
    border: 1px solid var(--border); border-radius: 10px;
    padding: 10px; background: var(--bg); max-width: 520px;
}
.hero-preview img {
    max-height: 130px; max-width: 320px; border-radius: 7px;
    object-fit: cover; display: block;
}
.hero-actions { display: flex; flex-direction: column; gap: 8px; }
.hero-empty {
    display: flex; align-items: center; gap: 12px;
    border: 1px dashed var(--border); border-radius: 10px;
    padding: 16px; max-width: 520px;
}
@media (max-width: 760px) {
    .hero-preview { flex-direction: column; align-items: stretch; }
    .hero-preview img { max-width: 100%; }
}

/* ═══ Public site ══════════════════════════════════════════════════════ */
:root {
    --pine: #17493a;
    --pine-deep: #0e3129;
    --saffron: #e2a13c;
    --chinar: #c05f3c;
    --snow: #f7f6f2;
    --ink: #1e2521;
    --ink-soft: #5c6963;
    --line: #e4e2da;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.site { min-height: 100vh; display: flex; flex-direction: column; background: var(--snow); color: var(--ink); font-family: var(--sans); }
.site-main { flex: 1; }
.shell { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow-shell { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { background: var(--snow); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.site-brand strong { font-family: var(--serif); font-size: 1.1rem; display: block; line-height: 1.15; }
.site-brand small { color: var(--ink-soft); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; }
.brand-mark { color: var(--saffron); font-size: 1.3rem; }
.site-nav { display: flex; gap: 4px; overflow-x: auto; }
.site-nav a { padding: 9px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .93rem; white-space: nowrap; }
.site-nav a:hover { background: #edece5; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--pine-deep) 0%, var(--pine) 60%, #1d5c49 100%); color: #f4f1e8; padding: 84px 0 92px; position: relative; overflow: hidden; }
.hero::after { content: "❆"; position: absolute; right: -40px; top: -60px; font-size: 340px; opacity: .05; }
.hero-kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; color: var(--saffron); margin: 0 0 14px; font-weight: 600; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin: 0 0 18px; font-weight: 600; }
.hero-sub { max-width: 620px; font-size: 1.08rem; line-height: 1.65; color: #d8dcd3; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary { background: var(--saffron); color: #2c1d05; padding: 12px 24px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border: 1px solid currentColor; padding: 12px 24px; border-radius: 999px; text-decoration: none; color: inherit; font-weight: 500; }
.btn-primary.wide, .btn-ghost.wide { display: block; text-align: center; margin-top: 12px; }
.detail-side .btn-ghost { color: var(--pine); }

/* Bands */
.band { padding: 56px 0; }
.band-alt { background: #efeee7; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.band h2, .band-head h2 { font-family: var(--serif); font-size: 1.7rem; margin: 0; font-weight: 600; }
.band .shell > h2 { margin-bottom: 22px; }
.more { color: var(--pine); text-decoration: none; font-weight: 600; font-size: .92rem; }
.page-hero { padding: 52px 0 8px; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0 0 8px; }
.crumb { font-size: .85rem; color: var(--ink-soft); margin: 0 0 10px; }
.crumb a { color: inherit; }

/* Place cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card-place { background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.card-place:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20, 40, 30, .12); }
.card-media { position: relative; aspect-ratio: 16/10; background: #dfe4dc; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 16px 18px 18px; }
.card-kicker { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); font-weight: 600; margin-bottom: 6px; }
.card-place h3 { font-family: var(--serif); margin: 0 0 4px; font-size: 1.25rem; }
.card-tagline { margin: 0 0 10px; color: var(--ink-soft); font-size: .92rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--ink-soft); align-items: center; }
.badge-now { position: absolute; top: 10px; left: 10px; background: var(--saffron); color: #2c1d05; font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.card-meta .badge-now, .detail-badges .badge-now { position: static; }

/* Placeholder art for missing images — gradient per kind */
.ph { display: grid; place-items: center; color: rgba(255,255,255,.85); }
.ph-label { font-family: var(--serif); font-size: 1.1rem; letter-spacing: .04em; }
.ph, .ph-city { background: linear-gradient(140deg, #40605a, #17493a); }
.ph-hillstation, .ph-meadow { background: linear-gradient(140deg, #5d8b4e, #2f5d33); }
.ph-lake, .ph-spring { background: linear-gradient(140deg, #4a7d96, #234b60); }
.ph-valley, .ph-village { background: linear-gradient(140deg, #7a8f5a, #44603a); }
.ph-waterfall { background: linear-gradient(140deg, #6d98ab, #33566b); }
.ph-pilgrimagesite { background: linear-gradient(140deg, #c08a45, #8a5a28); }
.ph-colddesert, .ph-pass, .ph-viewpoint { background: linear-gradient(140deg, #a58a68, #6e5a44); }

/* Chips */
.chip.on { background: var(--pine); color: #fff; border-color: var(--pine); }
.chip.subtle { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.filter-row .chip { text-decoration: none; color: var(--ink); padding: 6px 13px; }
.filter-label { font-size: .8rem; color: var(--ink-soft); min-width: 58px; font-weight: 600; }
.need-permit { color: var(--chinar); font-weight: 600; }

/* Detail pages */
.detail-hero { position: relative; min-height: 380px; display: flex; align-items: flex-end; color: #fff; }
.detail-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,20,.15) 30%, rgba(10,25,20,.78) 100%); }
.detail-hero-text { position: relative; padding-bottom: 34px; padding-top: 90px; width: 100%; }
.detail-hero-text h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5.5vw, 3.4rem); margin: 0 0 8px; }
.detail-hero-text .crumb { color: rgba(255,255,255,.85); }
.detail-hero-text .crumb a { color: inherit; }
.detail-tagline { font-size: 1.15rem; color: #ecd9b0; margin: 0 0 14px; font-family: var(--serif); font-style: italic; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.detail-badges .chip { background: rgba(255,255,255,.14); color: #fff; border: none; }
.detail-badges .chip.subtle { background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.detail-main { min-width: 0; font-size: 1.02rem; line-height: 1.7; }
.detail-main h2 { font-family: var(--serif); font-size: 1.5rem; margin: 36px 0 12px; }
.detail-main .lede { font-size: 1.15rem; line-height: 1.65; color: var(--ink); }
.prose { font-size: 1.02rem; line-height: 1.7; }
.prose h1, .prose h2, .prose h3 { font-family: var(--serif); }

.fact-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.fact-card h3 { margin: 0 0 12px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.fact-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: .92rem; }
.fact-card dt { color: var(--ink-soft); }
.fact-card dd { margin: 0; font-weight: 500; }
.fact-card p { margin: 0; font-size: .92rem; line-height: 1.6; }
.fact-card.warn { border-left: 4px solid var(--saffron); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; }
.gallery figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }
.gallery .credit { opacity: .8; }

.attraction-list { display: flex; flex-direction: column; gap: 14px; }
.attraction-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.attraction-row:hover { box-shadow: 0 8px 22px rgba(20,40,30,.1); }
.att-media { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: #dfe4dc; }
.att-media img { width: 100%; height: 100%; object-fit: cover; }
.attraction-row h3 { font-family: var(--serif); margin: 2px 0 6px; font-size: 1.15rem; }
.attraction-row p { margin: 0 0 8px; font-size: .92rem; }

.rate-table td, .rate-table th { background: #fff; }

.nearby-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.nearby-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 3px; font-size: .92rem; }
.nearby-card:hover { border-color: var(--pine); }

/* Itineraries */
.grid-itins { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.card-itin { display: grid; grid-template-columns: 76px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.card-itin:hover { box-shadow: 0 8px 22px rgba(20,40,30,.1); }
.card-itin h3 { font-family: var(--serif); margin: 0 0 6px; font-size: 1.2rem; }
.card-itin p { margin: 0 0 10px; font-size: .9rem; }
.itin-days { background: var(--pine); color: #fff; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1; padding: 10px 0; height: fit-content; }
.itin-days span { font-family: var(--sans); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; opacity: .8; }
.demand-easy { background: var(--up-bg); color: var(--up); }
.demand-moderate { background: var(--unknown-bg); color: var(--unknown); }
.demand-demanding { background: var(--down-bg); color: var(--down); }

.day-timeline { list-style: none; margin: 28px 0 0; padding: 0; position: relative; }
.day-timeline::before { content: ""; position: absolute; left: 44px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.day-timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 16px; margin-bottom: 18px; position: relative; }
.day-marker { font-weight: 700; color: var(--pine); font-size: .85rem; padding-top: 18px; text-align: left; background: var(--snow); z-index: 1; height: fit-content; }
.day-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.day-card h3 { font-family: var(--serif); margin: 0 0 6px; font-size: 1.15rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.day-card p { margin: 0; font-size: .95rem; line-height: 1.65; }
.drive-line { color: var(--ink-soft) !important; font-size: .85rem !important; margin: 0 0 8px !important; }

/* Info cards */
.grid-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card-info { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-decoration: none; color: var(--ink); }
.card-info:hover { border-color: var(--pine); }
.card-info h3 { font-family: var(--serif); margin: 10px 0 6px; font-size: 1.1rem; }
.card-info p { margin: 0; font-size: .88rem; }

/* Alerts */
.alert-strip { background: #2c2418; color: #f4e9d0; padding: 10px 0; }
.alert-row { font-size: .88rem; padding: 3px 0; }
.alert-row a { color: var(--saffron); margin-left: 8px; }
.sev-critical strong { color: #ff9d8f; }
.sev-warning strong { color: var(--saffron); }

/* Footer */
.site-footer { background: var(--pine-deep); color: #cfd8d0; padding: 46px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 26px; }
.foot-grid strong { color: #fff; display: block; margin-bottom: 10px; }
.foot-grid a { display: block; color: #cfd8d0; text-decoration: none; padding: 3px 0; font-size: .92rem; }
.foot-grid a:hover { color: var(--saffron); }
.foot-grid p { font-size: .9rem; line-height: 1.6; margin: 0; }
.foot-note { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .84rem; }

@media (max-width: 900px) {
    .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .site-header .shell { flex-direction: column; height: auto; padding-top: 12px; padding-bottom: 10px; gap: 8px; }
    .hero { padding: 56px 0 60px; }
    .attraction-row { grid-template-columns: minmax(0, 1fr); }
    .att-media { max-height: 180px; }
    .day-timeline::before { display: none; }
    .day-timeline li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .day-marker { padding-top: 0; }
    .card-itin { grid-template-columns: 64px 1fr; }
}

/* Placeholder gradients must beat the base media backgrounds regardless of order. */
.card-media.ph, .att-media.ph, .detail-hero.ph { background: linear-gradient(140deg, #40605a, #17493a); }
.card-media.ph-hillstation, .att-media.ph-hillstation, .detail-hero.ph-hillstation,
.card-media.ph-meadow, .att-media.ph-meadow, .detail-hero.ph-meadow { background: linear-gradient(140deg, #5d8b4e, #2f5d33); }
.card-media.ph-lake, .att-media.ph-lake, .detail-hero.ph-lake,
.card-media.ph-spring, .att-media.ph-spring, .detail-hero.ph-spring { background: linear-gradient(140deg, #4a7d96, #234b60); }
.card-media.ph-valley, .att-media.ph-valley, .detail-hero.ph-valley,
.card-media.ph-village, .att-media.ph-village, .detail-hero.ph-village { background: linear-gradient(140deg, #7a8f5a, #44603a); }
.card-media.ph-waterfall, .att-media.ph-waterfall, .detail-hero.ph-waterfall { background: linear-gradient(140deg, #6d98ab, #33566b); }
.card-media.ph-pilgrimagesite, .att-media.ph-pilgrimagesite, .detail-hero.ph-pilgrimagesite { background: linear-gradient(140deg, #c08a45, #8a5a28); }
.card-media.ph-colddesert, .att-media.ph-colddesert, .detail-hero.ph-colddesert,
.card-media.ph-pass, .att-media.ph-pass, .detail-hero.ph-pass,
.card-media.ph-viewpoint, .att-media.ph-viewpoint, .detail-hero.ph-viewpoint { background: linear-gradient(140deg, #a58a68, #6e5a44); }

/* Services directory */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card-service { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.card-service:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20,40,30,.12); }
.card-service h3 { font-family: var(--serif); margin: 0 0 4px; font-size: 1.2rem; display: flex; gap: 8px; align-items: center; }
.verified { color: var(--pine); background: #e2efe6; border-radius: 999px; padding: 1px 7px; font-size: .75rem; font-weight: 700; }
.verified.big { font-size: .8rem; background: rgba(255,255,255,.2); color: #fff; vertical-align: middle; margin-left: 8px; }
.pick { color: var(--saffron); font-weight: 600; }
.pick-chip { background: rgba(226,161,60,.25) !important; color: #ffd89b !important; }
.badge-sponsored { position: absolute; top: 10px; right: 10px; background: rgba(30,37,33,.82); color: #e8d8b4; font-size: .66rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.badge-sponsored.static { position: static; }
.badge-sponsored.inline { position: static; font-size: .6rem; padding: 2px 7px; margin-left: 6px; vertical-align: middle; }

/* Near me */
.nav-near { color: var(--pine) !important; font-weight: 600 !important; }
.nearby-feed { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.nearby-item { display: grid; grid-template-columns: 150px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--ink); }
.nearby-item:hover { box-shadow: 0 8px 22px rgba(20,40,30,.1); }
.nearby-item h3 { font-family: var(--serif); margin: 2px 0 6px; font-size: 1.15rem; }
.nearby-item p { margin: 0 0 8px; font-size: .9rem; }
@media (max-width: 700px) {
    .nearby-item { grid-template-columns: 96px 1fr; }
}

/* Video guides */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card-video { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card-video details > summary { list-style: none; cursor: pointer; }
.card-video details > summary::-webkit-details-marker { display: none; }
.card-video details[open] > summary { display: none; }
.video-thumb { position: relative; aspect-ratio: 16/9; background: #1c2521; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb.small { aspect-ratio: 16/9; border-radius: 10px; }
.play-badge {
    position: absolute; inset: 0; margin: auto; width: 58px; height: 58px;
    display: grid; place-items: center; background: rgba(20, 30, 25, .75);
    color: #fff; border-radius: 50%; font-size: 1.3rem; padding-left: 4px;
}
.video-thumb:hover .play-badge { background: var(--saffron); color: #2c1d05; }
.duration {
    position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.75);
    color: #fff; font-size: .72rem; padding: 3px 8px; border-radius: 5px;
}
.video-embed { aspect-ratio: 16/9; background: #000; }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-embed.ig { aspect-ratio: 4/5; max-height: 560px; }
.card-video h3 { font-family: var(--serif); margin: 0 0 4px; font-size: 1.15rem; }

.video-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.video-mini { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.video-mini strong { font-family: var(--serif); }

/* Days planner */
.plan-hero { background: linear-gradient(160deg, var(--pine-deep), var(--pine)); color: #f4f1e8; padding: 64px 0 56px; }
.plan-hero h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0 0 28px; }
.days-stepper { display: inline-flex; align-items: center; gap: 26px; }
.step-btn {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; text-decoration: none;
    border: 1px solid rgba(255,255,255,.25);
}
.step-btn:hover { background: var(--saffron); color: #2c1d05; }
.step-btn.disabled { opacity: .3; pointer-events: none; }
.days-value { display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.days-number { font-family: var(--serif); font-size: 4.4rem; line-height: 1; font-weight: 600; }
.days-label { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; color: var(--saffron); }
.plan-note { max-width: 560px; margin: 26px auto 0; color: #d8dcd3; font-size: 1.02rem; }
.plan-star { border: 2px solid var(--saffron); }
.plan-alt { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.plan-alt a { color: var(--pine); font-weight: 500; }

/* Search */
.search-form { display: flex; gap: 10px; max-width: 560px; }
.search-form input { flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }
.nav-search input {
    width: 130px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
    font: inherit; font-size: .85rem; background: #fff;
}

/* Things to do */
.todo-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.todo-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 5px; }
.todo-media { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: #dfe4dc; }
.todo-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.todo-card:hover .todo-media img { transform: scale(1.04); }
.todo-card strong { font-family: var(--serif); }

/* Trains */
.train-truth { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 40px; }
.rail-line { margin-bottom: 44px; }
.station-list { border-left: 3px solid var(--pine); margin-left: 9px; }
.station-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); padding: 18px 0; }
.station-marker { position: relative; }
.station-marker span {
    position: absolute; left: -12px; top: 4px; width: 18px; height: 18px;
    border-radius: 50%; background: #fff; border: 4px solid var(--pine);
}
.station-body h3 { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.station-tips { font-size: .95rem; color: var(--ink-soft, #4a4f47); }
.station-body .btn-ghost.slim { display: inline-block; margin-top: 8px; padding: 6px 14px; font-size: .88rem; }

/* Romantic */
.romantic-hero { background: linear-gradient(160deg, #4a1d33, #7a2d4e); color: #f8eef2; }
.romantic-hero .hero-kicker { color: #e9a6c0; }
.romantic-city { margin-bottom: 44px; }
.romantic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.romantic-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.romantic-media { position: relative; aspect-ratio: 16/9; background: #e8dfe3; }
.romantic-media img { width: 100%; height: 100%; object-fit: cover; }
.time-badge {
    position: absolute; right: 10px; top: 10px; background: rgba(30,15,25,.75); color: #f2d7e2;
    padding: 4px 10px; border-radius: 999px; font-size: .78rem;
}
.romantic-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.romantic-body h3 { margin: 0; font-family: var(--serif); }
.romantic-setting { font-style: italic; color: #6d4a5b; margin: 0; }
.romantic-idea summary { cursor: pointer; font-weight: 600; color: var(--pine); }
.romantic-idea[open] summary { margin-bottom: 6px; }
.romantic-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.romantic-cta { text-align: center; margin-top: 48px; padding: 36px 20px; background: #faf4f7; border-radius: 14px; }
.nav-trip { color: #a83a63; font-weight: 600; }

/* Account */
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 860px; }
.account-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.account-card h2 { margin-top: 0; font-family: var(--serif); }
.account-card label { display: block; margin: 12px 0 4px; font-weight: 500; }
.account-card input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.btn-primary.wide { width: 100%; margin-top: 16px; }

/* Trip journal */
.trip-hero { background: linear-gradient(160deg, var(--pine-deep), var(--pine)); color: #f4f1e8; }
.trip-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; color: #d8dcd3; }
.trip-stats strong { color: var(--saffron); font-size: 1.3rem; margin-right: 4px; }
.trip-add { margin-bottom: 36px; }
.trip-section { font-family: var(--serif); margin: 36px 0 16px; }
.trip-list { display: flex; flex-direction: column; gap: 16px; }
.trip-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.trip-card.memory { grid-template-columns: minmax(0, 1fr); }
.trip-media { position: relative; min-height: 150px; background: #dfe4dc; }
.trip-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.countdown {
    position: absolute; left: 10px; bottom: 10px; background: var(--saffron); color: #2c1d05;
    padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .82rem;
}
.trip-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.trip-body h3 { margin: 0; }
.season-note { padding: 8px 12px; border-radius: 8px; font-size: .9rem; margin: 4px 0; }
.season-note.good { background: #eef6ec; color: #2c5e2e; }
.season-note.warn { background: #fdf3e4; color: #7a4b12; }
.trip-notes { margin: 2px 0; }
.trip-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.trip-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 8px 0; }
.trip-photos figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.trip-photos img { width: 100%; height: 100%; object-fit: cover; }
.photo-del {
    position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%;
    background: rgba(20,15,15,.7); color: #fff; border: 0; cursor: pointer; line-height: 1;
}
.upload-label { position: relative; overflow: hidden; cursor: pointer; }
.upload-label input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.logout-row { margin-top: 40px; }
@media (max-width: 640px) {
    .trip-card { grid-template-columns: minmax(0, 1fr); }
    .trip-media { min-height: 140px; }
}

/* Journeys */
.journey-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.journey-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.journey-media { aspect-ratio: 16/9; background: #dfe4dc; }
.journey-media img { width: 100%; height: 100%; object-fit: cover; }
.journey-body { padding: 16px 18px 18px; }
.journey-body h2 { margin: 4px 0 8px; font-family: var(--serif); font-size: 1.3rem; }
.journey-route { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--pine); font-weight: 700; }
.route-arrow { color: var(--saffron); }
.route-big { font-family: var(--serif); }
.journey-nav { position: sticky; top: 0; z-index: 30; background: var(--pine-deep); }
.journey-nav-inner { display: flex; gap: 4px; overflow-x: auto; padding-top: 0; padding-bottom: 0; }
.journey-nav a { color: #dfe3da; padding: 12px 14px; white-space: nowrap; text-decoration: none; font-size: .92rem; }
.journey-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.journey-nav a.nav-prebook { color: var(--saffron); font-weight: 600; }
.journey-shell { max-width: 840px; }
.journey-h { font-family: var(--serif); margin: 44px 0 14px; scroll-margin-top: 60px; }
.reach-list { display: flex; flex-direction: column; gap: 16px; }
.reach-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.reach-head { display: flex; align-items: center; gap: 12px; }
.reach-head h3 { margin: 0; }
.reach-icon { font-size: 1.5rem; }
.prebook-list { display: flex; flex-direction: column; gap: 12px; }
.prebook-card { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 6px; background: #fffdf6; border: 1px solid #eadfc0; border-radius: 10px; padding: 14px 16px; }
.prebook-check { font-size: 1.3rem; color: var(--saffron); line-height: 1.2; }
.lead-time { color: #7a4b12; font-weight: 600; }
.journey-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 40px 0 16px; }
.journey-strip-band { padding-top: 28px; padding-bottom: 28px; }
.journey-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.journey-chip { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; color: var(--ink); }
.journey-chip strong { font-family: var(--serif); font-size: 1.15rem; }
.journey-chip span { color: var(--ink-soft, #5a5f57); font-size: .85rem; }
.journey-chip:hover { border-color: var(--pine); }

/* Trails */
.trail-hero-band { background: linear-gradient(160deg, #1e3a2a, #2f5d3f); color: #eef4ea; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip-link { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; font-size: .92rem; }
.chip-link.on { background: var(--pine); color: #fff; border-color: var(--pine); }
.trail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.trail-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); }
.trail-media { position: relative; aspect-ratio: 16/10; background: #dfe4dc; }
.trail-media img { width: 100%; height: 100%; object-fit: cover; }
.trail-body { padding: 14px 16px 16px; }
.trail-body h2 { margin: 0 0 2px; font-family: var(--serif); font-size: 1.15rem; }
.trail-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: .9rem; color: var(--ink-soft, #5a5f57); }
.rating { color: #8a6d1a; font-weight: 700; }
.diff-badge { position: absolute; left: 10px; top: 10px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.detail-badges .diff-badge { position: static; }
.diff-easy, .diff-badge.diff-easy { background: #e3f2e1; color: #2c5e2e; }
.diff-moderate, .diff-badge.diff-moderate { background: #fdf0dc; color: #8a5a10; }
.diff-hard, .diff-badge.diff-hard { background: #fbe3dc; color: #97371f; }
.chip-link.diff-easy.on { background: #2c5e2e; color: #fff; border-color: #2c5e2e; }
.chip-link.diff-moderate.on { background: #8a5a10; color: #fff; border-color: #8a5a10; }
.chip-link.diff-hard.on { background: #97371f; color: #fff; border-color: #97371f; }
.trail-stats { display: flex; gap: 0; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 8px 0 24px; overflow: hidden; }
.trail-stats > div { flex: 1 1 110px; padding: 16px 14px; text-align: center; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); }
.trail-stats > div:last-child { border-right: 0; }
.trail-stats strong { font-size: 1.15rem; font-family: var(--serif); }
.trail-stats span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft, #5a5f57); }
.trail-warn { margin-bottom: 24px; }
.trail-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 24px 0; }
.trail-facts > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.trail-facts strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--pine); }
.waypoint-list { display: flex; flex-direction: column; gap: 12px; }
.waypoint-row { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.waypoint-media { width: 90px; height: 66px; border-radius: 8px; overflow: hidden; background: #dfe4dc; }
.waypoint-media img { width: 100%; height: 100%; object-fit: cover; }
.review-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.review-big { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; }
.review-stars { color: #c9a227; letter-spacing: 2px; }
.review-form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 24px; }
.review-form h3 { margin-top: 0; }
.review-form label { display: block; margin: 10px 0 4px; font-weight: 500; }
.review-form textarea, .review-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.rating-row select { max-width: 280px; }
.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.review-item.mine { border-color: var(--pine); }
.review-item p { margin: 8px 0 0; white-space: pre-line; }
.review-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Kashmir Pulse */
.pulse-hero { background: linear-gradient(160deg, #1d2b3a, #2d4a63); color: #eaf1f7; }
.pulse-group { margin-bottom: 36px; }
.pulse-group h2 { font-family: var(--serif); margin-bottom: 12px; }
.pulse-list { display: flex; flex-direction: column; gap: 10px; }
.pulse-row { display: grid; grid-template-columns: 120px minmax(0,1fr) auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.pulse-row.stale { opacity: .75; }
.pulse-state { padding: 6px 0; border-radius: 8px; font-weight: 700; text-align: center; font-size: .88rem; }
.st-open { background: #e3f2e1; color: #2c5e2e; }
.st-caution { background: #fdf0dc; color: #8a5a10; }
.st-closed { background: #fbe3dc; color: #97371f; }
.st-unknown { background: #eeefec; color: #6a6f66; }
.pulse-main { display: flex; flex-direction: column; gap: 2px; }
.pulse-note { color: var(--ink-soft, #5a5f57); font-size: .92rem; }
.pulse-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .85rem; }
.pulse-time { font-weight: 600; color: var(--pine); }
.pulse-row.stale .pulse-time { color: #97371f; }
.pulse-strip { background: #14211b; }
.pulse-strip-inner { display: flex; gap: 14px; align-items: center; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; }
.pulse-pill { color: #cfd8cd; font-size: .85rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.pulse-pill strong { color: #fff; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.pulse-dot.st-open { background: #58b368; }
.pulse-dot.st-caution { background: #e0a63c; }
.pulse-dot.st-closed { background: #d9634a; }
.pulse-dot.st-unknown { background: #7a7f76; }
.pulse-more { color: var(--saffron); white-space: nowrap; margin-left: auto; font-size: .85rem; }
.nav-today { color: var(--saffron); font-weight: 600; }
.pulse-btns { display: flex; gap: 4px; }
.pulse-btn { padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-size: .82rem; }
.pulse-btn.open.on { background: #2c5e2e; color: #fff; border-color: #2c5e2e; }
.pulse-btn.caution.on { background: #8a5a10; color: #fff; border-color: #8a5a10; }
.pulse-btn.closed.on { background: #97371f; color: #fff; border-color: #97371f; }
.pulse-note-input { width: 100%; min-width: 180px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .88rem; }

/* When planner */
.when-result { position: sticky; top: 0; z-index: 20; background: var(--paper, #f7f6f1); padding: 14px 0 10px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.heat-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.heat-cell { border-radius: 8px; padding: 8px 2px; text-align: center; background: #eceee9; display: flex; flex-direction: column; gap: 2px; }
.heat-cell.some { background: color-mix(in srgb, var(--saffron) calc(var(--heat) * 55%), #eceee9); }
.heat-cell.all { background: var(--pine); color: #fff; }
.heat-cell.all .heat-count { color: var(--saffron); }
.heat-month { font-size: .78rem; font-weight: 700; }
.heat-count { font-size: .72rem; color: var(--ink-soft, #5a5f57); }
.when-verdict { margin: 12px 0 0; font-weight: 600; font-family: var(--serif); font-size: 1.05rem; }
.when-group { margin-bottom: 28px; }
.when-group h2 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 10px; }
.when-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.when-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; text-align: left; }
.when-chip.on { border-color: var(--pine); background: #eef4ea; }
.when-months { font-size: .75rem; color: var(--ink-soft, #5a5f57); }
@media (max-width: 700px) {
    .pulse-row { grid-template-columns: 96px minmax(0,1fr); }
    .pulse-meta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
    .heat-month { font-size: .68rem; }
    .heat-count { display: none; }
}

/* Fair price */
.fair-hero { background: linear-gradient(160deg, #3d2f14, #6b5320); color: #f7f2e6; }
.fair-hero .search-form { margin-top: 18px; }
.fair-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.fair-group { margin-bottom: 36px; }
.fair-list { display: flex; flex-direction: column; gap: 8px; }
.fair-row { display: grid; grid-template-columns: minmax(0,1fr) auto 200px; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.fair-service { display: flex; flex-direction: column; gap: 2px; }
.fair-rate { text-align: right; display: flex; flex-direction: column; }
.fair-amount { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--pine); }
.fair-source { text-align: right; color: var(--ink-soft, #5a5f57); }
.fair-footer { margin-top: 24px; }
@media (max-width: 700px) {
    .fair-row { grid-template-columns: minmax(0,1fr) auto; }
    .fair-source { grid-column: 1 / -1; text-align: left; }
}

/* Condition reports */
.report-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 8px 16px 8px 24px; margin-left: 16px; border-left: 3px solid var(--line); font-size: .92rem; }
.report-row.sig-allclear { border-left-color: #58b368; }
.report-row.sig-caution { border-left-color: #e0a63c; }
.report-row.sig-blocked { border-left-color: #d9634a; }
.report-label { text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; font-weight: 700; color: var(--ink-soft, #5a5f57); }
.report-text { flex: 1 1 240px; }
.report-file { margin-top: 36px; }
.report-file h2 { margin-top: 0; font-family: var(--serif); }

/* Ask the guide */
.ask-hero { background: linear-gradient(160deg, #26203a, #453764); color: #efeaf8; }
.ask-hero .hero-kicker { color: #b9a5e8; }
.nav-ask { color: #b9a5e8; font-weight: 600; }
.ask-chat { display: flex; flex-direction: column; gap: 12px; min-height: 120px; margin-bottom: 16px; }
.ask-suggestions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ask-bubble { max-width: 85%; padding: 12px 16px; border-radius: 14px; line-height: 1.55; }
.ask-bubble.me { align-self: flex-end; background: var(--pine); color: #fff; border-bottom-right-radius: 4px; }
.ask-bubble.guide { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ask-bubble.guide :first-child { margin-top: 0; }
.ask-bubble.guide :last-child { margin-bottom: 0; }
.ask-bubble.thinking { color: var(--ink-soft, #5a5f57); font-style: italic; }
.ask-sources { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ask-input { display: flex; gap: 8px; }
.ask-input select { max-width: 110px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; background: #fff; font: inherit; }
.ask-input input { flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.forgot-box { margin-top: 14px; }
.forgot-box summary { cursor: pointer; color: var(--pine); font-weight: 500; }
.forgot-box label { display: block; margin: 10px 0 4px; font-weight: 500; }
.btn-ghost.wide { width: 100%; margin-top: 10px; }

/* Weather strips */
.wx-strip { display: flex; gap: 4px; overflow-x: auto; }
.wx-day { flex: 1 1 0; min-width: 52px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 8px; background: #f4f5f1; }
.wx-dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft, #5a5f57); }
.wx-icon { font-size: 1.25rem; }
.wx-temp { font-size: .85rem; font-weight: 700; }
.wx-temp em { font-style: normal; font-weight: 400; color: var(--ink-soft, #5a5f57); }
.wx-rain { font-size: .72rem; color: #2d5e8a; font-weight: 600; }

/* Events */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.event-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.event-media { position: relative; aspect-ratio: 16/9; background: #e4e7e0; }
.event-media img { width: 100%; height: 100%; object-fit: cover; }
.event-cat { position: absolute; left: 10px; top: 10px; background: rgba(20,25,18,.75); color: #efe9da; }
.event-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.event-body h2 { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
.event-when { margin: 2px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.credits-list { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; }
.credits-list li { line-height: 1.5; }
