/* ============ Base (mal: airbnb) ============ */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --card: #ffffff;
  --text: #222222;
  --muted: #6a6a6a;
  --line: #dddddd;
  --line-strong: #b0b0b0;
  --accent: #1c6864;
  --accent-dark: #144c49;
  --accent-soft: #e7f0ee;
  --on-accent: #ffffff;
  --gold: #c8912f;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 16px rgba(0, 0, 0, .12);
  --font: "Nunito Sans", Helvetica, Arial, sans-serif;
  --font-head: var(--font);
  --head-weight: 700;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-family: var(--font-head); font-weight: var(--head-weight); }
h1 { font-size: 28px; }
h2 { font-size: 22px; margin-bottom: 16px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.underline { font-weight: 600; text-decoration: underline; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.logo img { border-radius: 8px; }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a { text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 14px; border-radius: 999px; }
.mainnav a:hover { background: var(--bg-soft); }
.langswitch {
  display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 10px;
  border: 1.5px solid var(--text); border-radius: 999px; background: var(--card);
}
.langswitch .globe { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; margin-right: 4px; flex-shrink: 0; }
.langswitch button {
  border: 0; background: none; cursor: pointer; min-width: 42px; min-height: 36px; padding: 0 10px; border-radius: 999px;
  font-size: 14px; font-weight: 800; letter-spacing: .02em; color: var(--text); opacity: .6;
}
.langswitch button:hover { background: var(--bg-soft); opacity: 1; }
.langswitch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); opacity: 1; }

/* Title + photos */
.title-row { padding-top: 24px; padding-bottom: 18px; }
.title-row .subtitle { margin: 4px 0 2px; color: var(--muted); }
.title-row a { font-size: 15px; }

.mosaic-wrap { position: relative; }
.mosaic {
  display: grid; gap: 8px; height: 460px;
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr;
  border-radius: var(--radius); overflow: hidden;
}
.tile { border: 0; padding: 0; cursor: zoom-in; overflow: hidden; background: #111; }
.tile:first-child { grid-row: 1 / 3; }
.tile:nth-child(n+6) { display: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.tile:hover img { filter: brightness(.88); }
.show-all {
  position: absolute; right: 44px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  background: var(--card); color: var(--text); border: 1px solid var(--text); border-radius: var(--radius-sm);
  padding: 0 16px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.show-all:hover { background: var(--bg-soft); }
.show-all { z-index: 5; }
.photo-count { display: none; }

/* Listing */
.listing { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; padding-top: 32px; }
.block { padding: 32px 0; border-bottom: 1px solid var(--line); }
.block:first-child { padding-top: 0; }
.listing-title { margin-bottom: 4px; }
.facts { margin: 0; }
.host-row { display: flex; align-items: center; gap: 16px; padding: 24px 0; }
.avatars { display: flex; }
.host-logo { width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; }
.avatars span, .avatar-lg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; border: 2px solid var(--bg);
}
.avatars span + span { margin-left: -12px; background: var(--gold); }
.highlights { display: grid; gap: 22px; }
.hl { display: flex; gap: 18px; align-items: flex-start; }
.hl svg, .amenities svg { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; }
.hl strong { display: block; }
.hl span { color: var(--muted); font-size: 15px; }
#welcome p { font-size: 16.5px; line-height: 1.65; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.amenities li { display: flex; align-items: flex-start; gap: 16px; }
.amenities .soon { color: var(--muted); }

/* ============ Calendar ============ */
.calendar { position: relative; margin-top: 12px; }
.cal-nav { position: absolute; left: 0; right: 0; top: -4px; display: flex; justify-content: space-between; pointer-events: none; z-index: 2; }
.cal-arrow {
  pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none;
  font-size: 26px; line-height: 1; cursor: pointer; color: var(--text);
}
.cal-arrow:hover:not(:disabled) { background: var(--bg-soft); }
.cal-arrow:disabled { opacity: .25; cursor: default; }
.cal-months { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 40px; }
.cal-month h3 { font-size: 16px; text-align: center; line-height: 32px; margin-bottom: 10px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-dow { font-size: 12px; text-align: center; color: var(--muted); font-weight: 700; padding-bottom: 8px; }
.day {
  position: relative; aspect-ratio: 1; min-height: 40px; border: 0; padding: 0; background: none; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--text);
}
.day span {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  border-radius: 50%; position: relative; z-index: 1;
}
.day:hover:not(:disabled) span { box-shadow: inset 0 0 0 1.5px var(--text); }
.day:disabled { cursor: default; color: #c4c4c4; }
.day.booked span { text-decoration: line-through; }
.day.minstay { color: #c4c4c4; }
.day.today span::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.day.range, .day.preview { background: var(--accent-soft); }
.day.start.has-range { background: linear-gradient(to right, transparent 50%, var(--accent-soft) 50%); }
.day.end { background: linear-gradient(to left, transparent 50%, var(--accent-soft) 50%); }
.day.sel span { background: var(--accent); color: var(--on-accent); }
.day[data-tip]::before {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px;
  white-space: nowrap; z-index: 3; pointer-events: none;
}
.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.link-button {
  background: none; border: 0; padding: 8px 0; min-height: 40px; font-weight: 700;
  text-decoration: underline; cursor: pointer; font-size: 15px; color: var(--text);
}

/* ============ Booking card ============ */
.book-card {
  position: sticky; top: 100px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.book-price { margin-bottom: 16px; }
.book-price strong { font-size: 24px; font-weight: 800; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.seg button {
  border: 1px solid var(--line-strong); background: var(--card); border-radius: var(--radius-sm);
  padding: 10px; min-height: 56px; cursor: pointer; text-align: left; font-weight: 700; font-size: 14px;
}
.seg button small { display: block; font-weight: 400; color: var(--muted); }
.seg button[aria-checked="true"] { border: 2px solid var(--text); padding: 9px; }
.book-box { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.date-row { display: grid; grid-template-columns: 1fr 1fr; }
.date-box {
  text-align: left; background: var(--card); border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 10px 12px; min-height: 58px; cursor: pointer;
}
.date-box:hover { background: var(--bg-soft); }
.date-box + .date-box { border-left: 1px solid var(--line-strong); }
.date-box small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.date-box span { font-size: 15px; }
.date-box span.empty { color: var(--muted); }
.guests { padding: 4px 12px; }
.guest-line { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.guest-line + .guest-line { border-top: 1px solid var(--line); }
.guest-line small { display: block; color: var(--muted); font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.stepper button:hover:not(:disabled) { border-color: var(--text); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 20px; text-align: center; font-weight: 600; }
.total { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.total > div { display: flex; justify-content: space-between; margin-bottom: 8px; }
.discount { color: var(--accent); font-weight: 700; }
.total-line { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; margin-bottom: 0 !important; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent); border: 0; min-height: 48px;
  padding: 0 24px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; font-size: 16px; cursor: pointer;
}
.button:hover { background: var(--accent-dark); }
.button:disabled { opacity: .6; cursor: wait; }
.button.wide { width: 100%; margin: 4px 0 10px; }

/* Lower sections */
section { padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--line); }
.listing + section { margin-top: 40px; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.price-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--card); }
.price-box h3 { margin-bottom: 8px; }
.price-box dl { margin: 0; }
.price-box dl div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.price-box dt { color: var(--muted); }
.price-box dd { margin: 0; font-weight: 700; font-size: 17px; text-align: right; }
.price-box dd small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.map { width: 100%; height: 420px; border: 0; border-radius: var(--radius); margin: 8px 0 14px; background: var(--bg-soft); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 24px; }
.two-col h3 { margin-bottom: 6px; }
.two-col h3.spaced { margin-top: 32px; }
.places { list-style: none; padding: 0; margin: 0; }
.places li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.places strong { display: block; }
.places span { color: var(--muted); font-size: 15px; }
.hosts-intro { max-width: 640px; }
.hosts { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 24px; margin-top: 28px; }
.host-card { border-radius: 20px; box-shadow: var(--shadow); padding: 28px 24px; text-align: center; background: var(--card); }
.avatar-lg { width: 80px; height: 80px; font-size: 24px; margin-bottom: 12px; }
.host-card:nth-child(2) .avatar-lg { background: var(--gold); }
.host-card h3 { font-size: 20px; margin-bottom: 6px; }
.host-card p { margin: 0; }
.host-card a { text-decoration: none; }
footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }

.how-steps { list-style: none; counter-reset: how; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-steps li { counter-increment: how; position: relative; padding-top: 52px; }
.how-steps li::before {
  content: counter(how); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.how-steps strong { display: block; margin-bottom: 4px; }
.how-steps span { color: var(--muted); font-size: 15px; }
.rules-title { margin: 32px 0 8px; }
.rules { margin: 0; padding-left: 20px; color: var(--muted); }
.rules li { margin-bottom: 6px; }

/* ============ Sheets (dialogs) ============ */
.sheet {
  position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .5);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.sheet-panel {
  background: var(--card); color: var(--text); border-radius: 16px; box-shadow: 0 8px 28px rgba(0,0,0,.28);
  width: 100%; max-width: 760px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 24px 28px;
  transform: translateY(12px); opacity: 0; transition: transform .2s ease, opacity .2s ease;
}
.request-panel { max-width: 560px; }
.sheet.open .sheet-panel { transform: none; opacity: 1; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.sheet-head > div { flex: 1; }
.sheet-head h2 { margin-bottom: 2px; font-size: 20px; }
.sheet-head p { margin: 0; }
.round-btn {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 0; background: none;
  font-size: 26px; line-height: 1; cursor: pointer; color: var(--text);
}
.round-btn:hover { background: var(--bg-soft); }
.sheet-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px;
}
.progress { height: 4px; background: var(--line); border-radius: 2px; margin: -4px 0 18px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 33%; background: var(--accent); transition: width .25s ease; }
.req-summary { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 18px; position: relative; }
.req-summary .link-button { position: absolute; right: 14px; top: 4px; font-size: 14px; }
.step { border: 0; padding: 0; margin: 0; }
.step legend { font-weight: 800; font-size: 18px; padding: 0; margin-bottom: 14px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input, .field textarea {
  display: block; width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px; min-height: 48px; font: inherit; font-size: 16px; color: var(--text); background: var(--card);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--text); outline-offset: -1px; }
.field .hint { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.invalid { border-color: #c13515 !important; background: #fff8f6 !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  border: 1px solid var(--line-strong); background: var(--card); border-radius: 999px;
  min-height: 44px; padding: 0 16px; cursor: pointer; font-size: 15px;
}
.chips button:hover { border-color: var(--text); }
.chips button[aria-pressed="true"] { border: 2px solid var(--text); padding: 0 15px; font-weight: 700; background: var(--bg-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; accent-color: var(--accent); }
.review dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0 0 18px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; }
.form-error { color: #c13515; background: #fff8f6; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; margin: 12px 0 0; }
.form-error a { font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.success { text-align: center; padding: 16px 0 8px; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 16px;
}
.success p { max-width: 420px; margin-left: auto; margin-right: auto; }

/* ============ Photos ============ */
.all-photos { position: fixed; inset: 0; z-index: 70; background: var(--bg); overflow-y: auto; }
.all-photos-top {
  position: sticky; top: 0; z-index: 1; background: var(--bg); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 10px 24px;
}
.photo-jump { display: flex; gap: 12px; overflow-x: auto; }
.photo-jump a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; padding: 4px 10px 4px 4px; border-radius: 10px; }
.photo-jump a:hover { background: var(--bg-soft); }
.photo-jump img { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; }
.all-photos-body { max-width: 900px; margin: 0 auto; padding: 24px 24px 60px; }
.photo-group { border: 0; padding: 12px 0 24px; scroll-margin-top: 80px; }
.photo-group h2 { margin-bottom: 12px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo-grid figure { margin: 0; }
.photo-grid figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.photo-grid button { border: 0; padding: 0; width: 100%; cursor: zoom-in; background: #111; display: block; }
.photo-grid img { width: 100%; }
.photo-grid figcaption { font-size: 13px; color: var(--muted); padding: 6px 0 8px; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; display: flex; flex-direction: column; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 700; font-size: 14px; }
.lightbox-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 72px; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-cap { text-align: center; color: #ddd; font-size: 14px; padding: 12px 16px 20px; margin: 0; }
.lb-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45);
  background: rgba(0,0,0,.35); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.15); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

/* Template picker */
.tpl-picker {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; background: #222; color: #fff;
  border-radius: 12px; padding: 10px 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); font-family: Helvetica, Arial, sans-serif; font-size: 14px; max-width: calc(100vw - 32px);
}
.tpl-picker strong { margin-right: 6px; }
.tpl-picker a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 8px; border: 1px solid #555; }
.tpl-picker a.on { background: #fff; color: #222; border-color: #fff; font-weight: 700; }

.mobile-bar { display: none; }


/* ============ Slideshow med bildetekst ============ */
.slideshow { position: relative; overflow: hidden; background: #111; cursor: default; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 30% 60%; }
.slide.alt img { transform-origin: 70% 40%; }
.slide.on img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.slide-open { position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; background: none; cursor: zoom-in; }
.slideshow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
}
.slide-cap { position: absolute; left: 22px; right: 180px; bottom: 26px; z-index: 3; pointer-events: none; }
.slide-cap span {
  display: inline-block; color: #fff; font-family: var(--font-head); font-size: 24px; line-height: 1.25;
  text-shadow: 0 1px 12px rgba(0,0,0,.5); opacity: 0; transform: translateY(10px);
}
.slide-cap span.in { animation: capin .9s .25s ease forwards; }
@keyframes capin { to { opacity: 1; transform: none; } }
.slide-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255,255,255,.18); }
.slide-progress span { display: block; height: 100%; width: 0; background: #fff; animation: slideprog 5.5s linear forwards; }
.slideshow.paused .slide-progress span { animation-play-state: paused; }
@keyframes slideprog { to { width: 100%; } }
.slide-nav {
  position: absolute; top: 50%; z-index: 4; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: #222; font-size: 26px; line-height: 1;
  opacity: 0; transition: opacity .2s; box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.slide-nav.prev { left: 14px; }
.slide-nav.next { right: 14px; }
.slideshow:hover .slide-nav, .slide-nav:focus-visible { opacity: 1; }
.tile { position: relative; }
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; text-align: left;
  color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.3;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }
.tpl-classique .slide-cap span { font-size: 28px; }

@media (max-width: 743px) {
  .mosaic-wrap { width: 100%; }
  .mosaic, .tpl-classique .mosaic, .tpl-nuit .mosaic { display: block !important; overflow: hidden; height: 320px; width: 100%; }
  .mosaic .tile:not(.slideshow) { display: none !important; }
  .slideshow { height: 100%; }
  .slide-cap { left: 14px; right: 110px; bottom: 44px; }
  .slide-cap span { font-size: 18px; }
  .tpl-classique .slide-cap span { font-size: 21px; }
  .slide-nav { display: none; }
  .photo-count { z-index: 5; }
  .show-all { z-index: 5; }
}
@media (prefers-reduced-motion: reduce) {
  .slide.on img, .slide-cap span.in { animation: none; opacity: 1; transform: none; }
  .slide-progress { display: none; }
}


/* ============ Vær, deling, valuta, omtaler, spørsmål ============ */
.title-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; font-size: 14.5px; }
.tpl-classique .title-meta { justify-content: center; }
.weather { display: inline-flex; align-items: center; gap: 6px; }
.weather svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.rating-link { font-weight: 800; text-decoration: none; }
.rating-link:hover { text-decoration: underline; }
.share { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--text);
  font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.share-btn:hover { border-color: var(--text); }
.share-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.share-btn.wa svg { color: #25a244; }
.tpl-classique .share-btn { border-radius: 2px; }
.book-price-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.book-price-row .book-price { margin-bottom: 0; }
.cur-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.cur-toggle button { border: 0; background: none; min-width: 34px; min-height: 30px; padding: 0 10px; border-radius: 999px; font-weight: 800; font-size: 13.5px; cursor: pointer; color: var(--muted); }
.cur-toggle button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.tpl-classique .cur-toggle, .tpl-classique .cur-toggle button { border-radius: 2px; }
.center-block { display: block; margin: 2px auto 0; }
.places .dir { display: inline-block; margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.big-star { color: var(--gold); }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 18px; }
.review { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.review-stars { color: var(--gold); letter-spacing: 2px; }
.review-stars span { color: var(--line); }
.review blockquote { margin: 10px 0 12px; font-size: 15.5px; line-height: 1.6; }
.review figcaption { color: var(--muted); font-size: 14px; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.outline-btn { background: transparent !important; color: var(--text) !important; border: 1px solid var(--text) !important; }
@media (max-width: 743px) {
  .title-meta { gap: 8px 12px; font-size: 13.5px; }
  .share-btn span { display: none; }
  .share-btn { padding: 0 10px; }
}


/* ============ Langtidsleie, rabattkode, flere måneder ============ */
.longstay { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; background: var(--bg-soft); border-radius: var(--radius); padding: 32px; }
.longstay img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; border-radius: var(--radius); }
.long-list { list-style: none; padding: 0; margin: 16px 0 22px; }
.long-list li { padding: 8px 0 8px 24px; position: relative; border-bottom: 1px solid var(--line); }
.long-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.promo { margin-top: 6px; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; text-transform: uppercase; }
.promo-row .button { min-height: 48px; padding: 0 16px; }
.promo-msg { display: block; margin-top: 6px; font-size: 14px; font-weight: 700; }
.promo-msg.ok { color: var(--accent); }
.promo-msg.bad { color: #c13515; }
.more-months { margin-top: 24px; }
@media (max-width: 743px) {
  .longstay { grid-template-columns: 1fr; padding: 22px; }
  .longstay img { max-height: 220px; order: -1; }
}

/* ============ Mal: classique ============ */
.tpl-classique {
  --bg: #f8f5ef; --bg-soft: #efe9dd; --card: #fffdf9; --text: #2b2620; --muted: #756c60;
  --line: #e2d9c9; --line-strong: #c7b9a2; --accent: #7a5a2e; --accent-dark: #5e4522; --accent-soft: #efe4d1;
  --gold: #a8834a; --radius: 2px; --radius-sm: 2px; --shadow: 0 2px 12px rgba(60, 45, 20, .10);
  --font-head: "Cormorant Garamond", Georgia, serif; --head-weight: 600;
}
.tpl-classique h1 { font-size: 54px; }
.tpl-classique h2 { font-size: 32px; }
.tpl-classique h3 { font-size: 22px; }
.tpl-classique .logo { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--text); }
.tpl-classique .title-row { text-align: center; padding-top: 44px; padding-bottom: 28px; }
.tpl-classique .title-row .subtitle { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin: 8px 0; }
.tpl-classique .mosaic { height: 560px; grid-template-columns: 3fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 6px; }
.tpl-classique .tile:first-child { grid-row: 1 / 4; }
.tpl-classique .tile:nth-child(n+5) { display: none; }
.tpl-classique .button, .tpl-classique .show-all { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.tpl-classique .langswitch, .tpl-classique .langswitch button, .tpl-classique .mainnav a { border-radius: 2px; }
.tpl-classique section h2::after { content: ""; display: block; width: 48px; height: 1px; background: var(--gold); margin-top: 12px; }
.tpl-classique .host-card { border-radius: 2px; border: 1px solid var(--line); }
.tpl-classique .chips button, .tpl-classique .stepper button { border-radius: 2px; }

/* ============ Mal: nuit ============ */
.tpl-nuit {
  --bg: #0e1013; --bg-soft: #1a1d22; --card: #16191e; --text: #f1eee8; --muted: #a39d93;
  --line: #2a2e35; --line-strong: #454a53; --accent: #e0a458; --accent-dark: #c98a3c; --accent-soft: #3a2e1f;
  --on-accent: #1a1206; --gold: #8a6a3a; --radius: 18px; --radius-sm: 12px; --shadow: 0 10px 30px rgba(0,0,0,.45);
  --font: "Figtree", Helvetica, Arial, sans-serif; --font-head: "Figtree", Helvetica, Arial, sans-serif; --head-weight: 800;
  color-scheme: dark;
}
.tpl-nuit h1 { font-size: 44px; letter-spacing: -.02em; }
.tpl-nuit h2 { letter-spacing: -.01em; }
.tpl-nuit .topbar { background: rgba(14, 16, 19, .92); backdrop-filter: blur(10px); }
.tpl-nuit .mosaic { gap: 10px; height: 520px; border-radius: 0; }
.tpl-nuit .tile { border-radius: var(--radius); }
.tpl-nuit .show-all { background: rgba(14,16,19,.85); color: var(--text); border-color: var(--line-strong); }
.tpl-nuit .day:disabled, .tpl-nuit .day.minstay { color: #4b4f57; }
.tpl-nuit .invalid { background: #2a1512 !important; }
.tpl-nuit .form-error { background: #2a1512; color: #ff9b85; }
.tpl-nuit .map { filter: invert(.9) hue-rotate(180deg) brightness(.95); }
.tpl-nuit .host-card { border: 1px solid var(--line); }
.tpl-nuit footer { background: #0a0b0d; }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .mainnav { display: none; }
  .langswitch { margin-left: auto; }
}
@media (max-width: 950px) {
  .listing { grid-template-columns: 1fr; gap: 0; }
  .book-card { position: static; }
  .listing-side { padding-top: 32px; }
}
@media (max-width: 743px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .topbar-inner { height: 60px; gap: 12px; }
  .logo { font-size: 16px; }
  .logo img { width: 26px; height: 26px; }
  .langswitch { padding-left: 8px; }
  .langswitch .globe { width: 16px; height: 16px; margin-right: 2px; }
  .langswitch button { min-width: 31px; min-height: 34px; padding: 0 4px; font-size: 13px; }
  .tpl-classique .logo { font-size: 17px; }
  .logo { gap: 7px; }
  .logo { min-width: 0; overflow: hidden; }
  .langswitch { flex-shrink: 0; }
  main { display: flex; flex-direction: column; }
  .title-row { order: 2; padding-top: 20px; padding-bottom: 0; }
  .mosaic-wrap { order: 1; padding: 0; }
  main > .listing, main > section { order: 3; }
  h1, .tpl-nuit h1, .tpl-classique h1 { font-size: 26px; }
  .tpl-classique .title-row { text-align: left; padding-top: 20px; }
  .mosaic, .tpl-classique .mosaic, .tpl-nuit .mosaic {
    display: flex; height: 300px; border-radius: 0; gap: 0;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .mosaic::-webkit-scrollbar { display: none; }
  .tile, .tile:nth-child(n+6), .tpl-classique .tile:nth-child(n+5) {
    display: block; flex: 0 0 100%; scroll-snap-align: start; border-radius: 0 !important;
  }
  .show-all { right: 14px; bottom: 14px; min-height: 32px; padding: 0 10px; font-size: 12px; }
  .show-all span { display: none; }
  .photo-count {
    display: block; position: absolute; left: 14px; bottom: 14px; pointer-events: none;
    background: rgba(34,34,34,.72); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
  }
  .listing { padding-top: 12px; }
  .amenities, .prices, .two-col, .how-steps { grid-template-columns: 1fr; }
  .two-col { gap: 24px; }
  .cal-months { gap: 24px; }
  .hosts { grid-template-columns: 1fr; }
  .map { height: 300px; }
  footer { padding-bottom: 110px; }
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    align-items: center; justify-content: space-between; gap: 12px;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .mobile-dates { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; min-height: 44px; }
  .mobile-dates strong { display: block; font-size: 16px; }
  .mobile-dates .underline { font-size: 14px; }
  .sheet { padding: 0; align-items: stretch; }
  .sheet-panel { max-width: none !important; max-height: none; height: 100%; border-radius: 0; padding: 16px; display: flex; flex-direction: column; }
  .request-panel form { display: flex; flex-direction: column; flex: 1; }
  .sheet-foot { position: sticky; bottom: -16px; background: var(--card); margin: auto -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .cal-months.scroll { display: flex; flex-direction: column; gap: 28px; }
  [data-cal="sheet"] { flex: 1; overflow-y: auto; }
  .day { min-height: 44px; }
  .all-photos-top { padding: 8px 12px; }
  .all-photos-body { padding: 16px 0 40px; }
  .photo-group h2 { padding: 0 16px; }
  .photo-grid { grid-template-columns: 1fr; gap: 4px; }
  .photo-grid figcaption { padding-left: 16px; }
  .lightbox-stage { padding: 0; }
  .lightbox-nav { display: none; }
  .tpl-picker { left: 8px; right: 8px; bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Prévenez-moi */
.notify-line { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.notify-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.notify-btn:hover { color: var(--accent); }
#notifyForm .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.long-disc { font-weight: 700; margin: 0 0 16px; }

/* ============ Knapper og lenker (felles for nettsiden og gjestesidene) ============ */
.button {
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease;
  -webkit-tap-highlight-color: transparent; line-height: 1.2; text-align: center;
}
.button:active:not(:disabled) { transform: translateY(1px); }
.button.secondary, .button.outline-btn {
  background: transparent !important; color: var(--accent) !important; border: 1px solid var(--accent) !important;
}
.button.secondary:hover, .button.outline-btn:hover { background: var(--accent-soft) !important; }
.button.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.tpl-classique .button.sm { font-size: 12px; }
.button.bad { background: #a33a2a; }
.button.bad:hover { background: #862d20; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button-row .button { flex: 1 1 auto; }

/* Tekstlenker: aksentfarge, tynn og luftig understreking */
.underline, .link-button, .notify-btn, .text-link, .gp p a:not(.button), .gp dd a:not(.button) {
  color: var(--accent); font-weight: 700; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: rgba(122, 90, 46, .45);
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transition: color .15s ease, text-decoration-color .15s ease;
}
.underline:hover, .link-button:hover, .notify-btn:hover, .text-link:hover, .gp p a:not(.button):hover, .gp dd a:not(.button):hover {
  color: var(--accent-dark); text-decoration-color: currentColor;
}
.link-button { padding: 8px 2px; }

/* Fokus for tastatur: tydelig ring som følger formen */
.button:focus-visible, .link-button:focus-visible, .underline:focus-visible, .notify-btn:focus-visible, .share-btn:focus-visible,
.cal-arrow:focus-visible, .round-btn:focus-visible, .seg button:focus-visible, .stepper button:focus-visible, .places .dir:focus-visible {
  outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

/* Små knapper: deling, kalenderpiler, veibeskrivelse */
.share-btn { min-height: 40px; padding: 0 14px; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 743px) { .share-btn { width: 40px; padding: 0; justify-content: center; } .tpl-classique .share-btn { border-radius: 50%; } }
.cal-arrow {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--card);
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; color: var(--text);
  transition: border-color .15s ease, background-color .15s ease;
}
.cal-arrow:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.places .dir {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 5px 12px; min-height: 32px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--accent);
  text-decoration: none; transition: border-color .15s ease, background-color .15s ease;
}
.places .dir::after { content: "↗"; font-size: 12px; }
.places .dir:hover { border-color: var(--accent); background: var(--accent-soft); }
.stepper button { transition: border-color .15s ease, background-color .15s ease; }
.stepper button:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); }
.seg button { transition: border-color .15s ease, background-color .15s ease; }
.seg button:hover { border-color: var(--text); }
.ask-open { margin-top: 2px; }
.places span { display: block; }
.places .dir { display: flex; width: fit-content; margin-top: 10px; }
.contact-actions .button { flex: 1 1 220px; }
.contact-actions a.button.secondary { text-transform: none; letter-spacing: .01em; font-size: 15px; }
footer a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
