:root{
  --max:1100px;
  --text:#111;
  --muted:#444;
  --border:#eee;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:#fff;
}
header{
  position:sticky;
  top:0;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(180%) blur(18px);
  border-bottom:1px solid var(--border);
  z-index:10;
}
.nav{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.nav a{color:var(--text); text-decoration:none; font-size:14px}
.nav .brand{font-weight:700; letter-spacing:-.01em}
.nav .langs{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.nav .langs a{opacity:.8}
.nav .langs a.active{opacity:1; font-weight:600}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  text-decoration:none;
  border:1px solid var(--text);
  color:var(--text);
  font-weight:600;
  font-size:14px;
  background:transparent;
  cursor:pointer;
}
.btn.primary{background:var(--text); color:#fff}
.hero{
  min-height:72vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:56px 18px;
  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(0,0,0,.06), transparent 60%),
    radial-gradient(900px 500px at 70% 30%, rgba(0,0,0,.05), transparent 60%),
    #fff;
}
.hero-inner{
  max-width:var(--max);
  width:100%;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width:920px){ .hero-inner{grid-template-columns:1fr} }
.card{
  border:1px solid var(--border);
  border-radius:24px;
  padding:28px;
  box-shadow:0 8px 30px rgba(0,0,0,.04);
  background:#fff;
}
.h1{
  font-size:54px;
  line-height:1.04;
  margin:0 0 10px;
  letter-spacing:-.03em;
}
@media (max-width:920px){ .h1{font-size:42px} }
.lead{font-size:18px; line-height:1.6; color:var(--muted); margin:0}
.cta{display:flex; gap:12px; margin-top:18px; flex-wrap:wrap}
.section{
  max-width:var(--max);
  margin:0 auto;
  padding:56px 18px;
}
.grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:16px;
}
.tile{
  grid-column:span 6;
  border:1px solid var(--border);
  border-radius:24px;
  padding:22px;
}
@media (max-width:920px){ .tile{grid-column:span 12} }
h2{font-size:32px; margin:0 0 10px; letter-spacing:-.02em}
h3{font-size:18px; margin:0 0 8px}
p{margin:0 0 10px; color:var(--muted); line-height:1.6}
form{display:grid; gap:12px; max-width:520px}
label{display:grid; gap:6px; font-weight:600; font-size:14px; color:var(--text)}
input{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  font-size:16px;
}
small{color:#666}

.gallery{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:12px;
}
figure{
  margin:0;
  grid-column:span 4;
  border:1px solid var(--border);
  border-radius:20px;
  overflow:hidden;
  background:#fafafa;
}
figure.wide{grid-column:span 8}
figure.tall img{aspect-ratio: 4/5}
figure img{
  width:100%;
  display:block;
  aspect-ratio: 4/3;
  object-fit:cover;
}
figcaption{
  padding:10px 12px;
  font-size:13px;
  color:#555;
}
@media (max-width:920px){
  figure, figure.wide{grid-column:span 6}
}
@media (max-width:560px){
  figure, figure.wide{grid-column:span 12}
}

footer{
  border-top:1px solid var(--border);
  padding:24px 18px;
}
.footer-inner{
  max-width:var(--max);
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  align-items:center;
  justify-content:space-between;
}
.footer-inner a{color:var(--text); text-decoration:none; opacity:.8}
.footer-inner a:hover{opacity:1}

/* Simple lightbox */
#lightbox{
  position:fixed; inset:0;
  background:rgba(0,0,0,.72);
  display:none;
  align-items:center; justify-content:center;
  padding:24px;
  z-index:999;
}
#lightbox.open{display:flex}
#lightbox img{
  max-width:min(1100px, 96vw);
  max-height:92vh;
  border-radius:18px;
  box-shadow:0 12px 50px rgba(0,0,0,.35);
}
#lightbox .close{
  position:fixed;
  top:16px; right:16px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.2);
}


.social-links{display:flex; gap:12px; align-items:center}
.social-links a{display:inline-flex; gap:8px; align-items:center; padding:8px 10px; border:1px solid var(--border); border-radius:999px; opacity:1; text-decoration:none}
.social-links svg{width:18px;height:18px; display:block}
.social-links a:hover{border-color:#ddd; box-shadow:0 6px 18px rgba(0,0,0,.06)}
.icon-ig{color:#C13584}
.icon-fb{color:#1877F2}
.map-wrap{border:1px solid var(--border); border-radius:24px; overflow:hidden; background:#fafafa}
.map-wrap iframe{width:100%; height:360px; border:0; display:block}
.map-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.badge{display:inline-flex; gap:8px; align-items:center; padding:8px 12px; border:1px solid var(--border); border-radius:999px; font-size:14px; color:var(--text); text-decoration:none}
.badge:hover{box-shadow:0 6px 18px rgba(0,0,0,.06)}


/* Floating back-to-top button */
.to-top{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:1000;
  display:none;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(18px);
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  cursor:pointer;
}
.to-top:hover{ box-shadow:0 14px 40px rgba(0,0,0,.16); }
.to-top svg{ width:18px; height:18px; }


/* Availability calendar */
.availability-wrap{margin-top:14px;}
.availability-calendar{border:1px solid var(--border); border-radius:18px; padding:14px; background:rgba(255,255,255,.8);}
.cal-header{display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px;}
.cal-header button{border:1px solid var(--border); background:rgba(255,255,255,.9); border-radius:12px; padding:8px 10px; cursor:pointer;}
.cal-grid{display:grid; grid-template-columns:repeat(7,1fr); gap:6px;}
.cal-dow{font-size:12px; color:var(--muted); text-align:center; padding:4px 0;}
.cal-day{aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; border-radius:12px; border:1px solid transparent; font-size:13px; user-select:none;}
.cal-day.free{background:rgba(46,204,113,.12);}
.cal-day.booked{background:rgba(231,76,60,.14); color:#8a1f1f;}
.cal-day.other{opacity:.45;}
.cal-legend{display:flex; gap:14px; align-items:center; margin-top:10px; font-size:13px; color:var(--muted);}
.dot{width:10px; height:10px; border-radius:999px; display:inline-block; margin-right:6px;}
.dot.free{background:rgba(46,204,113,.6);}
.dot.booked{background:rgba(231,76,60,.6);}
.small-note{font-size:12px; color:var(--muted); margin-top:8px;}


/* Year calendar */
.year-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;}
.year-header button{border:1px solid var(--border);border-radius:10px;padding:6px 10px;cursor:pointer;}
.year-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;}
.year-month{border:1px solid var(--border);border-radius:16px;padding:10px;background:rgba(255,255,255,.85);}
.ym-title{text-align:center;font-weight:600;margin-bottom:6px;}
.ym-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;font-size:11px;}
.ym-dow{text-align:center;color:var(--muted);}
.ym-day{border-radius:8px;padding:3px;text-align:center;}
.ym-day.free{background:rgba(46,204,113,.15);}
.ym-day.booked{background:rgba(231,76,60,.18);color:#8a1f1f;}
.ym-day.other{opacity:.3;}


/* Image preview aspect-ratio fix */

.gallery img,
.preview img,
.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f5f5f5;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f5f5;
}


/* v13: Fix image distortion (portrait/landscape) — override generic img rules */
.gallery figure a img,
.gallery figure img {
  width: 100% !important;
  height: 100% !important;           /* fills the fixed preview tile */
  object-fit: contain !important;     /* no cropping / no stretching */
  aspect-ratio: auto !important;      /* do NOT force a ratio on the image itself */
}

/* Ensure preview tile keeps a steady layout while image keeps its ratio */
.gallery figure {
  overflow: hidden;
}

#lightbox img,
#lightbox-img {
  width: auto !important;
  height: auto !important;
  max-width: min(1100px, 96vw) !important;
  max-height: 92vh !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
}


/* Header brand (Haus-Lana) */
.site-brand {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
@media (max-width: 768px) {
  .site-brand {
    font-size: 22px;
  }
}


.site-brand a {
  color: inherit;
  text-decoration: none;
}
.site-brand a:hover {
  opacity: 0.85;
}


/* v15: sticky header + svg logo + subtle nav animation */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0; /* logo handles sizing */
}

.site-brand a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.site-brand img,
.site-brand svg {
  height: 36px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .site-brand img,
  .site-brand svg {
    height: 32px;
  }
}

/* Nav: smooth underline + lift on hover */
.nav a {
  position: relative;
  transition: transform .18s ease, opacity .18s ease;
  will-change: transform;
}
.nav a::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.85);
  transition: opacity .18s ease, transform .18s ease;
  border-radius: 999px;
}
.nav a:hover{
  transform: translateY(-1px);
}
.nav a:hover::after,
.nav a:focus-visible::after{
  opacity: .65;
  transform: scaleX(1);
}

/* Smooth scroll for anchor navigation */
html { scroll-behavior: smooth; }

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav a, .nav a::after { transition: none; }
}
