/* ==========================================================================
   Loft-Fewo Gunzesried – site layout & sections
   ========================================================================== */

/* ================================================== 10. HEADER ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--c-line);
  box-shadow: 0 8px 30px -22px rgb(var(--c-shadow-rgb) / 0.6);
  background: var(--glass-strong);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.2rem + 1vw, 1.25rem);
  min-height: 4.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--c-ink);
  margin-right: auto;
  min-width: 0;
  flex: 0 1 auto;
}
.brand__mark {
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  transition: transform 0.4s var(--ease-out);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__text { display: grid; line-height: 1.08; min-width: 0; overflow: hidden; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__sub {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav { display: none; }
@media (min-width: 1100px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    flex: 0 1 auto;
    min-width: 0;
  }
  .nav a {
    padding: 0.5rem 0.62rem;
    border-radius: var(--r-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-ink-2);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
  }
  .nav a:hover { background: var(--c-brand-soft); color: var(--c-brand-strong); }
  .nav a.is-active { color: var(--c-brand-strong); }
}

.header-tools { display: flex; align-items: center; gap: 0.45rem; }

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-line-2);
  background: color-mix(in srgb, var(--c-surface) 70%, transparent);
}
.lang button {
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-full);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--c-ink-3);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang button[aria-pressed='true'] { background: var(--c-brand); color: var(--c-brand-ink); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: var(--r-full);
  border: 1px solid var(--c-line-2);
  background: color-mix(in srgb, var(--c-surface) 70%, transparent);
  color: var(--c-ink);
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--c-brand);
  color: var(--c-brand-strong);
}
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.icon-btn--ghost { border-color: transparent; background: transparent; }
.header-tools .btn { display: none; }
@media (min-width: 720px) { .header-tools .btn { display: inline-flex; } }
@media (min-width: 1100px) { .header-tools .btn { display: none; } }
@media (min-width: 1240px) { .header-tools .btn { display: inline-flex; } }

/* The hamburger is redundant while the full navigation is visible. */
@media (min-width: 1100px) { #menuBtn { display: none; } }

/* Slightly tighter brand at the smaller desktop widths */
@media (min-width: 1100px) and (max-width: 1239px) {
  .brand__name { font-size: 0.98rem; }
  .brand__sub { font-size: 0.58rem; letter-spacing: 0.14em; }
}

/* Compact header on phones – keeps the full name readable */
@media (max-width: 620px) {
  .site-header__inner { gap: 0.4rem; min-height: 4.1rem; }
  .brand { gap: 0.5rem; }
  .brand__mark { width: 2.2rem; height: 2.2rem; }
  .brand__name { font-size: 0.92rem; }
  .brand__sub { display: none; }
  .lang button { padding: 0.28rem 0.45rem; font-size: 0.7rem; }
  .icon-btn { width: 2.5rem; height: 2.5rem; }
  .icon-btn svg { width: 1.1rem; height: 1.1rem; }
  /* the floating colour-scheme button already covers this on phones */
  #schemeBtn { display: none; }
}
@media (max-width: 380px) {
  .lang { display: none; }
}

/* Mobile drawer ---------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 360px);
  z-index: 120;
  padding: 1.5rem;
  background: var(--c-surface);
  border-left: 1px solid var(--c-line);
  box-shadow: var(--shadow-3);
  transform: translateX(102%);
  transition: transform 0.42s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
}
.drawer[data-open='true'] { transform: none; }
.drawer a {
  padding: 0.85rem 0.9rem;
  border-radius: var(--r-sm);
  font-weight: 650;
  color: var(--c-ink);
  text-decoration: none;
}
.drawer a:hover { background: var(--c-brand-soft); color: var(--c-brand-strong); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgb(var(--c-scrim) / 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.scrim[data-open='true'] { opacity: 1; pointer-events: auto; }

/* ================================================== 11. HERO ============ */

.hero {
  position: relative;
  padding-top: clamp(2.25rem, 1rem + 4vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 1rem + 5vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  z-index: 0;
  width: 46rem;
  height: 46rem;
  right: -18rem;
  top: -20rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--c-brand) 22%, transparent),
    transparent 66%
  );
  filter: blur(10px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 30rem;
  height: 30rem;
  left: -14rem;
  bottom: -16rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--c-accent) 20%, transparent),
    transparent 68%
  );
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); }
}

.hero__copy { display: grid; gap: clamp(1rem, 0.6rem + 1.2vw, 1.6rem); }
.hero__title { font-size: var(--step-5); }
.hero__title em {
  font-style: italic;
  font-weight: 600;
  color: var(--c-brand);
}
.hero__lead { max-width: 46ch; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.35rem;
}
@media (min-width: 640px) { .hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.stat {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--c-surface) 72%, transparent);
  border: 1px solid var(--c-line);
}
.stat__v {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--c-ink);
}
.stat__k {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-3);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero__note { display: flex; align-items: center; gap: 0.5rem; color: var(--c-ink-3); font-size: var(--step--1); }

.hero__media { position: relative; }
.hero__frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  border: 1px solid color-mix(in srgb, var(--c-surface) 55%, transparent);
}
.hero__frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.hero__frame:hover img { transform: scale(1.035); }
.hero__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgb(var(--c-scrim) / 0.34));
  pointer-events: none;
}

.hero__float {
  position: absolute;
  left: clamp(-0.5rem, -1.5vw, -1.5rem);
  bottom: clamp(-1rem, -2vw, -1.5rem);
  z-index: 2;
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-2);
  max-width: 15rem;
}
.hero__float strong { font-size: 0.95rem; }
.hero__float span { font-size: var(--step--1); color: var(--c-ink-3); }
.hero__float-top { display: flex; align-items: center; gap: 0.45rem; }
.dot-live {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--c-brand);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-brand) 60%, transparent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-brand) 55%, transparent); }
  70% { box-shadow: 0 0 0 0.6rem color-mix(in srgb, var(--c-brand) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-brand) 0%, transparent); }
}
@media (max-width: 480px) { .hero__float { display: none; } }

/* Trust strip under hero ------------------------------------------------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  border-radius: var(--r-full);
  border: 1px solid var(--c-line);
  background: color-mix(in srgb, var(--c-surface) 62%, transparent);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--c-ink-2);
}
.trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust svg { width: 1.05em; height: 1.05em; color: var(--c-brand); }

/* ============================================ 12. AVAILABILITY BAR ======= */

.availability-section { padding-top: clamp(1.5rem, 0.5rem + 3vw, 3rem); }

.avail-card {
  position: relative;
  z-index: 6;
  border-radius: var(--r-xl);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.avail-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: clamp(1rem, 0.7rem + 1vw, 1.5rem) clamp(1rem, 0.7rem + 1.4vw, 1.9rem);
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--c-brand) 12%, transparent),
    color-mix(in srgb, var(--c-accent) 12%, transparent)
  );
  border-bottom: 1px solid var(--c-line);
}
.avail-card__head h3 { font-size: var(--step-1); }
.avail-card__body { padding: clamp(1rem, 0.7rem + 1.4vw, 1.9rem); display: grid; gap: 1.25rem; }

.avail-form {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .avail-form { grid-template-columns: 1.1fr 1.1fr 0.8fr auto; align-items: end; }
}
.avail-form .btn { min-height: 3rem; }

.avail-result { display: grid; gap: 0.75rem; }
.avail-result:empty { display: none; }

.alert {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line-2);
  background: var(--c-surface-2);
  font-size: var(--step--1);
  align-items: flex-start;
}
.alert svg { width: 1.35rem; height: 1.35rem; flex: none; margin-top: 0.1rem; }
.alert strong { display: block; font-size: var(--step-0); margin-bottom: 0.15rem; }
.alert--ok {
  border-color: color-mix(in srgb, var(--c-brand) 45%, transparent);
  background: var(--c-brand-soft);
  color: var(--c-brand-strong);
}
.alert--warn {
  border-color: color-mix(in srgb, var(--c-accent) 55%, transparent);
  background: color-mix(in srgb, var(--c-accent) 12%, transparent);
}
.alert--err {
  border-color: color-mix(in srgb, #c0392b 40%, transparent);
  background: color-mix(in srgb, #c0392b 9%, transparent);
}
.alert__body { min-width: 0; }

.price-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.price-tag b {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1;
  color: var(--c-ink);
}
.price-tag span { color: var(--c-ink-3); font-size: var(--step--1); font-weight: 600; }

.spinner {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 30%, transparent);
  border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================ 13. HIGHLIGHTS ============ */

.highlight {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.6rem);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease);
}
.highlight:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--c-brand) 35%, var(--c-line));
}
.highlight h3 { font-size: var(--step-1); }
.highlight p { color: var(--c-ink-2); font-size: var(--step--1); margin: 0; }

/* ============================================ 14. SPLIT / FEATURE ======= */

.split {
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
.split--start { align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--reverse .split__media { order: 2; }
}
.split__media { position: relative; }
.split__media img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split__media--tall img { aspect-ratio: 3 / 2; }
.split__media .badge { top: 1rem; left: 1rem; }

.fact-list { display: grid; gap: 0.85rem; margin-top: 1.4rem; }
.fact {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.fact__t { display: grid; gap: 0.1rem; }
.fact__t strong { font-size: var(--step-0); }
.fact__t span { font-size: var(--step--1); color: var(--c-ink-3); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.spec {
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  display: grid;
  gap: 0.15rem;
}
.spec b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.spec span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-3); }

/* ============================================ 15. GALLERY =============== */

.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.gallery__item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-surface-2);
  cursor: zoom-in;
  box-shadow: var(--shadow-1);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.5s var(--ease);
}
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgb(var(--c-scrim) / 0.55));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute;
  z-index: 2;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.7rem;
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease-out);
}
.gallery__item:hover .gallery__cap,
.gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }

@media (min-width: 720px) {
  .gallery__item--feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .gallery__item--wide { grid-column: span 2; aspect-ratio: 8 / 3; }
}


/* Lightbox --------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  height: 100%;
  height: 100dvh; /* stable height on mobile browsers with dynamic toolbars */
  z-index: 200;
  display: grid;
  /* minmax(0, 1fr) instead of 1fr: a bare 1fr keeps an automatic minimum of
     the content size, which lets a tall photo push the row past the viewport. */
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgb(6 8 8 / 0.965);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox[data-open='true'] { opacity: 1; pointer-events: auto; }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(0.75rem, 0.4rem + 2vw, 1.75rem);
  color: #fff;
}
.lightbox__caption { font-size: var(--step--1); opacity: 0.85; min-width: 0; }
.lightbox__stage {
  position: relative;
  display: grid;
  /* A definite track is what makes `max-height: 100%` on the image resolve –
     otherwise the percentage is ignored and tall photos are cut off. */
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 0 clamp(0.5rem, 0.2rem + 3vw, 3.5rem) 0.5rem;
  min-height: 0;
  overflow: hidden;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  border-radius: var(--r-md);
  box-shadow: 0 40px 90px -30px #000;
  object-fit: contain;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 0.14);
  border: 1px solid rgb(255 255 255 / 0.28);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease-out);
}
.lightbox__nav:hover { background: rgb(255 255 255 / 0.26); }
.lightbox__nav svg { width: 1.4rem; height: 1.4rem; }
.lightbox__nav--prev { left: clamp(0.5rem, 0.2rem + 1.5vw, 1.75rem); }
.lightbox__nav--next { right: clamp(0.5rem, 0.2rem + 1.5vw, 1.75rem); }
.lightbox__thumbs {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem clamp(0.75rem, 0.4rem + 2vw, 1.75rem) 1.1rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.lightbox__thumbs button {
  flex: none;
  width: 4.2rem;
  height: 3rem;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumbs button[aria-current='true'] { opacity: 1; border-color: #fff; }
.lightbox .icon-btn { color: #fff; border-color: rgb(255 255 255 / 0.3); background: rgb(255 255 255 / 0.12); }

/* ============================================ 16. AMENITIES ============= */

.amenities {
  display: grid;
  gap: 0.6rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.amenity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.2rem;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--c-ink-2);
}
.amenity svg { width: 1.15rem; height: 1.15rem; color: var(--c-brand); flex: none; }

.pill-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ============================================ 17. LOCATION ============= */

.map-embed {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-surface-2);
  aspect-ratio: 16 / 11;
  box-shadow: var(--shadow-2);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.9rem;
  text-align: center;
  padding: 1.5rem;
  background-size: cover;
  background-position: center;
}
.map-consent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(var(--c-scrim) / 0.62);
  backdrop-filter: blur(3px);
}
.map-consent > * { position: relative; z-index: 1; color: #fff; }
.map-consent p { font-size: var(--step--1); max-width: 34ch; opacity: 0.9; }

.poi { display: grid; gap: 0.15rem; padding: 0.7rem 0; border-bottom: 1px solid var(--c-line); }
.poi:last-child { border-bottom: 0; }
.poi strong { font-size: var(--step-0); }
.poi span { font-size: var(--step--1); color: var(--c-ink-3); }

/* ============================================ 18. CALENDAR ============= */

.cal-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  justify-content: space-between;
}
.cal-legend { display: flex; flex-wrap: wrap; gap: 0.9rem; font-size: var(--step--1); color: var(--c-ink-3); }
.cal-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cal-swatch { width: 0.85rem; height: 0.85rem; border-radius: 4px; display: inline-block; }
.cal-swatch--free { background: var(--c-brand-soft); border: 1px solid color-mix(in srgb, var(--c-brand) 40%, transparent); }
.cal-swatch--busy { background: var(--c-surface-2); border: 1px solid var(--c-line-2); }
.cal-swatch--sel { background: var(--c-brand); }

.cal-months {
  display: grid;
  gap: clamp(0.9rem, 0.5rem + 1.4vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.cal-month {
  padding: 0.9rem;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}
.cal-month h4 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-2);
  text-align: center;
  margin-bottom: 0.6rem;
}
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.35rem;
}
.cal-week span {
  text-align: center;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--c-ink-3);
  text-transform: uppercase;
}
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--c-ink-3);
  background: transparent;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease-out), border-color 0.2s var(--ease);
}
.cal-day--empty { visibility: hidden; }
.cal-day--free {
  background: var(--c-brand-soft);
  color: var(--c-brand-strong);
  cursor: pointer;
  border-color: color-mix(in srgb, var(--c-brand) 30%, transparent);
}
.cal-day--free:hover { transform: scale(1.08); background: var(--c-brand); color: var(--c-brand-ink); }
.cal-day--busy { background: var(--c-surface-2); color: var(--c-ink-3); opacity: 0.6; }
.cal-day--past { opacity: 0.32; }
.cal-day--in-range {
  background: color-mix(in srgb, var(--c-brand) 20%, transparent);
  color: var(--c-ink);
  border-radius: 0;
}
.cal-day--edge {
  background: var(--c-brand);
  color: var(--c-brand-ink);
  border-color: var(--c-brand);
}
.cal-day:disabled { cursor: default; }

/* ============================================ 19. BOOKING EMBED ======== */

.booking-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.booking-card__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem clamp(0.9rem, 0.6rem + 1.2vw, 1.5rem);
  border-bottom: 1px solid var(--c-line);
  background: color-mix(in srgb, var(--c-bg-alt) 70%, transparent);
  font-size: var(--step--1);
  font-weight: 700;
}
.booking-card__bar span { display: inline-flex; align-items: center; gap: 0.5rem; }
.booking-card__bar svg { width: 1.05rem; height: 1.05rem; color: var(--c-brand); }
.booking-card__bar a { font-weight: 650; }

.booking-embed {
  position: relative;
  background: var(--c-surface);
  min-height: 20rem;
}
.booking-embed__placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  padding: 3rem 1.5rem;
  min-height: 22rem;
}
.booking-embed iframe {
  display: block;
  width: 100%;
  max-width: 1020px;
  margin-inline: auto;
  border: 0;
  /* The Smoobu iframe-resizer sets an inline height; keep this small so it
     wins. The JS sets a comfortable placeholder height until then. */
  min-height: 9rem;
  background: var(--c-surface);
}

/* ============================================= 20. REGION SLIDER ======= */

.slider { position: relative; }

.slider__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--c-line);
  touch-action: pan-y;
}

/* Without JavaScript the track stays a native, swipeable scroll strip. */
.slider:not(.is-ready) .slider__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.slider:not(.is-ready) .slider__slide { scroll-snap-align: start; }
.slider:not(.is-ready) .slider__btn,
.slider:not(.is-ready) .slider__dots,
.slider:not(.is-ready) .slider__progress { display: none; }

.slider__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.62s var(--ease-out);
  will-change: transform;
}
/* the <li> is the flex item; the slide button fills it */
.slider__track > li {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.slider.is-dragging .slider__track { transition: none; }
.slider.is-dragging .slider__slide { cursor: grabbing; }

.slider__slide {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--c-surface-2);
  color: inherit;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.slider__slide:hover img { transform: scale(1.035); }
/* The box is deliberately kept short: a wide photo cropped into a tall box has
   to be scaled by its height, which is what made the slides look soft. Shorter
   boxes scale by width instead — i.e. they downscale, never upscale, on a 1x
   display. */
@media (min-width: 720px) {
  .slider__slide { aspect-ratio: 16 / 9; max-height: 540px; }
}
@media (min-width: 1300px) {
  .slider__slide { aspect-ratio: 21 / 9; max-height: 520px; }
}

.slider__caption {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  display: grid;
  gap: 0.2rem;
  padding: clamp(2.25rem, 1.4rem + 3vw, 3.6rem) clamp(1rem, 0.6rem + 1.6vw, 1.9rem) clamp(1.15rem, 0.8rem + 1.2vw, 1.7rem);
  text-align: left;
  color: #fff;
  /* The scrim sits behind the caption only – the photo above stays untouched. */
  background: linear-gradient(
    to top,
    rgb(var(--c-scrim) / 0.88) 0%,
    rgb(var(--c-scrim) / 0.74) 30%,
    rgb(var(--c-scrim) / 0.44) 60%,
    rgb(var(--c-scrim) / 0.16) 82%,
    transparent 100%
  );
  pointer-events: none;
}
.slider__caption strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.15;
  text-shadow: 0 1px 18px rgb(0 0 0 / 0.45);
}
.slider__caption span {
  font-size: var(--step--1);
  font-weight: 600;
  opacity: 0.92;
  text-shadow: 0 1px 14px rgb(0 0 0 / 0.5);
}
.slider__zoom {
  position: absolute;
  z-index: 2;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border-radius: var(--r-full);
  background: rgb(255 255 255 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.3);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 700;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-out);
  pointer-events: none;
}
.slider__zoom svg { width: 1em; height: 1em; }
.slider__slide:hover .slider__zoom,
.slider__slide:focus-visible .slider__zoom { opacity: 1; transform: none; }

.slider__btn {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: clamp(2.5rem, 2rem + 1.6vw, 3.1rem);
  height: clamp(2.5rem, 2rem + 1.6vw, 3.1rem);
  border-radius: var(--r-full);
  background: rgb(255 255 255 / 0.17);
  border: 1px solid rgb(255 255 255 / 0.34);
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.6);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease-out), opacity 0.25s var(--ease);
}
.slider__btn:hover { background: rgb(255 255 255 / 0.3); transform: translateY(-50%) scale(1.06); }
.slider__btn:active { transform: translateY(-50%) scale(0.97); }
.slider__btn svg { width: 1.3rem; height: 1.3rem; }
.slider__btn--prev { left: clamp(0.5rem, 0.2rem + 1vw, 1.1rem); }
.slider__btn--next { right: clamp(0.5rem, 0.2rem + 1vw, 1.1rem); }

.slider__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-inline: 0.25rem;
}
.slider__dots { display: flex; align-items: center; gap: 0.5rem; }
.slider__dot {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border-radius: var(--r-full);
  background: var(--c-line-2);
  transition: width 0.35s var(--ease-out), background-color 0.25s var(--ease);
}
.slider__dot:hover { background: color-mix(in srgb, var(--c-brand) 55%, var(--c-line-2)); }
.slider__dot[aria-selected='true'] { width: 1.75rem; background: var(--c-brand); }
.slider__counter {
  font-size: var(--step--1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--c-ink-3);
}

.slider__progress {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: color-mix(in srgb, var(--c-brand) 85%, white);
  opacity: 0;
}
.slider[data-playing='true'] .slider__progress {
  opacity: 1;
  animation: slider-progress var(--slider-interval, 6500ms) linear forwards;
}
@keyframes slider-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .slider__track { transition: none; }
  .slider__slide img { transition: none; }
  .slider[data-playing='true'] .slider__progress { animation: none; opacity: 0; }
}

/* ============================================ 21. FAQ ================== */

.faq { display: grid; gap: 0.6rem; }
.faq details {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq details[open] { border-color: color-mix(in srgb, var(--c-brand) 35%, var(--c-line)); box-shadow: var(--shadow-1); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 0.75rem;
  height: 0.75rem;
  flex: none;
  border-right: 2.5px solid var(--c-brand);
  border-bottom: 2.5px solid var(--c-brand);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq__body { padding: 0 1.15rem 1.2rem; color: var(--c-ink-2); font-size: var(--step--1); }

/* ============================================ 22. HOST / CONTACT ====== */

.host-card {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.35rem, 1rem + 1.6vw, 2.5rem);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-2);
}
@media (min-width: 820px) { .host-card { grid-template-columns: 1.4fr 1fr; align-items: center; } }

.contact-list { display: grid; gap: 0.6rem; }.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  text-decoration: none;
  color: var(--c-ink);
  font-weight: 650;
  font-size: var(--step--1);
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease);
}
.contact-item:hover { transform: translateY(-2px); border-color: var(--c-brand); }
.contact-item svg { width: 1.15rem; height: 1.15rem; color: var(--c-brand); flex: none; }

/* ============================================ 23. FOOTER ============= */

.site-footer {
  margin-top: var(--section-y);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) 1.5rem;
  background: color-mix(in srgb, var(--c-bg-alt) 80%, transparent);
  border-top: 1px solid var(--c-line);
}
.footer-grid {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.footer-brand { display: grid; gap: 0.9rem; max-width: 30ch; }
.footer-brand img { width: 4.5rem; height: 4.5rem; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin-bottom: 0.85rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-col a { color: var(--c-ink-2); text-decoration: none; font-size: var(--step--1); font-weight: 600; }
.footer-col a:hover { color: var(--c-brand-strong); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(2rem, 1.2rem + 2vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line);
  font-size: var(--step--1);
  color: var(--c-ink-3);
}

/* ============================================ 24. SCHEME SWITCHER ===== */

.scheme-fab {
  position: fixed;
  right: clamp(0.9rem, 0.3rem + 1.6vw, 1.75rem);
  bottom: clamp(0.9rem, 0.3rem + 1.6vw, 1.75rem);
  z-index: 130;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.05rem 0.7rem 0.8rem;
  border-radius: var(--r-full);
  background: var(--c-surface);
  border: 1px solid var(--c-line-2);
  color: var(--c-ink);
  font-weight: 700;
  font-size: var(--step--1);
  box-shadow: var(--shadow-2);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease);
}
.scheme-fab:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.scheme-fab__dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(
    from 210deg,
    var(--c-brand),
    var(--c-accent),
    color-mix(in srgb, var(--c-brand) 55%, var(--c-accent)),
    var(--c-brand)
  );
  box-shadow: inset 0 0 0 2px var(--c-surface);
}
@media (max-width: 560px) { .scheme-fab span { display: none; } .scheme-fab { padding: 0.7rem; } }

.scheme-panel {
  position: fixed;
  right: clamp(0.9rem, 0.3rem + 1.6vw, 1.75rem);
  bottom: calc(clamp(0.9rem, 0.3rem + 1.6vw, 1.75rem) + 4.1rem);
  z-index: 140;
  width: min(94vw, 25rem);
  max-height: min(80vh, 40rem);
  overflow-y: auto;
  padding: 1.15rem;
  border-radius: var(--r-lg);
  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-3);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.32s var(--ease-out);
}
.scheme-panel[data-open='true'] { opacity: 1; transform: none; pointer-events: auto; }
.scheme-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.9rem; }
.scheme-panel__head h3 { font-size: var(--step-1); }
.scheme-panel__head p { font-size: var(--step--1); color: var(--c-ink-3); margin-top: 0.15rem; }

.scheme-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.scheme-option {
  display: grid;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-line);
  background: var(--c-surface);
  text-align: left;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease);
}
.scheme-option:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.scheme-option[aria-pressed='true'] {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-brand) 22%, transparent);
}
.scheme-option__swatches { display: flex; gap: 3px; }
.scheme-option__swatches i {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 5px;
  display: block;
  border: 1px solid rgb(0 0 0 / 0.08);
}
.scheme-option__name { font-size: 0.78rem; font-weight: 750; line-height: 1.2; }
.scheme-option__mode { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-3); }

/* ============================================ 25. LEGAL PAGES ======== */

.legal {
  padding-block: clamp(2rem, 1.2rem + 3vw, 4rem) var(--section-y);
}
.legal__body {
  max-width: 74ch;
  display: grid;
  gap: 1rem;
  color: var(--c-ink-2);
}
.legal__body h2 {
  font-size: var(--step-2);
  margin-top: 1.6rem;
  color: var(--c-ink);
}
.legal__body h3 { font-size: var(--step-1); margin-top: 1.1rem; color: var(--c-ink); }
.legal__body h4 { font-size: var(--step-0); margin-top: 0.9rem; color: var(--c-ink); font-family: var(--font-sans); font-weight: 750; }
.legal__body ul, .legal__body ol { padding-left: 1.3rem; display: grid; gap: 0.4rem; }
.legal__body li { list-style: disc; }
.legal__body p { font-size: var(--step--1); }
.legal__back { margin-bottom: 1.5rem; }

.page-head { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) 0; }

/* ============================================ 26. MISC =============== */

.to-top {
  position: fixed;
  left: clamp(0.9rem, 0.3rem + 1.6vw, 1.75rem);
  bottom: clamp(0.9rem, 0.3rem + 1.6vw, 1.75rem);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-out);
  transform: translateY(8px);
}
.to-top[data-show='true'] { opacity: 1; pointer-events: auto; transform: none; }

.notice {
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  border: 1px dashed var(--c-line-2);
  font-size: var(--step--1);
  color: var(--c-ink-3);
}

@media print {
  .site-header, .scheme-fab, .scheme-panel, .to-top, .booking-embed, .map-embed { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; break-inside: avoid; }
}
