/* Vila Bozhana – Troyan pottery: cream slip, dark glaze umber, and the cobalt, ochre and green drips of the
   Troyan glaze. Display: Bellota; text: Arimo (both SIL OFL without reserved names, self-hosted). */

@font-face { font-family: "Bellota"; src: url("/fonts/bellota-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bellota"; src: url("/fonts/bellota-bold-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Bellota"; src: url("/fonts/bellota-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Arimo"; src: url("/fonts/arimo.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Arimo"; src: url("/fonts/arimo-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
    --slip: #f7f0e3;
    --sheet: #fffaf1;
    --ink: #2a1c12;
    --muted: #5b4636;
    --umber: #2e1d12;
    --umber-2: #3d2718;
    --umber-3: #24170e;
    --cream: #f7f0e3;
    --cream-dim: #e3d5bf;
    --cobalt: #1d4f91;
    --cobalt-deep: #163d71;
    --cobalt-light: #8fb3e6;
    --ochre: #e0a93b;
    --ochre-light: #f0c66d;
    --green: #4f7f3a;
    --tile: #b4432b;
    --line: rgba(46, 29, 18, 0.16);
    --radius: 22px;
    --display: "Bellota", "Trebuchet MS", sans-serif;
    --text: "Arimo", "Helvetica Neue", Arial, sans-serif;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
    margin: 0;
    background: var(--slip);
    color: var(--ink);
    font-family: var(--text);
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
    line-height: 1.62;
    overflow-x: clip;
    font-variant-ligatures: no-common-ligatures; /* Bellota draws fi / fl as odd ligatures */
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cobalt); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.band-dark :focus-visible, .foot :focus-visible, .top :focus-visible { outline-color: var(--ochre); }
.top :focus-visible { outline-color: var(--cobalt); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--umber); color: var(--cream); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---- buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 10px 22px;
    border: 2px solid var(--cobalt); border-radius: 999px;
    background: var(--cobalt); color: #fff;
    font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none; line-height: 1.2;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29, 79, 145, 0.25); }
.btn-ochre { background: var(--ochre); border-color: var(--ochre); color: var(--umber); }
.btn-ochre:hover { background: var(--ochre-light); border-color: var(--ochre-light); color: var(--umber); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); }
.btn-ghost { background: transparent; border-color: rgba(247, 240, 227, 0.7); color: var(--cream); }
.btn-ghost:hover { background: rgba(247, 240, 227, 0.12); border-color: var(--cream); color: var(--cream); }

/* ---- header ---- */
.top {
    position: relative; z-index: 30;
    background: rgba(255, 250, 241, 0.92);
    border-bottom: 1px solid var(--line);
}
.top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--umber); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--umber); }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font-family: var(--display); font-size: 1.3rem; line-height: 1; white-space: nowrap; }
.brand-name b { font-style: italic; }
.brand-place { display: none; font-size: 0.85rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }

.call {
    order: 5; flex: 1 1 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 8px 16px; border-radius: 999px;
    background: var(--umber); color: var(--cream);
    font-family: var(--display); font-weight: 700; font-size: 1.1rem; text-decoration: none; white-space: nowrap;
}
.call:hover { background: var(--cobalt); color: #fff; }

.lang { display: inline-flex; gap: 2px; font-family: var(--display); font-weight: 700; font-size: 0.95rem; }
.lang a, .lang span { padding: 6px 8px; border-radius: 8px; line-height: 1; min-width: 34px; text-align: center; }
.lang span { background: var(--umber); color: var(--cream); }
.lang a { color: var(--umber); text-decoration: none; }
.lang a:hover { background: rgba(46, 29, 18, 0.08); }

.menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 6px 14px; border: 2px solid var(--umber); border-radius: 999px;
    background: transparent; color: var(--umber); font: 700 0.95rem var(--display); cursor: pointer;
}
.menu-toggle[hidden] { display: none; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.2s ease; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -5px; }
.menu-bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-5px) rotate(-45deg); }

.nav { order: 6; flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a {
    padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none;
    font-family: var(--display); font-weight: 700; font-size: 1.02rem;
}
.nav a:hover { background: rgba(46, 29, 18, 0.07); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--umber); color: var(--cream); }

.js-menu .nav:not(.open) { display: none; }
.js-menu .nav.open { display: grid; grid-template-columns: 1fr 1fr; padding-bottom: 6px; }

@media (min-width: 761px) {
    .top { position: sticky; top: 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
    .brand-place { display: inline; }
    .call { order: 0; flex: 0 0 auto; }
    .menu-toggle { display: none !important; }
    .js-menu .nav:not(.open), .js-menu .nav.open, .nav { display: flex; }
    .nav { order: 6; justify-content: flex-start; }
}
@media (min-width: 1140px) {
    .top-row { flex-wrap: nowrap; }
    .brand { margin-right: 0; }
    .nav { order: 0; flex: 1 1 auto; justify-content: center; }
}

/* ---- bands ---- */
.band { padding-block: clamp(56px, 8vw, 104px); }
.band-sheet { background: var(--sheet); }
.band-dark {
    position: relative;
    background: var(--umber);
    color: var(--cream);
}
.band-dark a:not(.btn) { color: var(--ochre); }
.band-dark a:not(.btn):hover { color: var(--ochre-light); }
.band-dark + .band, .band-dark + section { padding-top: clamp(104px, 11vw, 140px); }

.kicker {
    font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
    font-size: 0.85rem; color: var(--tile); margin-bottom: 0.6em;
}
.band-dark .kicker { color: var(--ochre); }
.section-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.more { margin: 2em 0 0; }

/* the drip edge of a dark band */
.drip { position: absolute; left: 0; top: calc(100% - 1px); display: block; height: 88px; z-index: 3; pointer-events: none; transform-origin: top; }
.drip-glaze { fill: var(--umber); }
.drip-ochre { fill: var(--ochre); }
.drip-cobalt { fill: #3c6fb8; }
.drip-green { fill: #6f9d4f; }
.drip-slip { fill: rgba(247, 240, 227, 0.75); }

@media (prefers-reduced-motion: no-preference) {
    .drip-hero { animation: pour 1.6s cubic-bezier(0.3, 0.7, 0.2, 1) 0.4s both; }
    @supports (animation-timeline: view()) {
        .drip:not(.drip-hero) { animation: pour linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    }
}
@keyframes pour { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }

/* ---- hero ---- */
.hero { min-height: min(88svh, 820px); display: grid; align-items: end; overflow: visible; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(to top, var(--umber) 0%, rgba(46, 29, 18, 0.88) 30%, rgba(46, 29, 18, 0.25) 62%, rgba(46, 29, 18, 0.1) 100%),
        linear-gradient(to right, rgba(46, 29, 18, 0.65), rgba(46, 29, 18, 0) 60%);
}
.hero-body { position: relative; z-index: 2; padding-block: 120px 40px; }
.hero h1 { font-size: clamp(3rem, 1.6rem + 7vw, 7rem); line-height: 0.95; margin-bottom: 0.25em; letter-spacing: -0.02em; }
.hero h1 em { color: var(--ochre); }
.hero .lead { max-width: 34em; font-size: clamp(1.12rem, 1rem + 0.5vw, 1.4rem); color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }
.hero-award { font-family: var(--display); font-size: 1.05rem; color: var(--cream-dim); margin: 0; }
.hero-award strong { font-size: 1.6rem; color: var(--ochre); }

@media (prefers-reduced-motion: no-preference) {
    .hero-body > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
    .hero-body > :nth-child(2) { animation-delay: 0.08s; }
    .hero-body > :nth-child(3) { animation-delay: 0.16s; }
    .hero-body > :nth-child(4) { animation-delay: 0.24s; }
    .hero-body > :nth-child(5) { animation-delay: 0.32s; }
    .hero-photo { animation: settle 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* ---- page hero (inner pages): a glazed plate in rings ---- */
.page-hero {
    padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 80px);
    background:
        radial-gradient(circle at 88% 40%, transparent 0 46px, rgba(224, 169, 59, 0.35) 46px 52px, transparent 52px 96px, rgba(60, 111, 184, 0.45) 96px 104px, transparent 104px 150px, rgba(111, 157, 79, 0.35) 150px 156px, transparent 156px 210px, rgba(247, 240, 227, 0.12) 210px 213px, transparent 213px),
        var(--umber);
}
.page-hero h1 { font-size: min(clamp(2.6rem, 1.6rem + 5vw, 5.4rem), 8.6vw); line-height: 1; max-width: 12em; }
.page-hero .lead { max-width: 38em; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); margin: 0; color: var(--cream); }

/* ---- the three words ---- */
.intro { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); line-height: 1.5; max-width: 40em; margin-bottom: 2em; }
.intro strong { color: var(--tile); }
.trio { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(20px, 3vw, 36px); }
.trio li { border-top: 3px solid var(--umber); padding-top: 18px; position: relative; }
.trio li::before {
    content: ""; position: absolute; top: -3px; left: 0; width: 12px; height: 38px; border-radius: 0 0 8px 8px;
    background: var(--ochre);
}
.trio li:nth-child(2)::before { background: var(--cobalt); height: 52px; }
.trio li:nth-child(3)::before { background: var(--green); height: 30px; }
.trio h2 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); margin: 0 0 0.25em 24px; }
.trio p { margin: 0; color: var(--muted); }
@media (min-width: 800px) { .trio { grid-template-columns: repeat(3, 1fr); } }

/* ---- bento ---- */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tile {
    position: relative; display: block; overflow: hidden; border-radius: var(--radius);
    min-height: 260px; background: var(--umber); color: var(--cream); text-decoration: none;
}
a.tile:hover { color: var(--cream); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
a.tile:hover img, a.tile:focus-visible img { transform: scale(1.05); }
.tile-text {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px;
    background: linear-gradient(to top, rgba(36, 23, 14, 0.96) 0%, rgba(36, 23, 14, 0.85) 55%, rgba(36, 23, 14, 0));
    font-size: 1rem; line-height: 1.45;
}
.tile-text strong { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.1; margin-bottom: 4px; color: var(--ochre); }
.tile-facts { list-style: none; margin: 0; padding: 22px 22px 22px 22px; display: grid; align-content: center; gap: 10px; background: var(--cobalt); color: #fff; min-height: 0; }
.tile-facts li { padding-left: 26px; position: relative; font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.tile-facts li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 12px; height: 18px; border-radius: 0 0 7px 7px; background: var(--ochre); }
@media (min-width: 700px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .tile-big { grid-column: span 2; min-height: 380px; }
}
@media (min-width: 1000px) {
    .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; }
    .tile { min-height: 0; }
    .tile-big { grid-column: span 2; grid-row: span 2; }
}

/* ---- the road ---- */
.band-road { padding-block: clamp(64px, 8vw, 110px); }
.road-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .road-grid { grid-template-columns: 5fr 7fr; gap: 56px; } }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 50px; color: var(--cream); }
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: -2px;
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: var(--ochre); color: var(--umber); font: 700 1.05rem/1 var(--display);
}
.road { margin: 0; }
.road-svg { width: 100%; height: auto; overflow: visible; }
.road figcaption { font-size: 0.95rem; color: var(--cream-dim); margin-top: 8px; }
.road-svg text { font-family: var(--display); font-weight: 700; }
.road-river { fill: none; stroke: #3c6fb8; stroke-width: 12; stroke-linecap: round; opacity: 0.9; }
.road-river-label { fill: var(--cobalt-light); font-size: 19px; font-style: italic; text-anchor: middle; }
.road-main-base { stroke: #5c4331; stroke-width: 24; fill: none; }
.road-main-line { stroke: var(--cream-dim); stroke-width: 2; stroke-dasharray: 14 12; fill: none; }
.road-label { fill: var(--cream); font-size: 22px; }
.road-label-end { text-anchor: end; }
.road-wash { fill: #8597a8; }
.road-shop { fill: #7a2333; stroke: var(--cream-dim); stroke-width: 1.5; }
.road-small { fill: var(--cream-dim); font-size: 15px; text-anchor: middle; }
.road-stub { stroke: #5c4331; stroke-width: 10; fill: none; stroke-dasharray: 3 9; stroke-linecap: round; }
.road-way-base { stroke: #5c4331; stroke-width: 18; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.road-way { stroke: var(--ochre); stroke-width: 7; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.road-km { fill: var(--ochre); font-size: 17px; font-style: italic; }
.road-end { stroke: var(--tile); stroke-width: 6; stroke-linecap: round; }
.road-house-wall { fill: var(--cream); }
.road-house-roof { fill: var(--tile); }
.road-house-win { fill: var(--umber-2); }
.road-villa { fill: var(--ochre); font-size: 20px; text-anchor: end; }
.road-km-end { text-anchor: end; }
.road-pins circle { fill: var(--ochre); stroke: var(--umber); stroke-width: 3; }
.road-pins text { fill: var(--umber); font-size: 20px; text-anchor: middle; }

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .road-way { animation: draw linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
    }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---- awards ---- */
.band-awards { background: linear-gradient(180deg, var(--slip), #efe3cd); }
.awards-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .awards-grid { grid-template-columns: 4fr 8fr; align-items: center; gap: 48px; } }
.awards {
    list-style: none; margin: 0; padding: 4px 4px 14px;
    display: grid; grid-auto-flow: column; grid-auto-columns: min(70%, 240px); gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.awards li { scroll-snap-align: start; }
.awards figure { margin: 0; }
.awards a { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 26px rgba(46, 29, 18, 0.2); transition: transform 0.2s ease; background: #fff; }
.awards a:hover { transform: translateY(-4px) rotate(-0.6deg); }
.awards img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.awards figcaption { font-size: 0.92rem; line-height: 1.35; margin-top: 10px; color: var(--muted); }
@media (min-width: 1100px) { .awards { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

/* ---- large figures ---- */
.figures { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.figures li { background: var(--slip); border-radius: var(--radius); padding: 20px 22px; line-height: 1.35; border: 1px solid var(--line); }
.km { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 2rem + 3vw, 4.6rem); line-height: 1; color: var(--cobalt); margin-bottom: 8px; }
.km small { font-size: 0.4em; color: var(--tile); }
@media (min-width: 700px) { .figures { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .figures { grid-template-columns: repeat(4, 1fr); } }

/* ---- call band ---- */
.callband { padding-block: clamp(48px, 6vw, 80px); background: var(--umber-2); }
.callband-row { display: grid; gap: 22px; align-items: center; }
.callband h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin-bottom: 0.2em; color: var(--ochre); }
.callband p { margin: 0; color: var(--cream); }
.callband-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 960px) { .callband-row { grid-template-columns: 1fr auto; } }

/* ---- footer ---- */
.foot { position: relative; background: var(--umber-3); color: var(--cream-dim); padding-block: 56px 26px; font-size: 1rem; }
.foot a { color: var(--ochre); }
.foot a:hover { color: var(--ochre-light); }
.foot h2 { font-size: 1.2rem; color: var(--cream); margin-bottom: 0.6em; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 0.8fr; } }
.foot-name { display: flex; align-items: center; gap: 12px; font: 700 1.6rem/1.1 var(--display); color: var(--cream); }
.foot-name img { width: 48px; height: 48px; }
.foot address { font-style: normal; }
.foot-phones a { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.foot-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-bottom { border-top: 1px solid rgba(247, 240, 227, 0.15); margin-top: 34px; padding-top: 18px; font-size: 0.92rem; }
.foot-bottom p { margin: 0; }

/* ---- content pages ---- */
.prose { max-width: 44em; }
.prose h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-top: 1.4em; }
.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split-wide { grid-template-columns: 7fr 5fr; } }
.lead-p { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); }

.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.35em; width: 10px; height: 16px; border-radius: 0 0 6px 6px; background: var(--ochre); }
.ticks li:nth-child(3n+2)::before { background: var(--cobalt); }
.ticks li:nth-child(3n)::before { background: var(--green); }

.chips { list-style: none; padding: 0; margin: 0 0 1.4em; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); font-size: 0.98rem; }

.photo-row { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.photo-row a, .gallery a { display: block; overflow: hidden; border-radius: 16px; }
.photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s ease; }
.photo-row a:hover img, .gallery a:hover img { transform: scale(1.04); }
.photo-row figure, .gallery figure { margin: 0; }
.photo-row figcaption, .gallery figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 6px; line-height: 1.3; }
@media (min-width: 800px) { .photo-row { grid-template-columns: repeat(3, 1fr); } }

.note { background: var(--sheet); border-left: 6px solid var(--ochre); border-radius: 0 14px 14px 0; padding: 16px 20px; }

/* ---- gallery ---- */
.album + .album { margin-top: clamp(48px, 6vw, 80px); }
.album h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.gallery { list-style: none; padding: 0; margin: 0; columns: 2 160px; column-gap: 12px; }
.gallery li { break-inside: avoid; margin-bottom: 14px; }
.gallery img { width: 100%; transition: transform 0.5s ease; }
@media (min-width: 900px) { .gallery { columns: 3; } }
.panoramas { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.panoramas img { width: 100%; }
@media (min-width: 900px) { .panoramas { grid-template-columns: 1fr 1fr; } }

/* ---- prices ---- */
.prices { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 14px; }
.prices li { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: baseline; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.price { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); line-height: 1; color: var(--cobalt); white-space: nowrap; }
.price-what { font-size: 1.05rem; }
.prices-main li:first-child { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.prices-main li:first-child .price { color: var(--ochre-light); }
@media (min-width: 760px) { .prices-main { grid-template-columns: repeat(3, 1fr); } .prices-main li { grid-template-columns: 1fr; } }
.extras { grid-template-columns: 1fr; }
.extras li { padding: 14px 20px; }
.extras .price { font-size: 1.6rem; color: var(--tile); }
.bank { background: var(--umber); color: var(--cream); border-radius: var(--radius); padding: 22px 24px; }
.bank h2, .bank h3 { color: var(--ochre); }
.bank dl { margin: 0; display: grid; gap: 8px; }
.bank dt { font-family: var(--display); font-weight: 700; color: var(--cream-dim); font-size: 0.95rem; }
.bank dd { margin: 0 0 6px; font-size: 1.1rem; overflow-wrap: anywhere; }
.iban { font-family: var(--display); font-weight: 700; letter-spacing: 0.04em; }

/* ---- sights ---- */
.trail { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.trail li { display: grid; grid-template-columns: 4.6em 1fr; gap: 16px; align-items: start; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden; }
.trail .km { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); margin: 0; }
.trail h3 { font-size: 1.35rem; margin-bottom: 0.25em; }
.trail p { margin: 0; color: var(--muted); }
.trail .bar { position: absolute; left: 0; bottom: 0; height: 5px; width: calc(var(--d) * 1%); background: linear-gradient(90deg, var(--ochre), var(--cobalt)); border-radius: 0 4px 4px 0; transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .trail .bar { animation: grow linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    }
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- contact ---- */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.big-phone { display: inline-block; font: 700 clamp(1.8rem, 1.3rem + 2vw, 2.4rem)/1.1 var(--display); color: var(--cobalt); text-decoration: none; margin-bottom: 6px; }
.big-phone:hover { color: var(--cobalt-deep); text-decoration: underline; }
.contact-list { margin: 1em 0 0; display: grid; gap: 14px; }
.contact-list dt { font-family: var(--display); font-weight: 700; color: var(--tile); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list dd { margin: 0; }
.coords { font-family: var(--display); font-weight: 700; }

.contact-form { display: grid; gap: 14px; }
.contact-form label { display: block; font-family: var(--display); font-weight: 700; margin-bottom: 4px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px 14px; border: 2px solid rgba(46, 29, 18, 0.35); border-radius: 12px;
    background: #fff; color: var(--ink); font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cobalt); outline: 3px solid rgba(29, 79, 145, 0.25); outline-offset: 0; }
.contact-form ul { margin: 4px 0 0; padding-left: 18px; color: #9b2b17; }
.contact-form .btn { justify-self: start; }
.form-hint { font-size: 0.92rem; color: var(--muted); margin: 0; }
.contact-sent { background: #e5efd9; border-left: 6px solid var(--green); padding: 14px 18px; border-radius: 0 12px 12px 0; margin-bottom: 16px; }
.contact-sent strong { display: block; }

/* ---- 404 ---- */
.not-found { min-height: 100svh; display: grid; place-items: center; padding: 40px 16px; background: var(--umber); color: var(--cream); text-align: center; }
.not-found > div { max-width: 36em; }
.not-found img { margin: 0 auto 18px; }
.not-found h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); color: var(--ochre); }
.not-found h2 { color: var(--ochre); margin-top: 1.4em; }
.not-found a:not(.btn) { color: var(--ochre); }
.not-found .wordmark { font: 700 2rem/1 var(--display); color: var(--cream); margin-bottom: 0.6em; }

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

/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}

.lightbox { --lb-bg: rgba(36, 23, 14, 0.96); --lb-text: #f7f0e3; --lb-accent: #e0a93b; --lb-accent-soft: rgba(224, 169, 59, 0.2); }

/* ---- a single large photo beside text ---- */
.plan { margin: 0; }
.plan a { display: block; border-radius: var(--radius); overflow: hidden; }
.plan figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 8px; }
.after-split { margin-top: 28px; }
.extras .price-word { font-size: 1.25rem; color: var(--green); }
.trail-next { margin-top: 1.4em; }
.more-sights { margin-top: 32px; }
.more-sights h3 { font-size: 1.35rem; color: var(--tile); }

@media (max-width: 480px) {
    .menu-toggle { padding: 6px 12px; }
    .menu-label { display: none; }
}
@media (max-width: 560px) {
    .trail li { grid-template-columns: 1fr; gap: 6px; }
}
.split .photo-row { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .photo-row-4 { grid-template-columns: repeat(4, 1fr); } }
