/* Layout concept: photo-led pages on a sea-mist ground; quiet sans text, a sturdy serif for names,
   small mono labels for the practical facts (times, beds, prices); sandstone is kept for the booking action only. */
:root {
  --mist: #ecefea;
  --paper: #f8f9f6;
  --ink: #15232a;
  --muted: #55656a;
  --line: #d2d9d3;
  --loch: #1f4e5a;
  --loch-soft: #dbe6e6;
  --sandstone: #a9522f;
  --sandstone-ink: #ffffff;
  --ok: #2f6b45;
  --warn: #8a5a12;
  --bad: #a3362a;
  --shade: rgba(10, 22, 27, 0.55);

  --f-display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Spline Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.84rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.55rem;
  --step-3: 2.1rem;
  --step-4: clamp(2.3rem, 5vw, 3.6rem);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --radius: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mist: #0f1a1e; --paper: #15232a; --ink: #e5ece8; --muted: #9aabae; --line: #2a3b41;
    --loch: #86b9c4; --loch-soft: #1c3138; --sandstone: #d27c58; --sandstone-ink: #1a0f0a;
    --ok: #7cc496; --warn: #e0b060; --bad: #ef8b7d; --shade: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --mist: #0f1a1e; --paper: #15232a; --ink: #e5ece8; --muted: #9aabae; --line: #2a3b41;
  --loch: #86b9c4; --loch-soft: #1c3138; --sandstone: #d27c58; --sandstone-ink: #1a0f0a;
  --ok: #7cc496; --warn: #e0b060; --bad: #ef8b7d; --shade: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--mist); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--loch); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--loch); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.label {
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.prose { display: grid; gap: 1em; max-width: 65ch; }
.prose h2 { font-size: var(--step-2); margin-top: 0.6em; }
.prose h3 { font-size: var(--step-1); margin-top: 0.4em; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 0.35em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 50; }

/* Header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { font-family: var(--f-display); font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--loch); }

/* Draft banner */
.draft { background: var(--loch-soft); color: var(--ink); font-size: var(--step--1); }
.draft .wrap { padding-block: 8px; }

/* Home hero */
.hero { position: relative; color: #fff; background: #1c2b30; }
.hero img { width: 100%; height: clamp(380px, 62vh, 640px); object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8, 18, 22, 0.72)); }
.hero .wrap { position: absolute; inset: auto 0 0 0; z-index: 1; padding-block: 0 clamp(24px, 5vw, 56px); display: grid; gap: 12px; }
.hero h1 { font-size: var(--step-4); max-width: 16ch; }
.hero p { font-size: var(--step-1); max-width: 46ch; opacity: 0.95; }
.hero .label { color: rgba(255,255,255,0.85); }

/* Sections */
.section { padding-block: clamp(40px, 7vw, 88px); }
.section-head { display: grid; gap: 8px; margin-bottom: 28px; max-width: 65ch; }
.section-head h2 { font-size: var(--step-3); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }

/* Property cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .5s ease; }
.card:hover img { transform: scale(1.03); }
.card-media { overflow: hidden; }
.card-body { display: grid; gap: 10px; padding: 20px 20px 22px; align-content: start; }
.card h3 { font-size: var(--step-2); }
.card .meaning { font-style: italic; color: var(--muted); font-size: 0.95rem; }
.card .summary { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink); }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; flex-wrap: wrap; }
.price-from { font-variant-numeric: tabular-nums; }
.price-from strong { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; }
.rating { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }

/* Direct-booking reasons */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 40px; }
.reasons h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.reasons p { color: var(--muted); }
.band { background: var(--paper); border-block: 1px solid var(--line); }

/* Split image + text */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(24px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split > div { min-width: 0; display: grid; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--f-body); padding: 14px 20px; border-radius: var(--radius); border: 1px solid var(--loch);
  color: var(--loch); background: transparent; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--loch-soft); }
.btn-book { background: var(--sandstone); border-color: var(--sandstone); color: var(--sandstone-ink); width: 100%; }
.btn-book:hover { background: var(--sandstone); filter: brightness(1.07); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; filter: none; }

/* Property page */
.prop-hero img { width: 100%; height: clamp(300px, 56vh, 560px); object-fit: cover; }
.prop-title { display: grid; gap: 6px; padding-block: 28px 8px; }
.prop-title h1 { font-size: var(--step-4); }
.prop-title .meaning { font-style: italic; color: var(--muted); }
.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: 72px; }
@media (max-width: 960px) { .prop-layout { grid-template-columns: minmax(0, 1fr); } }
.prop-main { display: grid; gap: 44px; min-width: 0; }
.prop-main section { display: grid; gap: 16px; }
.prop-main h2 { font-size: var(--step-2); }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); overflow: hidden; }
.keyfacts div { padding: 14px 16px; display: grid; gap: 2px; align-content: start; background: var(--paper); }
.keyfacts strong { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.room { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--paper); display: grid; gap: 4px; }
.room strong { font-weight: 600; }
.room span { color: var(--muted); font-size: 0.95rem; }
.amenities { list-style: none; padding: 0; margin: 0; columns: 2 220px; column-gap: 32px; }
.amenities li { padding: 7px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.notes { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.times { display: flex; gap: 12px 32px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.times div { display: grid; }
.times strong { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; overflow: hidden; }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: opacity .2s; }
.gallery button:hover img { opacity: 0.85; }
.lightbox { border: 0; padding: 0; background: rgba(6, 12, 14, 0.94); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: #fff; }
.lightbox::backdrop { background: rgba(6, 12, 14, 0.94); }
.lightbox figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 16px 16px; gap: 10px; }
.lightbox img { max-height: calc(100vh - 120px); width: auto; object-fit: contain; }
.lightbox figcaption { font-family: var(--f-mono); font-size: 0.8rem; opacity: 0.8; }
.lb-btn { position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,0.24); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; }
.lb-next { right: 12px; top: 50%; }

/* Booking panel */
.book { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: grid; gap: 16px; box-shadow: 0 10px 30px -18px rgba(10, 30, 36, 0.35); }
@media (max-width: 960px) { .book { position: static; } }
.book h2 { font-size: var(--step-2); }
.book-price { font-variant-numeric: tabular-nums; color: var(--muted); }
.book-price strong { font-family: var(--f-display); font-weight: 400; color: var(--ink); font-size: 1.5rem; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; }
.cal-nav button { background: none; border: 1px solid var(--line); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.cal-nav .cal-clear { width: auto; height: auto; border: 0; border-radius: 0; font-size: 0.85rem; color: var(--muted); text-decoration: underline; padding: 4px; white-space: nowrap; }
.cal-nav button:disabled { opacity: 0.35; cursor: default; }
.cal-month h3 { font-family: var(--f-body); font-weight: 600; font-size: 1rem; text-align: center; margin-bottom: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-variant-numeric: tabular-nums; }
.cal-grid .dow { font-family: var(--f-mono); font-size: 0.7rem; color: var(--muted); text-align: center; padding: 4px 0; }
.day { aspect-ratio: 1; border: 0; background: none; color: var(--ink); font: inherit; font-size: 0.92rem; border-radius: 50%; cursor: pointer; position: relative; }
.day:hover:not(:disabled) { background: var(--loch-soft); }
.day:disabled { color: var(--muted); opacity: 0.45; cursor: default; }
.day.booked { text-decoration: line-through; }
.day.in-range { background: var(--loch-soft); border-radius: 0; }
.day.start, .day.end { background: var(--loch); color: var(--paper); border-radius: 50%; opacity: 1; }
.day.today::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.cal-legend s { text-decoration-thickness: 1px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--mist); color: var(--ink); width: 100%;
}
.field textarea { min-height: 90px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); }
.dates div { padding: 10px 12px; display: grid; gap: 2px; }
.dates div + div { border-left: 1px solid var(--line); }
.dates strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.quote { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.quote .line { display: flex; justify-content: space-between; gap: 12px; }
.quote .total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; }
.msg { font-size: 0.92rem; padding: 10px 12px; border-radius: var(--radius); background: var(--loch-soft); }
.msg.error { color: var(--bad); background: transparent; border: 1px solid currentColor; }
.small { font-size: 0.85rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; }
.contact-form { display: grid; gap: 14px; max-width: 560px; }
.trap { position: absolute; left: -9999px; }

/* Area guide */
.guide { display: grid; gap: 36px; }
.guide-item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 32px; border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 640px) { .guide-item { grid-template-columns: 1fr; } }
.guide-item h3 { font-size: var(--step-1); }
.guide-item p { max-width: 62ch; }

/* Footer */
.site-foot { background: var(--paper); border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: 0.95rem; }
.site-foot .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot .licences { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); display: grid; gap: 4px; }

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