:root {
  --ink: #173b45;
  --ink-deep: #082f3e;
  --forest: #113d34;
  --moss: #597247;
  --sun: #f5b52b;
  --sun-soft: #ffd874;
  --paper: #f6f1e7;
  --paper-2: #eae1d2;
  --white: #fff;
  --muted: #6c7776;
  --shadow: 0 28px 80px rgba(1, 19, 25, .36), 0 4px 18px rgba(1, 19, 25, .18);
  --page-w: min(92vw, 680px);
  --page-h: min(calc(100dvh - 150px), 930px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--ink-deep); }
body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: #082c37;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 9999;
  top: -60px;
  left: 12px;
  padding: 12px 16px;
  background: var(--sun);
  color: #082f3e;
  border-radius: 0 0 10px 10px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

.app-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  padding: calc(9px + var(--safe-top)) 12px calc(9px + var(--safe-bottom));
  isolation: isolate;
}
.ambient {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(1, 24, 28, .3), rgba(1, 24, 28, .86)),
    url("../images/scenery/forest-river.jpg") center/cover fixed;
}
.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: repeating-linear-gradient(96deg, transparent 0 9px, rgba(255,255,255,.035) 10px, transparent 11px 18px);
  mix-blend-mode: overlay;
}
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, transparent 0 32%, rgba(0,0,0,.48) 100%);
}

.topbar,
.bottom-nav {
  z-index: 20;
  width: min(100%, 780px);
  margin-inline: auto;
  color: white;
}
.quick-dock { display: none; }
.topbar {
  height: 55px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(6, 45, 57, .78);
  box-shadow: 0 10px 35px rgba(0,0,0,.18);
  backdrop-filter: blur(18px) saturate(130%);
}
.brand-lockup { min-width: 0; flex: 1; display: flex; align-items: center; gap: 9px; }
.brand-lockup img { width: 38px; height: 38px; object-fit: contain; }
.brand-lockup div { min-width: 0; display: grid; line-height: 1.05; }
.brand-lockup b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.brand-lockup small { margin-top: 4px; color: rgba(255,255,255,.65); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; gap: 4px; }
.icon-button {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: transparent;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.icon-button:hover, .icon-button:focus-visible { background: rgba(255,255,255,.12); outline: none; }
#tocButton { gap: 4px; }
#tocButton span { display: block; width: 17px; height: 1.5px; border-radius: 2px; background: currentColor; }
.text-icon { font-size: 20px; }

.book-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 10px 0;
  outline: none;
  perspective: 1700px;
}
.book {
  position: relative;
  width: var(--page-w);
  height: var(--page-h);
  min-height: 400px;
  transform-style: preserve-3d;
}
.book::before {
  content: "";
  position: absolute;
  inset: 15px 12px -8px;
  z-index: -2;
  border-radius: 8px 16px 16px 8px;
  background: linear-gradient(90deg, #d6cbb9 0 3px, #f2ebde 4px 8px, #cbbda7 9px 10px);
  box-shadow: var(--shadow);
  transform: translateZ(-20px) rotate(.35deg);
}
.page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(54px, 0, -50px) rotateY(-2.4deg) scale(.965);
  transform-origin: left center;
  border-radius: 7px 15px 15px 7px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform .56s cubic-bezier(.2,.72,.2,1), opacity .28s ease, visibility .56s;
  pointer-events: none;
}
.page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0 auto 0 0;
  width: 19px;
  z-index: 12;
  background: linear-gradient(90deg, rgba(22,33,30,.19), rgba(255,255,255,.08) 42%, transparent);
  mix-blend-mode: multiply;
}
.page.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0,0,0) rotateY(0) scale(1);
  pointer-events: auto;
  z-index: 5;
}
.page.is-before {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-56px,0,-60px) rotateY(5deg) scale(.96);
}
.page-scroll {
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(23,59,69,.25) transparent;
  padding: clamp(28px, 6vw, 56px) clamp(24px, 7vw, 66px) 48px;
}
.page-scroll::-webkit-scrollbar { width: 4px; }
.page-scroll::-webkit-scrollbar-thumb { background: rgba(23,59,69,.2); border-radius: 10px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
h1 { margin-bottom: 16px; font-size: clamp(35px, 8.6vw, 66px); line-height: .98; font-weight: 500; letter-spacing: -.035em; }
h2 { margin-bottom: 9px; font-size: clamp(23px, 5vw, 32px); line-height: 1.08; font-weight: 500; }
h3 { font-size: 19px; }
p { font-size: 15px; line-height: 1.62; }
.lead { color: #38555b; font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 4.25vw, 23px); line-height: 1.42; }
.light { color: white !important; }
.eyebrow { margin: 0 0 11px; color: #be8011; font-size: 10px; line-height: 1.2; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
blockquote { margin: 28px 0; padding: 0 0 0 22px; border-left: 2px solid var(--sun); color: #36585f; font-family: Georgia, "Times New Roman", serif; font-size: clamp(20px, 4.7vw, 27px); line-height: 1.38; font-style: italic; }

.page-cover { background: #091c25; }
.page-cover::after { width: 25px; background: linear-gradient(90deg, rgba(0,0,0,.5), transparent); mix-blend-mode: normal; }
.cover-art {
  position: absolute;
  inset: 0;
  background: #071c23 url("../images/original-pages/page-1.jpg") center/contain no-repeat;
}
.cover-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), inset 0 -120px 130px rgba(0,0,0,.12); }
.open-guide {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 7px;
  width: min(calc(100% - 48px), 320px);
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px 14px 20px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(5,36,45,.76);
  color: white;
  box-shadow: 0 10px 35px rgba(0,0,0,.25);
  backdrop-filter: blur(14px);
  cursor: pointer;
}
.open-guide span { font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.open-guide i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: var(--ink-deep); font-style: normal; font-size: 19px; }

.wide-photo { margin: 22px -8px; }
.wide-photo img { display: block; width: 100%; border-radius: 3px 18px 3px 18px; box-shadow: 0 14px 32px rgba(19,59,69,.17); }
.compact-photo { max-height: 230px; overflow: hidden; border-radius: 3px 18px 3px 18px; }
.compact-photo img { height: 230px; object-fit: cover; }
.field-card { margin: 26px 0 18px; padding: 20px; border: 1px solid rgba(23,59,69,.13); border-radius: 3px 22px 3px 22px; background: rgba(255,255,255,.7); box-shadow: 0 10px 30px rgba(23,59,69,.08); }
.wifi-card { display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
.field-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: var(--ink-deep); font-size: 30px; }
.field-card h2 { font-size: 24px; }
.wifi-options { display: grid; gap: 7px; margin: 14px 0; }
.wifi-options p { display: grid; grid-template-columns: 25px 1fr; gap: 9px; align-items: start; margin: 0; padding: 9px 10px; border-radius: 3px 12px 3px 12px; background: rgba(23,59,69,.055); font-size: 12px; line-height: 1.4; }
.wifi-options b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-deep); background: var(--sun); font-size: 11px; }
.wifi-answer { margin-bottom: 0; font-size: 13px; line-height: 1.52; }
.credentials { margin: 16px 0 0; }
.credentials div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid rgba(23,59,69,.1); }
.credentials dt { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.credentials dd { margin: 0; font-weight: 700; }
.quick-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.quick-actions a { padding: 10px 7px; border: 1px solid rgba(23,59,69,.16); border-radius: 999px; text-align: center; text-decoration: none; font-size: 11px; font-weight: 700; }
.map-preview { position: relative; display: block; width: 100%; margin: 22px 0 14px; padding: 0; overflow: hidden; border: 0; border-radius: 3px 20px 3px 20px; color: white; background: var(--ink-deep); box-shadow: 0 16px 38px rgba(8,47,62,.2); cursor: zoom-in; }
.map-preview img { display: block; width: 100%; aspect-ratio: 1.25/1; object-fit: cover; object-position: center; }
.map-preview::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent,rgba(4,31,39,.9)); }
.map-preview span { position: absolute; z-index: 2; right: 17px; bottom: 15px; left: 17px; display: grid; text-align: left; }
.map-preview b { font-family: Georgia,"Times New Roman",serif; font-size: 20px; font-weight: 500; }
.map-preview small { margin-top: 2px; color: rgba(255,255,255,.72); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.map-actions button, .map-actions a { display: grid; place-items: center; min-height: 44px; padding: 8px 10px; border: 1px solid rgba(23,59,69,.16); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.72); text-align: center; text-decoration: none; font-size: 11px; font-weight: 750; cursor: pointer; }
.map-note { margin: 15px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.page-story { color: white; background: #123e3a; }
.page-story .page-scroll { padding-bottom: 65px; }
.page-story h1 { color: white; }
.story-photo { height: 330px; margin: 22px -70px 0; background: linear-gradient(0deg, rgba(10,42,39,.65), transparent 45%), url("../images/scenery/forest-cabin.jpg") center/cover; }
.paper-inset { position: relative; margin: -55px -12px 0; padding: 30px 24px; color: var(--ink); border-radius: 4px 28px 4px 4px; background: var(--paper); box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.paper-inset details { margin: 20px 0 0; border-top: 1px solid rgba(23,59,69,.16); border-bottom: 1px solid rgba(23,59,69,.16); }
.paper-inset summary { padding: 15px 0; cursor: pointer; color: #a66d09; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.details-copy { padding: 0 0 12px; }
.signature { margin: 22px 0 0; text-align: right; font-family: Georgia, serif; font-style: italic; }

.page-scenic { color: white; background: #082934; }
.scene-shade {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(3,24,29,.05), rgba(3,24,29,.76) 60%, rgba(3,24,29,.96)), var(--scene);
  background-position: center;
  background-size: cover;
}
.scenic-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 190px; }
.scenic-copy h1 { color: white; }
.fact-stack { display: grid; gap: 10px; }
.fact-stack div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 3px 14px 3px 14px; background: rgba(3,30,36,.6); backdrop-filter: blur(10px); }
.fact-stack span { color: var(--sun-soft); font-family: Georgia, serif; font-size: 19px; }
.fact-stack p { margin: 0; color: rgba(255,255,255,.9); font-size: 13px; line-height: 1.45; }
.field-note { margin: 15px 0 0; color: rgba(255,255,255,.7); font-style: italic; }

.page-highlight { display: grid; grid-template-rows: minmax(290px, 48%) minmax(0,1fr); }
.highlight-hero { position: relative; min-height: 290px; background-image: linear-gradient(180deg, transparent 35%, rgba(4,30,37,.74)), var(--image); background-position: center; background-size: cover; }
.highlight-hero.tall { min-height: 335px; }
.chapter-number { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; display: grid; place-items: center; color: white; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-family: Georgia, serif; font-size: 16px; backdrop-filter: blur(6px); }
.hero-copy { position: absolute; left: 25px; right: 25px; bottom: 24px; color: white; }
.hero-copy h1 { margin: 0; color: white; font-size: clamp(38px,9vw,62px); }
.lower-copy { padding-top: 26px; }
.clean-list { display: grid; gap: 9px; margin: 16px 0; padding: 0; list-style: none; }
.clean-list li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.46; }
.clean-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.experience-button { width: 100%; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 13px; margin: 20px 0 0; padding: 12px; border: 0; border-radius: 4px 19px 4px 19px; color: white; text-align: left; background: var(--ink-deep); box-shadow: 0 13px 30px rgba(8,47,62,.18); cursor: pointer; }
.experience-button:hover, .experience-button:focus-visible { background: #0d4657; outline: 3px solid rgba(245,181,43,.4); }
.experience-orbit { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: var(--sun-soft); font-family: Georgia,serif; font-size: 16px; }
.experience-button > span:nth-child(2) { display: grid; }
.experience-button b { font-size: 13px; }
.experience-button small { margin-top: 3px; color: rgba(255,255,255,.65); font-size: 10px; }
.experience-button i { color: var(--sun); font-size: 20px; font-style: normal; }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); margin: 15px 0 5px; border-top: 1px solid rgba(23,59,69,.15); border-bottom: 1px solid rgba(23,59,69,.15); }
.stat-row div { display: grid; padding: 10px 3px; text-align: center; }
.stat-row div + div { border-left: 1px solid rgba(23,59,69,.15); }
.stat-row b { font-family: Georgia,serif; font-size: 19px; }
.stat-row span { margin-top: 2px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.postcard-row { display: grid; grid-template-columns: 42% 1fr; gap: 0; margin: 22px 0; transform: rotate(-1deg); box-shadow: 0 14px 35px rgba(23,59,69,.16); }
.postcard-row img { width: 100%; height: 100%; object-fit: cover; }
.postcard-row div { padding: 17px; background: white; }
.postcard-row p:last-child { margin: 0; font-family: Georgia,serif; font-size: 14px; line-height: 1.38; }

.page-tours { background: #f3eee3; }
.tour-deck { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.tour-card { position: relative; min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 16px; color: white; border-radius: 3px 18px 3px 18px; text-decoration: none; background-image: linear-gradient(180deg, transparent 22%, rgba(4,30,37,.88) 100%), var(--tour); background-position: center; background-size: cover; box-shadow: 0 10px 25px rgba(8,47,62,.14); }
.tour-card::after { content: "↗"; position: absolute; top: 12px; right: 12px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--ink-deep); }
.tour-card.large { grid-column: 1/-1; min-height: 245px; }
.tour-card span { color: var(--sun-soft); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tour-card b { margin-top: 4px; font-family: Georgia,serif; font-size: 19px; line-height: 1.08; }
.tour-card small { margin-top: 5px; color: rgba(255,255,255,.68); font-size: 10px; line-height: 1.35; }
.text-link { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-top: 1px solid rgba(23,59,69,.16); border-bottom: 1px solid rgba(23,59,69,.16); color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.page-karlovy { display: grid; grid-template-rows: minmax(270px, 42%) minmax(0,1fr); }
.karlovy-collage { position: relative; background: #d8b181; overflow: hidden; }
.kv-main { width: 74%; height: 100%; object-fit: cover; }
.kv-detail { position: absolute; width: 40%; height: 54%; right: 16px; bottom: 18px; object-fit: cover; border: 7px solid var(--paper); box-shadow: 0 16px 35px rgba(0,0,0,.28); transform: rotate(2deg); }
.passport-stamp { position: absolute; right: 21px; top: 18px; width: 68px; height: 68px; display: grid; place-content: center; text-align: center; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; color: white; font-family: Georgia,serif; font-size: 17px; line-height: .8; transform: rotate(8deg); text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.passport-stamp small { font: 8px Inter,sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.tag-row, .homes-features { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.tag-row span, .homes-features span { padding: 7px 9px; border: 1px solid rgba(23,59,69,.16); border-radius: 999px; font-size: 10px; font-weight: 700; }
.primary-link { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 14px 16px; border-radius: 3px 16px 3px 16px; background: var(--sun); color: var(--ink-deep); text-decoration: none; font-size: 12px; font-weight: 800; }
.primary-link.dark { background: var(--ink-deep); color: white; }

.page-homes { display: grid; grid-template-rows: minmax(260px, 43%) minmax(0,1fr); background: #e8e0d4; }
.homes-grid { min-height: 0; display: grid; grid-template-columns: 1.25fr .9fr .9fr; grid-template-rows: repeat(2,minmax(0,1fr)); gap: 4px; overflow: hidden; background: #fff; }
.homes-grid img { min-width: 0; min-height: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.home-feature { grid-row: 1/3; object-position: center; }
.home-day { object-position: center 58%; }
.home-interior { object-position: center; }
.home-jacuzzi { object-position: center; }
.home-sauna { object-position: center 55%; }
.homes-copy { min-height: 0; position: relative; background: #e8e0d4; }
.homes-heading { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 14px; align-items: start; }
.homes-logo { width: 64px; height: 56px; padding: 7px; object-fit: contain; border-radius: 3px 14px 3px 14px; background: var(--ink-deep); box-shadow: 0 8px 20px rgba(8,47,62,.18); }
.homes-heading h1 { margin-bottom: 14px; font-size: clamp(32px,6vw,48px); line-height: 1.02; }
.homes-heading .eyebrow { margin-top: 2px; }
.homes-intro { margin-bottom: 0; }
.homes-book { margin-top: 16px; }
.homes-wellness { padding: 12px 2px; }
.award-note { margin: 18px 0; padding: 12px 14px; border-left: 3px solid var(--sun); background: rgba(255,255,255,.55); font-size: 12px; line-height: 1.45; }

.page-watch { color: white; background: linear-gradient(160deg,#082f3e,#0c4a4b 62%,#102e32); }
.page-watch h1 { color: white; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.video-card { position: relative; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; overflow: hidden; padding: 14px; border: 0; border-radius: 3px 18px 3px 18px; color: white; text-align: left; background-image: linear-gradient(180deg,rgba(3,20,26,.05),rgba(3,20,26,.9)), var(--video); background-position: center; background-size: cover; cursor: pointer; }
.video-card .play { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: var(--ink-deep); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.video-card b { font-family: Georgia,serif; font-size: 17px; line-height: 1.1; }
.video-card small { margin-top: 5px; color: rgba(255,255,255,.65); font-size: 9px; line-height: 1.35; }
.light-link { color: white; border-color: rgba(255,255,255,.19); }

.page-menus { background: #f4efe5; }
.bon-appetit { margin: 20px 0; padding: 13px; border-radius: 4px 15px 4px 15px; background: rgba(245,181,43,.18); font-family: Georgia,serif; text-align: center; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.menu-card { position: relative; min-height: 260px; overflow: hidden; padding: 0; border: 0; border-radius: 3px 18px 3px 18px; background: #e3d9ca; box-shadow: 0 9px 25px rgba(23,59,69,.13); cursor: pointer; }
.menu-card img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; object-position: top; transition: transform .35s; }
.menu-card:hover img { transform: scale(1.025); }
.menu-card span { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 3px 13px 3px 13px; color: white; background: rgba(8,47,62,.87); backdrop-filter: blur(9px); }
.menu-card b { font-family: Georgia,serif; font-size: 17px; }
.menu-card small { color: var(--sun-soft); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }

.page-help { color: white; background: linear-gradient(160deg,rgba(8,47,62,.94),rgba(11,52,55,.88)), url("../images/scenery/sunset-rocks.jpg") center/cover; }
.page-help h1, .page-help h2 { color: white; }
.review-logo { width: 82px; margin: 0 0 22px; }
.stars { margin: 15px 0 22px; color: var(--sun); font-size: 29px; letter-spacing: .18em; }
.review-links { display: grid; gap: 9px; }
.review-links a { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px 17px 4px 17px; color: white; text-decoration: none; background: rgba(255,255,255,.09); backdrop-filter: blur(10px); }
.review-links a > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: white; color: #366bd1; font-weight: 900; }
.review-links a > span:nth-child(2) { display: grid; }
.review-links b { font-size: 13px; }
.review-links small { margin-top: 3px; color: rgba(255,255,255,.64); font-size: 9px; }
.review-links i { color: var(--sun); font-size: 19px; font-style: normal; }
.review-owl { color: #297f5b !important; letter-spacing: -3px; }
.guide-callout, .contact-block { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.guide-callout h2, .contact-block h2 { margin-bottom: 6px; font-size: 23px; }
.guide-callout p, .contact-block p { color: rgba(255,255,255,.72); font-size: 13px; }
.contact-block a { color: var(--sun-soft); font-weight: 700; }
.archive-button { width: 100%; margin-top: 20px; display: flex; justify-content: space-between; padding: 14px 0; border: 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); color: white; background: transparent; font-size: 11px; font-weight: 700; text-align: left; cursor: pointer; }

.page-closing { color: white; background: #061e28; }
.closing-art { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(4,25,32,.14),rgba(4,25,32,.78)), url("../images/scenery/sunset-rocks.jpg") center/cover; }
.closing-copy { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px; text-align: center; background: radial-gradient(circle at 50% 48%, rgba(4,25,32,.16), rgba(4,25,32,.5)); }
.closing-copy img { width: min(38%, 190px); margin-bottom: 22px; }
.closing-copy p { margin-bottom: 5px; font-size: 10px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; }
.closing-copy h1 { max-width: 430px; color: white; font-size: clamp(45px,10vw,70px); }
.closing-actions { position: absolute; left: 25px; right: 25px; bottom: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 15px; }
.closing-actions a { color: white; font-size: 10px; text-decoration: none; }

.bottom-nav { height: 56px; display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; gap: 9px; padding: 4px 7px 0; }
.bottom-nav button { width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.19); border-radius: 50%; color: white; background: rgba(6,45,57,.65); backdrop-filter: blur(12px); cursor: pointer; }
.bottom-nav button:disabled { opacity: .28; cursor: default; }
.progress-wrap { min-width: 0; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: rgba(255,255,255,.68); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.progress-meta span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-meta b { color: white; }
.progress-track { height: 2px; overflow: hidden; background: rgba(255,255,255,.2); }
.progress-track i { display: block; width: 6.66%; height: 100%; background: var(--sun); transition: width .45s ease; }

.drawer {
  position: fixed;
  z-index: 100;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(88vw, 380px);
  display: flex;
  flex-direction: column;
  padding: calc(24px + var(--safe-top)) 22px calc(20px + var(--safe-bottom));
  color: white;
  background: rgba(6,43,53,.97);
  box-shadow: 30px 0 70px rgba(0,0,0,.36);
  transform: translateX(-105%);
  transition: transform .35s cubic-bezier(.22,.75,.2,1);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.13); }
.drawer-head h2 { margin: 0; color: white; font-size: 36px; }
.drawer-head button, dialog header button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: white; background: transparent; font-size: 25px; cursor: pointer; }
#tocList { flex: 1; overflow: auto; padding: 14px 0; }
#tocList button { width: 100%; display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 4px; border: 0; color: rgba(255,255,255,.64); background: transparent; text-align: left; cursor: pointer; }
#tocList button span { color: rgba(245,181,43,.72); font-family: Georgia,serif; }
#tocList button b { font-size: 13px; }
#tocList button.is-current { color: white; }
.drawer-foot { display: flex; align-items: center; gap: 12px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.13); }
.drawer-foot img { width: 56px; }
.drawer-foot p { margin: 0; color: rgba(255,255,255,.55); font-size: 10px; line-height: 1.4; text-transform: uppercase; letter-spacing: .12em; }
.scrim { position: fixed; z-index: 90; inset: 0; background: rgba(0,15,20,.65); backdrop-filter: blur(3px); }

dialog { border: 0; padding: 0; background: transparent; }
dialog::backdrop { background: rgba(0,18,23,.82); backdrop-filter: blur(10px); }
.media-dialog { width: min(96vw, 1050px); max-width: none; color: white; }
.dialog-shell { overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 8px 28px 8px 28px; background: #062f3d; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
dialog header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; color: white; background: #082f3e; }
dialog header h2 { margin: 0; color: white; font-size: clamp(22px,4vw,32px); }
.panorama-launch { position: relative; min-height: min(68vh, 690px); display: grid; overflow: hidden; background: #071b22; }
.panorama-launch > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panorama-launch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,24,29,.08) 20%, rgba(3,24,29,.88) 100%); }
.panorama-launch-copy { position: relative; z-index: 2; align-self: end; display: grid; justify-items: start; gap: 14px; padding: clamp(24px,6vw,58px); }
.panorama-launch-copy p { max-width: 600px; margin: 0; color: rgba(255,255,255,.86); font-family: Georgia,serif; font-size: clamp(18px,3vw,27px); line-height: 1.38; }
.panorama-orbit { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: var(--sun-soft); background: rgba(6,47,61,.72); font-family: Georgia,serif; font-size: 22px; backdrop-filter: blur(10px); }
.panorama-launch-copy a { min-height: 54px; display: inline-flex; align-items: center; gap: 18px; padding: 13px 18px; border-radius: 999px; color: #062f3d; background: var(--sun); text-decoration: none; font-size: 12px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 14px 36px rgba(0,0,0,.28); }
.panorama-launch-copy a span { font-size: 18px; }
.dialog-shell footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; color: rgba(255,255,255,.6); }
.dialog-shell footer p { margin: 0; font-size: 10px; }
.dialog-shell footer a { color: var(--sun-soft); font-size: 11px; font-weight: 700; }
.video-wrap { aspect-ratio: 16/9; background: #000; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; }

.menu-dialog { width: min(96vw, 850px); max-width: none; height: min(94dvh, 1050px); }
.menu-dialog-shell { height: 100%; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border-radius: 8px 26px 8px 26px; background: #082f3e; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.menu-image-wrap { min-height: 0; overflow: auto; background: #1a2528; touch-action: pan-x pan-y; }
.menu-image-wrap img { display: block; width: 100%; max-width: none; margin: 0 auto; transform-origin: top center; transition: width .2s ease; }
.menu-dialog footer { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 10px; padding: 10px 14px; color: rgba(255,255,255,.65); background: #082f3e; text-align: center; font-size: 10px; }
.menu-dialog footer button { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: white; background: transparent; font-size: 20px; }
.map-dialog .menu-image-wrap img { width: 100%; min-width: 100%; height: auto; object-fit: contain; transform-origin: top left; }
.map-dialog .map-dialog-footer { grid-template-columns: 40px 40px 1fr 40px 40px; }
.map-dialog-footer a { color: white; text-decoration: none; font-size: 11px; font-weight: 750; }

.archive-dialog { width: min(96vw, 1100px); max-width: none; height: min(94dvh, 1000px); color: white; }
.archive-shell { height: 100%; overflow: auto; padding-bottom: 30px; border-radius: 8px 26px 8px 26px; background: #0a2f3b; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.archive-intro { padding: 16px 20px 0; color: rgba(255,255,255,.65); font-size: 12px; }
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; padding: 18px; }
.archive-grid button { position: relative; padding: 0; border: 0; border-radius: 3px 12px 3px 12px; overflow: hidden; background: #eee; box-shadow: 0 8px 22px rgba(0,0,0,.25); cursor: zoom-in; }
.archive-grid img { display: block; width: 100%; }
.archive-grid span { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(8,47,62,.85); color: white; font-size: 10px; }
.archive-grid button.is-expanded { grid-column: 1/-1; cursor: zoom-out; }
.noscript { position: fixed; z-index: 10000; inset: auto 12px 12px; padding: 16px; background: white; color: #111; border-radius: 10px; }

@media (max-width: 540px) {
  :root { --page-w: calc(100vw - 18px); --page-h: calc(100dvh - 184px - var(--safe-top) - var(--safe-bottom)); }
  .app-shell { padding-inline: 6px; padding-top: calc(6px + var(--safe-top)); padding-bottom: calc(4px + var(--safe-bottom)); }
  .topbar { height: 50px; padding: 5px 6px; border-radius: 14px; }
  .brand-lockup img { width: 34px; height: 34px; }
  .brand-lockup small { max-width: 190px; }
  .top-actions .icon-button { width: 36px; height: 36px; flex-basis: 36px; }
  #shareButton { display: none; }
  .book-stage { padding: 7px 0; }
  .page { border-radius: 4px 13px 13px 4px; }
  .open-guide { bottom: 7px; width: calc(100% - 54px); }
  .quick-dock {
    z-index: 20;
    height: 42px;
    display: grid;
    width: calc(100vw - 12px);
    max-width: 780px;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 3px;
    margin: 0 auto 4px;
  }
  .quick-dock button {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 3px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 12px;
    color: white;
    background: rgba(6,45,57,.82);
    box-shadow: 0 6px 20px rgba(0,0,0,.14);
    backdrop-filter: blur(14px);
  }
  .quick-dock span { color: var(--sun); font-size: 12px; font-weight: 800; }
  .quick-dock b { overflow: hidden; font-size: 9px; letter-spacing: .02em; text-overflow: ellipsis; text-transform: uppercase; }
  .book::before { inset: 9px 7px -5px; }
  .page-scroll { padding: 27px 23px 44px; }
  h1 { font-size: 39px; }
  .story-photo { margin-inline: -25px; height: 255px; }
  .paper-inset { margin-inline: -5px; }
  .page-highlight { grid-template-rows: minmax(250px, 43%) minmax(0,1fr); }
  .highlight-hero, .highlight-hero.tall { min-height: 250px; }
  .lower-copy { padding-top: 21px; }
  .lower-copy p { font-size: 13px; }
  .clean-list li { font-size: 12px; }
  .tour-card { min-height: 165px; padding: 13px; }
  .tour-card.large { min-height: 205px; }
  .tour-card b { font-size: 17px; }
  .page-karlovy { grid-template-rows: 245px minmax(0,1fr); }
  .page-homes { grid-template-rows: 250px minmax(0,1fr); }
  .homes-copy { padding-top: 23px; }
  .homes-heading { grid-template-columns: 54px minmax(0,1fr); gap: 11px; }
  .homes-logo { width: 54px; height: 48px; padding: 6px; }
  .homes-heading h1 { font-size: 32px; }
  .video-card { min-height: 185px; }
  .menu-card, .menu-card img { min-height: 230px; }
  .bottom-nav { height: 48px; grid-template-columns: 41px 1fr 41px; }
  .bottom-nav button { width: 39px; height: 39px; }
  .progress-meta { margin-bottom: 5px; }
  .archive-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
  .media-dialog, .menu-dialog, .archive-dialog { width: 100vw; height: 100dvh; max-height: none; margin: 0; }
  .dialog-shell, .menu-dialog-shell, .archive-shell { height: 100%; border-radius: 0; }
  dialog header { padding-top: calc(12px + var(--safe-top)); }
  .panorama-launch { min-height: 0; height: calc(100dvh - 174px - var(--safe-top) - var(--safe-bottom)); }
  .panorama-launch-copy { gap: 12px; padding: 24px 20px; }
  .panorama-launch-copy p { font-size: 19px; }
  .panorama-orbit { width: 62px; height: 62px; font-size: 19px; }
  #experienceDialog .dialog-shell { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
  #experienceDialog footer { padding-bottom: calc(12px + var(--safe-bottom)); }
  .video-shell { display: grid; grid-template-rows: auto 1fr; align-content: center; }
  .video-wrap { align-self: center; }
}

@media (max-width: 370px) {
  .brand-lockup small { display: none; }
  .page-scroll { padding-inline: 19px; }
  h1 { font-size: 34px; }
  .lead { font-size: 17px; }
  .tour-deck, .video-grid { grid-template-columns: 1fr; }
  .tour-card, .video-card { min-height: 150px; }
  .menu-card, .menu-card img { min-height: 190px; }
}

@media (min-width: 900px) {
  :root { --page-w: min(64vw, 760px); --page-h: min(calc(100dvh - 158px), 950px); }
  .page-cover .open-guide { left: auto; right: 18px; bottom: 24px; width: 160px; min-height: 62px; gap: 7px; padding: 11px 10px 11px 13px; transform: none; }
  .page-cover .open-guide span { font-size: 10px; line-height: 1.35; letter-spacing: .08em; }
  .page-cover .open-guide i { flex: 0 0 31px; width: 31px; height: 31px; }
  .quick-dock {
    position: fixed;
    z-index: 30;
    top: 50%;
    right: 17px;
    display: grid;
    gap: 7px;
    transform: translateY(-50%);
  }
  .quick-dock button {
    width: 82px;
    min-height: 55px;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 2px;
    padding: 7px 5px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 5px 16px 5px 16px;
    color: white;
    background: rgba(6,45,57,.82);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    backdrop-filter: blur(14px);
    cursor: pointer;
  }
  .quick-dock button:hover, .quick-dock button:focus-visible { border-color: rgba(245,181,43,.7); background: rgba(9,67,81,.94); outline: none; }
  .quick-dock span { color: var(--sun); font-size: 13px; font-weight: 800; }
  .quick-dock b { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
  .book::after { content: ""; position: absolute; z-index: 10; top: 0; bottom: 0; left: 0; width: 2px; background: rgba(255,255,255,.24); box-shadow: 8px 0 20px rgba(0,0,0,.22); pointer-events: none; }
  .page.is-active::before { content: ""; position: absolute; z-index: -1; inset: 12px -18px -9px 10px; border-radius: 10px 19px 19px 10px; background: #d8cdbd; transform: rotate(.55deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  body { overflow: visible; background: white; }
  .topbar, .bottom-nav, .ambient, .drawer, .scrim { display: none !important; }
  .app-shell, .book-stage, .book { display: block; width: auto; height: auto; padding: 0; }
  .page { position: relative; inset: auto; width: 100%; min-height: 100vh; opacity: 1; visibility: visible; transform: none; page-break-after: always; box-shadow: none; }
}
