/* localtravel.guide — "Sol" design. One stylesheet, built on the tokens below. */

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url(/assets/fonts/plus-jakarta-sans.woff2) format("woff2");
    font-weight: 200 800; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url(/assets/fonts/plus-jakarta-sans-ext.woff2) format("woff2");
    font-weight: 200 800; font-style: normal; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --accent: #C94A1F; --accent-dark: #9E3712; --accent-soft: #FBE7DF;
    --ink: #1E2329; --muted: #4E5560; --faint: #8A919C;
    --line: #ECEDEF; --line-strong: #DDDFE3; --surface: #F5F6F7; --white: #FFFFFF;
    --success: #1B7F4B; --success-soft: #E3F4EA;
    --warning: #9A6700; --warning-soft: #FFF4D6;
    --danger: #B42318; --danger-soft: #FDE8E6;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --r-pill: 999px; --r-card: 16px; --r-panel: 20px; --r-input: 12px;
    --shadow: 0 6px 20px rgba(30, 35, 41, .08);
    --shadow-lg: 0 12px 34px rgba(30, 35, 41, .16);
    --wrap: 1200px; --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); overflow-wrap: anywhere; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
p { margin: 0; }
ul, ol { margin: 0; }
.icon { flex: 0 0 auto; vertical-align: middle; }
/* The hidden attribute always wins (buttons have display: inline-flex, which would otherwise show them). */
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.container { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 760px) { .container { padding-left: 32px; padding-right: 32px; } }
.section { padding-block: 56px; }
.section--tight { padding-block: 32px; }
.section--surface { background: var(--surface); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.stack--lg { --gap: 28px; }
.stack--sm { --gap: 8px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.narrow { max-width: 760px; }
main { display: block; min-height: 50vh; }

/* ---------- Type ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); }
.h1 { font-size: clamp(38px, 6vw, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; }
.h2 { font-size: clamp(24px, 3.2vw, 30px); font-weight: 800; }
.h3 { font-size: 20px; font-weight: 700; }
.lead { font-size: clamp(17px, 2vw, 19px); line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.prose { max-width: 68ch; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 22px; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--r-pill); border: 1.5px solid transparent; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--surface); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); }
.btn--danger { background: transparent; color: var(--danger); border-color: var(--danger-soft); }
.btn--danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn--success { background: var(--success); color: var(--white); }
.btn--success:hover { background: #156640; color: var(--white); }
.btn--sm { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--accent-dark); }
form.inline { display: inline; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-weight: 600; font-size: 15px; }
.field__hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--r-input); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[disabled] { background: var(--surface); color: var(--muted); }
.select { appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234E5560' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form-section { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.form-section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.file-drop { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 2px dashed var(--line-strong); border-radius: var(--r-panel); background: var(--surface); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.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; }

/* ---------- Cards and media ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px; }
.card + .card { margin-top: 20px; }
.panel { background: var(--surface); border-radius: var(--r-panel); padding: 24px; }
.tour-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tour-card__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tour-card__media:hover img { transform: scale(1.03); }
.tour-card__title { margin-top: 6px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tour-card__title a { color: var(--ink); text-decoration: none; }
.tour-card__title a:hover { text-decoration: underline; }
.tour-card__meta { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.tour-card__price { font-size: 15px; }
.placeholder-media { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 120px; color: var(--faint); background: var(--surface); }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; overflow: hidden; }
.avatar--sm { width: 36px; height: 36px; font-size: 14px; }
.avatar--md { width: 56px; height: 56px; font-size: 20px; }
.avatar--lg { width: 120px; height: 120px; font-size: 40px; }
.avatar--xl { width: 168px; height: 168px; font-size: 56px; }
.guide-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; text-align: center; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: var(--r-panel); }
.guide-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--ink); }
.guide-card strong { font-size: 18px; overflow-wrap: anywhere; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person__text { display: flex; flex-direction: column; min-width: 0; }

/* ---------- Badges, alerts, pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; background: var(--surface); color: var(--muted); white-space: nowrap; }
.badge--success { background: var(--success-soft); color: #14532D; }
.badge--warning { background: var(--warning-soft); color: #6B4700; }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--accent { background: var(--accent-soft); color: var(--accent-dark); }
.alert { padding: 14px 18px; border-radius: 14px; font-size: 15px; background: var(--surface); }
.alert--success { background: var(--success-soft); color: #14532D; }
.alert--error { background: var(--danger-soft); color: #7A1A12; }
.alert--warning { background: var(--warning-soft); color: #6B4700; }
.alert--info { background: var(--surface); color: var(--ink); }
.flashes { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pill:hover { background: var(--line); color: var(--ink); }
.pill.is-active { background: var(--ink); color: var(--white); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--r-panel); }
.empty > * + * { margin-top: 12px; }
.wishbox { max-width: 760px; margin-inline: auto; text-align: left; color: var(--ink); }
.wishbox .h4 { font-weight: 700; }
/* The email box opens when "Email me…" is ticked. */
.wishform:has(input[name="notify"]:not(:checked)) .wish-email { display: none; }
.planband { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.planband__select { min-width: 220px; width: auto; }
.demand { list-style: none; padding: 0; display: grid; gap: 10px; }
.demand li { padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); }
.ticks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ticks li { display: flex; align-items: center; gap: 6px; }
.ticks .icon { color: var(--accent); }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--success); margin-top: 3px; }
.checks--no .icon { color: var(--danger); }

/* ---------- Header ---------- */
.test-ribbon { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 100; padding: 3px 12px; border-radius: 0 0 8px 8px; background: #B42318; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 101; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.logo__word { font-size: 20px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.logo__ext { font-weight: 500; }
.logo--white { color: #fff; }
a.logo:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link { padding: 10px 14px; border-radius: var(--r-pill); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav__link:hover { background: var(--surface); color: var(--ink); }
.nav__link.is-active { color: var(--accent-dark); }
.nav__mobile-only { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; flex: 0 0 44px; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle:hover { background: var(--surface); }
.usermenu { position: relative; }
.usermenu > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px 4px 4px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; }
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.usermenu__panel a, .usermenu__panel button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; }
.usermenu__panel a:hover, .usermenu__panel button:hover { background: var(--surface); }
.usermenu__panel form { margin: 0; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
@media (max-width: 1040px) {
    .nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-header__inner { gap: 10px; }
    .header-actions { margin-left: auto; gap: 6px; }
    .header-actions .btn { min-height: 44px; padding: 8px 14px; font-size: 14px; white-space: nowrap; }
    .usermenu__name { display: none; }
    .site-header.nav-open .nav { display: flex; position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 32px; background: #fff; overflow-y: auto; }
    .site-header.nav-open .nav__link { padding: 14px 12px; font-size: 18px; border-radius: 12px; }
    .nav__mobile-only { display: block; }
}
/* Small phones: keep logo + one button + menu on one line (".guide" drops off the wordmark). */
@media (max-width: 400px) {
    .logo__word { font-size: 16px; }
    .site-header .logo__ext { display: none; }
    .header-actions .btn { padding: 8px 12px; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-block: 28px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
/* Language switch (footer, phone menu) and the small "Ver em português?" line */
.langs { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; padding: 0; margin: 0; font-size: 14px; }
.langs a { display: inline-block; padding: 10px 0; color: var(--muted); text-decoration: none; }
.langs a[aria-current] { color: var(--ink); font-weight: 600; }
.nav__langs { padding: 8px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.langhint { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 16px; background: var(--surface); font-size: 14px; }
.langhint a { font-weight: 600; }
.langhint button { min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.langhint[hidden] { display: none; }

/* ---------- Page title ---------- */
.page-title { padding-block: 40px 8px; }
.page-title > * + * { margin-top: 10px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); }

/* ---------- Home ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 48px 32px; }
.hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__media { flex: 1 1 440px; min-width: 0; position: relative; }
.hero__img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 28px; }
.hero__chip { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); color: var(--ink); text-decoration: none; }
.hero__chip:hover { color: var(--ink); }
.hero__chip img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.searchpill { display: flex; flex-wrap: wrap; gap: 4px; max-width: 820px; padding: 8px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-pill); box-shadow: var(--shadow); }
.searchpill__field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 6px 20px; }
.searchpill__field + .searchpill__field { border-left: 1px solid var(--line); }
.searchpill__label { font-size: 12px; font-weight: 700; }
.searchpill input, .searchpill select { width: 100%; padding: 2px 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); appearance: none; }
.searchpill input:focus, .searchpill select:focus { outline: none; }
.searchpill__field:focus-within { border-radius: 14px; box-shadow: 0 0 0 2px var(--accent); }
.searchpill .btn { min-height: 52px; }
@media (max-width: 760px) {
    .searchpill { border-radius: 22px; }
    .searchpill__field { padding: 10px 14px; }
    .searchpill__field + .searchpill__field { border-left: 0; border-top: 1px solid var(--line); }
    .searchpill .btn { width: 100%; }
}
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 8px; padding: 26px; background: #fff; border-radius: var(--r-panel); }
.section--surface .step { background: #fff; }
.step__num { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; }
.founder { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.founder blockquote { flex: 1 1 420px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.founder blockquote p { font-size: clamp(19px, 2.4vw, 24px); font-weight: 600; line-height: 1.45; letter-spacing: -.01em; }
.benefits { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.benefits li { display: flex; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.benefits .icon { color: var(--accent); margin-top: 2px; }

/* ---------- Tour page ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 8px; border-radius: var(--r-panel); overflow: hidden; }
.gallery__item { display: block; background: var(--surface); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item:first-child { grid-row: span 2; }
.gallery--1 { grid-template-columns: 1fr; grid-template-rows: 420px; }
.gallery--2 { grid-template-columns: 2fr 1fr; }
.gallery--2 .gallery__item:nth-child(2) { grid-row: span 2; }
.gallery__more { position: relative; }
.gallery__more span { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; }
@media (max-width: 760px) {
    .gallery, .gallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; }
    .gallery__item:first-child { grid-column: span 2; grid-row: auto; }
    .gallery__item:nth-child(n+4) { display: none; }
    .gallery--1 { grid-template-columns: 1fr; grid-template-rows: 260px; }
    .gallery--2 .gallery__item:nth-child(2) { grid-row: auto; grid-column: span 2; }
}
.tour-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; margin-top: 32px; }
.tour-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.tour-aside { flex: 1 1 300px; min-width: 0; position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.facts li { display: flex; align-items: center; gap: 6px; }
.pricebox { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.pricebox__price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.pricebox__price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan { list-style: none; padding: 0; counter-reset: plan; display: flex; flex-direction: column; gap: 0; }
.plan li { position: relative; padding: 0 0 18px 34px; border-left: 2px solid var(--line); margin-left: 9px; }
.plan li:last-child { border-left-color: transparent; padding-bottom: 0; }
.plan li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 14px; }
.faq summary { font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); }
.sticky-bar { display: none; }
@media (max-width: 760px) {
    .tour-aside .bookbox--simple { display: none; }
    .tour-aside { position: static; }
    .sticky-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(30, 35, 41, .08); }
    body:has(.sticky-bar) .site-footer { padding-bottom: 84px; }
}

/* ---------- Account / guide / admin areas ---------- */
.area { padding-block: 32px 24px; }
.area-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 28px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 12px 14px; margin-bottom: -1px; white-space: nowrap; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.tab .badge { margin-left: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; border-radius: 16px; background: var(--surface); }
.stat strong { display: block; font-size: 28px; font-weight: 800; line-height: 1.2; }
.stat span { font-size: 14px; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
.table th { background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td.actions { white-space: nowrap; text-align: right; }
.row-off { opacity: .55; }
.rows { display: flex; flex-direction: column; gap: 12px; }
.row-item { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; }
.row-item__media { flex: 0 0 112px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--surface); }
.row-item__media img { width: 100%; height: 100%; object-fit: cover; }
.row-item__body { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-item__body strong { overflow-wrap: anywhere; }
.todo { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.todo li { display: flex; gap: 10px; align-items: flex-start; }
.todo__mark { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--line-strong); color: #fff; }
.todo li.is-done .todo__mark { background: var(--success); border-color: var(--success); }
.todo li.is-done .todo__text { color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.photo-tile { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.photo-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-tile.is-hidden img { opacity: .35; }
.photo-tile > .badge { position: absolute; top: 10px; left: 10px; }
.photo-tile__actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
.photo-tile__actions form { margin: 0; }
.photo-tile > .photo-tile__small { left: auto; right: 10px; }

/* ---------- Lists: search box, sortable headings, booking codes ---------- */
.list-search { margin-bottom: 20px; }
.list-search .input { flex: 1 1 220px; width: auto; }
.sortlink { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; white-space: nowrap; }
.sortlink:hover { color: var(--accent-dark); text-decoration: underline; }
th[aria-sort] .sortlink { color: var(--accent-dark); }
.sortbar { margin: -8px 0 16px; }
/* ---------- Stats pages ---------- */
.statcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 28px; }
.statcard { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.statcard__label { font-size: 14px; color: var(--muted); }
.statcard__value { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; }
.statcard__change { font-size: 13px; color: var(--muted); min-height: 1.4em; }
.statblock { margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 32px; margin-bottom: 32px; }
.statgrid .statblock { margin-bottom: 0; }
.statnote { margin-top: 8px; }
.chart { margin: 0; }
.chart__cols { display: flex; align-items: flex-end; gap: 2px; height: 160px; padding-top: 22px; border-bottom: 1px solid var(--line); }
.chart__col { position: relative; flex: 1 1 0; max-width: 24px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.chart__bar { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--accent); }
.chart__col:hover .chart__bar { background: var(--accent-dark); }
.chart__max { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
.chart__axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding-top: 4px; }
.chart__table summary { cursor: pointer; font-size: 14px; color: var(--muted); min-height: 44px; display: flex; align-items: center; }
.table--compact th, .table--compact td { padding: 6px 10px; font-size: 14px; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hbars__row { display: grid; grid-template-columns: minmax(0, 11em) 1fr auto; align-items: center; gap: 10px; }
.hbars__label { font-size: 14px; overflow-wrap: anywhere; display: flex; flex-direction: column; }
.hbars__note { font-size: 12px; color: var(--muted); }
.hbars__track { height: 12px; }
.hbars__bar { display: block; height: 12px; border-radius: 0 4px 4px 0; background: var(--accent); }
.hbars__value { font-size: 14px; font-variant-numeric: tabular-nums; min-width: 2.5em; text-align: right; }
.sharebox { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sharebox__link { flex: 1 1 220px; width: auto; font-size: 14px; }
.reqcard__ref { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }

/* ---------- Photo tools: focus point ("Adjust") ---------- */
.focus-tool { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.focus-picker { position: relative; align-self: flex-start; max-width: 100%; line-height: 0; border-radius: 16px; overflow: hidden; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.focus-picker img { display: block; max-width: 100%; max-height: 60vh; width: auto; height: auto; }
.focus-picker:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.focus-dot { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(0, 0, 0, .5); pointer-events: none; }
/* Column widths follow the frames' shapes (4:3, 5:3, 1:1), so all three previews are the same height. */
.focus-previews { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 10px; align-items: start; }
.focus-preview { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.focus-preview figcaption { font-size: 13px; color: var(--muted); line-height: 1.3; }
.focus-preview__frame { overflow: hidden; border-radius: 10px; background: var(--surface); }
.focus-preview__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.focus-preview--card .focus-preview__frame { aspect-ratio: 4 / 3; }
.focus-preview--phone .focus-preview__frame { aspect-ratio: 5 / 3; }
.focus-preview--square .focus-preview__frame { aspect-ratio: 1 / 1; }

/* ---------- Photo tools: profile photo circle ---------- */
.avatar-field { align-items: flex-start; }
.avatar-field__preview { flex: 0 0 auto; display: inline-flex; }
.avatar-field__note { margin-top: 8px; color: var(--accent-dark); font-weight: 600; }
.avatar-field__error { margin-top: 8px; color: var(--danger); font-weight: 600; }
dialog.circle-tool { width: min(380px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); padding: 20px; border: 0; border-radius: var(--r-panel); box-shadow: var(--shadow-lg); overflow: auto; }
dialog.circle-tool::backdrop { background: rgba(30, 35, 41, .6); }
.circle-tool h2 { margin-bottom: 12px; }
.circle-tool__stage { position: relative; width: 100%; aspect-ratio: 1 / 1; margin-bottom: 10px; overflow: hidden; border-radius: 16px; background: var(--surface); }
.circle-tool__stage canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.circle-tool__stage canvas:active { cursor: grabbing; }
.circle-tool__stage canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
/* The round window: everything outside the circle is dimmed. */
.circle-tool__stage::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff, 0 0 0 9999px rgba(30, 35, 41, .55); pointer-events: none; }
.circle-tool__zoom { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; font-weight: 600; }
.circle-tool__zoom input { flex: 1; min-height: 44px; accent-color: var(--accent); }
.circle-tool__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.circle-tool__end { display: flex; gap: 8px; margin-left: auto; }
.mail-log pre { margin: 12px 0 0; padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); border-radius: 12px; font-size: 13px; }
.mail-log summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Auth ---------- */
.auth { max-width: 460px; margin: 0 auto; padding-block: 48px; }
.auth .card { padding: 32px; }
@media (max-width: 480px) { .auth .card { padding: 22px; border: 0; } }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin-top: 32px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); color: var(--ink); font-weight: 600; text-decoration: none; }
.pagination a:hover { background: var(--surface); }
.pagination .is-current { background: var(--ink); color: #fff; }
.pagination .is-disabled { color: var(--faint); }

/* ---------- Error page ---------- */
.error-page { text-align: center; padding-block: 80px; }
.error-page__code { font-size: 96px; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -.04em; }

/* ---------- Photo viewer ---------- */
.viewer { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(15, 18, 22, .94); }
.viewer::backdrop { background: rgba(15, 18, 22, .94); }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); border-radius: 8px; }
.viewer button { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.viewer button:hover { background: rgba(255, 255, 255, .28); }
.viewer__close { top: 16px; right: 16px; }
.viewer__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.viewer__next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* --- Booking (part 1) ------------------------------------------------------------ */
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.daypick { display: flex; flex-wrap: wrap; gap: 8px; }
.daypick label { position: relative; }
.daypick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.daypick span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 56px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: 15px; font-weight: 600; cursor: pointer; background: #fff; }
.daypick input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.daypick input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.bookform { gap: 18px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.cal__nav { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); }
a.cal__nav:hover { background: var(--surface); color: var(--ink); }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cal__dow { font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.cal__day { position: relative; display: block; min-height: 44px; }
.cal__day input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cal__day span { display: grid; place-items: center; min-height: 44px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.cal__day input:not(:disabled):hover + span { background: var(--surface); }
.cal__day input:checked + span { background: var(--accent); color: #fff; }
.cal__day input:disabled { cursor: default; }
.cal__day input:disabled + span { color: var(--faint); font-weight: 400; opacity: .55; }
.cal__day input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 1px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; font: inherit; font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer; }
.stepper button:hover { border-color: var(--ink); }
.stepper .input { width: 64px; text-align: center; padding-left: 6px; padding-right: 6px; }
.booktotal { font-size: 16px; }
dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92vh; border: 0; border-radius: 20px 20px 0 0; padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px)); overflow: auto; box-shadow: var(--shadow-lg); }
dialog.sheet::backdrop { background: rgba(30, 35, 41, .5); }
.sheet .bookbox { border: 0; box-shadow: none; padding: 0; }
.sheet__close { position: sticky; top: 0; z-index: 2; display: block; margin: 0 -4px -44px auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.reqbadge { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-dark); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.reqbadge:hover { color: var(--accent-dark); background: #F8D9CC; }
.reqbadge__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: 13px; }
@media (max-width: 399px) { .reqbadge { padding: 0 10px; } .reqbadge__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.reqcard h2 a { color: var(--ink); text-decoration: none; }
.reqcard h2 a:hover { color: var(--accent); }
.reqcard p .icon { vertical-align: -3px; color: var(--muted); }
.reqcard__msg { margin: 0; padding: 12px 16px; border-left: 3px solid var(--line-strong); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--ink); }
.reqcard__clock { color: var(--warning); }
.reqcard__clock .icon { color: var(--warning); }
.reqcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.reqcard__actions details[open] { grid-column: 1 / -1; }
.reqcard__act > summary { list-style: none; width: 100%; }
.reqcard__actions .reqcard__act > summary { width: 100%; }
.reqcard__act > summary::-webkit-details-marker { display: none; }
.reqcard__act[open] > summary { margin-bottom: 12px; }
.reqcard__act > form { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); }
.fieldset .check { min-height: 44px; align-items: center; }
@media (max-width: 760px) {
    /* Without JavaScript the booking box sits at the end of the page: full width so calendar days get 44px. */
    .tour-aside .bookbox { padding: 20px 0; border: 0; border-radius: 0; box-shadow: none; }
}
/* An open Accept/Decline/Cancel form: its top button becomes a quiet "Close"; the form's own button is the only action. */
.reqcard__act:not([open]) .act-open, .reqcard__act[open] .act-closed { display: none; }
/* "or" between Continue with Google and the email form */
.or { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
/* Booking box: a guest's name, email and terms, set apart from the request itself */
.bookform__you { border-top: 1px solid var(--line); padding-top: 16px; }
/* What was booked: the saved copy of the tour, folded in the inbox, open on the booking pages */
.booked { border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.booked > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px; cursor: pointer; font-weight: 600; color: var(--ink); }
.booked > summary .icon { color: var(--success, var(--accent)); }
.booked__body { padding: 0 16px 16px; }
.booked__list { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 8px 16px; margin: 0; }
.booked__list dt { color: var(--muted); font-size: 14px; }
.booked__list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .booked__list { grid-template-columns: 1fr; gap: 2px; } .booked__list dd { margin-bottom: 8px; } }
.booked-wrap { margin-top: 16px; }
/* A tour's or profile's other-language versions on the guide's forms */
.langtab { border: 1px solid var(--line); border-radius: var(--r-card); padding: 0 16px; margin-top: 12px; }
.langtab > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.langtab[open] { padding-bottom: 16px; }
.langnudge { display: flex; gap: 8px; align-items: baseline; }
.reqcard__act[open] > summary.btn { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.table td.nowrap { white-space: nowrap; }
/* Checkbox rows inside cards (alert switches, sign-up terms) are 44px touch targets. */
.card .check { min-height: 44px; padding: 10px 0; }

/* The saved YouTube video under the form field. */
.video-saved { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.video-saved img { width: 160px; height: 90px; object-fit: cover; border-radius: 8px; background: #111; flex: none; }

/* YouTube video: our own preview picture with a play button; pressing play swaps in the player (app.js). */
.video { margin: 0 0 24px; }
.video__play, .video__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-panel); overflow: hidden; background: #111; }
.video__play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video__button { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; display: grid; place-items: center; border-radius: 50%; background: rgba(15, 18, 22, .72); color: #fff; transition: transform .15s, background .15s; }
.video__button svg { margin-left: 4px; }
.video__play:hover .video__button, .video__play:focus-visible .video__button { background: var(--accent); transform: scale(1.06); }
.video figcaption { margin-top: 8px; }
.video--tall .video__play, .video--tall .video__frame { aspect-ratio: 9 / 16; width: auto; height: min(70vh, 640px); max-width: 100%; margin: 0 auto; }
.video--tall figcaption { text-align: center; }

/* The tour video as a tile in the photos (tile 2), and galleries of 3 and 4 tiles without an empty cell. */
.gallery--1 .gallery__item:first-child { grid-row: auto; }
.gallery--3 { grid-template-columns: 2fr 1fr; }
.gallery--4 .gallery__item:nth-child(2) { grid-row: span 2; }
.gallery__video { position: relative; overflow: hidden; background: #111; }
.gallery__video .video__button { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.gallery__video:hover .video__button, .gallery__video:focus-visible .video__button { background: var(--accent); transform: scale(1.06); }
.gallery__label { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; }
.viewer__player { width: min(calc(100vw - 32px), calc((100vh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; background: #000; }
.viewer--tall .viewer__player { width: auto; height: min(calc(100vh - 120px), calc((100vw - 32px) * 16 / 9)); aspect-ratio: 9 / 16; }
@supports (height: 100dvh) {
    /* Phones: 100vh includes the space under the browser's toolbars; dvh is the part really shown. */
    .viewer--video { height: 100dvh; max-height: 100dvh; }
    .viewer--video .viewer__player { width: min(calc(100vw - 32px), calc((100dvh - 120px) * 16 / 9)); }
    .viewer--tall .viewer__player { width: auto; height: min(calc(100dvh - 120px), calc((100vw - 32px) * 16 / 9)); }
}
@media (max-width: 760px) {
    .gallery--3, .gallery--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; }
    .gallery--4 .gallery__item:nth-child(2) { grid-row: auto; }
    .gallery__video .video__button { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
    .gallery__label { left: 8px; bottom: 8px; padding: 4px 10px; font-size: 13px; }
}

/* Stories (mockup blog-e-essay): centred head, photos wider than the text, picked tours as big rows at the end. */
.story-head { max-width: 760px; margin: 0 auto; text-align: center; }
.story-head .h1 { margin: 0; }
.story-place { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.standfirst { margin: 0; font-size: 22px; line-height: 1.55; color: var(--ink); }
.byline { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 15px; text-align: left; }
.byline img, .byline__initial { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.byline__initial { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.storyteller-photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.storyteller-photo--lg { width: 64px; height: 64px; }
.storyteller-photo--initial { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.byline a { color: var(--ink); font-weight: 700; text-decoration: none; }
.story-cover { display: block; width: 100%; max-width: 1040px; height: auto; margin: 0 auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-panel); }
.story-text { max-width: 760px; margin: 40px auto 0; }
.story-text p, .story-text li { font-size: 18px; line-height: 1.75; }
.story-text h2 { font-size: 26px; }
.story-photo { width: min(1040px, calc(100vw - 32px)); margin: 40px 0 40px 50%; transform: translateX(-50%); }
.story-photo img { display: block; width: 100%; height: auto; border-radius: 14px; }
.story-photo figcaption { max-width: 760px; margin: 8px auto 0; font-size: 14px; color: var(--muted); }
.pull { margin: 36px 0; padding: 0 0 0 24px; border-left: 4px solid var(--accent); font-size: 28px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.facts-box { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); }
.facts-box p { margin: 4px 0; }
.story-text .video { margin: 32px 0; }
.story-tours { max-width: 1040px; margin: 64px auto 0; padding-top: 48px; border-top: 1px solid var(--line); }
.story-tours .h2 { margin: 0; }
.story-tours > .muted { margin: 8px 0 0; }
.story-tours--none { padding-top: 32px; }
.story-tours__list { display: grid; gap: 40px; margin-top: 28px; }
.story-tour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: stretch; text-decoration: none; color: inherit; }
.story-tour:hover, .story-tour:focus-visible { color: inherit; }
.story-tour:hover .story-tour__title { text-decoration: underline; color: var(--accent); }
.story-tour__media { position: relative; display: block; min-height: 300px; border-radius: 14px; overflow: hidden; background: var(--surface); }
.story-tour__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-tour__text { display: flex; flex-direction: column; gap: 10px; }
.story-tour__title { margin: 0; font-size: 28px; line-height: 1.25; }
.story-tour__meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.story-tour__meta img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.story-tour__summary { font-size: 17px; line-height: 1.65; }
.story-tour__more { color: var(--accent); font-weight: 700; }
.story-plan { margin: 40px 0 0; }
@media (max-width: 640px) {
    .story-head { text-align: left; }
    .byline { justify-content: flex-start; }
    .standfirst { font-size: 19px; }
    .pull { font-size: 22px; }
    .story-tour { grid-template-columns: 1fr; gap: 14px; }
    .story-tour__media { min-height: 0; aspect-ratio: 4 / 3; }
    .story-tour__title { font-size: 24px; }
}

/* Story editor (admin, mockup editor-a-textbox). */
.story-editor { max-width: 900px; }
.story-editor__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.story-editor__title { font-size: 20px; font-weight: 700; }
.story-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: var(--surface); border: 1.5px solid var(--line-strong); border-bottom: 0; border-radius: var(--r-input) var(--r-input) 0 0; }
.story-toolbar .btn { min-height: 36px; padding: 6px 12px; background: var(--white); border: 1px solid var(--line); }
.story-editor__text { min-height: 420px; line-height: 1.7; border-radius: 0 0 var(--r-input) var(--r-input); }
.story-editor__help { margin: 8px 0 0; padding-left: 18px; line-height: 1.8; }
.story-keep { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.story-photos { display: flex; flex-wrap: wrap; gap: 12px; }
.story-photos__item { position: relative; margin: 0; width: 140px; }
.story-photos__item img { display: block; width: 140px; height: 100px; object-fit: cover; border-radius: 10px; }
.story-photos__number { position: absolute; left: 6px; top: 6px; padding: 2px 9px; border-radius: 999px; background: var(--white); font-size: 13px; }
.story-photos__cover { position: absolute; right: 6px; top: 6px; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 700; }
.story-photos__actions { display: flex; gap: 4px; margin-top: 4px; }
.story-photos__actions .btn { min-height: 32px; padding: 4px 8px; font-size: 13px; }
.story-actions { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 0; background: var(--white); border-top: 1px solid var(--line); }
.story-actions .muted { margin-right: auto; }
@media (max-width: 760px) { .story-editor__row { grid-template-columns: 1fr 1fr; } .story-editor__text { min-height: 320px; } }

/* Stories front page (mockup blog-index). */
.stories-head { max-width: 760px; }
.stories-head .h1, .stories-head .lead { margin: 0; }
.story-featured { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; text-decoration: none; color: inherit; }
.story-featured img, .story-featured .placeholder-media { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--r-panel); }
.story-featured__title { margin: 0; font-size: 34px; line-height: 1.15; }
.story-featured:hover .story-featured__title, .story-card:hover .story-card__title { text-decoration: underline; color: var(--accent); }
.story-featured:hover, .story-card:hover { color: inherit; }
.story-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.story-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.story-card img, .story-card .placeholder-media { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 14px; }
.story-card .story-place { font-size: 12px; margin-top: 4px; }
.story-card__title { margin: 0; font-size: 20px; line-height: 1.3; }
.story-card__writer { color: var(--ink); font-weight: 600; }
.story-others { border-top: 1px solid var(--line); padding-top: 28px; }
.story-others ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.story-others a { font-weight: 700; margin-right: 6px; }
@media (max-width: 900px) { .story-featured { grid-template-columns: 1fr; gap: 16px; } .story-featured__title { font-size: 28px; } }

/* Header between 1041 and 1180 px (long Portuguese / Spanish words, a guide's request badge and first name):
   the logo, the account button and the guide button stay whole; the menu links get a little tighter. */
.logo, .header-actions { flex-shrink: 0; }
.usermenu__name, .header-actions .btn { white-space: nowrap; }
@media (min-width: 1041px) and (max-width: 1180px) {
    .nav__link { padding: 10px 9px; }
    .reqbadge__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Guides drop-down in the header (Meet the guides · Become a guide · How it works). */
.nav__group { position: relative; }
.nav__group > summary { display: inline-flex; align-items: center; gap: 4px; list-style: none; cursor: pointer; }
.nav__group > summary::-webkit-details-marker { display: none; }
.nav__group[open] > summary .icon { transform: rotate(180deg); }
.nav__menu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 60; display: flex; flex-direction: column; min-width: 220px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.nav__menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav__menu a:hover { background: var(--surface); color: var(--ink); }
@media (max-width: 1040px) {
    .nav__group { display: none; }
    .site-header.nav-open .nav__sub { padding-left: 28px; font-size: 16px; }
}

/* Guide checks: badges on the guide page, marks in the tour page's guide card, the booking code at the meeting point. */
.guide-badges { display: flex; flex-direction: column; gap: 6px; }
.guide-badges__list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.guide-badges__list li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--success, #15803d); }
.meetcode { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.meetcode .avatar { flex: none; }
.check-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; color: var(--muted); font-size: 14px; }
.check-legend span { display: inline-flex; align-items: center; gap: 6px; }
.check-legend .icon { color: var(--success, #15803d); }
/* Multi-day tours: "Licensed guide" never breaks inside the tour page's guide card; the plan's day labels; a trip's dates. */
.plan__day { color: var(--accent-dark); margin-right: 4px; }
.trip-range { margin: 8px 0 0; font-weight: 600; color: var(--ink); }
.trip-range:empty { display: none; }
/* Ratings: stars, a review, the guide's reply, the star picker and the private box. */
.stars { color: #f2a516; letter-spacing: 1px; white-space: nowrap; }
.stars__off { color: #d9dde2; }
.review { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; padding-top: 0; }
.review__text { margin: 0; }
.review__who { font-size: 14px; color: var(--muted); }
.review__who strong { color: var(--ink); }
.review__reply { margin: 6px 0 0 18px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; font-size: 15px; }
.review__reply b { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.starpick { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.starpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.starpick label { font-size: 36px; line-height: 1; color: #d9dde2; cursor: pointer; }
.starpick input:checked ~ label, .starpick label:hover, .starpick label:hover ~ label { color: #f2a516; }
.starpick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.privatebox { border: 1px dashed var(--line-strong); background: #fbfbfc; }
.noshow { display: inline-block; margin: 0; background: #fdecec; color: #b42318; font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 999px; }
.card-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--ink); }
.card-rating .muted { font-weight: 500; }
.rating-sum { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; }
.rating-sum .muted { font-weight: 500; }
.reviews-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.reviews-head__avg { font-size: 34px; font-weight: 800; line-height: 1; }
.star-bars { display: grid; gap: 4px; max-width: 280px; font-size: 13px; color: var(--muted); }
.star-bars div { display: grid; grid-template-columns: 14px 1fr 26px; gap: 8px; align-items: center; }
.star-bars i { display: block; height: 6px; background: #eef0f2; border-radius: 3px; overflow: hidden; }
.star-bars b { display: block; height: 100%; background: #f2a516; }
/* Checks, compact: one line "Checked by localtravel.guide" + icons, the details folded; two guide cards per row on phones. */
.guide-checked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; }
.guide-checked__lead { display: inline-flex; align-items: center; gap: 6px; color: var(--success, #15803d); font-weight: 700; }
.guide-checked__more { flex-basis: 100%; }
.guide-checked__more summary { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
.guide-checked__more summary::-webkit-details-marker { display: none; }
.guide-checked__more[open] summary .icon { transform: rotate(180deg); }
.guide-checked__more ul { list-style: none; margin: 8px 0 0; padding: 12px 14px; display: grid; gap: 8px; background: #f3faf5; border-radius: 12px; font-size: 14px; color: var(--ink); }
.guide-checked__more li { display: flex; gap: 8px; align-items: flex-start; }
.guide-checked__more li .icon { color: var(--success, #15803d); margin-top: 2px; flex: none; }
.check-legend strong { color: var(--ink); font-weight: 700; }
@media (max-width: 560px) {
    .grid-cards--guides { grid-template-columns: 1fr 1fr; gap: 12px; }
    .grid-cards--guides .guide-card { padding: 16px 8px; gap: 4px; }
    .grid-cards--guides .guide-card .avatar--lg { width: 88px; height: 88px; font-size: 30px; }
    .grid-cards--guides .guide-card strong { font-size: 15px; }
    .grid-cards--guides .guide-card .small { font-size: 12px; }
    .check-legend { font-size: 13px; gap: 4px 12px; }
}
/* One honest mark per guide (checks by country): "✓ Checked" in every country, "Licensed" for Cadastur. */
.guide-mark { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; color: var(--success, #15803d); font-weight: 600; font-size: 14px; }
.guide-mark__item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.check-legend > span { align-items: flex-start; }
.check-legend > span .icon { flex: none; margin-top: 2px; }
.guide-card .guide-mark { justify-content: center; }
.check-legend > span > span { display: block; }
