:root {
  --bg: #ffffff;
  --ink: #212121;
  --muted: #616161;
  --soft: #f5f5f5;
  --line: #ececec;
  --free: #e8f5e9; --free-ink: #1b5e20; --free-line: #c8e6c9;
  --occ: #ffebee;  --occ-ink: #b71c1c;  --occ-line: #ffcdd2;
  --past: #fafafa;
  --btn: #757575; --btn-hover: #616161;
  --r-lg: 20px; --r: 14px; --r-sm: 10px;
  --sh-1: 0 1px 2px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.06);
  --sh-2: 0 2px 4px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.09);
  --sh-3: 0 4px 8px rgba(0,0,0,.06), 0 16px 40px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Roboto, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ms {
  font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 22px;
  line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap;
  font-feature-settings: "liga";
}

.container { width: min(1100px, 100% - 32px); margin-inline: auto; }
section { padding: 64px 0; text-align: center; }
h1 { font-weight: 300; font-size: clamp(32px, 5vw, 52px); line-height: 1.15; margin: 0 0 20px; }
h2 { font-weight: 300; font-size: clamp(28px, 3.6vw, 36px); margin: 0 0 36px; }

/* ---------- intro ---------- */
.sub { color: var(--muted); margin: 0 0 28px; line-height: 1.7; }
.contact { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px;
  border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none;
  box-shadow: var(--sh-1); transition: box-shadow .2s, transform .2s;
}
.chip:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.chip .ms { color: var(--muted); }

/* ---------- parallax ---------- */
.parallax { position: relative; height: 300px; overflow: hidden; background: var(--soft); }
.parallax img { position: absolute; left: 0; top: -30%; width: 100%; height: 160%; object-fit: cover; will-change: transform; }

/* ---------- info cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.card {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--sh-3); transform: translateY(-3px); }
.card-head { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px 18px; }
.card-head .icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); }
.card-head .icon .ms { font-size: 26px; color: #455a64; }
.card-head h3 { margin: 0; font-weight: 400; font-size: 22px; }
.card ul { list-style: none; margin: 0; padding: 0 24px 22px; }
.card li { padding: 12px 4px; font-size: 15px; color: #424242; }
.card li + li { border-top: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--btn); color: #fff; font: 500 15px Roboto, sans-serif;
  cursor: pointer; box-shadow: var(--sh-1); transition: background .2s, box-shadow .2s, opacity .2s;
}
.btn:hover:not(:disabled) { background: var(--btn-hover); box-shadow: var(--sh-2); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.flat { background: transparent; color: var(--muted); box-shadow: none; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
.btn.flat:hover { background: var(--soft); box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #d6d6d6; }
.btn.ghost:hover:not(:disabled) { background: var(--soft); box-shadow: inset 0 0 0 1px #c4c4c4; }
.round {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--btn); color: #fff;
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--sh-1); transition: background .2s, box-shadow .2s;
}
.round:hover { background: var(--btn-hover); box-shadow: var(--sh-2); }
:focus-visible { outline: 3px solid #90a4ae; outline-offset: 2px; }

/* ---------- calendar ---------- */
.cal { max-width: 760px; margin: 0 auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 24px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.cal-nav h3 { margin: 0; font-weight: 400; font-size: 24px; text-transform: capitalize; }
.grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dow { font-size: 14px; color: var(--muted); padding: 6px 0; font-weight: 500; }
.dow .s { display: none; }
.day {
  min-height: 58px; border-radius: var(--r-sm); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 15px; border: 1px solid transparent; position: relative;
}
.day.free { background: var(--free); border-color: var(--free-line); color: var(--free-ink); }
.day.occ  { background: var(--occ);  border-color: var(--occ-line);  color: var(--occ-ink); }
.day.out  { color: #bdbdbd; }
.day.past { background: var(--past); color: #bdbdbd; border-color: transparent; }
.day.today { box-shadow: inset 0 0 0 2px #616161; }
.day.sat { font-weight: 700; }
.day .price { font-size: 12px; font-weight: 500; }
.cal-msg { color: var(--muted); font-size: 14px; min-height: 20px; margin-top: 8px; }
.legend { display: flex; justify-content: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 14px; box-shadow: var(--sh-1); }
.legend .lf { background: var(--free); color: var(--free-ink); }
.legend .lo { background: var(--occ); color: var(--occ-ink); }
.today-btn { margin-top: 18px; }

@media (max-width: 600px) {
  .dow .l { display: none; }
  .dow .s { display: inline; }
  .cal { padding: 16px 10px; }
  .grid7 { gap: 4px; }
  .day { min-height: 46px; font-size: 14px; }
  .day .price { font-size: 10.5px; }
}

/* ---------- editor (logged in) ---------- */
.editing .day.edit { min-height: 112px; justify-content: space-between; padding: 8px 6px; gap: 6px; }
.editing .day.past { color: #9e9e9e; }
.editing .day.past.occ { background: #fbeaea; }
.price-input {
  width: 100%; height: 34px; padding: 0 4px; border: 1px solid rgba(0,0,0,.15); border-radius: 8px;
  background: rgba(255,255,255,.85); font: 500 15px Roboto, sans-serif; color: var(--ink); text-align: center;
}
.price-input:focus { outline: none; border-color: #607d8b; box-shadow: 0 0 0 3px rgba(96,125,139,.25); background: #fff; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .lever { position: absolute; inset: 0; border-radius: 999px; background: #e57373; transition: background .2s; }
.switch .lever::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s;
}
.switch input:checked + .lever { background: #66bb6a; }
.switch input:checked + .lever::after { transform: translateX(18px); }
.switch input:focus-visible + .lever { outline: 3px solid #90a4ae; outline-offset: 2px; }
@media (max-width: 600px) {
  .editing .day.edit { min-height: 96px; padding: 6px 3px; }
  .price-input { height: 30px; font-size: 13px; padding: 0 2px; }
  .switch { width: 34px; height: 20px; }
  .switch .lever::after { width: 14px; height: 14px; }
  .switch input:checked + .lever::after { transform: translateX(14px); }
}

/* ---------- photos ---------- */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.photos button {
  padding: 0; border: 0; background: var(--soft); border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3; box-shadow: var(--sh-2); transition: box-shadow .25s, transform .25s;
}
.photos button:hover { box-shadow: var(--sh-3); transform: translateY(-3px); }
.photos img { width: 100%; height: 100%; object-fit: cover; }

dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(1024px, 94vw); overflow: visible; }
dialog.lb::backdrop { background: rgba(0,0,0,.85); }
dialog.lb img { max-height: 84vh; margin: 0 auto; border-radius: var(--r); box-shadow: var(--sh-3); }
.lb-bar { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.lb-bar button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; }

/* ---------- login ---------- */
dialog.login { border: 0; border-radius: var(--r-lg); padding: 28px; width: min(420px, 92vw); box-shadow: var(--sh-3); }
dialog.login::backdrop { background: rgba(0,0,0,.4); }
.login h3 { margin: 0 0 18px; font-weight: 400; font-size: 24px; }
.login label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.login input {
  display: block; width: 100%; margin-top: 6px; height: 46px; padding: 0 14px; font: 16px Roboto, sans-serif; color: var(--ink);
  border: 1px solid #d6d6d6; border-radius: var(--r-sm); background: #fff;
}
.login input:focus { border-color: #90a4ae; outline: none; box-shadow: 0 0 0 3px #eceff1; }
.login-msg { min-height: 20px; margin: 0 0 8px; font-size: 14px; color: #b71c1c; }
.login-msg.ok { color: #1b5e20; }
.login-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.login-actions .spacer { flex: 1; }
.login-actions .flat { padding: 0 8px; text-transform: none; letter-spacing: 0; }

footer { padding: 24px 0 48px; text-align: center; }

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