/* Hotel Rima – public site styles (index, rezervacija, privatnost, 404).
   Web fonts are declared in fonts.css. No inline styles: everything lives here (CSP). */

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --cream: #f8f5ef;
  --paper: #fffdf9;
  --ink: #23252a;
  --ink-soft: #4a4d55;
  --muted: #7b756c;
  --line: #e6dfd3;
  /* Gold tones taken from the Hotel Rima logo */
  --gold: #a68e66;
  --gold-dark: #85704e;
  --gold-soft: #f1eadb;
  --night: #1c1e22;
  --danger: #b4443a;
  --ok: #3d7d5a;
  --radius: 14px;
  --shadow: 0 18px 50px -24px rgba(35, 37, 42, .35);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: min(1180px, 100% - 40px);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--sans); }
body.no-scroll { overflow: hidden; } /* while the lightbox is open */
[hidden] { display: none !important; } /* components with their own display value must still hide */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }

/* Keyboard focus ring in the logo gold. Form fields inside .field have their own focus style. */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ==========================================================================
   Utilities & shared components
   ========================================================================== */
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.bg-paper { background: var(--paper); }

/* "Skip to content" link: off-screen until it receives keyboard focus */
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 200; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: .92rem; text-decoration: none; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Sprite icons (/img/icons.svg). Context rules below set the actual size. */
.icon { width: 1em; height: 1em; flex: none; }

.eyebrow { font: 500 .78rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; }
.note { font-size: .86rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; letter-spacing: .04em; cursor: pointer; transition: .25s ease; white-space: nowrap; }
.btn:hover { background: var(--gold-dark); }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }

/* ---------- cards & forms ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168, 134, 79, .15); }
.field textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot field against spam bots */
.alert { padding: 14px 18px; border-radius: 10px; font-size: .95rem; margin-top: 16px; }
.alert.error { background: #fbeceb; color: var(--danger); }
.alert.success { background: #e9f4ee; color: var(--ok); }

/* ==========================================================================
   Header & navigation
   ========================================================================== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, color .3s; color: #fff; }
.site-header.solid, .site-header.always-solid { background: rgba(255, 253, 249, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; width: min(1320px, 100% - 40px); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
/* Logo parts are exact cut-outs of the original logo (HOTEL RIMA.png) */
.brand-mark { width: 57px; height: 34px; flex: none; }
.brand-words { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.brand-words img { width: auto; }
.brand-words img:first-child { height: 15px; }
.brand-words img:last-child { height: 14px; }
.site-header:not(.solid):not(.always-solid) .brand-words img { filter: brightness(1.45) drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .95rem; letter-spacing: .03em; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .25s; }
.nav-links a:hover::after { right: 0; }
.lang { display: flex; gap: 2px; border: 1px solid currentColor; border-radius: 999px; padding: 3px; opacity: .9; }
.lang button { background: none; border: 0; padding: 4px 9px; border-radius: 999px; font-size: .76rem; letter-spacing: .08em; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--gold); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: .25s; }

@media (max-width: 1020px) {
  .nav { gap: 14px; }
  .menu-toggle { display: block; }
  .nav-links { position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; background: var(--paper); color: var(--ink); padding: 8px 20px 20px;
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav-links a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu-open .nav-links { transform: none; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav .btn { display: none; }
}
@media (max-width: 420px) { .brand-mark { width: 47px; height: 28px; } .brand-words img:first-child { height: 13px; } .brand-words img:last-child { height: 12px; } }

/* ==========================================================================
   Home: hero & search
   ========================================================================== */
.hero { position: relative; min-height: max(640px, 100svh); display: grid; align-items: end; color: #fff; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
/* The photo shows the hotel sign on the left half, so the intro text sits on the right
   over a dark gradient (desktop) or below the photo (mobile) – never on top of the sign. */
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 35%; animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 22, 26, 0) 38%, rgba(20, 22, 26, .62) 58%, rgba(20, 22, 26, .88) 100%),
    linear-gradient(180deg, rgba(20, 22, 26, .5) 0%, rgba(20, 22, 26, 0) 22%, rgba(20, 22, 26, 0) 62%, rgba(20, 22, 26, .75) 100%); }
.hero-content { padding: 140px 0 40px; }
.hero-intro { margin-left: auto; width: min(540px, 100%); }
.hero .eyebrow { color: #f1dfbd; }
.hero h1 { max-width: 14ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 52ch; margin-bottom: 34px; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
@media (max-width: 960px) {
  /* Photo on top, text below on the dark background */
  .hero { background: var(--night); }
  .hero-media { bottom: auto; height: 58svh; }
  .hero-media img { object-position: 28% 35%; }
  .hero::after { background: linear-gradient(180deg, rgba(20, 22, 26, .45) 0%, rgba(20, 22, 26, 0) 16%, rgba(28, 30, 34, 0) 36svh, var(--night) 58svh); }
  .hero-content { padding-top: 48svh; }
  .hero-intro { margin-left: 0; }
}

.search { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr .8fr auto; gap: 0; background: var(--paper); color: var(--ink); border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); overflow: hidden; margin-bottom: 48px; }
.search label { display: flex; flex-direction: column; padding: 14px 20px; border-right: 1px solid var(--line); min-width: 0; }
.search label:focus-within { box-shadow: inset 0 0 0 2px var(--gold); } /* fields themselves have no outline */
.search label span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.search input, .search select { border: 0; background: transparent; padding: 4px 0 0; font-size: 1.02rem; outline: none; min-width: 0; width: 100%; }
.search .btn { border-radius: 0; padding-inline: 30px; }
.search .btn:focus-visible { outline-color: #fff; outline-offset: -6px; } /* .search clips anything outside */
@media (max-width: 860px) {
  .search { grid-template-columns: 1fr 1fr; border-radius: 16px; }
  .search label:nth-child(2) { border-right: 0; }
  .search label { border-bottom: 1px solid var(--line); }
  .search label:nth-child(4) { border-right: 0; }
  .search .btn { grid-column: 1 / -1; padding: 16px; }
}

/* ---------- facts bar ---------- */
.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0 auto; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: var(--wrap); }
.facts li { text-align: center; }
.facts b { display: block; font: 500 2.1rem/1.1 var(--serif); color: var(--gold-dark); }
.facts .icon { width: .75em; height: .75em; vertical-align: -.1em; }
.facts span { font-size: .88rem; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 700px) { .facts ul { grid-template-columns: 1fr 1fr; row-gap: 22px; } }

/* ==========================================================================
   Home: content sections
   ========================================================================== */
section { padding: clamp(72px, 10vw, 130px) 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.split-media .inset { position: absolute; width: 46%; right: -6%; bottom: -8%; aspect-ratio: 1; border: 8px solid var(--cream); border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-media .inset { right: 4%; } .split-media { margin-bottom: 30px; } }

/* ---------- rooms (also used by the booking results) ---------- */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 28px; }
.room-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.room-media { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.room-media img { width: 100%; height: 100%; object-fit: cover; }
.room-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--gold-dark);
  background: radial-gradient(circle at 30% 20%, #fff 0, var(--gold-soft) 70%); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.room-placeholder svg { width: 64px; height: 64px; opacity: .8; }
.room-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.room-body h3 { margin-bottom: 6px; }
.room-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.room-meta span { display: inline-flex; align-items: center; gap: 6px; }
.room-meta svg { width: 16px; height: 16px; color: var(--gold); }
.room-body p { font-size: .95rem; color: var(--ink-soft); flex: 1; }
.room-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.price small { font: .8rem var(--sans); color: var(--muted); }
.price .eur { display: block; font: .8rem var(--sans); color: var(--muted); margin-top: 4px; }

/* ---------- weddings (dark section) ---------- */
/* Cinematic band: muted looping video of the hall, flows into the dark wedding section below */
.film { position: relative; min-height: min(78vh, 760px); display: grid; align-items: end; padding: 0; color: #fff; isolation: isolate; overflow: hidden; background: var(--night); }
.film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.film::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 22, 26, .78) 0%, rgba(20, 22, 26, .45) 35%, rgba(20, 22, 26, 0) 65%),
    linear-gradient(180deg, rgba(20, 22, 26, .35) 0%, rgba(20, 22, 26, 0) 30%, rgba(20, 22, 26, .3) 65%, var(--night) 100%); }
.film-copy { padding: 0 0 clamp(48px, 7vw, 90px); }
.film .eyebrow { color: #f1dfbd; }
.film h2 { max-width: 16ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); margin-bottom: 26px; }

.dark { background: var(--night); color: #f3efe8; }
.dark .lead { color: #c9c2b7; }
.wed-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.wed-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wed-photos img { border-radius: 12px; width: 100%; height: 100%; object-fit: cover; }
.wed-photos img:first-child { grid-row: span 2; aspect-ratio: 3 / 4.6; }
.wed-photos img:not(:first-child) { aspect-ratio: 1; }
.features { list-style: none; padding: 0; margin: 30px 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; }
.features li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.features svg { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 3px; }
@media (max-width: 900px) { .wed-grid { grid-template-columns: 1fr; } .features { grid-template-columns: 1fr; } }

/* ---------- pool band ---------- */
.pool-band { position: relative; min-height: 80vh; display: grid; align-items: center; color: #fff; isolation: isolate; overflow: hidden; }
.pool-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pool-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 26, 32, .88) 0%, rgba(14, 26, 32, .6) 45%, rgba(14, 26, 32, .05) 80%); z-index: -1; }
.pool-band h2, .pool-band .lead { text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }
.pool-band .eyebrow { color: #bfe9ee; }
.pool-band .lead { color: #e9f3f4; }
.pool-copy { max-width: 560px; }

/* ---------- gallery & lightbox ---------- */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery button { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; transition: transform .6s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery-more { text-align: center; margin-top: 30px; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 16, 18, .94); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-height: 88vh; max-width: min(1400px, 100%); object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox .icon { width: 24px; height: 24px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; }
.lb-next { right: 18px; top: 50%; }
.lb-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .9rem; padding: 0 70px; }

/* ---------- location ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.distances { list-style: none; padding: 0; margin: 26px 0 30px; }
.distances li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.distances b { font-weight: 500; color: var(--gold-dark); }
.map-box { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #e9e3d8; border: 1px solid var(--line); }
.map-box iframe { width: 100%; height: 100%; border: 0; }
/* Placeholder shown until the visitor agrees to load Google Maps */
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px;
  background: linear-gradient(rgba(248, 245, 239, .82), rgba(248, 245, 239, .9)), url("../img/pool-overview-sm.jpg") center / cover; }
.map-consent p { font-size: .82rem; color: var(--muted); max-width: 34ch; margin: 0; }
@media (max-width: 860px) { .loc-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 70px); }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 3px; }
.contact-list small { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold-dark); }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.socials svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--night); color: #bdb6ab; padding: 64px 0 30px; font-size: .92rem; }
.site-footer.compact { padding-top: 30px; } /* booking page: bottom line only */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-address { margin-top: 14px; max-width: 38ch; }
.site-footer h2 { color: #fff; font: 500 .78rem var(--sans); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid #34363c; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Booking page (rezervacija.html)
   ========================================================================== */
.page-hero { padding: 150px 0 60px; background: linear-gradient(rgba(28, 30, 34, .7), rgba(28, 30, 34, .82)), url("../img/head-table-2.jpg") center / cover; color: #fff; }
.page-hero .eyebrow { color: #f1dfbd; }
.page-hero .lead { color: #e8e2d8; }

/* ---------- step indicator ---------- */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; flex-wrap: wrap; counter-reset: step; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 10px; font-size: .9rem; opacity: .55; padding-right: 18px; }
.steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: .8rem; }
.steps li.active { opacity: 1; }
.steps li.active::before { background: var(--gold); border-color: var(--gold); }
.steps li.done { opacity: .85; }

/* ---------- layout, date bar, results ---------- */
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding: 50px 0 100px; }
.book-layout > * { min-width: 0; }
@media (max-width: 1080px) { .book-layout { grid-template-columns: 1fr; } .summary { position: static; } }
.date-bar { display: grid; grid-template-columns: 1fr 1fr .75fr .75fr; gap: 14px; align-items: end; }
.date-bar .btn { grid-column: 1 / -1; }
@media (max-width: 640px) { .date-bar { grid-template-columns: 1fr 1fr; } }
.results { display: grid; gap: 18px; margin-top: 28px; }
.result { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 22px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: border-color .2s; }
.result.unavailable { opacity: .55; }
.result:not(.unavailable):hover { border-color: var(--gold); }
.result .room-media { border-radius: 10px; aspect-ratio: 4 / 3; }
.result h3 { font-size: 1.5rem; margin-bottom: 4px; }
.result .note { margin: 0; }
.result .side { text-align: right; padding-right: 8px; display: grid; gap: 10px; justify-items: end; }
.badge { display: inline-block; font-size: .75rem; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-dark); }
.badge.red { background: #f6e3e1; color: var(--danger); }
@media (max-width: 760px) { .result { grid-template-columns: 1fr; } .result .side { text-align: left; justify-items: start; padding: 0 8px 8px; } }
.guest-form { margin-top: 28px; }

/* ---------- summary sidebar ---------- */
.summary { position: sticky; top: 100px; }
.summary h3 { font-size: 1.5rem; }
.summary dl { margin: 0; display: grid; gap: 10px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.summary dl .total-row { border: 0; align-items: baseline; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 500; }
.summary .total { font: 500 2rem var(--serif); }
.summary dl + .note { margin-top: 16px; }

/* ---------- confirmation ---------- */
.done { text-align: center; padding: 40px 10px; }
.done .ref { display: inline-block; font: 600 1.4rem var(--sans); letter-spacing: .12em; padding: 12px 22px; border: 1px dashed var(--gold); border-radius: 10px; margin: 10px 0 24px; color: var(--gold-dark); }
.done svg { width: 70px; height: 70px; color: var(--ok); margin: 0 auto 16px; }

/* ==========================================================================
   Legal & error pages (privatnost.html, 404.html)
   ========================================================================== */
.legal { padding: 140px 0 90px; }
.legal .wrap { max-width: 780px; }
.legal h2 { font-size: 1.8rem; margin-top: 1.6em; }
.legal-date { margin-top: 40px; }
.todo { background: #fff6dd; border: 1px dashed #d9b75a; padding: 2px 6px; border-radius: 4px; } /* draft fields still to be filled in */

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-media img { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
