/* The Sleeping Swan — Bruges
   Palette: canal slate — cool blue-gray neutrals, a quiet nod to the water. */
:root {
  --paper: #FBFCFD;
  --card: #FFFFFF;
  --ink: #333D46;
  --ink-soft: #71808E;
  --canal: #2E3944;        /* primary */
  --canal-deep: #2E3944;   /* header/footer/buttons */
  --mist: #DFE4E9;
  --gilt: #71808E;         /* small labels, dividers */
  --brick: #B3423A;        /* errors only */
  --radius: 4px;
  font-size: 17px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Montserrat', system-ui, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--canal); }
h1, h2, h3, .brand-name {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--canal-deep);
  margin: 0 0 .4em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.medium { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }
.hero-copy .kicker { color: #FFFFFF; text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 2px 10px rgba(0,0,0,.6); }
.kicker {
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gilt); font-weight: 700; margin: 0 0 .6em;
}
.lede { font-size: 1.02rem; color: var(--ink-soft); }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--canal); color: #fff;
  padding: .5em 1em; z-index: 100;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid #2E3944; outline-offset: 2px; }

/* Header */
.site-header {
  background: var(--canal-deep); color: #fff;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; padding: 8px 0; }
.brand-swan { width: 46px; height: 38px; color: #fff; flex: none; }
.brand-name { display: block; font-size: 1.3rem; color: #fff; line-height: 1; margin: 0; }
.brand-sub { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: 4px; line-height: 1; }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: rgba(255,255,255,.88); text-decoration: none; padding: 8px 12px; border-radius: 6px;
  font-size: .95rem;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-nav a[aria-current="page"] { color: #fff; font-weight: 700; }
.nav-book {
  border: 1px solid rgba(255,255,255,.7); color: #fff !important; margin-left: 6px;
}
.nav-book:hover { background: #fff !important; color: var(--canal-deep) !important; }
.lang-switch { display: flex; gap: 2px; margin-left: 10px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.2); }
.lang-switch a { padding: 6px 7px; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.lang-switch a[aria-current="true"] { color: #fff; font-weight: 700; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--canal-deep); }
.hero-media img { width: 100%; height: min(62vh, 520px); object-fit: cover; object-position: center 72%; }
.hero-copy { position: absolute; inset: auto 0 0 0; padding-bottom: 36px; z-index: 1; }
.hero-copy h1 { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 18px rgba(0,0,0,.5); }
.hero-copy .lede { color: rgba(255,255,255,.95); max-width: 34em; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* Buttons */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 6px; text-decoration: none;
  font-weight: 700; font-size: .95rem; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-primary { background: var(--canal); color: #fff; border-color: var(--canal); }
.btn-primary:hover { background: #3D4A57; border-color: #3D4A57; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }

/* Sections */
.section { padding: 32px 0; }
.page-head { padding-bottom: 8px; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 36px; align-items: start; }

/* Story perks: label-left rows, insensitive to uneven text lengths */
.perks { margin: 12px 0 0; }
.perks > div {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--mist);
}
.perks > div:last-child { border-bottom: 0; padding-bottom: 0; }
.perks dt { font-weight: 600; color: var(--canal-deep); }
.perks dd { margin: 0; }
.perks dd p { margin: 0 0 8px; }
.perks dd p:last-child { margin-bottom: 0; }

/* Simple image frames */
.frame { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(46,57,68,.10); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

.swan-divider { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--gilt); }
.swan-divider::before, .swan-divider::after { content: ""; flex: 1; height: 1px; background: var(--mist); }
.swan-divider svg { width: 30px; height: 24px; flex: none; }

/* Rooms */
.room-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 24px 0 32px; }
.room-card { text-decoration: none; color: inherit; }
.room-card .frame { aspect-ratio: 1 / 1.05; }
.room-card h3 { margin: 14px 0 2px; }
.room-card:hover h3 { color: #1B242D; }
.room-price { color: var(--ink-soft); margin: 0 0 12px; }
.room-price strong { color: var(--canal-deep); font-size: 1.15em; }

.room-detail .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 36px; align-items: start; }
.room-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.room-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.room-gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: var(--radius); }
.room-gallery img { width: 100%; height: 100%; object-fit: cover; }
.room-facts { margin: 20px 0; border-top: 1px solid var(--mist); }
.room-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--mist); }
.room-facts dt { color: var(--ink-soft); }
.room-facts dd { margin: 0; text-align: right; }

/* Gallery */
.masonry { columns: 3 300px; column-gap: 14px; }
.masonry figure { margin: 0 0 14px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; }

/* Booking */
.booking-layout { display: grid; grid-template-columns: 7fr 5fr; gap: 36px; align-items: start; }
.room-picker { border: 1px solid var(--mist); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px; display: flex; gap: 24px; flex-wrap: wrap; background: var(--card); }
.room-picker legend { padding: 0 8px; font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.room-picker label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.cal-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; font-size: .88rem; color: var(--ink-soft); }
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--mist); }
.lg-free::before { background: var(--card); }
.lg-busy::before { background: repeating-linear-gradient(45deg, #DCE2E8, #DCE2E8 3px, #F0F3F6 3px, #F0F3F6 6px); border-color: #C4CDD6; }
.lg-sel::before { background: var(--canal); border-color: var(--canal); }
.cal-status { padding: 10px 0; color: var(--ink-soft); min-height: 1.5em; }
.cal-status.error { color: var(--brick); }
.cal-nav { display: flex; justify-content: space-between; margin-bottom: 8px; }
.cal-nav button { background: var(--card); border: 1px solid var(--mist); border-radius: 6px; padding: 6px 14px; cursor: pointer; font-size: 1rem; color: var(--canal-deep); }
.cal-nav button:hover:not([disabled]) { border-color: var(--canal); }
.cal-nav button[disabled] { opacity: .35; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cal-month { background: var(--card); border: 1px solid var(--mist); border-radius: var(--radius); padding: 16px; }
.cal-month h3 { font-family: 'Montserrat', sans-serif; font-size: .95rem; font-weight: 700; text-align: center; margin: 0 0 10px; color: var(--canal-deep); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); text-align: center; padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: .88rem; border-radius: 6px; border: 1px solid transparent;
  background: none; padding: 0; font-family: inherit; color: var(--ink);
}
button.cal-day { cursor: pointer; border-color: var(--mist); background: var(--card); }
button.cal-day:hover { border-color: var(--canal); }
.cal-day.busy {
  background: repeating-linear-gradient(45deg, #DCE2E8, #DCE2E8 3px, #F0F3F6 3px, #F0F3F6 6px);
  color: #8E9AA6; text-decoration: line-through; border-color: transparent;
}
.cal-day.past, .cal-day.empty { color: #C4CDD6; }
.cal-day.sel { background: var(--canal); border-color: var(--canal); color: #fff; font-weight: 700; }
.cal-day.in-range { background: #DDE5EC; border-color: #DDE5EC; }

/* Forms */
form label { display: block; margin-bottom: 14px; font-weight: 700; font-size: .9rem; color: var(--canal-deep); }
form input, form textarea, form select {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px;
  border: 1px solid var(--mist); border-radius: 6px; background: var(--card);
  font: inherit; font-weight: 400; color: var(--ink);
}
form input:focus, form textarea:focus, form select:focus { border-color: var(--canal); outline: none; box-shadow: 0 0 0 3px rgba(41,71,62,.12); }
.form-row { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: var(--brick); font-weight: 700; }
.stay-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px;
  background: var(--card); border: 1px solid var(--mist); border-radius: var(--radius); padding: 14px 16px;
}
.stay-summary .lbl { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.stay-summary strong { font-size: 1.05rem; color: var(--canal-deep); }
.success-panel { background: var(--card); border: 1px solid var(--mist); border-radius: var(--radius); padding: 28px; text-align: center; }
.success-panel .swan-divider { margin-top: 0; }

/* Contact */
/* Contact: one medium-width column for text, form, map and facts */
.contact-form-section { padding-top: 0; }
.contact-form-section textarea { min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-facts-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin: 24px 0 0; text-align: center;
}
.contact-facts-row dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gilt); font-weight: 700; }
.contact-facts-row dd { margin: 6px 0 0; }

/* Footer */
.site-footer { background: var(--canal-deep); color: rgba(255,255,255,.8); margin-top: 40px; }
.site-footer a { color: rgba(255,255,255,.9); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding-top: 28px; padding-bottom: 12px; }
.footer-brand { font-weight: 600; font-size: 1.1rem; color: #fff; margin: 0; }
.footer-sub { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; padding-bottom: 22px; font-size: .85rem; color: rgba(255,255,255,.55); }

/* Responsive */
@media (max-width: 900px) {
  .split, .room-detail .wrap, .booking-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-facts-row { grid-template-columns: 1fr; gap: 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .cal-months { grid-template-columns: 1fr; }
  .room-cards { grid-template-columns: 1fr; }
  .perks > div, .story .perks > div { grid-template-columns: 1fr; gap: 4px; }
    .footer-grid { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--canal-deep); padding: 8px 16px 16px; border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .site-nav ul.open { display: flex; }
  .site-nav a { display: block; padding: 12px; }
  .lang-switch { border-left: 0; padding-left: 0; margin-left: 0; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.15); }
  .nav-book { margin-left: 0; text-align: center; }
}

/* Contact page map */
.map-section { padding-top: 0; }
.map-embed {
  display: block; width: 100%; height: 380px; border: 0;
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(46,57,68,.10);
}

/* reCAPTCHA widget spacing */
.g-recaptcha { margin: 0 0 14px; }

/* Free days that can't serve the current selection step */
/* Free but unusable for the current step: identical to an available day, so
   guests don't read it as booked. The tooltip / tap message explains why. */
.cal-day.unbookable { cursor: help; }
.cal-day.unbookable:hover { border-color: var(--mist); }

/* Check-out hover preview: shows the stay you'd get before you click */
.cal-day.preview { background: #DDE5EC; border-color: #DDE5EC; }
.cal-day.preview-end { background: var(--canal); border-color: var(--canal); color: #fff; }

/* Book page: photos of the selected room */
.room-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.room-photos[hidden] { display: none; }
.room-photos img {
  width: 96px; height: 72px; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 2px 8px rgba(46,57,68,.12);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20,25,30,.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(92vw, 1400px); max-height: 90vh; text-align: center; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { color: rgba(255,255,255,.85); margin-top: 10px; font-size: .9rem; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0;
  font-size: 1.6rem; line-height: 1; padding: 10px 16px; border-radius: var(--radius);
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }
.masonry img, .room-gallery img, .room-detail .frame img, .room-photos img, .room-card .frame img { cursor: zoom-in; }

/* bump */

/* Calendar tooltip (why a free date can't be used) */
.cal-tip {
  position: fixed; z-index: 60; max-width: 230px;
  background: var(--canal-deep); color: #fff;
  font-size: .8rem; line-height: 1.35; padding: 8px 10px;
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(46,57,68,.28);
  pointer-events: none;
}
.cal-tip[hidden] { display: none; }

/* ---- Home story: a postcard, front and back ---------------------------
   Both cards share the front image's exact footprint (566px wide, 4:3), so
   they read as two sides of one card. The front is laid over the back's
   address panel — never over the message — which lets the message column
   keep readable type. */
.pc-stage { position: relative; height: 540px; }
.pc-front, .pc-back {
  position: absolute; width: 566px; aspect-ratio: 1448 / 1086; border-radius: 6px;
}
.pc-front {
  display: block; object-fit: cover; left: 514px; top: 70px;
  transform: rotate(4.5deg); box-shadow: 0 18px 44px rgba(46,57,68,.28);
}
.pc-back {
  left: 0; top: 24px; transform: rotate(-1.6deg);
  background: #F4EFE4; box-shadow: 0 14px 36px rgba(46,57,68,.18);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 3%;
  padding: 3.4% 3.2% 3.4% 5%; overflow: hidden;
  /* Measured largest size that fits the card in each language; the script in
     site.js re-checks at runtime and shrinks if the copy is ever edited. */
  font-size: 15.25px;
  background-image: radial-gradient(rgba(46,57,68,.035) 1px, transparent 1px);
  background-size: 4px 4px;
}
html[lang="fr"] .pc-back { font-size: 13.5px; }
html[lang="nl"] .pc-back { font-size: 14.25px; }
.pc-back::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(46,57,68,.13);
  border-radius: 3px; pointer-events: none;
}
.pc-divider { position: absolute; top: 7%; bottom: 7%; left: 60%; width: 1px; background: rgba(46,57,68,.22); }
.pc-msg { min-width: 0; overflow: hidden; }
.pc-msg h2 { margin: 0 0 .5em; font-size: 1.14em; line-height: 1.25; }
.pc-msg p { margin: 0 0 .6em; line-height: 1.5; color: #3A444E; }
.pc-hand { font-family: 'Caveat', cursive; font-size: 1.5em; color: var(--canal-deep); margin: 0 0 .2em; line-height: 1.1; }
.pc-addr { display: flex; flex-direction: column; min-width: 0; padding-top: 3%; padding-right: 2%; }
.pc-stamp-row { display: flex; justify-content: flex-end; align-items: flex-start; gap: 6%; }
.pc-stamp {
  width: 23%; aspect-ratio: 74/88; border: 1px solid rgba(46,57,68,.35); border-radius: 3px;
  background: #FBF8F1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: #3F4C59;
}
.stamp-swan { width: 52%; }
.pc-stamp small { font-size: .5em; letter-spacing: .09em; margin-top: .3em; color: #5C6B79; text-transform: uppercase; }
.pc-postmark {
  width: 27%; aspect-ratio: 1; border: 2px solid rgba(46,57,68,.42); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transform: rotate(-13deg);
  color: rgba(46,57,68,.62); font-size: .5em; letter-spacing: .12em; text-align: center; line-height: 1.5;
}
.pc-lines { margin-top: auto; padding-bottom: 7%; }
.pc-lines div { border-bottom: 1px solid rgba(46,57,68,.24); height: 2em; display: flex; align-items: flex-end; padding-bottom: .15em; }
.pc-lines span { font-family: 'Caveat', cursive; font-size: 1.2em; color: var(--canal-deep); white-space: nowrap; }
.swan-note { max-width: 46em; margin: 14px auto 0; text-align: center; color: var(--ink); font-size: 1.02rem; line-height: 1.62; }
.story .perks { margin-top: 22px; }
.story .perks > div { grid-template-columns: 150px 1fr; }

/* Two 566px cards can't sit side by side (or tilt) in a narrow viewport. */
@media (max-width: 980px) {
  .pc-stage { height: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .pc-front, .pc-back { position: static; width: 100%; max-width: 520px; transform: none; }
  .pc-back { font-size: 14px; }
}
@media (max-width: 560px) {
  .pc-back { grid-template-columns: 1fr; font-size: 13px; }
  .pc-divider, .pc-addr { display: none; }
}
