/* Pico scales the root font up to 131% on wide screens; keep one comfortable size instead.
   These override Pico's breakpoint values because this file loads after it. */
:root {
  --pico-font-size: 93.75%;
  --pico-line-height: 1.5;
  --pico-form-element-spacing-vertical: 0.5rem;
  --pico-form-element-spacing-horizontal: 0.75rem;
  --pico-spacing: 0.875rem;
  --pico-typography-spacing-vertical: 0.875rem;
}
h1 { --pico-font-size: 1.75rem; }
h2 { --pico-font-size: 1.4rem; }
h3 { --pico-font-size: 1.15rem; }
h4 { --pico-font-size: 1rem; }
.container { max-width: 1140px; }

.maintenance-banner {
  background: #b45309;
  color: #fff;
  padding: 0.5rem 1rem;
  text-align: center;
  font-weight: 600;
}

.maintenance {
  max-width: 40rem;
  margin: 4rem auto;
  text-align: center;
}

nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
}

.brand { text-decoration: none; }
nav a.lang { font-size: 0.85rem; }
nav a.lang.active { font-weight: 700; text-decoration: underline; }
.muted { color: var(--pico-muted-color); }
.hero img { width: 100%; max-height: 32rem; object-fit: cover; border-radius: var(--pico-border-radius); }
.hero h1 { margin: 1rem 0 0.25rem; }
.price { font-size: 1.25rem; font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.5rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.25rem; }
#lightbox { max-width: 95vw; padding: 0; border: 0; background: transparent; }
#lightbox img { max-width: 95vw; max-height: 90vh; display: block; cursor: pointer; }
#lightbox .close { position: absolute; top: 0.5rem; right: 0.5rem; width: auto; padding: 0.2rem 0.7rem; }
#lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 2rem; line-height: 1; }
#lightbox .lb-nav:hover, #lightbox .lb-nav:focus-visible { background: rgba(0, 0, 0, 0.7); }
#lightbox .lb-prev { left: 0.5rem; }
#lightbox .lb-next { right: 0.5rem; }
#lightbox .lb-count { position: absolute; bottom: 0.5rem; left: 50%; transform: translateX(-50%); margin: 0; padding: 0.15rem 0.7rem; border-radius: 1rem; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.9rem; }
.facts article { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.cards img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.25rem; }
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); padding: 0; }
.amenities li, .rules li { list-style: none; }
.rules { padding: 0; }
.map { height: 22rem; border-radius: var(--pico-border-radius); margin-bottom: 1rem; }
a.whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
a.whatsapp:hover, a.whatsapp:focus { background: #1ebe5a; border-color: #1ebe5a; color: #fff; }
/* Buttons and links with a brand logo (templates/_brands.html). */
.brand-icon { flex: none; display: inline-block; vertical-align: -0.2em; }
a.whatsapp, a.social { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; }
a.wa-link { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
a.wa-link .brand-icon { color: #25d366; }
.provider { display: inline-flex; align-items: center; gap: 0.4rem; }
.provider .brand-icon { color: #1877f2; }
/* Call / WhatsApp / email buttons: one height, one top line, same icon size. */
.contact-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: stretch; margin-bottom: 1rem; }
.contact-buttons a[role="button"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; margin: 0;
}
#show-all-photos { margin-top: 0.75rem; width: auto; }
.facts { margin: 1.5rem 0; }

/* Full-page background photo (Appearance tab). Content sits on light panels. */
/* At least screen height, so short pages (About, Contact) are covered too. */
html:has(body.has-bg) { background-color: #222; }
body.has-bg {
  min-height: 100vh;
  min-height: 100dvh;
  display: flow-root;  /* keeps the header's top margin inside the body (no strip at the top) */
  background-color: #222;
  background-image: linear-gradient(rgba(0, 0, 0, var(--page-overlay)), rgba(0, 0, 0, var(--page-overlay))), var(--page-bg-small);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 1024px) {
  body.has-bg {
    background-image: linear-gradient(rgba(0, 0, 0, var(--page-overlay)), rgba(0, 0, 0, var(--page-overlay))), var(--page-bg);
    background-attachment: fixed;
  }
}
body.has-bg > header.container,
body.has-bg > main.container,
body.has-bg > footer.container {
  background: var(--panel-bg, rgba(255, 255, 255, 0.95));
  border-radius: var(--pico-border-radius);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
  padding: 0.25rem 1.25rem;
}
body.has-bg > header.container { margin-top: 1rem; }
body.has-bg > main.container { margin-top: 1.5rem; margin-bottom: 1.5rem; padding: 1.25rem; }
body.has-bg > footer.container { margin-bottom: 1rem; padding: 0.75rem 1.25rem; }
body.has-bg .maintenance-banner { position: relative; }
/* Pico's dark theme paints its own background; on panels keep only the chosen panel colour,
   and let cards inside show the panel through them. Pico swaps the colour variables on a themed
   element but leaves plain text with the page's colour, so set it from the panel's theme. */
body.has-bg > [data-theme] { background-color: var(--panel-bg); color: var(--pico-color); }
body.has-bg [data-theme="dark"] article { background-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
body.has-bg [data-theme="light"] article { background-color: rgba(255, 255, 255, 0.6); }
body.has-bg [data-theme="dark"] { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
/* Brighter text than Pico's dark theme: panels are see-through, so contrast comes from the text. */
body.has-bg [data-theme="dark"] {
  --pico-color: #f3f4f6;
  --pico-h1-color: #fff; --pico-h2-color: #fff; --pico-h3-color: #fff; --pico-h4-color: #fff;
  --pico-muted-color: #d6dae1;
}

/* Leaflet maps: Pico styles [role=button] (markers, zoom buttons) and img (tiles, markers);
   give the map back its own look. */
.leaflet-container img { max-width: none !important; max-height: none !important; }
.leaflet-container .leaflet-marker-icon[role="button"],
.leaflet-container .leaflet-marker-shadow {
  background: none; border: 0; padding: 0; margin-bottom: 0; box-shadow: none; outline: none; border-radius: 0;
}
.leaflet-container .leaflet-control-zoom a[role="button"] {
  padding: 0; margin: 0; border-radius: 0; font: bold 18px/30px "Lucida Console", Monaco, monospace;
  background: #fff; color: #000; border: 0; border-bottom: 1px solid #ccc; box-shadow: none;
}

.auth-box { max-width: 28rem; margin: 2rem auto; }
.social-buttons { display: grid; gap: 0.5rem; }
.social-buttons a { width: 100%; font-weight: 500; }
/* Google's and Facebook's own button styles: white with the coloured G, blue with the white f. */
a.social.google, body.has-bg [data-theme] a.social.google {
  --pico-background-color: #fff; --pico-border-color: #dadce0; --pico-color: #1f1f1f;
  background: #fff; border: 1px solid #dadce0; color: #1f1f1f;
}
a.social.google:hover, a.social.google:focus { background: #f6f8fb; border-color: #c6c9cd; color: #1f1f1f; }
a.social.facebook, body.has-bg [data-theme] a.social.facebook {
  --pico-background-color: #1877f2; --pico-border-color: #1877f2; --pico-color: #fff;
  background: #1877f2; border: 1px solid #1877f2; color: #fff;
}
a.social.facebook:hover, a.social.facebook:focus { background: #166fe5; border-color: #166fe5; color: #fff; }
.divider { text-align: center; color: var(--pico-muted-color); margin: 1rem 0; }
.notice { padding: 0.75rem 1rem; border-radius: var(--pico-border-radius); }
.notice.ok { background: #dcfce7; color: #14532d; }
.notice.error { background: #fee2e2; color: #7f1d1d; }
form.inline { display: inline; margin: 0; }
button.small { padding: 0.25rem 0.6rem; font-size: 0.85rem; width: auto; }

/* Availability calendar and quote */
.booking-box { margin: 1.5rem 0; }
/* One big month calendar shown inline, the guest counts in a narrow column beside it (a row of
   small selects below it on phones); the chosen stay is printed under it by the quote. */
.stay-picker { display: grid; gap: 1rem 1.5rem; align-items: start; }
@media (min-width: 720px) { .stay-picker { grid-template-columns: minmax(0, 42rem) minmax(12rem, 18rem); } }
/* Guest counts in one row above the calendar; the nightly prices in a column beside it. */
.stay-guests { display: flex; flex-wrap: wrap; gap: 0 0.75rem; }
.stay-guests label { flex: 0 1 8.5rem; margin-bottom: 0.75rem; }
.stay-guests select { margin-bottom: 0; }
.stay-nights .nights-breakdown { margin: 0; }
.stay-nights .nights-breakdown summary { font-weight: 600; }
.stay-nights .quote-lines { margin: 0.4rem 0 0; font-size: 0.9rem; }
.stay-nights .quote-lines td { padding: 0.3rem 0.4rem; }
.stay-calendar .flatpickr-calendar.inline { width: 100%; max-width: 42rem; margin: 0; background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 1px var(--pico-muted-border-color); }
.stay-calendar .flatpickr-rContainer, .stay-calendar .flatpickr-days, .stay-calendar .flatpickr-weekdays,
.stay-calendar .dayContainer { width: 100%; min-width: 0; max-width: none; }
.stay-calendar .flatpickr-innerContainer { display: block; }
.stay-calendar .flatpickr-day { max-width: none; height: 3.4rem; font-size: 1rem; }
/* The neighbouring months' days carry the same marks and prices, lighter. */
.stay-calendar .flatpickr-day.prevMonthDay, .stay-calendar .flatpickr-day.nextMonthDay { opacity: 0.6; }
/* Available days: plain black numbers, never greyed or faded (also when not clickable or in the
   neighbouring month); the selection colours still win. */
.stay-calendar .flatpickr-day:is(.fp-free, .fp-in, .fp-out):not(.selected):not(.startRange):not(.endRange):not(.inRange):not(.fp-short) { color: #000; opacity: 1; }
.stay-calendar .flatpickr-day:is(.fp-free, .fp-in, .fp-out):not(.selected):not(.startRange):not(.endRange):not(.fp-short) .fp-price { color: #14532d; }
.stay-status { margin: 0.5rem 0 0; }
/* flatpickr turns its element into a text field; the chosen stay is shown by the quote instead. */
.stay-calendar-wrap > #stay-dates { display: none !important; }
.stay-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin-top: 0.6rem; }
.legend-day { display: inline-block; min-width: 1.9rem; padding: 0.1rem 0.3rem; margin-right: 0.2rem; border-radius: 4px; background: #fff; color: #393939; text-align: center; }
.legend-free { background: var(--free-bg); color: #000; }
.stay-calendar, .stay-legend { --free-bg: #86efac; --free-hover: #4ade80; --strikes: linear-gradient(to bottom right, transparent calc(50% - 1.5px), #a3a3a3 calc(50% - 1.5px), #a3a3a3 calc(50% + 1.5px), transparent calc(50% + 1.5px)); --half-out: linear-gradient(to bottom right, var(--free-bg) 50%, transparent 50%); --half-in: linear-gradient(to top left, var(--free-bg) 50%, transparent 50%); }
.legend-taken { color: rgba(57, 57, 57, 0.45); background: #fff var(--strikes); }
.legend-in { background: var(--half-in), #fff; color: #000; }
.legend-out { background: var(--half-out), var(--strikes), #fff; color: #000; }
.stay-legend button { width: auto; margin: 0 0 0 auto; padding: 0.3rem 0.75rem; font-size: 0.85rem; white-space: nowrap; }
.quote { margin-top: 0.5rem; }
.quote-lines { margin: 0.5rem 0; }
.rules-box { margin-bottom: 0.75rem; }
.rules-box ul { margin: 0.5rem 0 0; }
.bank-details { border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius); padding: 0.75rem 1rem; margin-bottom: 0.75rem; }
.bank-details dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; margin: 0.5rem 0 0; }
.bank-details dt { color: var(--pico-muted-color); }
.bank-details dd { margin: 0; overflow-wrap: anywhere; }
.bank-details code { background: none; padding: 0; font-size: 1rem; color: inherit; font-family: inherit; font-weight: 600; }
/* Payment methods: one card per method (radio on the booking form, own button on the booking page). */
.pay-options { display: grid; gap: 0.6rem; margin: 0 0 var(--pico-spacing); padding: 0; border: 0; }
.pay-options legend { margin-bottom: 0.4rem; }
.pay-option { display: grid; grid-template-columns: auto auto 1fr; gap: 0.2rem 0.75rem; align-items: start; margin: 0; padding: 0.8rem 1rem; border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius); }
label.pay-option { cursor: pointer; }
label.pay-option:has(input:checked) { border-color: var(--pico-primary); box-shadow: 0 0 0 1px var(--pico-primary); }
.pay-option input[type=radio] { margin: 0.3rem 0 0; }
.pay-option:not(:has(input[type=radio])) { grid-template-columns: auto 1fr; }
.pay-icon { color: var(--pico-primary); flex: none; }
.pay-text { display: grid; gap: 0.15rem; }
.pay-text small { color: var(--pico-muted-color); line-height: 1.35; }
.pay-option .pay-text .pay-deadline, .pay-deadline { color: var(--pico-color); font-weight: 600; }
.pay-option button { grid-column: 1 / -1; width: 100%; margin: 0.4rem 0 0; }
.pay-banks { grid-template-columns: auto 1fr; }
.bank-tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 0.5rem; margin-top: 0.4rem; }
.bank-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; min-height: 4.2rem; margin: 0; padding: 0.5rem; border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius); background: rgba(255, 255, 255, 0.06); color: var(--pico-color); font-size: 0.85rem; line-height: 1.2; text-align: center; cursor: pointer; }
.bank-tile img { max-width: 100%; max-height: 1.8rem; background: #fff; border-radius: 4px; padding: 2px 4px; }
.bank-tile input { position: absolute; opacity: 0; pointer-events: none; }
.bank-tile:has(input:checked), button.bank-tile:hover, .bank-tile:hover { border-color: var(--pico-primary); box-shadow: 0 0 0 1px var(--pico-primary); }
button.bank-tile, .pay-option .bank-tile { width: 100%; margin: 0; grid-column: auto; }
label.bank-tile { position: relative; }
.pay-title { display: flex; align-items: center; gap: 0.6rem; }
.pay-instead button { display: inline-flex; align-items: center; gap: 0.5rem; }
.pay-instead .pay-icon { color: inherit; width: 22px; height: 22px; }
.quote-lines td:last-child, .quote-lines th:last-child { text-align: right; white-space: nowrap; }
.quote footer .contact-cta { margin-top: 0.5rem; }
/* Day number on top, "€85" on its own line below it. */
.flatpickr-day:has(.fp-price) { padding-top: 0.55rem; line-height: 1.2; }
.flatpickr-day .fp-price { display: block; margin-top: 0.2rem; font-size: 0.72rem; color: #6b7280; line-height: 1; white-space: nowrap; }
.flatpickr-day.selected .fp-price, .flatpickr-day.startRange .fp-price, .flatpickr-day.endRange .fp-price { color: #fff; }
.flatpickr-day.fp-short:not(.inRange):not(.endRange) { opacity: 0.45; }
.stay-calendar .flatpickr-day.fp-short, .stay-calendar .flatpickr-day.fp-short:hover { cursor: not-allowed; background: transparent; border-color: transparent; color: rgba(57, 57, 57, 0.4); }
.stay-calendar .flatpickr-day.fp-locked { cursor: not-allowed; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stay-calendar .flatpickr-months [role="button"] { width: auto; margin: 0; padding: 10px; border: 0; border-radius: 6px; background: transparent; box-shadow: none; color: rgba(0, 0, 0, 0.9); fill: rgba(0, 0, 0, 0.9); }
.stay-calendar .flatpickr-day:focus-visible, .stay-calendar .flatpickr-prev-month:focus-visible, .stay-calendar .flatpickr-next-month:focus-visible { outline: 2px solid var(--accent, #4f46e5); outline-offset: -2px; border-radius: 6px; }
/* Taken nights are crossed out; free ones where no stay can start are only greyed (their
   price stays, they can still be a check-out day once a check-in is chosen). */
.flatpickr-day.flatpickr-disabled { color: rgba(57, 57, 57, 0.3); }
/* Taken: one thick grey "/" strike across the day box. Check-in only: the lower-right half green;
   check-out only: the upper-left half green over the strikes. Selection colours win. */
.stay-calendar .flatpickr-day.fp-taken, .stay-calendar .flatpickr-day.fp-taken:hover { color: rgba(57, 57, 57, 0.45); border-radius: 6px; border-color: transparent; background: var(--strikes); }
.stay-calendar .flatpickr-day.fp-in:not(.selected):not(.startRange):not(.endRange):not(.inRange), .stay-calendar .flatpickr-day.fp-in:not(.selected):not(.startRange):not(.endRange):not(.inRange):hover { border-radius: 6px; border-color: transparent; background: var(--half-in); color: #000; }
.stay-calendar .flatpickr-day.fp-out:not(.selected):not(.startRange):not(.endRange):not(.inRange), .stay-calendar .flatpickr-day.fp-out:not(.selected):not(.startRange):not(.endRange):not(.inRange):hover { border-radius: 6px; border-color: transparent; background: var(--half-out), var(--strikes); color: #000; }
.stay-calendar .flatpickr-day.fp-in .fp-price { color: #14532d; }
.stay-calendar .flatpickr-day.fp-free:not(.selected):not(.startRange):not(.endRange):not(.inRange) { border-radius: 6px; background: var(--free-bg); border-color: var(--free-bg); color: #000; }
.stay-calendar .flatpickr-day.fp-free:not(.selected):not(.startRange):not(.endRange):not(.inRange):hover { background: var(--free-hover); border-color: var(--free-hover); }
.stay-calendar .flatpickr-day.fp-free .fp-price { color: #14532d; }
.flatpickr-day.fp-nostart .fp-price { color: #9ca3af; }
.quote > header, body.has-bg article > header { color: var(--pico-color); background: transparent; }
.plans-title { margin: 0.75rem 0 0; font-size: 1rem; }
.plans { display: grid; gap: 0.75rem; margin: 0.75rem 0; }
.plan { padding: 0.75rem 1rem; border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius); }
.plan-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.plan-total { font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.plan-total .was { font-size: 0.85em; font-weight: 400; opacity: 0.65; }
.discount-line { display: block; font-weight: 600; font-size: 0.9em; }
.promo-row { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.promo-row input { margin: 0; text-transform: uppercase; }
.promo-row button { width: auto; margin: 0; white-space: nowrap; }
/* Discount green and error red, readable on light and dark panels (beats .muted). */
.discount-line, .muted .discount-line, .ok-text, .discount-row td { color: #15803d; }
[data-theme="dark"] .discount-line, [data-theme="dark"] .muted .discount-line,
[data-theme="dark"] .ok-text, [data-theme="dark"] .discount-row td { color: #4ade80; }
.err-text { color: #b91c1c; }
[data-theme="dark"] .err-text { color: #fca5a5; }
.plan [role="button"] { margin-top: 0.5rem; width: 100%; }
.nights-breakdown summary { font-size: 0.9rem; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); } }
.book-grid { align-items: start; }
.plan-choice { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.6rem; align-items: center; padding: 0.75rem 1rem; border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius); margin-bottom: 0.6rem; cursor: pointer; }
.plan-choice:has(input:checked) { border-color: var(--pico-primary); box-shadow: 0 0 0 1px var(--pico-primary); }
.plan-choice input { margin: 0; }
.plan-choice small { grid-column: 2; }
mark.status { font-size: 0.9rem; vertical-align: middle; border-radius: 999px; padding: 0.1rem 0.7rem; }
.status-confirmed, .status-completed { background: #dcfce7; color: #14532d; }
.status-awaiting_approval, .status-pending_payment { background: #fef3c7; color: #78350f; }
.status-rejected, .status-cancelled, .status-expired { background: #f3f4f6; color: #374151; }
.cancel-box { margin: 1rem 0; }
.cancel-box > summary[role="button"] { display: inline-block; width: auto; margin-bottom: 0.75rem; }
.cancel-box > summary[role="button"]::after { display: none; }

/* Phones */
.nav-toggle { display: none; }
@media (max-width: 768px) {
  header.container { position: relative; }
  .site-nav { flex-wrap: wrap; align-items: center; }
  .site-nav .brand strong { font-size: 1rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
    margin: 0 0 0 auto; padding: 0; font-size: 1.35rem; line-height: 1;
    background: transparent; border: 1px solid var(--pico-muted-border-color); color: var(--pico-color);
  }
  .site-menu { display: none !important; flex-basis: 100%; flex-wrap: wrap; margin: 0.25rem 0 0.5rem; padding: 0; }
  .site-nav.open .site-menu { display: flex !important; }
  .site-menu li { flex-basis: 100%; padding: 0; }
  .site-menu li a { display: block; padding: 0.7rem 0.25rem; margin: 0; border-top: 1px solid var(--pico-muted-border-color); }
  .site-menu li:has(> a.lang) { flex-basis: auto; }
  .site-menu a.lang { padding: 0.7rem 1.25rem 0.7rem 0.25rem; }
  /* iOS zooms into fields with text smaller than 16 px. */
  input, select, textarea { font-size: 16px !important; }
  .site-footer p { line-height: 2.2; }
  .site-footer a { display: inline-block; padding: 0.2rem 0; }
  .hero h1 { --pico-font-size: 1.5rem; }
  .plan-head { flex-wrap: wrap; }
  .contact-buttons a[role="button"] { flex: 1 1 100%; }
  .flatpickr-calendar { max-width: calc(100vw - 2rem); }
}
code { overflow-wrap: anywhere; }

/* Header, footer and content links on the photo background: Pico's light blue clashes with the
   photo, so links use the panel's text colour with a warm accent for the current page. */
/* --accent and --accent-ink come from the apartment's Appearance settings (base.html). */
body.has-bg { --link-accent: var(--accent, #f2b84b); }
body.has-bg [data-theme] {
  --pico-primary-background: var(--accent); --pico-primary-border: var(--accent);
  --pico-primary-hover-background: color-mix(in srgb, var(--accent) 85%, black);
  --pico-primary-hover-border: color-mix(in srgb, var(--accent) 85%, black);
  --pico-primary-inverse: var(--accent-ink);
  --pico-primary-focus: color-mix(in srgb, var(--accent) 35%, transparent);
}
body.has-bg [data-theme="dark"] {
  --pico-primary: color-mix(in srgb, var(--accent) 80%, white);
  --pico-primary-hover: color-mix(in srgb, var(--accent) 55%, white);
  --pico-primary-underline: color-mix(in srgb, var(--accent) 50%, transparent);
}
body.has-bg [data-theme="light"] {
  --pico-primary: color-mix(in srgb, var(--accent) 60%, black);
  --pico-primary-hover: color-mix(in srgb, var(--accent) 45%, black);
  --pico-primary-underline: color-mix(in srgb, var(--accent) 40%, transparent);
}
body.has-bg [data-theme="dark"] { --nav-link: #f3f4f6; --nav-link-hover: #ffffff; }
body.has-bg [data-theme="light"] { --nav-link: #1f2937; --nav-link-hover: #000000; }
body.has-bg .site-nav a, body.has-bg .site-footer a { color: var(--nav-link); text-decoration: none; }
body.has-bg .site-nav a:hover, body.has-bg .site-footer a:hover { color: var(--nav-link-hover); }
body.has-bg .site-nav .brand strong { color: var(--nav-link); letter-spacing: 0.01em; }
body.has-bg .site-nav a[aria-current="page"], body.has-bg .site-nav a.lang.active {
  color: var(--nav-link-hover); text-decoration: underline; text-decoration-color: var(--link-accent);
  text-decoration-thickness: 2px; text-underline-offset: 0.35em;
}
body.has-bg [data-theme] [role="button"]:not(.outline):not(.secondary):not(.whatsapp):not(.social),
body.has-bg [data-theme] button[type="submit"]:not(.secondary) {
  --pico-background-color: var(--accent); --pico-border-color: var(--accent); --pico-color: var(--accent-ink);
}
body.has-bg [data-theme] [role="button"].outline { --pico-color: var(--pico-primary); --pico-border-color: var(--pico-primary); }

/* Footer: the template from Settings → General, one line per template line; the name in bold. */
.site-footer { text-align: center; }
.site-footer p { margin: 0.15rem 0; font-size: 0.875em; line-height: 1.9; }
.site-footer strong { font-size: 1.143em; font-weight: 600; }

/* "Your stay" page: key facts, guide tabs and guides with photos. */
.stay-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem; margin: 1rem 0 1.5rem; }
.stay-fact { display: flex; flex-direction: column; gap: 0.15rem; margin: 0; padding: 0.85rem 1rem; }
.stay-fact small { color: var(--pico-muted-color); }
.stay-fact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.tag-done { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; background: #1e8e4f; color: #fff; font-size: 0.8rem; font-weight: 600; line-height: 1.5; }
.door-code { font-size: 1.6rem; letter-spacing: 0.15em; font-variant-numeric: tabular-nums; }
.guide-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; margin-bottom: 1rem; position: sticky; top: 0; z-index: 2; }
.guide-tabs a { flex: none; padding: 0.35rem 0.8rem; border: 1px solid var(--pico-muted-border-color); border-radius: 999px; text-decoration: none; white-space: nowrap; background: var(--pico-background-color); }
body.has-bg .guide-tabs a { background: var(--panel-bg); }
.guide { scroll-margin-top: 3.5rem; margin-bottom: 2rem; }
.guide-step { margin-bottom: 1.25rem; }
.guide-step figure { margin: 0.75rem 0; }
.guide-step img { max-width: 100%; height: auto; border-radius: var(--pico-border-radius); }
.guide-step figcaption { font-size: 0.85rem; color: var(--pico-muted-color); }
.cookie-note { margin: 0; opacity: 0.75; }
.stays { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.stays li { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--pico-muted-border-color); }
.stays li:last-child { border-bottom: 0; }
.stays [role="button"] { padding: 0.25rem 0.75rem; margin: 0; }

/* Cookie notice, fixed at the bottom until accepted. */
.cookie-banner { position: fixed; z-index: 100000; left: 1rem; right: 1rem; bottom: 1rem; max-width: 46rem; margin: 0 auto; display: flex; gap: 0.75rem 1rem; align-items: center; padding: 0.9rem 1.1rem; border-radius: var(--pico-border-radius); background: #ffffff; color: #1f2937; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); text-shadow: none; }
.cookie-banner p { margin: 0; font-size: 0.9rem; flex: 1; }
.cookie-banner [role="button"] { margin: 0; white-space: nowrap; }
/* Not a see-through page panel, even though it sits directly in <body> with a theme. */
body.has-bg > .cookie-banner { background-color: #ffffff; color: #1f2937; }
.cookie-banner a:not([role="button"]) { color: #1f2937; text-decoration: underline; }
@media (max-width: 600px) { .cookie-banner { flex-direction: column; align-items: stretch; left: 0.5rem; right: 0.5rem; bottom: 0.5rem; } .cookie-banner [role="button"] { text-align: center; } }

/* Address and company fields (templates/_billing_fields.html): company fields only when ticked. */
.billing .company-only { display: none; }
.billing:has(.company-toggle input:checked) .company-only { display: block; }
.billing:has(.company-toggle input:checked) legend .company-only { display: inline; }
.billing:has(.company-toggle input:checked) .person-only { display: none; }
.billing .company-toggle { display: block; margin-bottom: 0.75rem; }
.billing fieldset.address { margin: 0 0 1rem; }
.billing fieldset.address legend { font-weight: 600; margin-bottom: 0.4rem; }
/* Labels that wrap to two lines keep the inputs of a row level: text on top, input at the bottom. */
.billing .grid { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0 1rem; }
.billing .grid > label { display: flex; flex-direction: column; justify-content: space-between; }
.billing .grid > label > input, .billing .grid > label > select { margin-top: 0.25rem; }
.name-fields { gap: 0 1rem; }

/* Bot check status above the sign-in / registration / forgot-password button. */
.captcha-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 1rem;
  padding: 0.6rem 0.8rem; border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius); font-size: 0.9rem; }
.captcha-status small { flex-basis: 100%; opacity: 0.7; margin-left: 1.75rem; }
.captcha-mark { width: 1.25rem; height: 1.25rem; border-radius: 50%; flex: none;
  border: 2px solid var(--pico-muted-border-color); border-top-color: var(--pico-primary);
  animation: captcha-spin 0.8s linear infinite; }
.captcha-status.done .captcha-mark { animation: none; border-color: #16a34a; background: #16a34a; }
.captcha-status.done .captcha-mark::after { content: "✓"; display: block; color: #fff;
  font-size: 0.8rem; line-height: 1rem; text-align: center; }
.captcha-status.failed .captcha-mark { animation: none; border-color: #dc2626; }
@keyframes captcha-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .captcha-mark { animation: none; } }

/* Help text under a checkbox: Pico pulls `input + small` up (meant for text fields). */
label > input:is([type="checkbox"], [type="radio"]) + small {
  margin-top: 0.25rem; margin-bottom: 0; padding-left: 1.75rem;
}
