/* Gästens gästbok. Design från casaborkebys ursprungliga gästguide: mobil först, telefonspalt på 560 px. */
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-display: swap; src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 700; font-display: swap; src: url('/fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-display: swap; src: url('/fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 500; font-display: swap; src: url('/fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-display: swap; src: url('/fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  /* Neutrala färger. Uthyraren väljer ingen färg i dag; vill vi erbjuda det senare räcker det att
     sätta --brand och --brand-2 per bostad. Rött (112) och grönt (avbockat) är signalfärger. */
  --ink: #1C1C1C; --ink-2: #444444; --muted: #6B6B6B;
  --surface-50: #FAFAF9; --surface-100: #F5F5F4; --surface-150: #EFEFEE; --surface-200: #E7E7E5; --surface-300: #E3E3E1; --surface-400: #CFCFCC;
  --brand: #262626; --brand-2: #4A4A4A; --brand-dark: #171717;
  --accent: #8A8A8A;
  /* Sidhuvudet och wifi-kortet. Uthyrarens färg skriver över dessa (Domain/Theme.cs). */
  --head: #262626; --on-head: #FFFFFF; --on-head-soft: rgba(255,255,255,.72); --head-chip: rgba(255,255,255,.12);
  --green: #2E7D4F; --red: #B23A2A;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow-float: 0 10px 28px rgba(0, 0, 0, .08);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.guide-body { background: #ECECEA; color: var(--ink); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.g-shell { max-width: 560px; margin: 0 auto; background: var(--surface-50); min-height: 100vh; min-height: 100svh; box-shadow: 0 0 60px rgba(0,0,0,.08); position: relative; }
.g-preview { background: #F3D9A4; color: var(--ink); text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; }

/* Sidhuvud */
.g-head { background-color: var(--head); color: var(--on-head); padding: 22px 22px 34px; background-size: cover; background-position: center; }
.g-head.cover { padding-top: 22px; --on-head: #FFFFFF; --on-head-soft: rgba(255,255,255,.8); --head-chip: rgba(255,255,255,.16); }
.g-head.cover .g-langs a[aria-current="true"] { color: #1C1C1C; }
.g-head.cover .row { margin-bottom: 150px; }
.g-head .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.g-logo { display: flex; align-items: baseline; gap: 8px; color: var(--on-head); min-width: 0; }
.g-logo b { font-family: var(--serif); font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-logo small { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-head-soft); white-space: nowrap; }
@media (max-width: 420px) { .g-logo small { display: none; } }
.g-langs { display: flex; gap: 2px; background: var(--head-chip); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.g-langs a { padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--on-head); line-height: 20px; }
.g-langs a[aria-current="true"] { background: var(--on-head); color: var(--head); }
.g-head .for { font-size: 13px; letter-spacing: .04em; color: var(--on-head-soft); margin-bottom: 6px; }
.g-head h1 { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1.05; color: var(--on-head); margin-bottom: 14px; text-wrap: balance; }
.g-head.cover h1 { text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.g-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.g-pills span { display: flex; align-items: center; gap: 6px; background: var(--head-chip); padding: 7px 12px; border-radius: 999px; font-size: 13px; color: var(--on-head); }
.g-head .small { font-size: 12px; color: var(--on-head-soft); margin-top: 16px; }

/* Snabbkortet som flyter över sidhuvudet */
.g-quick { padding: 0 16px; margin-top: -18px; position: relative; z-index: 2; }
.g-quick > div { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; background: #fff; border: 1px solid var(--surface-300); border-radius: 18px; padding: 10px; box-shadow: var(--shadow-float); }
.g-quick a, .g-quick button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; background: none; border: 0; border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--ink); min-height: 64px; }
.g-quick a:hover, .g-quick button:hover { background: var(--surface-50); color: var(--ink); }
.g-quick svg { color: var(--brand-2); }
.g-quick .sos, .g-quick .sos svg { color: var(--red); }

/* Menyn: knappar som radbryts, inget att scrolla i sidled */
.g-nav { position: sticky; top: 0; z-index: 900; background: rgba(250,250,249,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--surface-300); margin-top: 18px; }
.g-nav > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px 16px; }
.g-nav a { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--surface-300); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.g-nav a:hover { border-color: var(--accent); color: var(--accent); }

/* Kort */
.g-main { padding: 22px 16px 32px; display: flex; flex-direction: column; gap: 14px; }
.g-card { background: #fff; border: 1px solid var(--surface-300); border-radius: 18px; padding: 20px; scroll-margin-top: 130px; }
.g-card.flush { padding: 0; overflow: hidden; }
.g-card.flush > .pad { padding: 20px 20px 12px; }
.g-card.dark { background: var(--head); border-color: var(--head); color: var(--on-head-soft); }
.g-card h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; margin-bottom: 12px; }
.g-card h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin: 18px 0 8px; }
.g-card h3 svg { color: var(--brand-2); }
.g-text p { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.g-text p:last-child { margin-bottom: 0; }
.g-text ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.g-text ul:last-child { margin-bottom: 0; }
.g-text li { display: flex; gap: 10px; }
.g-text li::before { content: '•'; color: var(--accent); }
.g-text.light p, .g-text.light ul { color: var(--on-head); margin-top: 14px; }
.g-sub { font-size: 14px; color: var(--muted); margin: -6px 0 14px; }
.g-plain { font-size: 14px; color: var(--ink-2); }

.g-address { font-style: normal; font-size: 17px; line-height: 1.45; font-weight: 500; margin-bottom: 16px; }
.g-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 12px; border: 0; font-size: 14px; font-weight: 600; min-height: 48px; text-align: center; }
.g-btn.dark { background: var(--brand); color: #fff; }
.g-btn.dark:hover { background: var(--brand-2); color: #fff; }
.g-btn.soft { background: var(--surface-150); color: var(--brand); }
.g-btn.soft:hover { background: var(--surface-200); color: var(--brand); }
.g-btn.dashed { width: 100%; margin-top: 8px; background: none; border: 1px dashed var(--surface-400); color: var(--muted); font-weight: 500; }

.g-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.g-times div { background: var(--surface-50); border-radius: 12px; padding: 14px; }
.g-times small { display: block; font-size: 12px; color: var(--muted); }
.g-times b { font-size: 20px; color: var(--brand); }
.g-note { margin-top: 16px; background: var(--surface-100); border-radius: 12px; padding: 14px; font-size: 14px; color: var(--ink-2); }
.g-note > b { display: flex; align-items: center; gap: 8px; color: var(--ink); margin-bottom: 6px; }
.g-note > b svg { color: var(--accent); }
.g-note .g-text p, .g-note .g-text ul { font-size: 14px; }

.g-wifi { display: flex; align-items: center; gap: 16px; }
.g-wifi .info { flex: 1; min-width: 0; }
.g-wifi small { font-size: 12px; opacity: .85; display: block; }
.g-wifi b { color: var(--on-head); display: block; margin-bottom: 4px; word-break: break-all; }
.g-wifi .pw { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.g-wifi button { background: var(--on-head); color: var(--head); border: 0; padding: 12px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; min-height: 44px; white-space: nowrap; }
.g-qr { display: flex; align-items: center; gap: 14px; margin-top: 16px; background: #fff; color: var(--ink-2); border-radius: 12px; padding: 10px 14px 10px 10px; font-size: 13px; }
.g-qr svg { width: 104px; height: 104px; flex-shrink: 0; }

.g-acc { display: flex; flex-direction: column; gap: 8px; }
.g-acc details { border: 1px solid var(--surface-200); border-radius: 12px; overflow: hidden; }
.g-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; font-weight: 600; cursor: pointer; min-height: 52px; }
.g-acc summary::-webkit-details-marker { display: none; }
.g-acc summary::after { content: '+'; color: var(--accent); font-size: 20px; }
.g-acc details[open] summary::after { content: '−'; }
.g-acc details > :not(summary) { padding: 0 14px 12px; font-size: 15px; color: var(--ink-2); }
.g-acc ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.g-acc li { display: flex; gap: 10px; }
.g-acc li::before { content: '•'; color: var(--accent); }

.g-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-rules div { background: var(--surface-50); border-radius: 12px; padding: 14px; }
.g-rules b { display: block; font-size: 14px; }
.g-rules span { font-size: 13px; color: var(--muted); }
.g-rules span.only { font-size: 14px; color: var(--ink-2); font-weight: 500; }

.g-list { display: flex; flex-direction: column; gap: 8px; }
.g-list a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--surface-200); border-radius: 12px; color: var(--ink); min-height: 56px; }
.g-list a:hover { border-color: var(--accent); color: var(--ink); }
.g-list a > span:first-child { color: var(--brand-2); display: flex; }
.g-list a > span.sos { color: var(--red); }
.g-list .t { flex: 1; min-width: 0; }
.g-list .t b { display: block; font-size: 15px; font-weight: 600; }
.g-list .t small { display: block; font-size: 12px; color: var(--muted); }
.g-list .num { font-weight: 700; color: var(--brand); white-space: nowrap; }

.g-check { display: flex; flex-direction: column; gap: 6px; }
.g-check button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--surface-200); background: #fff; font-size: 14px; text-align: left; color: var(--ink); min-height: 48px; }
.g-check button i { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--surface-400); background: #fff; display: flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-size: 13px; font-weight: 700; }
.g-check button[aria-pressed="true"] { border-color: #CFE3D6; background: #F1F8F3; color: var(--muted); text-decoration: line-through; }
.g-check button[aria-pressed="true"] i { border-color: var(--green); background: var(--green); }

.g-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 14px; }
.g-chips button { padding: 8px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; min-height: 38px; background: #fff; color: var(--ink-2); border: 1px solid var(--surface-300); }
.g-chips button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.g-map { position: relative; z-index: 0; height: 300px; background: var(--surface-300); border-top: 1px solid var(--surface-300); border-bottom: 1px solid var(--surface-300); }
.g-pick { padding: 14px 20px 18px; font-size: 14px; color: var(--muted); text-align: center; }
.g-pick[hidden] { display: none; }
.g-place { padding: 16px 20px; border-top: 1px solid var(--surface-200); }
.g-place[hidden] { display: none; }
.g-place.on { background: var(--surface-50); }
.g-place > button { display: flex; gap: 12px; width: 100%; background: none; border: 0; text-align: left; color: var(--ink); padding: 0; }
.g-dot { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; }
.g-place .nm { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; }
.g-place .nm b { font-size: 15px; }
.g-place .nm small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.g-place .kind { display: block; font-size: 13px; color: var(--muted); }
.g-badges { display: flex; gap: 8px; margin: 10px 0 0 48px; flex-wrap: wrap; }
.g-badges span { display: flex; align-items: center; gap: 5px; border-radius: 8px; padding: 5px 9px; font-size: 12px; }
.g-badges .g { background: #F4F6F8; }
.g-badges .g em { font-style: normal; font-weight: 700; color: #4285F4; }
.g-badges .o { background: var(--surface-100); color: var(--brand); }
.g-place .tip { margin: 10px 0 0 48px; font-size: 14px; color: var(--ink-2); font-style: italic; }
.g-place .links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0 48px; }
.g-place .dir { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand); }
.leaflet-container { font-family: var(--sans); }

.g-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; align-items: start; }
.g-photos figure { margin: 0; }
.g-photos img { width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 12px; }
.g-photos figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }

.g-msg { text-align: center; padding: 32px 22px; }
.g-msg .lock { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--surface-300); color: var(--brand-2); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.g-msg p { font-size: 16px; color: var(--ink-2); }

.g-foot { padding: 8px 22px 36px; text-align: center; font-size: 12px; color: var(--muted); }

/* Taxiskärmen */
.g-taxi { position: fixed; inset: 0; z-index: 2000; background: #fff; display: flex; flex-direction: column; overflow: auto; }
.g-taxi[hidden] { display: none; }
.g-taxi .in { max-width: 560px; width: 100%; margin: 0 auto; flex: 1; display: flex; flex-direction: column; padding: 24px 24px 28px; }
.g-taxi .bar { display: flex; justify-content: space-between; align-items: center; }
.g-taxi .tag { background: #FFD23F; color: var(--ink); padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.g-taxi .close, .g-view .close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--surface-300); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.g-taxi .intro { font-size: 22px; color: var(--muted); margin: 24px 0 18px; }
.g-taxi .l1 { font-size: 38px; font-weight: 700; line-height: 1.15; }
.g-taxi .l2 { font-size: 24px; font-weight: 600; line-height: 1.3; }
.g-taxi .lm { font-size: 18px; color: var(--ink-2); background: var(--surface-50); border-radius: 12px; padding: 14px 16px; margin-top: 20px; }
.g-taxi .img { max-width: 100%; max-height: 40vh; width: auto; border-radius: 12px; margin-top: 16px; }

/* Bildvisning i helskärm */
.g-view { position: fixed; inset: 0; z-index: 2100; background: #0c1216; display: flex; flex-direction: column; }
.g-view[hidden] { display: none; }
.g-view .bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; color: #fff; }
.g-view .count { font-size: 14px; opacity: .8; }
.g-view .stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 12px; }
.g-view .stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.g-view .nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(255,255,255,.88); color: var(--ink); width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; }
.g-view .nav[hidden] { display: none; }
.g-view .prev { left: 12px; } .g-view .next { right: 12px; }
.g-view .cap { color: #fff; text-align: center; padding: 12px 20px 24px; min-height: 1.5em; }

/* Omdöme om boendet (migration 010) */
.g-review { display: flex; flex-direction: column; gap: 14px; }
.g-stars { border: 0; }
.g-stars legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.g-stars > div { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.g-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.g-stars label { font-size: 38px; line-height: 1; color: var(--surface-400); cursor: pointer; padding: 0 2px; transition: color .1s; }
.g-stars input:checked ~ label, .g-stars label:hover, .g-stars label:hover ~ label { color: #E8A317; }
.g-stars input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.g-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.g-field input, .g-field textarea { font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); border: 1px solid var(--surface-300); border-radius: 12px; padding: 12px 14px; background: #fff; width: 100%; }
.g-field input:focus, .g-field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.g-btn[disabled] { opacity: .55; cursor: not-allowed; }
.g-err { background: #FBE9E6; color: var(--red); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 10px; }
.g-review-done { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.g-review-done .stars { font-size: 30px; color: #E8A317; letter-spacing: 2px; }
.g-review-done p { font-size: 15px; color: var(--ink-2); }

/* Koderna visas först en vecka före ankomst; resten av gästboken är öppen direkt (2026-10-07). */
.g-notice { display: flex; gap: 12px; align-items: center; background: var(--surface-100, #f6f3ee); }
.g-notice .lock { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--brand-2); }
.g-notice p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* Gästens formulär i gästboken: ankomst och önskade tider, anmäl ett problem (migration 025, PD-64 steg 2). */
.g-form { display: grid; gap: 10px; margin-top: 10px; }
.g-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.g-form input[type=text], .g-form input[type=time], .g-form textarea { font: inherit; font-size: 15px; color: var(--ink); padding: 11px 12px; border: 1px solid var(--surface-400, #d8d2c8); border-radius: 10px; background: #fff; width: 100%; box-sizing: border-box; }
.g-form input[type=file] { font-size: 13px; }
.g-form label.cam { display: flex; font-size: 14px; color: var(--brand); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .g-form label.cam { display: none; } }
.g-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .g-two { grid-template-columns: 1fr; } }
.g-phrase { font-size: 22px; line-height: 1.35; color: var(--ink); margin: 8px 0 4px; }
