/* Talas — nordic minimal: wood, black band, sea light. */
:root {
  --bg: #f6f3ee;
  --ink: #191712;
  --muted: #6f695e;
  --wood: #b98a4e;
  --wood-light: #e8d9c2;
  --black: #14130f;
  --line: #ddd6c9;
  --white: #fffdf9;
  --sea: #2e5f6e;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
a { color: var(--ink); }
img { max-width: 100%; }

/* ---- logo ---- */
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; }
.logo svg { display: block; }
.logo-text { font-weight: 700; letter-spacing: .38em; font-size: 1.05rem; text-indent: .38em; }

/* ---- public header ---- */
.site-header {
  background: var(--black); color: var(--white);
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between; height: 64px;
  position: sticky; top: 0; z-index: 50;
}
.site-header a { color: var(--white); }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { text-decoration: none; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.site-nav a:hover { opacity: 1; border-bottom: 2px solid var(--wood); }
@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; height: auto; padding: .7rem 1rem; gap: .4rem 1rem; }
  .site-nav { flex-wrap: wrap; gap: .5rem .9rem; }
  .site-nav a { font-size: .78rem; }
  table.list { display: block; overflow-x: auto; }
}

/* ---- hero ---- */
.hero {
  background: linear-gradient(180deg, var(--black) 0%, #241f17 100%); color: var(--white);
  padding: clamp(3rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
  text-align: center;
}
.hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); letter-spacing: .3em; text-indent: .3em; margin: 0 0 .5rem; font-weight: 700; }
.hero .roof { margin: 0 auto 1.5rem; }
.hero p { max-width: 560px; margin: 0 auto; color: #d8d2c6; font-size: 1.1rem; }
.hero .cta-row { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: .7rem 1.5rem; text-decoration: none;
  border: 1px solid var(--wood); color: var(--wood); background: transparent;
  letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; cursor: pointer;
  font-family: inherit; transition: background .15s, color .15s;
}
.btn:hover { background: var(--wood); color: var(--black); }
.btn-solid { background: var(--wood); color: var(--black); }
.btn-solid:hover { background: #cfa063; }
.btn-dark { border-color: var(--black); color: var(--black); }
.btn-dark:hover { background: var(--black); color: var(--white); }

.hero-photo { display: block; width: 100%; max-height: 72vh; object-fit: cover; }

/* ---- gallery (swipe = native scroll snap) ---- */
.gallery { position: relative; border: 1px solid var(--line); background: var(--wood-light); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 3/2; object-fit: cover; scroll-snap-align: start; }
.g-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(20,19,15,.65); color: #fff; font-size: 1.5rem; line-height: 1;
}
.g-btn:hover { background: rgba(20,19,15,.9); }
.g-prev { left: .8rem; } .g-next { right: .8rem; }

/* ---- FAQ accordion ---- */
.faq { background: var(--white); border: 1px solid var(--line); margin-bottom: .6rem; }
.faq summary {
  cursor: pointer; padding: 1rem 1.3rem; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--wood); font-size: 1.4rem; font-weight: 400; flex-shrink: 0; }
.faq[open] summary::after { content: '–'; }
.faq[open] summary { border-bottom: 1px solid var(--line); }
.faq p { margin: 0; padding: 1rem 1.3rem 1.2rem; }

/* ---- sections ---- */
.section { padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem); max-width: 1100px; margin: 0 auto; }
.section > h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 .4rem; }
.section > .lead { color: var(--muted); max-width: 640px; margin: 0 0 2rem; }
.section-dark { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- room cards ---- */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.room-card {
  background: var(--white); border: 1px solid var(--line); text-decoration: none;
  padding: 1.3rem 1.3rem 1.1rem; display: flex; flex-direction: column; gap: .3rem;
  transition: border-color .15s, transform .15s;
}
.room-card:hover { border-color: var(--wood); transform: translateY(-2px); }
.room-card .kicker { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wood); }
.room-card h3 { margin: 0; font-size: 1.25rem; }
.room-card .meta { color: var(--muted); font-size: .88rem; }

/* ---- floor plan ---- */
.plan-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.plan-tabs button, .plan-tabs a {
  font: inherit; padding: .5rem 1.2rem; border: 1px solid var(--line); background: var(--white);
  cursor: pointer; letter-spacing: .05em; text-decoration: none; color: var(--ink); display: inline-block;
}
.plan-tabs .active { background: var(--black); color: var(--white); border-color: var(--black); }
.plan-wrap { position: relative; background: var(--white); border: 1px solid var(--line); }
.floorplan { display: block; width: 100%; height: auto; }
.fp-shell { fill: none; stroke: var(--ink); stroke-width: 3; }
.fp-room { fill: var(--wood-light); stroke: var(--ink); stroke-width: 1.5; transition: fill .15s; }
.fp-link { cursor: pointer; }
.fp-link:hover .fp-room, .fp-room:hover { fill: var(--wood); }
.fp-grey { fill: #eceae4; stroke: #b7b1a4; stroke-width: 1; }
.fp-label { font: 600 15px "Helvetica Neue", Arial, sans-serif; fill: var(--ink); text-anchor: middle; pointer-events: none; }
.fp-label-small { font-size: 12px; }
.fp-label-grey { fill: #8d8779; font-weight: 400; font-size: 12px; }
.fp-note { font: 12px "Helvetica Neue", Arial, sans-serif; fill: var(--muted); }
.fp-door { fill: var(--wood); }
.fp-door-label { font: 600 11px "Helvetica Neue", Arial, sans-serif; fill: var(--ink); }

/* markers on plan (huolto) */
.marker-dot {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  background: var(--sea); color: #fff; border-radius: 50%; border: 2px solid #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.marker-dot:hover { background: #1e4550; }

/* ---- room detail ---- */
.room-hero { background: var(--white); border-bottom: 1px solid var(--line); }
.room-hero-inner { max-width: 1100px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 760px) { .room-hero-inner { grid-template-columns: 1fr; } }
.room-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: .2rem 0 .8rem; }
.room-photo { aspect-ratio: 4/3; background: var(--wood-light); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; overflow: hidden; }
.room-photo img { width: 100%; height: 100%; object-fit: cover; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.fact { background: var(--white); border: 1px solid var(--line); padding: 1.2rem 1.3rem; }
.fact h3 { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wood); }
.fact p, .fact li { font-size: .95rem; margin: 0; }
.fact ul { margin: 0; padding-left: 1.1rem; }
.price-block { white-space: pre-line; }

/* ---- footer ---- */
.site-footer { background: var(--black); color: #b6b0a4; padding: 2.5rem clamp(1rem, 4vw, 3rem); font-size: .9rem; }
.site-footer a { color: #d8d2c6; }
.site-footer .cols { display: flex; gap: 3rem; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; }

/* ================= huolto portal ================= */
.h-header { background: var(--black); color: var(--white); padding: 0 1.5rem; height: 58px; display: flex; align-items: center; gap: 1.8rem; position: sticky; top: 0; z-index: 50; flex-wrap: wrap; }
.h-header a { color: var(--white); text-decoration: none; }
.h-nav { display: flex; gap: 1.2rem; font-size: .92rem; flex-wrap: wrap; }
.h-nav a { opacity: .8; padding: .2rem 0; }
.h-nav a.active, .h-nav a:hover { opacity: 1; border-bottom: 2px solid var(--wood); }
.h-user { margin-left: auto; font-size: .85rem; opacity: .8; display: flex; gap: 1rem; align-items: center; }
.h-main { max-width: 1000px; margin: 0 auto; padding: 2rem 1.2rem 4rem; }
.h-main h1 { font-size: 1.7rem; margin: 0 0 1.2rem; }

.searchbar { display: flex; gap: .5rem; margin: 0 0 1.6rem; }
.searchbar input { flex: 1; }

input, select, textarea {
  font: inherit; padding: .6rem .8rem; border: 1px solid var(--line); background: var(--white);
  color: var(--ink); width: 100%;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--wood); outline-offset: -1px; }
label { display: block; font-size: .85rem; font-weight: 600; margin: .8rem 0 .25rem; }
form .btn { margin-top: 1rem; }

.card { background: var(--white); border: 1px solid var(--line); padding: 1.3rem 1.4rem; margin-bottom: 1rem; }
.card h3 { margin: 0 0 .3rem; }
.card .kicker { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wood); }
.card .contact { font-size: .95rem; }
.card .body { white-space: pre-line; font-size: .93rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.card-grid .card { margin: 0; }
a.card { text-decoration: none; display: block; transition: border-color .15s; }
a.card:hover { border-color: var(--wood); }

.muted { color: var(--muted); font-size: .88rem; }
.alert { background: #fdf0e3; border: 1px solid var(--wood); padding: .8rem 1rem; margin-bottom: 1rem; font-size: .92rem; }
.alert-ok { background: #eaf3ec; border-color: #4d7c5c; }

table.list { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: .93rem; }
table.list th, table.list td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tag { display: inline-block; background: var(--wood-light); padding: .1rem .55rem; font-size: .78rem; border-radius: 2px; white-space: nowrap; }
.btn-sm { padding: .25rem .7rem; font-size: .75rem; }
.inline-form { display: inline; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--black); padding: 1rem; }
.login-box { background: var(--white); padding: 2.5rem 2.2rem; width: 100%; max-width: 380px; }
.login-box .logo { margin-bottom: 1.5rem; }
