/* HAVEN Collection website. Photo-first, airy, rounded; light and dark from the visitor's setting. */
:root {
	--bg: #ffffff; --soft: #f7f7f7; --ink: #222222; --ink-2: #484848; --muted: #6a6a6a; --line: #ebebeb; --line-2: #dddddd;
	--teal: #1f5a5e; --teal-2: #2b7c80; --teal-soft: #e8f1f0; --grad: linear-gradient(90deg, #1f5a5e 0%, #24686c 55%, #2b7c80 100%);
	--ok: #1f7a55; --warn: #a3620e; --bad: #b4372b; --warn-soft: #fff4e5; --bad-soft: #fdecea; --ok-soft: #e7f4ee;
	--r: 12px; --r-lg: 16px; --shadow: 0 6px 16px rgba(0,0,0,.12); --shadow-sm: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
	:root { --bg: #121314; --soft: #1b1c1e; --ink: #f2f2f2; --ink-2: #d4d4d4; --muted: #a3a3a3; --line: #2a2b2e; --line-2: #3a3b3f;
		--teal: #6cc3bd; --teal-2: #8ad4ce; --teal-soft: #1a2a29; --grad: linear-gradient(90deg, #2b7c80, #3a9690);
		--warn-soft: #33270f; --bad-soft: #3a1d19; --ok-soft: #13291f; --shadow: 0 6px 16px rgba(0,0,0,.5); --shadow-sm: none;
		--ok: #62d3a0; --warn: #f2b65c; --bad: #f38a7d; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 600; line-height: 1.25; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 4vw, 34px); }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 760px) { .wrap { padding: 0 16px; } }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin: 0 0 8px; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.top { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 16px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); font-weight: 700; font-size: 19px; letter-spacing: .14em; }
.brand em { font-style: normal; font-weight: 400; letter-spacing: .02em; color: var(--muted); font-size: 15px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 17px; letter-spacing: 0; font-weight: 700; }
.pill-search { margin: 0 auto; display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--shadow-sm); padding: 6px 6px 6px 20px; gap: 14px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; transition: box-shadow .2s; }
.pill-search:hover { box-shadow: var(--shadow); }
.pill-search span + span { border-left: 1px solid var(--line-2); padding-left: 14px; }
.pill-search .muted { font-weight: 400; }
.pill-go { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); padding: 10px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; }
.nav a.on, .nav a:hover { background: var(--soft); }
@media (max-width: 900px) { .pill-search { display: none; } }
@media (max-width: 560px) { .brand em { display: none; } .nav a { padding: 8px 9px; font-size: 14px; } .top-in { height: 64px; } }

/* Hero search */
.hero { padding: 40px 0 8px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); max-width: 16em; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 38em; margin: 0 0 28px; }
.search { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; max-width: 860px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); box-shadow: var(--shadow); padding: 6px; }
.search label { display: flex; flex-direction: column; padding: 8px 22px; border-radius: 999px; min-width: 0; cursor: pointer; }
.search label + label { border-left: 1px solid var(--line); }
.search label:hover { background: var(--soft); }
.search label span { font-size: 12px; font-weight: 700; color: var(--ink); }
.search input, .search select { border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink-2); padding: 2px 0 0; min-width: 0; width: 100%; outline: none; appearance: none; -webkit-appearance: none; }
.search .go { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; }
.search .go .ico { width: 20px; height: 20px; stroke-width: 2.4; }
.search .go-text { display: none; }
@media (max-width: 760px) {
	.search { grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); padding: 8px; gap: 4px; }
	.search label { border-radius: 10px; border: 1px solid var(--line) !important; padding: 8px 12px; }
	.search label:nth-of-type(3) { grid-column: 1 / -1; }
	.search .go { grid-column: 1 / -1; width: auto; height: 48px; border-radius: 10px; display: flex; justify-content: center; gap: 8px; font-weight: 600; font-size: 16px; }
	.search .go-text { display: inline; }
}

/* Buttons and tags */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 16px; border: 0; border-radius: 10px; padding: 13px 22px; background: var(--grad); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.wide { width: 100%; }
.btn[disabled] { background: var(--line-2); color: var(--muted); cursor: not-allowed; filter: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-weight: 600; }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.note { background: var(--soft); border-radius: var(--r); padding: 14px 16px; font-size: 15px; color: var(--ink-2); }
.note.warn { background: var(--warn-soft); color: var(--warn); }

/* Tiles: the building grid */
.section { padding: 28px 0; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
@media (max-width: 1128px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }
.tile { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; }
.tile-img { aspect-ratio: 20 / 19; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .tile-img img { transform: scale(1.03); }
.tile-b { display: flex; flex-direction: column; gap: 1px; font-size: 15px; }
.tile-b b { font-weight: 600; }
.tile-price { margin-top: 5px; }
.tile-price b { font-weight: 600; }

/* Covers while a building has no photos */
.cover-plain { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff;
	background: radial-gradient(120% 90% at 20% 10%, hsl(var(--hue) 34% 52%) 0%, hsl(calc(var(--hue) + 18) 34% 34%) 60%, hsl(calc(var(--hue) + 30) 36% 24%) 100%); }
.cover-plain .ico { width: 34px; height: 34px; stroke-width: 1.4; opacity: .85; }
.cover-plain span { font-size: 18px; font-weight: 600; letter-spacing: .04em; text-align: center; padding: 0 16px; }
.cover-plain small { font-size: 12px; opacity: .8; letter-spacing: .06em; text-transform: uppercase; }

/* Illustrative stand-ins: always labelled, slightly softened. */
.is-illus { position: relative; }
.is-illus img { filter: saturate(.82) brightness(1.03); }
.illus-tag { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(255,255,255,.92); color: #222; font-size: 12px; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.15); pointer-events: auto; }
.illus-tag .ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.illus-tag.sm { left: 5px; bottom: 5px; padding: 2px 6px 2px 5px; font-size: 10px; gap: 3px; }
.illus-tag.sm .ico { width: 11px; height: 11px; }
.mosaic.is-illus { position: relative; }
.mosaic .illus-note { position: absolute; left: 14px; bottom: 14px; width: auto; height: auto; margin: 0; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 28px); padding: 9px 14px; border-radius: 12px; background: rgba(255,255,255,.94); color: #222; font-size: 14px; box-shadow: var(--shadow-sm); }
.mosaic .illus-note .ico { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Building page */
.listing-h { padding: 24px 0 18px; }
.listing-h .sub { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: 15px; }
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; border-radius: var(--r-lg); overflow: hidden; }
.mosaic > * { width: 100%; height: 100%; object-fit: cover; }
.mosaic > :first-child { grid-row: span 2; }
.mosaic.single { grid-template-columns: 1fr; grid-template-rows: 380px; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr; grid-template-rows: 260px; margin: 0 -16px; border-radius: 0; } .mosaic > :not(:first-child) { display: none; } .mosaic > :first-child { grid-row: auto; } }
@media (max-width: 760px) { .mosaic > p.illus-note { display: flex; font-size: 13px; left: 12px; bottom: 12px; } }
.listing { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; padding: 32px 0; align-items: start; }
@media (max-width: 960px) { .listing { grid-template-columns: 1fr; gap: 28px; } }
.listing-main > section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.listing-main > section:first-child { padding-top: 0; }
.listing-main > section:last-child { border-bottom: 0; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; list-style: none; margin: 0; padding: 0; }
.feats li { display: flex; gap: 14px; align-items: flex-start; }
.feats li .ico { width: 24px; height: 24px; margin-top: 2px; }
.feats b { display: block; font-weight: 600; }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }
.unit { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.unit:last-child { border-bottom: 0; }
.unit h3 { margin: 0 0 2px; font-size: 17px; }
.unit .act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
@media (max-width: 560px) { .unit { grid-template-columns: 1fr; } .unit .act { align-items: flex-start; text-align: left; } }
/* Each apartment type with its own cover photo and photo count (photos.php?b=&u=) */
.unit.has-pic { grid-template-columns: 148px 1fr auto; }
.unit-pic { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.unit-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.unit-pic:hover img { transform: scale(1.04); }
.unit-count { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; }
.unit-count .ico { width: 13px; height: 13px; }
.unit-photos { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--teal); }
@media (max-width: 560px) {
	.unit.has-pic { grid-template-columns: 112px 1fr; gap: 12px 14px; }
	.unit.has-pic .act { grid-column: 1 / -1; }
}
.type-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding-bottom: 2px; }
.type-chips a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.type-chips a.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.type-group { padding: 18px 0 22px; border-top: 1px solid var(--line); }
.type-group h2 { font-size: 20px; margin: 0; }
.type-group h2 a { color: inherit; text-decoration: none; }
.gallery.few { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .gallery.few { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.reserve { position: sticky; top: 100px; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; background: var(--bg); }
.reserve .from { font-size: 15px; margin-bottom: 18px; }
.reserve .from b { font-size: 22px; font-weight: 600; }
.reserve form { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: 10px; }
/* No overflow clipping here: the calendar opens outside the form. The button keeps the corners. */
.reserve label { display: flex; flex-direction: column; padding: 10px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.reserve label + label { border-left: 1px solid var(--line-2); }
.reserve label:nth-of-type(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-2); }
.reserve input, .reserve select { border: 0; padding: 4px 0 0; font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); background: transparent; min-width: 0; width: 100%; outline: none; }
.reserve .btn { grid-column: 1 / -1; border-radius: 0 0 9px 9px; }
.reserve .total { display: flex; justify-content: space-between; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }

/* Confirm and pay */
.confirm { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 72px; padding: 32px 0; align-items: start; }
@media (max-width: 960px) { .confirm { grid-template-columns: 1fr; gap: 28px; } }
.confirm h2 { margin-top: 0; }
.step { padding: 24px 0; border-bottom: 1px solid var(--line); }
.step:first-of-type { padding-top: 0; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin: 0 0 10px; }
.row b { font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 14px; width: 100%; min-width: 0; }
.field input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.field small { color: var(--muted); font-weight: 400; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; margin-bottom: 10px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice input { margin-top: 4px; accent-color: var(--teal); }
.summary { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; position: sticky; top: 100px; }
.summary-top { display: flex; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.summary-top .thumb { width: 116px; height: 100px; border-radius: 10px; overflow: hidden; flex: none; }
.summary-top .thumb > * { width: 100%; height: 100%; object-fit: cover; }
.summary-top .cover-plain span { font-size: 12px; }
.summary-top .cover-plain .ico { width: 22px; height: 22px; }
.sum { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 16px; }
.sum td { padding: 6px 0; }
.sum td:last-child { text-align: right; }
.sum tr.total td { border-top: 1px solid var(--line); padding-top: 14px; font-weight: 600; }

/* Panels used by the guide, stay and legal pages */
.panel { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; background: var(--bg); }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.day { background: var(--soft); border-radius: 10px; padding: 12px 8px; text-align: center; font-size: 14px; }
.wx { width: 34px; height: 34px; display: block; margin: 6px auto 2px; }
h3 .wx { width: 30px; height: 30px; margin: 0; display: inline-block; }
.dcard .wx { width: 30px; height: 30px; margin: 4px 0 0; }
.day b { display: block; font-size: 20px; font-weight: 600; }
@media (max-width: 640px) { .days { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.walks { columns: 2 300px; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.walks li { break-inside: avoid; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.walks a { text-decoration: none; }
.walks a:hover { text-decoration: underline; }
/* Festival cards: photo, then the dates, name and description below */
.ecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 24px; }
.ecard { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ecard-img { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.ecard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ecard:hover .ecard-img img { transform: scale(1.03); }
.ecard-img.is-empty { display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 20px; text-align: center; padding: 16px; }
.ecard-badge { position: absolute; top: 12px; left: 12px; background: #fff; color: #222; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; box-shadow: var(--shadow-sm); }
.ecard-b { display: flex; flex-direction: column; gap: 4px; }
.ecard-when { font-size: 13px; font-weight: 600; color: var(--teal); }
.ecard h3 { font-size: 17px; margin: 0; }
.ecard h3 a { color: inherit; text-decoration: none; }
.ecard h3 a::after { content: ""; position: absolute; inset: 0; }
.ecard h3 a:focus-visible { outline: none; }
.ecard:has(h3 a:focus-visible) { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: var(--r); }
.ecard p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.ecard-credit { position: relative; z-index: 1; align-self: flex-start; margin-top: 4px; font-size: 11.5px; color: var(--muted); text-decoration: none; }
.ecard-credit:hover { text-decoration: underline; }
.fest li { display: flex; flex-direction: column; margin-bottom: 8px; }
.source { font-size: 13px; color: var(--muted); margin-top: 12px; }
.source a { color: inherit; }
.prose { max-width: 44em; }
.prose p { margin: 0 0 1em; }
.prose a, .panel a, .note a, .foot a { color: var(--teal); }

/* Footer */
.foot { margin-top: 56px; background: var(--soft); border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.foot-brand { margin-bottom: 10px; }
.foot-base { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line-2); }

/* Phones: a compact header, and no small print inside small pictures. */
.nav a { white-space: nowrap; }
@media (max-width: 480px) { .nav .long { display: none; } .nav a { padding: 8px 10px; } .brand { letter-spacing: .1em; font-size: 17px; } .brand-mark { width: 30px; height: 30px; } }
.thumb .cover-plain small { display: none; }
.thumb .cover-plain span { font-size: 12px; padding: 0 6px; }

/* Logo: the yellow trees, and HAVEN COLLECTION in one size with only HAVEN bold. */
.brand { gap: 12px; color: var(--ink); letter-spacing: 0; }
.brand-logo { width: 36px; height: 36px; border-radius: 9px; }
.brand-name { font-size: 17px; letter-spacing: .16em; font-weight: 400; color: var(--ink); white-space: nowrap; }
.brand-name b { font-weight: 700; }
@media (max-width: 480px) { .brand-name { font-size: 14px; letter-spacing: .12em; } .brand-logo { width: 32px; height: 32px; } }
@media (max-width: 380px) { .brand-name { letter-spacing: .06em; } }

/* Header search: the pill opens the full search under the header. */
.pill-search { cursor: pointer; }
.hsearch { border-top: 1px solid var(--line); padding: 18px 0 22px; background: var(--bg); }
.hsearch .search { margin: 0 auto; }

/* Calendar */
form[data-dates] { position: relative; }
.cal-pop { position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; background: var(--bg); color: var(--ink); text-shadow: none; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,.18); padding: 22px 24px 16px; width: min(720px, calc(100vw - 32px)); border: 1px solid var(--line); }
.reserve .cal-pop { left: auto; right: -24px; }
/* Wide screens: beside the booking card, level with its top, like a sheet over the page. */
@media (min-width: 1200px) { .reserve .cal-pop { top: 0; right: calc(100% + 44px); } }
.cal-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.cal-nav { position: absolute; top: 18px; right: 18px; display: flex; gap: 6px; }
.cal-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.cal-arrow:disabled { opacity: .3; cursor: default; }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin-top: 12px; }
.cal-title { text-align: center; font-weight: 600; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.cal-w { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 0 8px; }
.cal-d { aspect-ratio: 1; border: 0; background: transparent; border-radius: 50%; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cal-d:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-d:disabled { color: var(--line-2); cursor: default; font-weight: 400; }
.cal-d.is-blocked { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.cal-d.is-blocked:disabled { color: var(--line-2); }
.cal-d.is-today:not(.is-start):not(.is-end) { box-shadow: inset 0 0 0 1px var(--line-2); }
.cal-d.is-mid { background: var(--soft); border-radius: 0; }
.cal-d.is-start, .cal-d.is-end { background: var(--ink); color: var(--bg); }
.cal-foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.cal-foot button { border: 0; background: none; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; color: var(--ink); padding: 8px 4px; }
.cal-foot .cal-close { background: var(--ink); color: var(--bg); text-decoration: none; border-radius: 8px; padding: 8px 16px; }
.search input[readonly], .reserve input[readonly] { cursor: pointer; }
@media (max-width: 760px) {
	.cal-pop { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; border-radius: 20px 20px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 88vh; overflow: auto; }
	.reserve .cal-pop { right: 0; }
	.cal-months { grid-template-columns: 1fr; }
}

/* Unit types not available for the dates asked, folded away. */
.off-types { margin-top: 8px; }
.off-types > summary { cursor: pointer; padding: 14px 0; color: var(--muted); font-weight: 600; list-style: none; }
.off-types > summary::-webkit-details-marker { display: none; }
.off-types > summary::after { content: ' +'; }
.off-types[open] > summary::after { content: ' \2212'; }
.off-types .unit { opacity: .65; }

/* Phones: the header fits in one line, and nothing widens the page. */
html, body { overflow-x: clip; }
@media (max-width: 480px) {
	.nav a:first-child, .nav a.nav-contact { display: none; }
	.brand { gap: 9px; }
	.brand-name { font-size: 13px; letter-spacing: .1em; }
	.nav a { padding: 8px 8px; }
}
@media (max-width: 760px) {
	.cal-pop, .reserve .cal-pop { left: 0 !important; right: 0 !important; width: auto; }
	.cal-nav { right: 14px; top: 16px; }
}

@media (max-width: 420px) { .brand { gap: 7px; } .brand-name { font-size: 12px; letter-spacing: .06em; } .brand-logo { width: 30px; height: 30px; } .nav { gap: 0; } .nav a { padding: 8px 7px; } .nav a.nav-cta { margin-left: 4px; padding: 8px 10px; } }
.nav .short { display: none; }
@media (max-width: 480px) { .nav .long { display: none; } .nav .short { display: inline; } }

/* Full-width photo hero (Madeira guide). */
.photo-hero { position: relative; margin: 0 0 8px; min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.photo-hero picture, .photo-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%); }
.photo-hero-text { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 44px; width: 100%; }
.photo-hero-text h1 { font-size: clamp(34px, 6vw, 60px); margin: 0 0 8px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.photo-hero-text p { font-size: 18px; margin: 0; max-width: 36em; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.photo-credit { position: absolute; right: 12px; bottom: 8px; z-index: 1; font-size: 11px; color: rgba(255,255,255,.8); text-decoration: none; }
.photo-credit:hover { text-decoration: underline; }
@media (min-width: 1100px) { .photo-hero { min-height: 520px; } }

/* Header: the guest login or My stay button. */
.nav a.nav-cta { border: 1px solid var(--line-2); margin-left: 6px; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); font-weight: 600; text-decoration: underline; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Stay dashboard */
.stay-hero { position: relative; height: 300px; overflow: hidden; color: #fff; display: flex; align-items: flex-end; }
.stay-hero-img { position: absolute; inset: 0; }
.stay-hero-img > * { width: 100%; height: 100%; object-fit: cover; }
.stay-hero-img picture img { width: 100%; height: 100%; object-fit: cover; }
.stay-hero .photo-credit { z-index: 2; }
.stay-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.6) 100%); }
.stay-hero-text { position: relative; z-index: 1; padding-bottom: 28px; width: 100%; }
.stay-hero-text h1 { margin: 10px 0 4px; font-size: clamp(28px, 5vw, 44px); }
.stay-hero-text p { margin: 0; font-size: 17px; opacity: .95; }
.stay-hero .tag { background: rgba(255,255,255,.92); color: #222; }
.stay-hero .cover-plain small, .stay-hero .cover-plain span, .stay-hero .cover-plain .ico { display: none; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding-top: 24px; align-items: start; }
@media (max-width: 960px) { .dash { grid-template-columns: minmax(0, 1fr); } }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dash .panel { min-width: 0; }
.notes, .msg { overflow-wrap: anywhere; }
@media (max-width: 560px) { .dash .panel { padding: 18px 16px; } }
.dash h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.dash h2 .ico { width: 22px; height: 22px; }
.dash h3 { font-size: 16px; }
.codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 6px 0 14px; }
.codes > div { background: var(--soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.codes b { font-size: 26px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.notes { background: var(--soft); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; line-height: 1.6; margin-bottom: 14px; }
.thread { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 16px; max-height: 360px; overflow: auto; padding-right: 4px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.msg span { display: block; font-size: 11.5px; opacity: .7; margin-top: 4px; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.msg.us { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 4px; }
.dash-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dash-photos img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%; }
@media (max-width: 560px) { .dash-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Your stay: dates, booking facts and the map */
.stay-dates { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; margin: 4px 0 18px; }
.stay-dates .sd { background: var(--soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.stay-dates .sd b { font-size: 18px; line-height: 1.25; }
.stay-dates .sd > span:last-child { font-weight: 600; color: var(--teal); font-size: 14.5px; }
.sd-mid { display: grid; place-items: center; }
.sd-mid span { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; }
.stay-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0 0 18px; }
.stay-facts div { min-width: 0; }
.stay-facts dt { font-size: 12.5px; color: var(--muted); }
.stay-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.stay-facts .dd-sub { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
a.btn:not(.ghost), a.btn:not(.ghost):visited { color: #fff; }
.gmap { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 16 / 9; background: var(--soft); }
.gmap iframe { display: block; width: 100%; height: 100%; border: 0; }
.gmap-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
@media (max-width: 560px) {
	.stay-dates { grid-template-columns: minmax(0, 1fr); }
	.sd-mid { justify-items: start; }
	.stay-facts { grid-template-columns: minmax(0, 1fr); }
	.gmap { aspect-ratio: 4 / 3; }
}

/* Check-in, tax, deposit and invoice cards */
.todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.todo-card { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); min-width: 0; }
.todo-card.is-done { background: var(--ok-soft); border-color: transparent; }
.todo-card.is-todo { background: var(--warn-soft); border-color: transparent; }
.todo-card h3 { margin: 4px 0 0; font-size: 16px; }
@media (min-width: 700px) { .todo-card.wide { grid-column: span 2; } }
.todo-card p { margin: 0; }
.todo-card .btn { margin-top: 8px; align-self: flex-start; padding: 10px 16px; font-size: 14.5px; }
.todo-h { display: flex; justify-content: space-between; align-items: center; }
.todo-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: var(--shadow-sm); }
.todo-ic .ico { width: 19px; height: 19px; }
.todo-amt { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.inv-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.inv-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.inv-list li > span { display: flex; flex-direction: column; font-weight: 600; font-size: 14.5px; }
.inv-list small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.btn.sm { padding: 7px 12px; font-size: 13.5px; }

/* Around your apartment */
.near { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.near-card { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line-2); border-radius: 14px; text-decoration: none; color: inherit; min-width: 0; transition: box-shadow .15s, transform .15s; }
.near-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.near-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.near-ic .ico { width: 21px; height: 21px; }
.k-pharmacy .near-ic, .k-hospital .near-ic { background: #fdecea; color: #b4372b; }
.k-swim .near-ic, .k-bus .near-ic { background: #e6f0fb; color: #2463a6; }
.k-cafe .near-ic, .k-bakery .near-ic { background: #fbf1e3; color: #8a5a17; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .k-pharmacy .near-ic, :root:not([data-theme="light"]) .k-hospital .near-ic { background: #3a1d19; color: #f38a7d; } :root:not([data-theme="light"]) .k-swim .near-ic, :root:not([data-theme="light"]) .k-bus .near-ic { background: #16253a; color: #8ab8ea; } :root:not([data-theme="light"]) .k-cafe .near-ic, :root:not([data-theme="light"]) .k-bakery .near-ic { background: #33270f; color: #f2b65c; } }
.near-b { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.near-b small { color: var(--muted); font-size: 12px; }
.near-b b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.near-b > span { font-size: 13px; color: var(--teal); font-weight: 600; }
.near-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 28px; margin-top: 18px; }
.near-lists h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 6px; }
.near-lists h3 .ico { width: 17px; height: 17px; }
.near-lists ul { list-style: none; margin: 0; padding: 0; }
.near-lists li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.near-lists li a { text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.near-lists li a:hover { text-decoration: underline; }
.near-lists li span { color: var(--muted); white-space: nowrap; }
.near-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.near-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--soft); font-size: 14px; }
.near-chips .ico { width: 16px; height: 16px; color: var(--teal); }

/* Guide: walking rules */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 22px; }
.rule-card { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.rule-card h3 { margin: 4px 0 0; font-size: 17px; }
.rule-card p { margin: 0; font-size: 14.5px; }
.rule-card ul { margin: 0; }
.rule-card li { padding: 3px 0; }
.rule-card .btn { align-self: flex-start; margin-top: auto; padding: 10px 16px; font-size: 14.5px; }
.rule-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.rule-ic .ico { width: 21px; height: 21px; }
.note .ico { width: 17px; height: 17px; vertical-align: -3px; margin-right: 4px; }

/* Stay page: actions, getting here, your days */
.stay-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.stay-actions .btn { font-size: 14px; }
.stay-actions .ico { width: 16px; height: 16px; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.way { display: flex; gap: 14px; padding: 16px; border-radius: 14px; background: var(--soft); }
.way h3 { margin: 0 0 4px; font-size: 16px; }
.way p { margin: 0 0 8px; font-size: 14.5px; }
.way-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--teal); box-shadow: var(--shadow-sm); }
.way-ic .ico { width: 22px; height: 22px; }
.days-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.dcard { border: 1px solid var(--line-2); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dcard.is-today { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.dcard-tag { font-size: 11.5px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .04em; }
.dcard b { font-size: 14.5px; }
.dcard-t { font-size: 22px; font-weight: 700; }
.dcard-t small { font-size: 14px; color: var(--muted); font-weight: 600; }
.dcard-w { font-size: 13px; }
.dcard-sun { margin-top: 4px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.dcard-sun .ico { width: 14px; height: 14px; color: #d99a1e; }

/* Home: why book direct */
.whys { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.why { padding: 20px; border-radius: var(--r-lg); background: var(--soft); display: flex; flex-direction: column; gap: 6px; }
.why h3 { margin: 6px 0 0; font-size: 17px; }
.why p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.good { display: flex; flex-direction: column; gap: 8px; }
.good li { display: flex; gap: 10px; align-items: flex-start; }
.good li .ico { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--teal); }

/* All photos and the viewer */
.mosaic > a { display: block; width: 100%; height: 100%; }
.mosaic > a img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s; }
.mosaic > a:hover img { filter: brightness(.92); }
.mosaic { position: relative; }
.mosaic > a.mosaic-all { position: absolute; right: 14px; bottom: 14px; width: auto; height: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: #fff; color: #222; font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid #222; z-index: 2; }
.mosaic > a.mosaic-all .ico { width: 17px; height: 17px; }
@media (max-width: 760px) { .mosaic > a.mosaic-all { display: inline-flex !important; right: 12px; bottom: 12px; } }
.dash-photos a { display: block; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
.viewer { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; }
.viewer[hidden] { display: none; }
.viewer img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.viewer button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.viewer button:hover { background: rgba(255,255,255,.26); }
.v-close { top: 16px; right: 16px; }
.v-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.v-next { right: 16px; top: 50%; transform: translateY(-50%); }
.v-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #ddd; font-size: 14px; }

/* How was your stay? */
.rate { border: 0; padding: 0; margin: 4px 0 12px; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { font-size: 38px; line-height: 1; color: var(--line-2); cursor: pointer; transition: color .15s, transform .15s; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: #f2b400; }
.rate label:hover { transform: scale(1.1); }
.rate input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.fb-stars { font-size: 30px; color: #f2b400; letter-spacing: 2px; margin: 0 0 8px; }
.fb-stars span { color: var(--line-2); }

/* Home: the buildings on a map */
.hmap { height: 460px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--soft); z-index: 0; position: relative; }
@media (max-width: 640px) { .hmap { height: 360px; } }
.pin-wrap { background: none; border: 0; }
.pin { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; background: #fff; color: #222; font: 700 13px/1 var(--font); padding: 7px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.25); border: 1px solid rgba(0,0,0,.08); transition: transform .15s, background .15s; }
.leaflet-marker-icon:hover .pin, .leaflet-marker-icon:focus .pin { background: #222; color: #fff; transform: translate(-50%, -50%) scale(1.06); }
.pin-pop { display: flex; flex-direction: column; gap: 3px; font: 14px/1.4 var(--font); min-width: 180px; }
.pin-pop b { font-size: 15px; }
.pin-pop span { color: #555; }
.pin-pop a { margin-top: 6px; font-weight: 600; color: #1f5a5e; }

/* Building page: good to know before you book */
.know { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.know > div { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 10px; padding: 14px; border-radius: 12px; background: var(--soft); }
.know .ico { grid-row: span 2; width: 22px; height: 22px; color: var(--teal); margin-top: 1px; }
.know b { font-size: 15px; }
.know span { font-size: 14px; color: var(--ink-2); }
.near-lists li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }

/* Building page: area chip, cancellation, alternatives, phone price bar */
.area-chip { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 6px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-size: 14px; font-weight: 600; }
.area-chip .ico { width: 16px; height: 16px; }
.cancel-line { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-weight: 600; color: var(--ok); }
.cancel-line .ico { width: 18px; height: 18px; }
.alt-box { margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--soft); }
.alt-box h3 { margin: 0 0 10px; font-size: 16px; }
.alt-list { list-style: none; margin: 0; padding: 0; }
.alt-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mbar { display: none; }
@media (max-width: 960px) {
	.mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line-2); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
	.mbar > div { display: flex; flex-direction: column; font-size: 15px; min-width: 0; }
	.mbar small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.mbar .btn { flex: none; padding: 11px 18px; font-size: 15px; }
	body:has(.mbar) footer { padding-bottom: 90px; }
	/* The date picker opens as a sheet from the bottom: the price bar steps aside while it is open (6 Nov 2026). */
	body:has(.cal-pop:not([hidden])) .mbar { display: none; }
}

/* Home hero: the coast below Cabo Girão, Câmara de Lobos (Pexels photo chosen by the owner, 27 Oct 2026) */
.hero.photo { position: relative; color: #fff; padding: 88px 0 40px; margin-bottom: 8px; background: #1f2b2d; }
.hero.photo::before { content: ""; position: absolute; inset: 0; background: url(/assets/img/home-hero-lobos.jpg) center 55% / cover no-repeat; }
.hero.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,20,25,.58) 0%, rgba(10,20,25,.34) 50%, rgba(10,20,25,0) 82%), linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.28) 100%); }
@media (max-width: 760px) { .hero.photo::after { background: linear-gradient(180deg, rgba(10,20,25,.44) 0%, rgba(10,20,25,.32) 60%, rgba(10,20,25,.55) 100%); } }
.hero.photo .wrap { position: relative; z-index: 2; }
.hero.photo h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero.photo .lead { color: rgba(255,255,255,.92); margin-bottom: 14px; }
.promise { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; }
.promise li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); font-size: 14px; font-weight: 600; }
.promise .ico { width: 16px; height: 16px; }
.hero.photo .note { color: #222; }
@media (max-width: 760px) {
	.hero.photo { padding: 56px 0 28px; }
	.hero.photo::before { background-image: url(/assets/img/home-hero-lobos-phone.jpg); }
	.hero.photo.compact { padding: 22px 0 18px; }
	.hero.photo.compact h1, .hero.photo.compact .lead, .hero.photo.compact .promise { display: none; }
}
.ecards.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tile-ask .tile-img { display: grid; place-items: center; background: var(--teal-soft); text-align: center; padding: 20px; }
.tile-ask .tile-img > span { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--teal); }
.tile-ask .tile-img .ico { width: 34px; height: 34px; }
.tile-ask .tile-img b { font-size: 17px; color: var(--ink); }
.tile-ask .tile-img small { font-size: 14px; color: var(--ink-2); max-width: 22em; }

/* The island map: a line drawing. */
.island { width: 100%; height: auto; display: block; background: radial-gradient(120% 120% at 50% 40%, var(--teal-soft), transparent 70%); border-radius: 12px; }
.island .grat { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 6; }
.island .coast { fill: rgba(31,90,94,.06); stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; }
.island .trail.ok { fill: #3fae86; stroke: #fff; stroke-width: 2; }
.island .trail.shut { fill: #e0533f; stroke: #fff; stroke-width: 2; }
.island .trail.part { fill: #e2a13b; stroke: #fff; stroke-width: 2; }
.island a:hover .trail { stroke: var(--ink); stroke-width: 3; }
.map-key .k.part { background: #e2a13b; }
.trail-tally { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.trail-map { margin-bottom: 18px; padding: 16px; }
.island .place circle { fill: var(--ink); }
.island .place text { font: 600 22px var(--font); fill: var(--ink-2); }
.island .home circle { fill: rgba(242,194,0,.35); stroke: #c79a00; stroke-width: 2; animation: home-pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.island .home .dot { fill: #1d1d1d; stroke: #f2c200; stroke-width: 3; animation: none; }
@keyframes home-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .island .home circle { animation: none; } }
.map-key { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 10px 0 4px; }
.map-key .k { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.map-key .k.home { background: #f2c200; box-shadow: 0 0 0 2px #1d1d1d inset; }
.map-key .k.ok { background: #3fae86; }
.map-key .k.shut { background: #e0533f; }
/* Short pages: the footer sits at the bottom of the screen. */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
/* Booking step: the saving line */
.sum .saving td { color: var(--ok); }
.ecard-stay { position: relative; z-index: 1; align-self: flex-start; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--teal); }
/* The website's logo is the trees alone, dark on light and white in dark mode (the admin keeps the yellow tile). */
.brand-logo { border-radius: 0; box-shadow: none; background: none; object-fit: contain; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo { filter: invert(1); } }
:root[data-theme="dark"] .brand-logo { filter: invert(1); }
