/* ============================================================
   Rybmap — rybmap.cz (permit / ledger redesign)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Special+Elite&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
    --paper: #EDE6D2;
    --paper-dark: #E1D7BC;
    --paper-line: #c9bd9c;
    --ink: #1B3A4B;
    --ink-soft: #3d5b6b;
    --water: #2F6E7A;
    --stamp: #9A3324;
    --stamp-soft: #b5573f;
    --gold: #B8863E;
    /* Lighter gold for text on dark ink (≥4.5:1 WCAG AA) */
    --gold-on-dark: #C9A05A;
    --muted-on-dark: #b8c6cb;
    --display: 'Fraunces', serif;
    --stamp-font: 'Special Elite', monospace;
    --body-font: 'Work Sans', sans-serif;
    --error: #c0392b;
    --success: #2d6a4f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    /* Sticky header + safe area — kotvy nesmí skončit pod navigací */
    scroll-padding-top: calc(112px + env(safe-area-inset-top, 0px));
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body-font);
    line-height: 1.55;
    font-size: 16px;
    overflow-x: clip;
    max-width: 100%;
    background-image:
        repeating-linear-gradient(transparent, transparent 27px, rgba(27, 58, 75, 0.055) 28px),
        radial-gradient(ellipse at 20% -10%, rgba(47, 110, 122, 0.10), transparent 55%);
}

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

img,
svg {
    display: block;
    max-width: 100%;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

.container--narrow {
    max-width: 760px;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* eyebrow / stamp label */
.eyebrow {
    font-family: var(--stamp-font);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--stamp);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--stamp);
    display: inline-block;
}

h1,
h2,
h3 {
    font-family: var(--display);
    margin: 0;
    color: var(--ink);
    font-weight: 600;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    letter-spacing: -0.01em;
}

p {
    color: var(--ink-soft);
}

/* perforated divider */
.perf {
    height: 1px;
    border-top: 2px dashed var(--paper-line);
    position: relative;
    margin: 0;
}

.perf::before,
.perf::after {
    content: "";
    position: absolute;
    top: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px dashed var(--paper-line);
}

.perf::before {
    left: -7px;
}

.perf::after {
    right: -7px;
}

/* ---------- header ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(237, 230, 210, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--paper-line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 28px;
    min-width: 0;
}

.nav .btn {
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    overflow: hidden;
    background: var(--water);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 0 rgba(27, 58, 75, 0.15);
    flex-shrink: 0;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navlinks {
    display: flex;
    gap: 28px;
    font-size: 0.94rem;
    font-weight: 500;
}

.navlinks a {
    text-decoration: none;
    color: var(--ink-soft);
    border-bottom: 1px solid transparent;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.navlinks a:hover {
    border-bottom-color: var(--stamp);
    color: var(--ink);
}

.navlinks a[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: var(--stamp);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    position: relative;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__bars::before {
    top: -6px;
}

.nav-toggle__bars::after {
    top: 6px;
}

header.is-nav-open .nav-toggle__bars {
    background: transparent;
}

header.is-nav-open .nav-toggle__bars::before {
    top: 0;
    transform: rotate(45deg);
}

header.is-nav-open .nav-toggle__bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.btn {
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: 12px 22px;
    min-height: 44px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-stamp {
    background: var(--stamp);
    color: var(--paper);
    box-shadow: 0 2px 0 #6d2016;
}

.btn-stamp:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #6d2016;
    color: var(--paper);
}

.btn-stamp:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #6d2016;
}

.btn-stamp:disabled {
    cursor: not-allowed;
    opacity: 0.85;
    transform: none;
}

.btn-ghost {
    border: 1.5px solid var(--ink);
    color: var(--ink);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--ink);
}

@media (max-width: 820px) {
    .nav {
        flex-wrap: wrap;
        position: relative;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-cta {
        order: 3;
    }

    .navlinks {
        display: none;
        order: 4;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 8px 0 4px;
        border-top: 1px solid var(--paper-line);
    }

    .navlinks a {
        min-height: 48px;
        padding: 10px 2px;
        border-bottom: 1px solid var(--paper-line);
    }

    .navlinks a:hover,
    .navlinks a[aria-current="page"] {
        border-bottom-color: var(--paper-line);
        color: var(--stamp);
    }

    header.is-nav-open .navlinks {
        display: flex;
    }
}

/* ---------- hero ---------- */
.hero {
    padding: 76px 0 60px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    line-height: 1.08;
    margin: 18px 0 20px;
}

.hero h1 em {
    font-style: italic;
    color: var(--water);
}

.hero p.lead {
    font-size: 1.08rem;
    max-width: 46ch;
    margin-bottom: 30px;
}

.hero-seal-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.seal-plate {
    width: min(340px, 90%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #f5f1e2, var(--paper-dark) 72%);
    border: 1px solid var(--paper-line);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px -20px rgba(27, 58, 75, 0.35);
    position: relative;
    overflow: hidden;
}

.hero-logo-wrap {
    width: 84%;
    height: 84%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seal-plate .hero-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.26);
    filter: drop-shadow(0 10px 22px rgba(27, 58, 75, 0.28));
}

.stamp-badge {
    position: absolute;
    top: -6%;
    right: -8%;
    width: 150px;
    height: 150px;
    transform: rotate(-13deg);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.stamp-badge svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 900px) {
    .hero-seal-area {
        overflow: hidden;
        width: min(280px, 72vw);
        margin-inline: auto;
    }

    .stamp-badge {
        top: -2%;
        right: -2%;
        width: 112px;
        height: 112px;
    }

    .cta-band {
        padding: 36px 22px;
    }

    .wrap,
    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* ---------- waitlist ---------- */
.waitform,
.waitlist-form__row {
    display: flex;
    gap: 0;
    max-width: 420px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    overflow: hidden;
    background: #faf7ee;
}

.waitlist-form {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 420px;
}

.waitlist-form__label {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
}

.waitlist-form__row {
    width: 100%;
}

.waitform input,
.waitlist-form__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 13px 14px;
    font-family: var(--body-font);
    font-size: 0.96rem;
    color: var(--ink);
}

.waitform input:focus,
.waitlist-form__input:focus {
    outline: none;
    background: #fff;
}

.waitform button,
.waitlist-form__button {
    border-radius: 0;
    border: none;
    white-space: nowrap;
}

.form-note,
.waitlist-form__hint {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-top: 10px;
}

.form-note a,
.trust-line a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 2px;
    margin: -8px 0;
}

.waitlist-form__hint a {
    color: var(--water);
}

.waitlist-form__status {
    margin: 0;
    font-size: 0.86rem;
    min-height: 1.35em;
}

.waitlist-form__status.is-success {
    color: var(--success);
}

.waitlist-form__status.is-error {
    color: var(--error);
}

.waitlist-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.waitlist-form__beta-cta {
    margin: 10px 0 0;
}

.btn-beta-guide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 3px;
    padding: 11px 18px;
    font-weight: 600;
    font-size: 0.94rem;
    background: var(--water);
    color: var(--paper);
    border: 1.5px solid var(--ink);
}

.btn-beta-guide:hover {
    color: var(--paper);
    filter: brightness(1.05);
}

.revir-waitlist-form {
    margin-top: 18px;
    max-width: 100%;
}

.revir-waitlist-form .waitlist-form__row {
    max-width: 100%;
}

/* ---------- newsletter (Ecomail) ---------- */
.newsletter-form {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 420px;
}

.newsletter-form__label {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
}

.newsletter-form__row {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 420px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    overflow: hidden;
    background: #faf7ee;
}

.newsletter-form__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 13px 14px;
    font-family: var(--body-font);
    font-size: 0.96rem;
    color: var(--ink);
}

.newsletter-form__input:focus {
    outline: none;
    background: #fff;
}

.newsletter-form__button {
    border-radius: 0;
    border: none;
    white-space: nowrap;
}

.newsletter-form__consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--ink-soft);
}

.newsletter-form__consent input {
    margin-top: 3px;
    flex-shrink: 0;
}

.newsletter-form__consent a {
    color: var(--water);
}

.newsletter-form__hint {
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin: 0;
}

.newsletter-form__status {
    margin: 0;
    font-size: 0.86rem;
    min-height: 1.35em;
}

.newsletter-form__status.is-success {
    color: var(--success);
}

.newsletter-form__status.is-error {
    color: var(--error);
}

.newsletter-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.cta-band .newsletter-form {
    max-width: 440px;
}

.cta-band .newsletter-form__label,
.cta-band .newsletter-form__consent,
.cta-band .newsletter-form__hint {
    color: rgba(246, 242, 228, 0.88);
}

.cta-band .newsletter-form__consent a {
    color: #f1d9d2;
}

.cta-band .newsletter-form__row {
    background: #faf7ee;
}

.cta-band .newsletter-form__status.is-success {
    color: #b7e0c2;
}

.cta-band .newsletter-form__status.is-error {
    color: #f1b7b0;
}

.foot-newsletter {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(237, 230, 210, 0.18);
    max-width: 480px;
}

.foot-newsletter .foot-heading {
    margin: 0 0 6px;
    font-family: var(--display);
    font-size: 1.05rem;
    color: #EDE6D2;
    font-weight: 500;
}

.foot-newsletter > p {
    margin: 0 0 14px;
    font-size: 0.88rem;
    color: rgba(237, 230, 210, 0.72);
}

.foot-newsletter .newsletter-form__label {
    color: #EDE6D2;
}

.foot-newsletter .newsletter-form__consent,
.foot-newsletter .newsletter-form__hint {
    color: rgba(237, 230, 210, 0.72);
}

.foot-newsletter .newsletter-form__consent a {
    color: #f1d9d2;
}

/* ---------- sections ---------- */
section {
    padding: 64px 0;
}

.section-head {
    max-width: 640px;
    margin-bottom: 40px;
}

.section-head .eyebrow {
    margin-bottom: 14px;
}

.section-head p {
    margin-top: 12px;
    font-size: 1.02rem;
}

.section__title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    text-align: center;
}

.section__subtitle {
    text-align: center;
    color: var(--ink-soft);
    max-width: 40em;
    margin: 0 auto 44px;
}

/* ---------- feature ledger ---------- */
.ledger {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--paper-line);
}

.ledger-item {
    display: flex;
    gap: 16px;
    padding: 22px 6px;
    border-bottom: 1px solid var(--paper-line);
}

.ledger-item:nth-child(odd) {
    border-right: 1px solid var(--paper-line);
    padding-right: 24px;
}

.ledger-item:nth-child(even) {
    padding-left: 24px;
}

.ledger-num {
    font-family: var(--stamp-font);
    color: var(--stamp);
    font-size: 0.85rem;
    padding-top: 3px;
    min-width: 26px;
}

.ledger-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--water);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ledger-icon svg {
    width: 19px;
    height: 19px;
    stroke: var(--paper);
    fill: none;
}

.ledger-text h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.ledger-text p {
    font-size: 0.93rem;
    margin: 0;
}

/* ---------- PRO panel ---------- */
.pro-panel {
    background: var(--ink);
    color: var(--paper);
    border-radius: 6px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.pro-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(115deg, rgba(184, 134, 62, 0.06) 0 2px, transparent 2px 26px);
}

.pro-panel .eyebrow {
    color: var(--gold-on-dark);
}

.pro-panel .eyebrow::before {
    background: var(--gold-on-dark);
}

.pro-panel h2 {
    color: var(--paper);
}

.pro-panel p.lead {
    color: #c9d6da;
    max-width: 56ch;
    margin: 14px 0 30px;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 28px;
    position: relative;
}

.pro-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.pro-check .tick {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
    border: 1.4px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pro-check .tick svg {
    width: 11px;
    height: 11px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 3;
}

.pro-check strong {
    display: block;
    font-size: 0.95rem;
    color: var(--paper);
    font-weight: 600;
}

.pro-check span {
    font-size: 0.85rem;
    color: var(--muted-on-dark);
}

.pro-price {
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px dashed rgba(237, 230, 210, 0.25);
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}

.pro-price .amount {
    font-family: var(--display);
    font-size: 2.1rem;
    color: var(--gold-on-dark);
    font-weight: 700;
}

.pro-price .fine {
    font-size: 0.85rem;
    color: var(--muted-on-dark);
    max-width: 52ch;
}

.pro-price .fine a {
    color: #dcebee;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 2px;
    margin: -8px 0;
}

/* ---------- community ---------- */
.comm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.comm-card {
    border: 1px solid var(--paper-line);
    border-radius: 4px;
    padding: 22px 20px;
    background: #f6f2e4;
}

.comm-card .ledger-num {
    display: block;
    margin-bottom: 10px;
}

.comm-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.comm-card p {
    font-size: 0.89rem;
    margin: 0;
}

/* ---------- ambassadors ---------- */
.ambass {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    overflow: hidden;
}

.ambass > div {
    padding: 28px 26px;
    border-right: 1px solid var(--paper-line);
}

.ambass > div:last-child {
    border-right: none;
    background: var(--stamp);
    color: var(--paper);
}

.ambass > div:last-child p,
.ambass > div:last-child .eyebrow {
    color: #f1d9d2;
}

.ambass > div:last-child .eyebrow::before {
    background: #f1d9d2;
}

.ambass h3 {
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.ambass p {
    font-size: 0.9rem;
    margin: 0;
}

.ambass a.btn {
    margin-top: 14px;
}

/* ---------- FAQ ---------- */
.faq-list,
.faq {
    border-top: 1px solid var(--paper-line);
}

details {
    border-bottom: 1px solid var(--paper-line);
    padding: 18px 4px;
}

summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.02rem;
    min-height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--ink);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    font-family: var(--body-font);
    font-size: 1.4rem;
    color: var(--stamp);
    flex-shrink: 0;
}

details[open] summary::after {
    content: "–";
}

details p {
    margin: 12px 0 2px;
    font-size: 0.95rem;
    max-width: 70ch;
}

/* ---------- final CTA ---------- */
.cta-band {
    background: var(--water);
    color: var(--paper);
    border-radius: 6px;
    padding: 52px 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-band h2 {
    color: var(--paper);
}

.cta-band p {
    color: var(--paper);
    margin-top: 8px;
    max-width: 40ch;
}

.cta-band .waitform,
.cta-band .waitlist-form__row {
    background: #f6f2e4;
    border-color: #0f2531;
    max-width: 100%;
}

.cta-band .waitlist-form {
    max-width: 420px;
}

.cta-band .waitlist-form__label {
    color: #dcebee;
}

.cta-band .waitlist-form__hint {
    color: var(--paper);
}

.cta-band .btn-coming-soon {
    background: var(--stamp);
    color: var(--paper);
    box-shadow: 0 2px 0 #6d2016;
}

/* ---------- footer ---------- */
footer {
    background: var(--ink);
    color: var(--muted-on-dark);
    padding: 44px 0 30px;
    margin-top: 20px;
    position: relative;
}

footer::before {
    content: "";
    display: block;
    height: 16px;
    margin-bottom: 34px;
    background-image: radial-gradient(circle, var(--paper) 5px, transparent 5.5px);
    background-size: 24px 16px;
    background-position: top center;
    background-repeat: repeat-x;
    transform: translateY(-38px);
}

.foot-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
}

.foot-links {
    display: flex;
    gap: 8px 18px;
    flex-wrap: wrap;
    align-items: center;
}

.foot-links a {
    text-decoration: none;
    color: var(--muted-on-dark);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 2px;
}

.foot-links a:hover {
    color: var(--paper);
}

.foot-legal {
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--muted-on-dark);
    line-height: 1.6;
}

/* ---------- content pages ---------- */
.page-hero {
    padding: 56px 0 48px;
    text-align: center;
    border-bottom: 1px solid var(--paper-line);
}

.page-hero h1 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    letter-spacing: -0.02em;
    margin-top: 14px;
}

.page-hero p {
    margin-top: 10px;
    font-size: 1.02rem;
}

.page-hero--beta {
    padding: 44px 0 52px;
}

.page-content {
    padding: 56px 0 72px;
}

.page-content h2 {
    font-size: 1.35rem;
    margin: 36px 0 12px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content h3 {
    font-size: 1.05rem;
    margin: 24px 0 8px;
}

.page-content p,
.page-content li {
    color: var(--ink-soft);
}

.page-content p {
    margin-bottom: 14px;
}

.page-content ul,
.page-content ol {
    margin: 0 0 16px 22px;
}

.page-content li {
    margin-bottom: 6px;
}

.page-content .updated {
    font-size: 0.85rem;
    color: var(--ink-soft);
    font-style: italic;
    margin-bottom: 24px;
}

/* ---------- changelog / co je nového ---------- */
.changelog-page {
    padding-top: 48px;
}

.changelog-empty {
    text-align: center;
    padding: 32px 16px 48px;
    color: var(--ink-soft);
}

.changelog-timeline {
    position: relative;
    padding-left: 0;
}

.changelog-timeline::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(
        to bottom,
        var(--paper-line),
        rgba(47, 110, 122, 0.35),
        var(--paper-line)
    );
}

@media (min-width: 640px) {
    .changelog-timeline::before {
        left: 15px;
    }
}

.changelog-entry {
    position: relative;
    padding: 0 0 40px 40px;
}

@media (min-width: 640px) {
    .changelog-entry {
        padding-left: 48px;
        padding-bottom: 48px;
    }
}

.changelog-entry:last-child {
    padding-bottom: 8px;
}

.changelog-entry::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--water);
    box-shadow: 0 0 0 3px rgba(47, 110, 122, 0.12);
}

@media (min-width: 640px) {
    .changelog-entry::before {
        left: 9px;
    }
}

.changelog-entry__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 16px;
    margin-bottom: 10px;
}

.changelog-entry__version {
    font-family: var(--stamp-font);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stamp);
}

.changelog-entry__date {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.changelog-entry__title {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.changelog-entry__body {
    color: var(--ink-soft);
}

.changelog-entry__body > *:first-child {
    margin-top: 0;
}

.changelog-entry__body h2,
.changelog-entry__body h3,
.changelog-entry__body h4 {
    font-family: var(--display);
    color: var(--ink);
    font-weight: 600;
    margin: 1.1em 0 0.45em;
}

.changelog-entry__body h2 {
    font-size: 1.2rem;
}

.changelog-entry__body h3 {
    font-size: 1.08rem;
}

.changelog-entry__body h4 {
    font-size: 1rem;
}

.changelog-entry__body p {
    margin: 0 0 0.85em;
    color: var(--ink-soft);
}

.changelog-entry__body ul,
.changelog-entry__body ol {
    margin: 0 0 0.95em 1.25rem;
}

.changelog-entry__body li {
    margin-bottom: 0.35em;
    color: var(--ink-soft);
}

.changelog-entry__body a {
    color: var(--water);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.changelog-entry__body a:hover {
    color: var(--ink);
}

.changelog-entry__body strong {
    color: var(--ink);
    font-weight: 600;
}

.contact-card {
    background: #f6f2e4;
    border: 1px solid var(--paper-line);
    border-radius: 4px;
    padding: 24px;
    margin: 24px 0;
}

.contact-card strong {
    color: var(--ink);
}

/* ---------- podpora ---------- */
.support-page .page-hero--support {
    padding: 48px 0 40px;
    text-align: center;
    border-bottom: none;
    position: relative;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(47, 110, 122, 0.12), transparent 58%),
        radial-gradient(ellipse at 85% 30%, rgba(154, 51, 36, 0.05), transparent 42%);
}

.support-page .page-hero--support h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.7rem);
}

.support-page .page-hero--support p {
    max-width: 42ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
    line-height: 1.6;
}

.support-page .section {
    padding: 48px 0;
}

.support-page .section:last-of-type {
    padding-bottom: 64px;
}

.support-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 4px;
    padding: 8px 28px 28px;
}

.support-jump a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 500;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 3px;
    transition: color 0.15s ease, background 0.15s ease;
}

.support-jump a:hover {
    color: var(--ink);
    background: rgba(47, 110, 122, 0.08);
}

.support-jump__num {
    font-family: var(--stamp-font);
    font-size: 0.78rem;
    color: var(--stamp);
    letter-spacing: 0.04em;
}

.support-contact {
    margin: 28px 0 20px;
    padding: 28px 24px;
    background: #f6f2e4;
    border: 1px solid var(--paper-line);
    border-left: 4px solid var(--stamp);
    border-radius: 4px;
}

.support-contact__label {
    display: block;
    font-family: var(--stamp-font);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stamp);
    margin-bottom: 10px;
}

.support-contact__mail {
    display: inline-block;
    font-family: var(--display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    line-height: 1.3;
    word-break: break-word;
}

.support-contact__mail:hover {
    color: var(--water);
    border-bottom-color: var(--water);
}

.support-contact__hint {
    margin: 14px 0 0;
    font-size: 0.95rem;
    max-width: 48ch;
}

.support-aside {
    margin-top: 8px;
    padding-top: 4px;
    font-size: 0.95rem;
}

.support-links {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    border-top: 1px solid var(--paper-line);
}

.support-links li {
    margin: 0;
    border-bottom: 1px solid var(--paper-line);
}

.support-links a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    padding: 18px 4px;
    min-height: 44px;
    color: inherit;
    transition: background 0.15s ease, padding-left 0.15s ease;
}

.support-links a:hover {
    background: rgba(47, 110, 122, 0.06);
    padding-left: 8px;
}

.support-links__title {
    font-family: var(--display);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--ink);
}

.support-links a:hover .support-links__title {
    color: var(--water);
}

.support-links__desc {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.support-cta {
    padding-top: 24px;
}

.support-cta__band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    padding: 36px 32px;
    background: var(--ink);
    color: var(--paper);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.support-cta__band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        115deg,
        rgba(184, 134, 62, 0.06) 0 2px,
        transparent 2px 26px
    );
    pointer-events: none;
}

.support-cta__band > * {
    position: relative;
}

.support-cta__band .eyebrow {
    color: var(--gold-on-dark);
    margin-bottom: 12px;
}

.support-cta__band .eyebrow::before {
    background: var(--gold-on-dark);
}

.support-cta__band h2 {
    color: var(--paper);
    font-size: clamp(1.35rem, 2.5vw, 1.7rem);
    margin-bottom: 8px;
}

.support-cta__band p {
    color: var(--muted-on-dark);
    margin: 0;
    max-width: 42ch;
    font-size: 0.98rem;
}

.support-cta__band .btn {
    flex-shrink: 0;
    text-decoration: none;
}

@media (max-width: 640px) {
    .support-jump {
        justify-content: flex-start;
        gap: 2px;
        padding-left: 16px;
        padding-right: 16px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .support-jump::-webkit-scrollbar {
        display: none;
    }

    .support-jump a {
        flex-shrink: 0;
        font-size: 0.88rem;
        padding: 8px 10px;
    }

    .support-contact {
        padding: 22px 18px;
    }

    .support-cta__band {
        padding: 28px 22px;
    }
}

/* ---------- tipy a triky ---------- */
.tip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin: 8px 0 28px;
}

.tip-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 18px;
    background: #f6f2e4;
    border: 1px solid var(--paper-line);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.tip-card:hover {
    border-color: var(--water);
    transform: translateY(-1px);
}

.tip-card__cat {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--stamp);
}

.tip-card__title {
    font-family: var(--display);
    font-size: 1.2rem;
    color: var(--ink);
    line-height: 1.25;
}

.tip-card__summary {
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.tip-steps {
    margin: 12px 0 20px 1.2rem;
}

.tip-steps li {
    margin-bottom: 8px;
}

.tip-video {
    margin: 8px 0 28px;
}

.tip-video__frame {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--paper-line);
}

.tip-video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tip-video__caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    text-align: center;
}

.tip-video__caption a {
    font-weight: 600;
    color: var(--water);
}

.tip-video__title {
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.tip-callouts {
    margin: 28px 0;
    padding: 18px 20px;
    background: rgba(47, 110, 122, 0.08);
    border-left: 3px solid var(--water);
}

.tip-callouts h3 {
    margin-top: 0;
}

.tip-disclaimer {
    margin-top: 28px;
    font-size: 0.88rem;
    color: var(--ink-soft);
    font-style: italic;
}

.tip-related {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--paper-line);
}

.tip-related ul {
    margin: 12px 0 16px 1.1rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--muted-on-dark);
    margin-bottom: 10px;
}

.breadcrumb a {
    color: var(--gold-on-dark);
}

.tipy-index .container {
    max-width: 960px;
}

/* ---------- beta testování ---------- */
.ios-only-badge,
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f6f2e4;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 3px;
    margin-bottom: 16px;
    line-height: 1.35;
    max-width: 100%;
}

.platform-badge--android {
    border-color: var(--water);
    color: var(--water);
    background: rgba(47, 110, 122, 0.08);
}

.platform-badge svg {
    flex-shrink: 0;
}

.beta-expect {
    margin-top: 28px;
    padding: 24px 22px;
    background: #f6f2e4;
    border: 1px solid var(--paper-line);
    border-left: 4px solid var(--stamp);
    border-radius: 4px;
}

.beta-expect h3 {
    margin: 10px 0 14px;
    font-size: 1.2rem;
}

.beta-expect__list {
    margin: 0;
    padding: 0 0 0 18px;
    display: grid;
    gap: 10px;
}

.beta-expect__list li {
    color: var(--ink-soft);
}

.beta-expect__list strong {
    color: var(--ink);
}

.beta-cta-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.beta-steps {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.beta-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #f6f2e4;
    border: 1px solid var(--paper-line);
    border-radius: 4px;
    padding: 22px 20px;
}

.beta-step__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--water);
    color: var(--paper);
    font-family: var(--stamp-font);
    font-size: 0.95rem;
}

.beta-step__body h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.beta-step__body p {
    margin-bottom: 12px;
}

.beta-step__body ul {
    margin: 0 0 8px 18px;
}

.btn-testflight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 3px;
    padding: 11px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    background: #f6f2e4;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    transition: transform 0.15s ease;
}

.btn-testflight:hover {
    transform: translateY(-1px);
    color: var(--ink);
}

.btn-testflight--primary {
    background: var(--stamp);
    color: var(--paper);
    border-color: #6d2016;
    box-shadow: 0 2px 0 #6d2016;
}

.btn-testflight--primary:hover {
    color: var(--paper);
}

.beta-android-notice {
    margin-top: 28px;
    padding: 18px 20px;
    border-radius: 4px;
    background: #f6f2e4;
    border: 1px solid var(--paper-line);
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

.android-status-page .page-hero p {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.android-status-page .beta-android-notice {
    margin-top: 0;
    border-left: 4px solid var(--stamp);
}

.beta-android-notice strong {
    color: var(--ink);
}

.btn-coming-soon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 3px;
    padding: 13px 28px;
    font-weight: 600;
    font-size: 1rem;
    background: var(--stamp);
    color: var(--paper);
    box-shadow: 0 2px 0 #6d2016;
}

.btn-coming-soon:hover {
    color: var(--paper);
    transform: translateY(-1px);
}

/* ---------- 404 ---------- */
.error-page {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 60px 20px;
}

.error-page .code {
    font-family: var(--stamp-font);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 400;
    color: var(--stamp);
    line-height: 1;
    margin-bottom: 8px;
}

.error-page h1 {
    margin-bottom: 8px;
}

/* ---------- revír landing ---------- */
.revir-page {
    padding: 48px 0 72px;
}

.revir-state {
    text-align: center;
    padding: 48px 0;
    color: var(--ink-soft);
}

.revir-state__icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.revir-state__lead {
    margin: 12px 0 24px;
}

.revir-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 16px;
    border: 3px solid var(--paper-line);
    border-top-color: var(--water);
    border-radius: 50%;
    animation: revir-spin 0.8s linear infinite;
}

@keyframes revir-spin {
    to {
        transform: rotate(360deg);
    }
}

.revir-card {
    background: #f6f2e4;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    padding: 28px 24px 32px;
}

.revir-card__badge {
    display: inline-block;
    font-family: var(--stamp-font);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stamp);
    margin-bottom: 14px;
}

.revir-card__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.25;
    margin-bottom: 6px;
}

.revir-card__number {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.revir-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.revir-meta dt {
    color: var(--ink-soft);
    font-weight: 500;
}

.revir-meta dd {
    margin: 0;
    color: var(--ink);
}

.revir-card__desc {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 24px;
    white-space: pre-line;
}

.revir-card__desc--structured {
    white-space: normal;
}

.revir-desc__preamble,
.revir-desc__prose {
    margin: 0 0 14px;
    white-space: pre-line;
}

.revir-desc__prose p {
    margin: 0 0 0.75em;
    line-height: 1.55;
}

.revir-desc__prose p:last-child {
    margin-bottom: 0;
}

.revir-desc__list {
    margin: 0 0 0.75em;
    padding-left: 1.25em;
    line-height: 1.55;
}

.revir-desc__list:last-child {
    margin-bottom: 0;
}

.revir-desc__list li {
    margin: 0.25em 0;
}

.revir-gps-zk {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
}

.revir-gps-zk__row {
    padding: 8px 10px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--water, #1b3a4b) 6%, transparent);
}

.revir-gps-zk__label {
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--ink-soft, #5a6b7a);
    margin-bottom: 2px;
}

.revir-gps-zk__value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    color: var(--ink);
    word-break: break-word;
}

.revir-ponds {
    margin: 0 0 16px;
}

.revir-ponds:last-child {
    margin-bottom: 0;
}

.revir-ponds__title {
    margin: 0 0 8px;
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--ink);
    text-transform: none;
}

.revir-ponds__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.revir-pond {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--paper-line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--water, #1b3a4b) 5%, transparent);
}

.revir-pond--link {
    padding: 0;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.revir-pond--link:hover {
    border-color: color-mix(in srgb, var(--water, #1b3a4b) 35%, var(--paper-line));
    background: color-mix(in srgb, var(--water, #1b3a4b) 9%, transparent);
}

.revir-pond__link {
    display: block;
    padding: 10px 12px;
    color: inherit;
    text-decoration: none;
}

.revir-pond__main {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: baseline;
    line-height: 1.35;
}

.revir-pond__code {
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.revir-pond__name {
    color: var(--ink);
    flex: 1 1 12rem;
}

.revir-pond--link .revir-pond__name {
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--water, #1b3a4b) 35%, transparent);
    text-underline-offset: 2px;
}

.revir-pond__area {
    color: var(--ink-soft);
    font-size: 0.9em;
    white-space: nowrap;
}

.revir-pond__gps {
    display: inline-block;
    margin-top: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: var(--ink-soft);
    word-break: break-word;
}

.revir-pond__hint {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-green, #2f6b4f);
}

.revir-desc__more {
    display: inline-block;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent, #33a673);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.revir-desc__link {
    color: var(--accent, #33a673);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.revir-desc__link:hover {
    color: var(--ink, #0b1f33);
}

.revir-map-section {
    margin-bottom: 24px;
}

.revir-map-seo {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.revir-map-seo a {
    color: var(--water);
    font-weight: 500;
}

.revir-map {
    width: 100%;
    height: 240px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--paper-line);
    margin-bottom: 14px;
    z-index: 0;
}

.revir-map-actions {
    display: grid;
    gap: 14px;
}

.revir-map-actions .btn-open-app {
    justify-self: start;
}

.revir-nav__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.revir-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.revir-nav__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    transition: transform 0.15s ease, background 0.15s ease;
}

.revir-nav__links a:hover {
    transform: translateY(-1px);
    background: rgba(47, 110, 122, 0.08);
    color: var(--ink);
}

.btn-navigate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 3px;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid var(--ink);
    transition: transform 0.15s ease;
}

.btn-navigate:hover {
    transform: translateY(-1px);
    color: var(--ink);
}

.revir-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-open-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 3px;
    background: var(--stamp);
    color: var(--paper);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 0 #6d2016;
    transition: transform 0.15s ease;
}

.btn-open-app:hover {
    transform: translateY(-1px);
    color: var(--paper);
}

.revir-sections {
    margin: 8px 0 24px;
}

.revir-extra {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--paper-line);
}

.revir-hydrology__spa {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--stamp) 14%, transparent);
    color: var(--stamp);
    font-size: 0.85rem;
    font-weight: 600;
}

.revir-hydrology__meta,
.revir-hydrology__attr,
.revir-hydrology__loading {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--ink-muted, #667);
}

.revir-hydrology__attr a {
    color: inherit;
}

.revir-extra h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.revir-extra__list {
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.revir-extra__list strong {
    color: var(--ink);
    font-weight: 600;
}

.btn-appstore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    min-height: 44px;
    min-width: 44px;
    padding: 2px 0;
    transition: transform 0.15s ease;
}

.btn-appstore:hover {
    transform: translateY(-2px);
}

.btn-appstore img {
    height: 40px;
    width: auto;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin-top: 8px;
    scroll-margin-top: calc(112px + env(safe-area-inset-top, 0px));
}

.hero-cta-row .btn {
    text-decoration: none;
}

.trust-line {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--ink-soft);
    max-width: 48ch;
    line-height: 1.55;
}

.trust-strip {
    padding: 28px 0 12px;
}

.trust-strip p {
    margin: 0;
    max-width: 64ch;
    font-size: 1.02rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

.trust-strip strong {
    color: var(--ink);
    font-weight: 600;
}

.btn-appstore-inline {
    display: inline-flex;
    align-items: center;
    color: var(--water);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mapa-h1 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #EDE6D2;
    white-space: nowrap;
    flex: 0 1 auto;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mapa-seo {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: normal;
    border: 0;
}

/* Keep map chrome readable on narrow screens */
@media (max-width: 720px) {
    .mapa-h1 {
        display: none;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- web mapa app ---------- */
.mapa-page {
    background: #1a2f3a;
    background-image: none;
    overflow: hidden;
    height: 100dvh;
    max-width: 100%;
}

.mapa-app {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-width: 100%;
    overflow: hidden;
    color: var(--ink);
}

.mapa-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 10px 14px;
    background: var(--paper);
    border-bottom: 1.5px solid var(--ink);
    z-index: 20;
    max-width: 100%;
    box-sizing: border-box;
}

.mapa-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.mapa-brand img {
    border-radius: 6px;
}

.mapa-search {
    display: flex;
    flex: 1 1 220px;
    min-width: 0;
    max-width: 420px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

.mapa-search input {
    flex: 1;
    border: 0;
    padding: 10px 12px;
    font: inherit;
    background: transparent;
    color: var(--ink);
    min-width: 0;
}

.mapa-search input:focus {
    outline: none;
}

.mapa-search__btn {
    border: 0;
    border-left: 1.5px solid var(--ink);
    background: var(--water);
    color: #f6f2e4;
    padding: 0 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

.mapa-filters {
    display: flex;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
}

.mapa-filters select {
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    padding: 8px 10px;
    min-width: 0;
    max-width: 100%;
}

.mapa-filters-toggle {
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
}

.mapa-filters-toggle.is-active,
.mapa-filters-toggle[aria-expanded="true"] {
    background: var(--ink);
    color: var(--paper);
}

.mapa-filters-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    padding: 8px 14px 10px;
    background: #f6f2e4;
    border-bottom: 1.5px solid var(--ink);
    z-index: 19;
}

.mapa-filters-extra[hidden] {
    display: none !important;
}

.mapa-filters-extra select {
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.88rem;
    padding: 7px 10px;
}

.mapa-filters-extra select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.mapa-flag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mapa-flag {
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 10px;
    cursor: pointer;
}

.mapa-flag.is-active,
.mapa-flag[aria-pressed="true"] {
    background: var(--water);
    border-color: var(--water);
    color: #f6f2e4;
}

.mapa-modes {
    display: inline-flex;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    overflow: hidden;
}

.mapa-mode {
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 12px;
    cursor: pointer;
}

.mapa-mode + .mapa-mode {
    border-left: 1.5px solid var(--ink);
}

.mapa-mode.is-active {
    background: var(--ink);
    color: var(--paper);
}

.mapa-appstore {
    margin-left: auto;
    line-height: 0;
}

.mapa-appstore img {
    height: 36px;
    width: auto;
}

.mapa-body {
    position: relative;
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: grid;
    grid-template-columns: 320px 1fr;
    max-width: 100%;
    overflow: hidden;
}

.mapa-app:not(.mapa-app--list) .mapa-sidebar {
    display: none;
}

.mapa-app:not(.mapa-app--list) .mapa-body {
    grid-template-columns: 1fr;
}

.mapa-sidebar {
    background: #f6f2e4;
    border-right: 1.5px solid var(--ink);
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    z-index: 5;
}

.mapa-sidebar__head {
    padding: 12px 14px;
    font-family: var(--stamp-font);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stamp);
    border-bottom: 1px solid var(--paper-line);
}

.mapa-list {
    overflow: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.mapa-list__empty {
    padding: 24px 16px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.mapa-list__item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 2px 10px;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--paper-line);
    background: transparent;
    padding: 12px 14px;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.mapa-list__item:hover,
.mapa-list__item.is-active {
    background: rgba(47, 110, 122, 0.1);
}

.mapa-list__badge {
    grid-row: 1 / span 2;
    align-self: center;
    font-family: var(--stamp-font);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--stamp);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.mapa-list__title {
    font-weight: 600;
    font-size: 0.98rem;
}

.mapa-list__meta {
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.mapa-stage {
    position: relative;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.mapa-map {
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #d5dde0;
}

.mapa-status {
    position: absolute;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    z-index: 8;
    margin: 0;
    padding: 8px 14px;
    background: rgba(246, 242, 228, 0.95);
    border: 1px solid var(--ink);
    border-radius: 3px;
    font-size: 0.85rem;
    color: var(--ink);
    box-shadow: 0 4px 16px rgba(27, 58, 75, 0.12);
    max-width: calc(100% - 24px);
}

.mapa-status.is-error {
    color: var(--error);
}

.mapa-status.is-action {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mapa-list__section {
    margin: 12px 8px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--water-deep, #1b3a4b);
    opacity: 0.75;
}

.mapa-list__item--place .mapa-list__badge {
    background: var(--water);
    color: #f6f2e4;
}

.mapa-private-cta {
    margin: 14px 8px 18px;
    padding: 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(27, 58, 75, 0.22);
    background: linear-gradient(160deg, rgba(46, 158, 235, 0.12), rgba(246, 242, 228, 0.95));
}

.mapa-private-cta strong {
    display: block;
    color: var(--water-deep, #1b3a4b);
    margin-bottom: 6px;
}

.mapa-private-cta p {
    margin: 0 0 12px;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--ink);
}

.mapa-private-cta__btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--water-deep, #1b3a4b);
    color: #f6f2e4 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.88rem;
}

.mapa-locate {
    position: absolute;
    right: 14px;
    bottom: 88px;
    z-index: 8;
    width: 44px;
    height: 44px;
    border-radius: 3px;
    border: 1.5px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(27, 58, 75, 0.18);
}

.mapa-locate:hover {
    background: #fff;
}

.mapa-marker {
    background: transparent !important;
    border: 0 !important;
}

.mapa-marker__dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.mapa-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 100%);
    background: #f6f2e4;
    border-left: 1.5px solid var(--ink);
    z-index: 12;
    transform: translateX(105%);
    transition: transform 0.28s ease;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.mapa-app--panel-open .mapa-panel {
    transform: translateX(0);
}

.mapa-panel__close {
    position: sticky;
    top: 8px;
    float: right;
    margin: 8px 10px 0 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    background: var(--paper);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.mapa-panel__body {
    padding: 20px 18px 28px;
    clear: both;
}

.mapa-panel__loading,
.mapa-panel__error {
    text-align: center;
    color: var(--ink-soft);
    padding: 32px 8px;
}

.mapa-panel__badge {
    font-family: var(--stamp-font);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stamp);
    margin-bottom: 8px;
}

.mapa-panel__title {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 4px;
}

.mapa-panel__number {
    color: var(--ink-soft);
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.mapa-panel__section {
    margin: 18px 0;
}

.mapa-panel__section h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.mapa-panel__section p {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.mapa-panel__fish {
    list-style: none;
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
}

.mapa-panel__fish span {
    color: var(--ink-soft);
    font-weight: 400;
}

.mapa-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.mapa-panel__actions .revir-nav {
    flex: 1 1 100%;
    margin-top: 4px;
}

/* ---------- SEO hledat pages ---------- */
.hledat-page {
    padding: 40px 0 72px;
    min-width: 0;
    overflow-x: clip;
}

.hledat-page h1 {
    margin: 12px 0 16px;
    font-size: clamp(1.55rem, 6vw, 2.4rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hledat-page .lead {
    max-width: 62ch;
}

.hledat-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 560px;
    margin: 28px 0 20px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

.hledat-form input,
.hledat-form input[type="search"] {
    flex: 1 1 auto;
    border: 0;
    border-radius: 0;
    padding: 14px 16px;
    font: inherit;
    font-size: 16px; /* iOS: avoid auto-zoom */
    color: var(--ink);
    background: #fff;
    min-width: 0;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.hledat-form input::-webkit-search-decoration,
.hledat-form input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.hledat-form input:focus {
    outline: none;
}

.hledat-form button {
    flex: 0 0 auto;
    border-radius: 0;
    box-shadow: none;
    white-space: nowrap;
}

.hledat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 16px;
    align-items: center;
    margin: 0 0 36px;
}

.hledat-actions .btn-open-app {
    flex: 0 1 auto;
}

.hledat-results h2 {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    margin-bottom: 12px;
}

.hledat-list {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    display: grid;
    gap: 0;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    overflow: hidden;
    background: #f6f2e4;
}

.hledat-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hledat-item + .hledat-item {
    border-top: 1px solid var(--paper-line);
}

.hledat-item a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--ink);
}

.hledat-item a:hover {
    background: rgba(47, 110, 122, 0.08);
    color: var(--ink);
}

.hledat-item__rank {
    font-family: var(--stamp-font);
    color: var(--stamp);
    min-width: 1.6rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.hledat-item__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.hledat-item__body strong {
    color: var(--ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.hledat-item__meta {
    color: var(--ink-soft);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.hledat-related h2 {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
}

.hledat-related__list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.hledat-related__list a {
    text-decoration: none;
    border-bottom: 1px solid var(--paper-line);
    color: var(--water);
    font-weight: 500;
}

.hledat-related__list a:hover {
    border-bottom-color: var(--stamp);
}

.hledat-intro,
.hledat-faq {
    margin: 28px 0 36px;
    max-width: 52rem;
}

.hledat-intro h2,
.hledat-faq h2 {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    margin-bottom: 12px;
}

.hledat-intro p {
    margin: 0 0 14px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.hledat-faq__item {
    border-top: 1px solid var(--paper-line);
    padding: 12px 0;
}

.hledat-faq__item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
}

.hledat-faq__item summary::-webkit-details-marker {
    display: none;
}

.hledat-faq__item p {
    margin: 10px 0 0;
    line-height: 1.6;
    color: var(--ink-soft);
}

.revir-state__title {
    font-family: var(--display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0 0 12px;
}

.seo-search-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 18px;
}

.seo-search-links a {
    color: var(--water);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--paper-line);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 2px;
}

/* Compact map CTA in header on narrow screens */
.nav-cta-full {
    display: inline;
}

.nav-cta-short {
    display: none;
}

@media (max-width: 640px) {
    .hledat-page {
        padding: 28px 0 56px;
    }

    .hledat-form {
        max-width: 100%;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .hledat-form button {
        width: 100%;
        justify-content: center;
        padding: 13px 16px;
        border-top: 1px solid var(--ink);
    }

    .hledat-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 32px;
    }

    .hledat-actions .btn-open-app {
        width: 100%;
        justify-content: center;
    }

    .hledat-actions .btn-appstore-inline {
        align-self: center;
        text-align: center;
        padding: 4px 0 2px;
    }

    .hledat-item a {
        padding: 13px 14px;
    }

    .nav-cta-full {
        display: none;
    }

    .nav-cta-short {
        display: inline;
    }

    .nav .btn {
        padding: 10px 14px;
        font-size: 0.88rem;
    }
}

@media (max-width: 900px) {
    .mapa-body {
        grid-template-columns: 1fr;
    }

    .mapa-app--list .mapa-sidebar {
        position: absolute;
        inset: 0;
        z-index: 10;
        width: 100%;
        border-right: 0;
    }

    .mapa-app--list .mapa-stage {
        visibility: hidden;
    }

    .mapa-panel {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: min(72dvh, 560px);
        border-left: 0;
        border-top: 1.5px solid var(--ink);
        transform: translateY(105%);
        border-radius: 10px 10px 0 0;
    }

    .mapa-app--panel-open .mapa-panel {
        transform: translateY(0);
    }

    .mapa-appstore {
        display: none;
    }

    .mapa-locate {
        bottom: 24px;
    }
}

@media (max-width: 640px) {
    .mapa-top {
        padding: 10px 12px;
        gap: 8px;
    }

    .mapa-modes {
        margin-left: auto;
    }

    .mapa-filters {
        width: 100%;
        flex: 1 1 100%;
    }

    .mapa-filters select {
        flex: 1;
    }

    .mapa-filters-extra {
        padding: 8px 12px 10px;
    }

    .mapa-filters-extra select {
        flex: 1 1 140px;
    }

    .mapa-search {
        max-width: none;
        flex: 1 1 100%;
        order: 5;
        width: 100%;
    }
}

/* ---------- scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

#funkce,
#pro,
#faq,
#komunita,
#ambasadori,
#hledani,
#stahnout {
    scroll-margin-top: calc(112px + env(safe-area-inset-top, 0px));
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 44px;
    }

    .hero-seal-area {
        order: -1;
    }

    .comm-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .pro-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pro-panel {
        padding: 34px 24px;
    }

    .ambass {
        grid-template-columns: 1fr;
    }

    .ambass > div {
        border-right: none;
        border-bottom: 1px solid var(--paper-line);
    }
}

@media (max-width: 760px) {
    .ledger {
        grid-template-columns: 1fr;
    }

    .ledger-item:nth-child(odd) {
        border-right: none;
    }

    .ledger-item:nth-child(even) {
        padding-left: 6px;
    }

    .waitlist-form__row,
    .waitform,
    .newsletter-form__row {
        flex-direction: column;
        max-width: 100%;
    }

    .waitlist-form__button,
    .waitform button,
    .newsletter-form__button {
        width: 100%;
        border-radius: 0;
    }
}

@media (max-width: 560px) {
    .pro-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .comm-grid {
        grid-template-columns: 1fr;
    }

    .beta-step {
        flex-direction: column;
        gap: 12px;
    }

    .btn-testflight {
        width: 100%;
        justify-content: center;
    }

    .beta-cta-stack {
        flex-direction: column;
        align-items: stretch;
    }

    .beta-cta-stack .btn,
    .beta-cta-stack .btn-testflight {
        width: 100%;
        justify-content: center;
    }

    .cta-band {
        padding: 36px 24px;
    }
}

/* ============================================================
   Public trip share — /vyprava/:token
   ============================================================ */

.trip-share-page {
    background-color: var(--paper);
    background-image:
        repeating-linear-gradient(transparent, transparent 27px, rgba(27, 58, 75, 0.045) 28px),
        radial-gradient(ellipse at 12% -8%, rgba(47, 110, 122, 0.16), transparent 52%),
        radial-gradient(ellipse at 88% 8%, rgba(154, 51, 36, 0.08), transparent 48%);
}

.trip-share {
    padding-bottom: 3rem;
}

.trip-share__hero {
    padding: 1rem 0 0;
}

.trip-share__map-shell {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.trip-share__map {
    width: 100%;
    height: min(62vh, 520px);
    min-height: 280px;
    border-radius: 4px;
    overflow: hidden;
    border: 1.5px solid var(--ink);
    box-shadow: 0 18px 40px rgba(27, 58, 75, 0.14);
    background: linear-gradient(165deg, #1b3a4b 0%, #2f6e7a 48%, #3d7a6a 100%);
    z-index: 0;
}

.trip-share__map--empty {
    display: grid;
    place-items: center;
}

.trip-share__empty {
    text-align: center;
    color: var(--paper);
    padding: 2rem 1.25rem;
}

.trip-share__empty img {
    margin: 0 auto 0.85rem;
    opacity: 0.95;
}

.trip-share__empty p {
    color: rgba(237, 230, 210, 0.88);
    font-size: 0.95rem;
    max-width: 22ch;
    margin: 0 auto;
}

.trip-share__glass {
    position: relative;
    z-index: 2;
    margin: -4.5rem 12px 0;
    padding: 1.15rem 1.2rem 1.25rem;
    background: color-mix(in srgb, var(--paper) 92%, white);
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    box-shadow: 0 12px 32px rgba(27, 58, 75, 0.12);
    backdrop-filter: blur(8px);
}

.trip-share__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.65rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.trip-share__brand img {
    border-radius: 50%;
    border: 1px solid var(--ink);
}

.trip-share__eyebrow {
    margin-bottom: 0.45rem;
}

.trip-share__title {
    font-size: clamp(1.55rem, 5vw, 2.15rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
}

.trip-share__owner {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.trip-share__place {
    margin: -0.35rem 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent, #2d8f6f);
}

.trip-share__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0.9rem 0 0.75rem;
}

.trip-share__stat {
    text-align: center;
    padding: 0.7rem 0.35rem;
    border: 1px solid var(--paper-line);
    border-radius: 3px;
    background: rgba(47, 110, 122, 0.07);
}

.trip-share__stat strong {
    display: block;
    font-family: var(--display);
    font-size: 1.12rem;
    color: var(--ink);
    line-height: 1.2;
}

.trip-share__stat span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    color: var(--ink-soft);
}

.trip-share__meta {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.trip-share__panel {
    padding-top: 1.75rem;
    max-width: 640px;
}

.trip-share__lead {
    margin: 0 0 1rem;
    font-size: 0.98rem;
    max-width: 42ch;
}

.trip-share__note {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--water);
    background: rgba(47, 110, 122, 0.06);
    color: var(--ink-soft);
    line-height: 1.45;
}

.trip-share__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-top: 0.35rem;
}

.trip-share__missing {
    padding: 3.5rem 28px 2rem;
    max-width: 560px;
}

.trip-share__missing h1 {
    margin: 0.4rem 0 0.75rem;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.trip-share__missing p {
    margin-bottom: 1.25rem;
}

@media (min-width: 720px) {
    .trip-share__map-shell {
        padding: 0 28px;
    }

    .trip-share__glass {
        margin: -5.25rem auto 0;
        max-width: 420px;
        margin-left: 28px;
    }

    .trip-share__map {
        min-height: 360px;
    }
}

@media (max-width: 420px) {
    .trip-share__stats {
        grid-template-columns: 1fr;
    }

    .trip-share__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .trip-share__cta .btn-open-app,
    .trip-share__cta .btn-appstore {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- cookie consent (paper / ink bar) ---------- */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    pointer-events: none;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.cookie-consent--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-consent--hiding {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}

.cookie-consent__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 28px;
    margin: 12px auto 16px;
    padding: 18px 22px;
    background:
        linear-gradient(180deg, #f7f2e4 0%, var(--paper) 100%);
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    box-shadow:
        0 -1px 0 rgba(237, 230, 210, 0.9),
        0 8px 28px rgba(27, 58, 75, 0.18);
}

.cookie-consent__copy {
    flex: 1 1 18rem;
    min-width: 0;
}

.cookie-consent__eyebrow {
    font-family: var(--stamp-font);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--stamp);
    margin: 0 0 8px;
}

.cookie-consent__text {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.5;
    max-width: 54ch;
}

.cookie-consent__text a {
    color: var(--water);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.cookie-consent__actions .btn {
    white-space: nowrap;
}

@media (max-width: 720px) {
    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        margin: 10px auto 12px;
        padding: 16px 18px;
        gap: 14px;
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}

html.has-cookie-consent body {
    padding-bottom: calc(8rem + env(safe-area-inset-bottom, 0px));
}

@media (prefers-reduced-motion: reduce) {
    *,
    .reveal {
        transition: none !important;
        animation: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }

    .revir-spinner {
        animation: none;
    }

    .cookie-consent,
    .cookie-consent--visible,
    .cookie-consent--hiding {
        transition: none !important;
    }
}
