/* Polaris Villas booking site – styling follows www.polarisvillas.fi (charcoal, brass, Memoirs + Karla, square buttons). */
@font-face { font-family: 'Memoirs'; src: url('https://static1.squarespace.com/static/6529274574c2405988dcd990/t/6529353c4b00d9240b4fce4d/1697199420857/MemoirsBold-Regular.otf') format('opentype'); font-display: swap; }

:root {
  --bg: #1a1a1a;
  --bg-2: #212121;
  --bg-3: #2a2a2a;
  --line: #3a352b;
  --gold: #b08e43;
  --gold-2: #c7a65e;
  --text: #fafafa;
  --text-2: #d9d2c3;
  --muted: #8f877a;
  --ok: #8fb58a;
  --bad: #c98a7a;
  --head: 'Memoirs', 'Karla', Georgia, serif;
  --body: 'Karla', Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 70px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; letter-spacing: .01em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px var(--gutter); background: var(--bg); }
.nav-left { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; letter-spacing: .01em; }
.nav-left a { text-decoration: none; color: var(--text); }
.nav-left a:hover { color: var(--gold-2); }
.brand img { width: 140px; height: auto; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.lang { display: flex; border: 1px solid var(--line); }
.lang button { background: none; border: 0; padding: 6px 10px; font-size: 13px; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { color: var(--bg); background: var(--gold); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 26px; border: 2px solid var(--gold); background: transparent; color: var(--gold); text-transform: uppercase; letter-spacing: .02em; font-size: 15px; text-decoration: none; cursor: pointer; border-radius: 0; transition: background .15s, color .15s; }
.btn:hover:not(:disabled) { background: var(--gold); color: var(--bg); }
.btn-solid { background: var(--gold); color: var(--bg); }
.btn-solid:hover:not(:disabled) { background: var(--gold-2); border-color: var(--gold-2); }
.btn-sm { min-height: 40px; padding: 8px 20px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; cursor: pointer; }

/* hero */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px var(--gutter) 120px; background: #222 center / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,26,.55), rgba(26,26,26,.35) 45%, rgba(26,26,26,.9)); }
.hero > * { position: relative; }
.hero .symbol { width: 92px; margin: 0 auto 26px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); color: var(--text); }
.hero p { max-width: 720px; margin: 18px auto 0; color: var(--text-2); font-size: 18px; }
.hero .search { position: absolute; left: var(--gutter); right: var(--gutter); bottom: -44px; margin: 0 auto; max-width: 1080px; }

/* search bar */
.search { display: grid; grid-template-columns: 1fr 1fr 1fr auto; background: var(--bg-2); border: 1px solid var(--gold); position: relative; z-index: 10; text-align: left; }
.search .field { position: relative; padding: 14px 22px; border-right: 1px solid var(--line); cursor: pointer; background: none; border-top: 0; border-bottom: 0; border-left: 0; text-align: left; min-height: 72px; }
.search .field:hover { background: var(--bg-3); }
.search .lbl { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.search .val { display: block; font-size: 16px; color: var(--text); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search .val.ph { color: var(--muted); }
.search .go { border: 0; background: var(--gold); color: var(--bg); padding: 0 34px; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; font-size: 15px; }
.search .go:hover { background: var(--gold-2); }
.pop { position: absolute; top: calc(100% + 8px); background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); padding: 20px; z-index: 40; }
.pop.cal { left: 0; }
.pop.guests { right: 0; width: 300px; }
.pop .row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.pop .row + .row { border-top: 1px solid var(--line); }
.pop .row small { display: block; color: var(--muted); font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 36px; height: 36px; border: 1px solid var(--gold); background: none; color: var(--gold); cursor: pointer; font-size: 18px; line-height: 1; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 18px; text-align: center; }

/* calendar */
.months { display: grid; grid-template-columns: repeat(2, 280px); gap: 28px; }
.month h4 { font-family: var(--body); text-transform: none; font-size: 16px; text-align: center; margin: 4px 0 10px; letter-spacing: .02em; }
.dow, .days { display: grid; grid-template-columns: repeat(7, 40px); }
.dow span { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 6px; text-transform: lowercase; }
.day { position: relative; height: 40px; border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--text); padding: 0; }
.day small { position: absolute; left: 0; right: 0; bottom: 2px; font-size: 9px; color: var(--gold); line-height: 1; }
.day:hover:not(:disabled) { outline: 1px solid var(--gold); outline-offset: -1px; }
.day:disabled { color: #555; cursor: default; text-decoration: line-through; text-decoration-color: #444; }
.day.past:disabled { text-decoration: none; }
.day.in { background: rgba(176,142,67,.18); }
.day.sel { background: var(--gold); color: var(--bg); }
.day.sel small { color: var(--bg); }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.cal-nav button { background: none; border: 1px solid var(--line); color: var(--gold); width: 36px; height: 36px; cursor: pointer; }
.cal-nav button:disabled { opacity: .3; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; font-size: 13px; color: var(--muted); }
.cal-legend small { color: var(--gold); }

/* list */
.section { padding: 90px var(--gutter) 80px; max-width: 1400px; margin: 0 auto; }
.section.tight { padding-top: 40px; }
.intro-line { text-align: center; color: var(--gold); max-width: 760px; margin: 0 auto 50px; font-size: 17.5px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 36px; }
.card { background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card .ph { position: relative; aspect-ratio: 3 / 2; overflow: hidden; display: block; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .ph img { transform: scale(1.03); }
.badge { position: absolute; top: 16px; left: 16px; background: rgba(26,26,26,.88); border: 1px solid var(--gold); color: var(--gold); padding: 6px 12px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.badge.none { border-color: var(--muted); color: var(--text-2); }
.card .body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card h2 { font-size: clamp(30px, 3.4vw, 42px); }
.card h2 a { text-decoration: none; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card p { margin: 0; color: var(--gold); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-2); font-size: 14px; }
.meta span { display: inline-flex; align-items: center; gap: 7px; }
.meta svg, .facts svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.4; }
.price-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.price { font-size: 15px; color: var(--text-2); }
.price b { font-family: var(--head); font-weight: 400; font-size: 28px; color: var(--text); letter-spacing: .02em; }
.price .why { display: block; color: var(--bad); font-size: 14px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* villa page */
.crumbs { padding: 26px var(--gutter) 0; max-width: 1180px; margin: 0 auto; }
.crumbs a { color: var(--muted); text-decoration: none; font-size: 14px; }
.crumbs a:hover { color: var(--gold); }
.villa { max-width: 1180px; margin: 0 auto; padding: 18px var(--gutter) 80px; }
.villa-head { text-align: center; margin: 10px 0 30px; }
.villa-head h1 { font-size: clamp(40px, 6vw, 66px); }
.villa-head .kicker { margin-top: 10px; }
.status { margin: 22px 0 30px; padding: 18px 22px; border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.status.hint { justify-content: center; color: var(--gold); text-align: center; }
.status .avail { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.status .avail.none { color: var(--bad); }
.gallery { position: relative; background: #111; aspect-ratio: 16 / 9; overflow: hidden; touch-action: pan-y; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 1px solid rgba(250,250,250,.6); background: rgba(26,26,26,.45); color: #fff; cursor: pointer; font-size: 20px; }
.gallery .nav:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.gallery .prev { left: 16px; } .gallery .next { right: 16px; }
.gallery .count { position: absolute; right: 16px; bottom: 14px; background: rgba(26,26,26,.75); padding: 4px 10px; font-size: 13px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: thin; }
.thumbs button { flex: 0 0 auto; width: 92px; height: 62px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .6; }
.thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lead { font-size: 19px; color: var(--gold); margin: 34px 0 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px; padding: 28px 0; margin: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts svg { width: 30px; height: 30px; margin-bottom: 8px; }
.facts b { display: block; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.facts span { display: block; font-size: 14px; color: var(--text-2); }
.desc h3 { font-size: 26px; color: var(--gold); margin: 34px 0 10px; }
.desc p { color: var(--text-2); margin: 0 0 14px; max-width: 860px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 46px; }
.block h2 { font-size: 30px; margin-bottom: 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; color: var(--text-2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.amen-groups { columns: 2 240px; column-gap: 40px; }
.amen-groups section { break-inside: avoid; margin-bottom: 22px; }
.amen-groups h4 { font-family: var(--body); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 8px; }
.amen-groups ul { list-style: none; margin: 0; padding: 0; color: var(--text-2); font-size: 15px; }
.map { margin-top: 46px; }
.map iframe { width: 100%; height: 360px; border: 0; filter: grayscale(.6) contrast(1.05); }

/* booking */
.book { max-width: 1180px; margin: 0 auto; padding: 18px var(--gutter) 90px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.book h1 { font-size: clamp(34px, 5vw, 52px); margin: 10px 0 26px; }
.panel { border: 1px solid var(--line); background: var(--bg-2); padding: 26px; margin-bottom: 24px; }
.panel h2 { font-size: 24px; color: var(--gold); margin-bottom: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.full { grid-column: 1 / -1; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
label.f input, label.f select, label.f textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; font-size: 16px; text-transform: none; letter-spacing: normal; color: var(--text); min-height: 48px; }
label.f textarea { min-height: 96px; resize: vertical; }
label.f input:focus, label.f select:focus, label.f textarea:focus { border-color: var(--gold); outline: none; }
label.f .req { color: var(--gold); }
.extra { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; }
.extra + .extra { border-top: 1px solid var(--line); }
.extra small { display: block; color: var(--muted); }
.choice { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); cursor: pointer; margin-bottom: 12px; }
.choice:has(input:checked) { border-color: var(--gold); background: rgba(176,142,67,.07); }
.choice input { accent-color: var(--gold); width: 18px; height: 18px; margin-top: 3px; }
.choice b { display: block; font-weight: 600; }
.choice small { color: var(--muted); }
.summary { position: sticky; top: 110px; border: 1px solid var(--gold); background: var(--bg-2); }
.summary img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.summary .in { padding: 22px 24px 24px; }
.summary h3 { font-size: 28px; margin-bottom: 6px; }
.lines { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.lines td { padding: 7px 0; color: var(--text-2); vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.lines tr.tot td { border-top: 1px solid var(--line); padding-top: 12px; color: var(--text); font-weight: 600; font-size: 17px; }
.lines tr.now td { color: var(--gold); font-weight: 600; }
.note { font-size: 14px; color: var(--muted); }
.err { border: 1px solid var(--bad); color: #f1c9bf; background: rgba(201,138,122,.1); padding: 12px 16px; margin: 0 0 18px; }
.ok { color: var(--ok); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* thank-you */
.done { max-width: 720px; margin: 0 auto; padding: 70px var(--gutter) 100px; text-align: center; }
.done .symbol { width: 70px; margin: 0 auto 24px; }
.done h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 18px; }
.done p { color: var(--text-2); }
.done .panel { text-align: left; margin-top: 30px; }
.spinner { width: 34px; height: 34px; margin: 26px auto; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { min-height: 60vh; }

/* footer */
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 60px var(--gutter) 40px; border-top: 1px solid #262626; font-size: 16px; }
.f-col { display: flex; flex-direction: column; gap: 6px; }
.f-col a { color: var(--text); text-underline-offset: 3px; }
.f-right { align-items: flex-end; text-align: right; }
.f-logo img { width: 200px; height: auto; }
.f-stripe { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 13px; margin: 20px 0 0; }

@media (max-width: 1080px) {
  .nav-left { display: none; }
  .site-header { grid-template-columns: auto 1fr; }
  .brand { order: -1; }
  .book { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
}
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .site-header { padding-top: 12px; padding-bottom: 12px; }
  .brand img { width: 110px; }
  .hero { min-height: 560px; padding-bottom: 40px; justify-content: flex-start; padding-top: 70px; }
  .hero .search { position: relative; left: auto; right: auto; bottom: auto; margin-top: 36px; width: 100%; }
  .section { padding-top: 46px; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .field { border-bottom: 1px solid var(--line); min-height: 64px; padding: 12px 16px; }
  .search .field.g { grid-column: 1 / -1; border-right: 0; }
  .search .go { grid-column: 1 / -1; min-height: 52px; }
  .pop { position: fixed; left: 8px !important; right: 8px; top: auto; bottom: 8px; max-height: 86vh; overflow: auto; width: auto !important; }
  .months { grid-template-columns: 1fr; }
  .dow, .days { grid-template-columns: repeat(7, 1fr); }
  .card .body { padding: 22px 20px 24px; }
  .cols { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .gallery { aspect-ratio: 4 / 3; }
  .gallery .nav { width: 40px; height: 40px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .f-col, .f-right { align-items: center; text-align: center; }
  .f-logo { order: -1; justify-self: center; }
}
