:root {
  --navy: #172136;
  --midnight: #25304c;
  --ink: #0d1930;
  --wood: #231914;
  --gold: #c9a475;
  --amber: #e8a958;
  --ivory: #f3e9dc;
  --paper: #fff9f0;
  --white: #fff;
  --line: #d9c9b5;
  --display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: system-ui, sans-serif;
  --header: 76px;
  --keyhole: polygon(
    50% 0%,
    59% 0.7%,
    68% 3%,
    77% 6.7%,
    85% 12%,
    92% 19%,
    97% 27%,
    100% 35%,
    99% 43%,
    96% 51%,
    91% 58%,
    84% 65%,
    96% 100%,
    4% 100%,
    16% 65%,
    9% 58%,
    4% 51%,
    1% 43%,
    0% 35%,
    3% 27%,
    8% 19%,
    15% 12%,
    23% 6.7%,
    32% 3%,
    41% 0.7%
  );
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  overflow-x: clip;
}
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  background: none;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.header {
  height: var(--header);
  position: sticky;
  top: 0;
  z-index: 500;
  background: #151d30;
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 3.2%;
  border-bottom: 1px solid #f3e9dc20;
}
.brand img {
  width: clamp(165px, 17.5vw, 296px);
  height: auto;
}
.header nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 3.25vw, 58px);
}
.header nav > * {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}
.header nav > *::after {
  content: "";
  position: absolute;
  inset: auto 0 3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.header nav > *:hover::after {
  transform: scaleX(1);
}
.outline,
.ring-button {
  border: 1px solid var(--gold);
  border-radius: 99px;
  padding: 9px 15px;
  white-space: nowrap;
}
.ring-button {
  margin-left: auto;
  color: var(--ivory);
}
.menu {
  display: none;
}
.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  isolation: isolate;
  background: var(--wood);
  color: var(--paper);
  overflow: clip;
}
.scene,
.wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.scene {
  z-index: -1;
  perspective: 1000px;
  background:
    linear-gradient(0deg, #311d13, transparent 35%),
    url(assets/walnut.webp) 56% 46%/18% 100% repeat-x;
}
.door,
.catalog-edge {
  background:
    linear-gradient(120deg, #070b16a0, #0d122780),
    url(assets/navy.webp) center/100% 100%;
  border: 1px solid #b9885950;
  box-shadow:
    inset 0 0 0 8px #0509148a,
    inset 0 0 0 11px #b988593d,
    inset 0 0 0 20px #070c16ae,
    12px 0 28px #0009;
}
.door {
  position: absolute;
  top: 0;
  bottom: 14%;
}
.door-left {
  left: -2%;
  width: 42%;
  transform-origin: left center;
}
.door-right {
  right: -2%;
  width: 15%;
  transform-origin: right center;
}
.scene::after {
  content: "";
  position: absolute;
  inset: 70% 0 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #0d0e17a0, #a5623520, #edab6a80 64%, #171018a0),
    url(assets/walnut.webp) 50% 80%/30% 230%;
  transform: perspective(360px) rotateX(33deg) scale(1.35);
  transform-origin: bottom;
}
.portal {
  position: absolute;
  top: 1%;
  left: 49.5%;
  width: 28%;
  height: 78%;
  filter: drop-shadow(0 0 7px #f7ad50) drop-shadow(0 0 19px #ff9e3370);
  transform-origin: 50% 45%;
}
.aperture,
.portal-gold,
.portal-image {
  position: absolute;
  inset: 0;
}
.aperture {
  clip-path: var(--keyhole);
  background: #ffd28e;
}
.portal-gold {
  inset: 2px;
  background: #9f5627;
  clip-path: var(--keyhole);
}
.portal-image {
  inset: 8px;
  clip-path: var(--keyhole);
  background: url(assets/interior.webp) 52% center/cover;
}
.hero-inner {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(40px, 7vh, 85px) 3.5% clamp(40px, 9vh, 105px);
}
.hero-copy {
  padding-left: 1.1%;
  position: relative;
}
.eyebrow {
  letter-spacing: 0.22em;
  font-size: clamp(10px, 1vw, 16px);
  margin: 0 0 25px;
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::after {
  content: "";
  height: 1px;
  background: var(--gold);
  width: 5em;
  margin-left: 0.5em;
}
.eyebrow span {
  color: var(--amber);
}
h1,
h2 {
  font: 400 clamp(48px, 6.2vw, 114px) / 0.94 var(--display);
  letter-spacing: -0.065em;
  margin: 0;
}
h1 em,
h2 em {
  display: block;
  font-weight: 400;
  color: #eac18b;
}
.subtitle {
  font-size: clamp(15px, 1.65vw, 28px);
  margin: 23px 0 0;
}
.gold-button,
.dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(145deg, #f3dbba, #e5ba84);
  color: #17120f;
  border: 1px solid #f5dfc3;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: clamp(15px, 1.45vw, 24px);
  font-weight: 600;
  white-space: nowrap;
}
.gold-button {
  margin-top: 32px;
}
.gold-button span,
.dark-button span {
  transition: transform 0.2s;
}
.gold-button:hover span,
.dark-button:hover span {
  transform: translate(3px, -3px);
}
.dark-button {
  background: var(--navy);
  border-color: var(--midnight);
  color: var(--paper);
}
.search-wrap {
  position: relative;
  margin-top: 40px;
}
.hero-tabs {
  display: flex;
  gap: 26px;
  margin: 0 0 12px 14px;
}
.hero-tabs button {
  color: #edddc9;
  padding: 0 5px 9px;
  border-bottom: 2px solid transparent;
}
.hero-tabs button[aria-pressed="true"] {
  color: var(--white);
  border-color: var(--white);
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1.16fr 1.15fr 1.07fr auto;
  gap: 0;
  background: #f4e4cdde;
  backdrop-filter: blur(16px);
  border: 1px solid #fff8ed8c;
  border-radius: 16px;
  color: #171513;
  padding: 17px 18px;
  box-shadow: 0 8px 28px #180e0f4a;
}
.filters > label,
.filters > .price {
  border-right: 1px solid #b79673;
  padding: 0 clamp(10px, 2vw, 30px);
  display: grid;
  align-content: center;
}
.filters label,
.price summary {
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 650;
}
.filters select,
.price summary span {
  display: block;
  width: 100%;
  margin-top: 5px;
  background: none;
  border: 0;
  font-size: clamp(14px, 1.45vw, 23px);
  letter-spacing: normal;
  font-weight: 500;
}
.filters .dark-button {
  margin-left: 15px;
}
.price {
  position: relative;
}
.price summary {
  list-style: none;
}
.price summary span::after {
  content: "⌄";
  float: right;
}
.price > div {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  background: var(--paper);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  width: 200px;
}
.price input {
  width: 100%;
  margin-top: 4px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.key {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  filter: drop-shadow(1px 9px 6px #0008);
}
.stage-key {
  position: absolute;
  width: 22%;
  aspect-ratio: 2.5;
  top: 51%;
  right: 5%;
  transform: rotate(-17deg);
}
.wash {
  background: var(--ivory);
  opacity: 0;
}
.catalog {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header));
  background: radial-gradient(
    ellipse at 64% 30%,
    #fff7eb,
    #f4e5d4 72%,
    #efd5b6
  );
  scroll-margin-top: var(--header);
  overflow: clip;
}
.catalog-inner {
  position: relative;
  width: min(88%, 1600px);
  margin: auto;
  padding: 36px 0 65px;
}
.catalog-edge {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  width: 3.5%;
  background-image:
    linear-gradient(90deg, #0c0806a0, #9c603428), url(assets/walnut.webp);
  border-color: #d8a577;
}
.catalog-edge.left {
  left: 0;
  border-right: 2px solid #ffd084;
}
.catalog-edge.right {
  right: 0;
  border-left: 2px solid #ffd084;
  transform: scaleX(-1);
}
.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 4%;
  margin-bottom: 22px;
}
.catalog-heading .eyebrow {
  color: #915822;
  margin-bottom: 15px;
}
.catalog h2 {
  font-size: clamp(42px, 5.6vw, 104px);
}
.catalog h2 em {
  color: #a87740;
}
.catalog .subtitle {
  margin-top: 13px;
}
.catalog-signature {
  text-align: center;
  padding-right: 5%;
}
.catalog-signature p {
  font: italic clamp(16px, 2vw, 32px) var(--display);
  margin: 12px 0 0;
}
.signature-key {
  width: 180px;
  aspect-ratio: 2.7;
  margin: auto;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 1.54fr 1fr;
  gap: 20px;
  align-items: start;
}
.toolbar,
.tabs {
  display: flex;
  gap: 7px;
  align-items: center;
}
.toolbar {
  min-height: 48px;
  margin: 16px 0 24px;
  flex-wrap: wrap;
}
.tabs button,
.soft,
.query {
  border: 1px solid var(--line);
  background: #fff7ecbd;
  border-radius: 12px;
  padding: 10px 12px;
  white-space: nowrap;
}
.tabs button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}
.query {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 145px;
  gap: 6px;
}
.query input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.property {
  min-width: 0;
  background: #fffaf2;
  border: 1px solid #decdb8;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.property:hover,
.property.active {
  border-color: #a86c20;
  box-shadow: 0 0 0 2px #e4af54;
}
.property-photo {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
}
.property-photo img {
  width: 100%;
  aspect-ratio: 1.75;
  object-fit: cover;
  transition: transform 0.35s;
}
.property:hover img {
  transform: scale(1.04);
}
.property-copy {
  padding: 12px 14px 15px;
}
.property-title {
  font: 600 clamp(16px, 1.7vw, 26px) / 1.05 var(--display);
  text-align: left;
  padding: 0;
  margin: 8px 0 4px;
}
.demo {
  display: inline-block;
  background: #f0d4aa;
  color: #563719;
  border-radius: 99px;
  padding: 3px 8px;
  font-size: 11px;
}
.property p {
  margin: 5px 0;
  font-size: 13px;
  color: #4b5260;
}
.property-price {
  color: var(--ink);
  font-weight: 700;
}
.favorite {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #172136b0;
  color: white;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 19px;
}
.favorite[aria-pressed="true"] {
  background: #89602d;
}
.map-frame {
  position: relative;
  height: clamp(370px, 51vh, 560px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--white);
  background: #e6d9c3;
}
.map-frame #map,
#map-dock #map {
  width: 100%;
  height: 100%;
}
.map-expand {
  position: absolute;
  z-index: 410;
  bottom: 25px;
  right: 12px;
}
.leaflet-container {
  font-family: var(--body) !important;
  background: #e6d9c3 !important;
}
.leaflet-tile-pane {
  filter: sepia(0.25) saturate(0.8);
}
.marker-shell {
  background: none;
  border: 0;
}
.marker {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  background: var(--navy);
  border: 2px solid #e8be76;
  color: white;
  border-radius: 99px;
  padding: 6px 10px;
  box-shadow: 0 3px 7px #0004;
  font-weight: 650;
  white-space: nowrap;
}
.marker::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  background: inherit;
  border-right: 2px solid #e8be76;
  border-bottom: 2px solid #e8be76;
  transform: rotate(45deg);
  z-index: -1;
}
.marker.active {
  background: #9b641e;
}
.map-pop img {
  width: 155px;
  height: 86px;
  object-fit: cover;
  border-radius: 6px;
}
.map-pop button {
  padding: 5px 0;
  text-align: left;
  font-weight: 700;
}
.map-unavailable {
  padding: 20px;
}
#mobile-map {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  max-width: min(690px, calc(100% - 28px));
  width: 100%;
  max-height: 90svh;
  overflow: auto;
}
dialog::backdrop {
  background: #101725b8;
}
dialog[open] {
  animation: enter 0.35s both;
}
.dialog-close {
  position: sticky;
  float: right;
  z-index: 600;
  top: 12px;
  margin: 12px 12px -56px 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 25px;
}
.modal-content {
  padding: 25px;
}
.modal-content h3 {
  font: 400 clamp(24px, 5vw, 42px) / 1.05 var(--display);
  margin: 4px 35px 14px 0;
}
.detail-photo {
  width: 100%;
  max-height: 46vh;
  object-fit: cover;
  animation: unlock 0.65s both;
}
.booking,
.catalog-filters {
  display: grid;
  gap: 12px;
}
.booking input,
.catalog-filters input,
.catalog-filters select {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
}
.saved-cover {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.success {
  padding: 12px 0;
  font-weight: 650;
}
.turn {
  display: inline-block;
  animation: turn 0.7s both;
  color: #a87740;
}
.flying-key {
  position: fixed;
  z-index: 700;
  pointer-events: none;
  color: #c69346;
  font-size: 24px;
}
.saved-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.saved-row button:first-child {
  text-align: left;
}
#map-dialog {
  width: min(96%, 1400px);
  max-width: none;
}
#map-dock {
  height: 85svh;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes unlock {
  from {
    clip-path: circle(5% at 50% 47%);
  }
  to {
    clip-path: circle(75% at 50% 50%);
  }
}
@keyframes turn {
  from {
    transform: rotateX(0) scale(1.4);
  }
  to {
    transform: rotateX(360deg) scale(1);
  }
}
@media (max-width: 1100px) {
  .header {
    gap: 12px;
  }
  .header nav {
    gap: 22px;
  }
  .catalog-inner {
    width: 90%;
  }
  .catalog-layout {
    gap: 12px;
  }
  .toolbar {
    margin-top: 0;
  }
  .contact {
    display: none;
  }
}
@media (max-width: 850px) {
  :root {
    --header: 62px;
  }
  .header nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--navy);
    padding: 14px 5%;
    flex-wrap: wrap;
  }
  .header nav.open {
    display: flex;
  }
  .header {
    justify-content: flex-start;
  }
  .menu {
    display: block;
    margin-left: auto;
    color: var(--paper);
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 7px 12px;
  }
  .ring-button {
    margin-left: 0;
  }
  .hero-inner {
    padding-top: 55px;
  }
  .hero-copy h1 {
    font-size: clamp(51px, 8.6vw, 82px);
  }
  .portal {
    left: 50%;
    width: 45%;
    height: 70%;
    top: 8%;
  }
  .scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #101623e8, transparent 80%);
    z-index: 1;
  }
  .stage-key {
    z-index: 2;
  }
  .wash {
    z-index: 3;
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 13px;
  }
  .filters > label,
  .filters > .price {
    padding: 0 7px;
  }
  .filters .dark-button {
    grid-column: 1/-1;
    margin: 0;
  }
  .catalog-signature {
    display: none;
  }
  .catalog-heading {
    padding-left: 0;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .map-frame {
    display: none;
  }
  #mobile-map {
    display: inline-block;
  }
  .cards {
    gap: 12px;
  }
}
@media (max-width: 520px) {
  .hero-inner {
    min-height: calc(100svh - var(--header));
    padding: 31px 5% 24px;
  }
  .hero-copy {
    padding: 0;
  }
  .hero-copy h1 {
    font-size: clamp(43px, 10vw, 56px);
  }
  .hero-copy .eyebrow {
    margin-bottom: 16px;
  }
  .subtitle {
    margin-top: 16px;
  }
  .gold-button {
    margin-top: 17px;
    padding: 10px 13px;
  }
  .portal {
    top: 23%;
    left: 35%;
    width: 57%;
    height: 48%;
    opacity: 0.93;
  }
  .scene::before {
    background:
      linear-gradient(141deg, #111a2bef 9%, #131927a8 36%, transparent 68%),
      linear-gradient(0deg, #171620 10%, transparent 54%);
  }
  .door-left {
    width: 51%;
  }
  .stage-key {
    width: 42%;
    right: 2%;
    top: 45%;
  }
  .search-wrap {
    margin-top: 190px;
  }
  .hero-tabs {
    margin-bottom: 6px;
  }
  .filters {
    gap: 9px;
  }
  .filters select,
  .price summary span {
    font-size: 14px;
  }
  .filters .dark-button {
    padding: 9px;
  }
  .catalog-heading {
    margin-bottom: 17px;
  }
  .catalog-inner {
    padding-top: 31px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .toolbar {
    gap: 6px;
    margin-bottom: 15px;
  }
  .tabs {
    width: 100%;
  }
  .tabs button,
  .soft {
    padding: 8px 9px;
  }
  .property-title {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@font-face {
  font-family: Cormorant;
  src: url(node_modules/@fontsource-variable/cormorant-garamond/files/cormorant-garamond-latin-wght-normal.woff2)
    format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url(node_modules/@fontsource-variable/cormorant-garamond/files/cormorant-garamond-latin-wght-italic.woff2)
    format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Cormorant Ext;
  src: url(node_modules/@fontsource-variable/cormorant-garamond/files/cormorant-garamond-latin-ext-wght-normal.woff2)
    format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Cormorant Ext;
  src: url(node_modules/@fontsource-variable/cormorant-garamond/files/cormorant-garamond-latin-ext-wght-italic.woff2)
    format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
:root {
  --display: Cormorant, "Cormorant Ext", Georgia, serif;
}
@supports (clip-path: shape(from 0 0, line to 100% 100%, close)) {
  :root {
    --keyhole: shape(
      from 50% 0%,
      curve to 100% 35% with 77.6% 0% / 100% 15.7%,
      curve to 83% 65% with 100% 48% / 92% 57%,
      line to 96% 100%,
      line to 4% 100%,
      line to 17% 65%,
      curve to 0% 35% with 8% 57% / 0% 48%,
      curve to 50% 0% with 0% 15.7% / 22.4% 0%,
      close
    );
  }
}
h1,
h2 {
  font-weight: 500;
  letter-spacing: -0.05em;
}
.hero-copy h1 {
  font-size: clamp(52px, 6.5vw, 121px);
}
.property-photo img {
  height: auto;
  aspect-ratio: 1.75;
}
.property-title {
  font-size: clamp(19px, 1.9vw, 28px);
}
.stage-key,
.signature-key {
  aspect-ratio: 1.79;
  background: url(assets/key.webp) center/contain no-repeat;
  filter: drop-shadow(0 0 12px #ffae4675);
}
.stage-key {
  transform: none;
  right: 5%;
  top: 46%;
  width: 22%;
}
.signature-key {
  transform: rotate(13deg);
}

.ring-button svg,
.turn svg,
.flying-key svg {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
}
@media (max-width: 850px) {
  .hero-copy h1 {
    font-size: clamp(51px, 9vw, 84px);
  }
}
@media (max-width: 520px) {
  .hero-copy h1 {
    font-size: clamp(45px, 11.4vw, 58px);
  }
  .stage-key {
    width: 40%;
    right: 1%;
    top: 43%;
  }
}
@font-face {
  font-family: DM Sans;
  src: url(node_modules/@fontsource-variable/dm-sans/files/dm-sans-latin-wght-normal.woff2)
    format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: DM Sans Ext;
  src: url(node_modules/@fontsource-variable/dm-sans/files/dm-sans-latin-ext-wght-normal.woff2)
    format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --body: "DM Sans", "DM Sans Ext", system-ui, sans-serif;
}
#map-dock {
  isolation: isolate;
}
#map-dialog .dialog-close {
  position: absolute;
  right: 10px;
  top: 8px;
  margin: 0;
}
#map-dialog .leaflet-top.leaflet-right {
  top: 58px;
}
@media (max-width: 850px) {
  #map-dialog {
    width: 100%;
    max-width: none;
    max-height: 100svh;
    height: 100svh;
    border: 0;
    border-radius: 0;
    margin: 0;
  }
  #map-dock {
    height: 100%;
  }
}

.favorite svg,
.marker svg,
.saved-row svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.13em;
}

/* Two-city discovery and editorial sections */
:root {
  --ba-scene: url(assets/bratislava.webp);
}
:root[data-city="ba"] .portal-image {
  background-image: var(--ba-scene);
}
.hero-options,
.catalog-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-options {
  margin-bottom: 10px;
}
.hero-options .hero-tabs {
  margin: 0;
}
.city-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--gold);
  border-radius: 99px;
  white-space: nowrap;
}
.city-switch button {
  padding: 6px 12px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 14px;
}
.city-switch button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--ink);
}
.hero-options .city-switch {
  background: var(--navy);
}
.catalog-meta {
  margin: -9px 0 8px;
  gap: 9px;
}
.catalog-meta .soft {
  padding: 8px 12px;
}
.catalog-meta .soft[aria-pressed="true"] {
  background: var(--navy);
  color: var(--paper);
}
.sort {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.sort select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 8px;
  max-width: 160px;
}
.result-count {
  margin: 8px 0 12px;
  color: #505764;
  font-size: 14px;
}
.illustrative {
  display: block;
  color: #655542;
  font-size: 11px;
  margin-bottom: 4px;
}
.compare-table {
  overflow: auto;
  margin-bottom: 18px;
}
.compare-table table {
  border-collapse: collapse;
  width: 100%;
  min-width: 360px;
  text-align: left;
}
.compare-table caption {
  text-align: left;
  font-weight: 700;
  margin: 0 0 8px;
}
.compare-table th,
.compare-table td {
  padding: 9px;
  border-bottom: 1px solid var(--line);
}
.city-editorial,
.guide,
.contact-editorial {
  scroll-margin-top: var(--header);
}
.editorial-shell {
  width: min(88%, 1420px);
  margin: auto;
  padding: clamp(48px, 8vw, 120px) 0;
}
.city-editorial {
  color: var(--paper);
  background: radial-gradient(
    ellipse at 75% 10%,
    var(--midnight),
    var(--navy) 66%,
    #101827
  );
}
.editorial-shell h2 {
  font-size: clamp(49px, 6vw, 100px);
}
.city-editorial h2 em,
.contact-editorial h2 em {
  color: #eac18b;
}
.city-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 34px;
}
.city-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(22px, 4vw, 56px);
  position: relative;
  isolation: isolate;
  min-height: clamp(265px, 32vw, 490px);
  border: 1px solid var(--gold);
  border-radius: 120px 120px 12px 12px;
  overflow: hidden;
  text-align: left;
  color: var(--white);
}
.city-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(0deg, #0c1323ed, transparent 72%), var(--city-picture);
  background-position: center;
  background-size: cover;
  transition: transform 0.65s ease;
}
.city-panel:hover::before {
  transform: scale(1.055);
}
.city-ke {
  --city-picture: url(assets/interior.webp);
}
.city-ba {
  --city-picture: var(--ba-scene);
}
.city-panel span {
  font: 500 clamp(46px, 6vw, 92px) / 0.85 var(--display);
}
.city-panel small {
  margin-top: 17px;
  font-size: clamp(13px, 1.5vw, 18px);
  color: #ebd6b4;
}
.image-credit {
  color: #d8c6af;
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
}
.guide {
  background: var(--ivory);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}
.guide-grid article {
  padding: clamp(19px, 3vw, 37px);
  border-top: 1px solid var(--gold);
  background: var(--paper);
}
.guide-grid h3 {
  font: 600 clamp(26px, 3.2vw, 43px) / 1 var(--display);
  margin: 0 0 15px;
}
.guide-grid p,
.contact-grid p {
  line-height: 1.6;
}
.guide-grid a,
.guide-grid button {
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 650;
}
.contact-editorial {
  background: var(--navy);
  color: var(--paper);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 7vw, 110px);
  align-items: center;
}
.faq details {
  border-bottom: 1px solid #c9a47575;
  padding: 17px 0;
}
.faq summary {
  font-size: clamp(16px, 1.6vw, 23px);
  font-weight: 600;
}
.faq details p {
  color: #e7d8c6;
}
.page-footer {
  background: #111928;
  color: var(--paper);
  padding: 24px 6%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #c9a47555;
}
@media (max-width: 850px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .city-panel {
    border-radius: 80px 80px 12px 12px;
  }
}
@media (max-width: 560px) {
  .hero-options {
    gap: 8px 11px;
    margin-bottom: 8px;
  }
  .hero-options .hero-tabs {
    gap: 10px;
  }
  .hero-options .hero-tabs button {
    padding: 5px 2px;
    font-size: 13px;
  }
  .city-switch button {
    padding: 5px 8px;
    font-size: 13px;
  }
  .city-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .city-panel {
    min-height: 235px;
    border-radius: 64px 64px 12px 12px;
  }
  .contact-grid .gold-button {
    white-space: normal;
  }
}

:root[data-city="ba"] .portal-image {
  background-position: 56% center;
}

.guide-visual {
  position: relative;
  margin: clamp(24px, 4vw, 45px) 0 0;
  border-radius: 16px;
  overflow: hidden;
}
.guide-visual img {
  width: 100%;
  height: clamp(245px, 37vw, 510px);
  object-fit: cover;
  object-position: center 58%;
}
.guide-visual figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--paper);
  font-size: 12px;
}

/* Opening city selection */
.entry-active {
  overflow: hidden;
}
.entry {
  position: fixed;
  inset: 0;
  z-index: 890;
  overflow: auto;
  color: var(--paper);
  background: radial-gradient(
    ellipse at 50% 4%,
    var(--midnight),
    var(--navy) 53%,
    #101725
  );
  padding: 20px max(5vw, 16px) 16px;
}
.entry-top {
  display: flex;
  justify-content: center;
}
.entry-top img {
  width: clamp(150px, 16vw, 230px);
  height: auto;
  mix-blend-mode: lighten;
}
.entry-heading {
  text-align: center;
  margin: clamp(14px, 2.3vh, 28px) auto;
}
.entry-heading .eyebrow {
  justify-content: center;
  margin-bottom: 12px;
}
.entry-heading .eyebrow::after {
  content: none;
}
.entry-heading h1 {
  font-size: clamp(47px, 6vw, 105px);
  line-height: 0.88;
}
.entry-heading h1 em {
  display: inline-block;
}
.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1500px;
  gap: clamp(12px, 1.7vw, 25px);
  margin: clamp(16px, 3.5vh, 36px) auto 0;
}
.entry-ke {
  --entry-art: url(assets/kosice-gate.webp);
}
.entry-ba {
  --entry-art: url(assets/bratislava.webp);
}
.entry-card,
.entry-flight {
  border-radius: clamp(33px, 7vw, 110px) clamp(33px, 7vw, 110px) 11px 11px;
  border: 1px solid #ddbb807a;
  overflow: hidden;
  background: var(--navy);
}
.entry-card {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(285px, 52svh, 690px);
  padding: clamp(17px, 3.1vw, 47px);
  box-shadow: 0 18px 48px #050b1575;
}
.entry-photo,
.entry-film {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.entry-photo,
.entry-flight {
  background-image: var(--entry-art);
  background-size: cover;
  background-position: center;
}
.entry-photo {
  transition: transform 0.85s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.entry-film {
  background: linear-gradient(0deg, #080f1beb, #0d172760 37%, transparent 76%);
}
.entry-card:hover .entry-photo,
.entry-card:focus-visible .entry-photo {
  transform: scale(1.075);
}
.entry-card-copy {
  display: grid;
  gap: 9px;
}
.entry-card strong {
  font: 500 clamp(53px, 7vw, 118px) / 0.78 var(--display);
  letter-spacing: -0.045em;
}
.entry-card-copy > span {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #f6ddae;
  font-size: clamp(13px, 1.35vw, 21px);
  margin-top: 8px;
}
.entry-card b {
  display: inline-grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  border: 1px solid var(--gold);
  transition: transform 0.25s ease;
}
.entry-card:hover b {
  transform: translate(4px, -3px);
}
.entry-credit {
  text-align: center;
  color: #e0ceb4;
  font-size: 11px;
  margin: 14px 0 0;
}
.entry-flight {
  position: fixed;
  z-index: 2;
  pointer-events: none;
}
.city-ke {
  --city-picture: url(assets/kosice-gate.webp);
}
.matchmaker {
  background: var(--navy);
  color: var(--paper);
  scroll-margin-top: var(--header);
}
.match-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(20px, 6vw, 95px);
}
.match-layout p:not(.eyebrow) {
  max-width: 42ch;
  line-height: 1.6;
  color: #eadbca;
}
.match-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(16px, 3vw, 36px);
  background: #25304c8c;
  border: 1px solid #c9a47562;
  border-radius: 14px;
}
.match-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: 14px;
}
.match-form input,
.match-form select {
  width: 100%;
  min-width: 0;
  padding: 10px 8px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.match-form button {
  grid-column: 1/-1;
  margin-top: 0;
  white-space: normal;
}
@media (max-width: 680px) {
  .entry {
    padding-top: 15px;
  }
  .entry-heading h1 {
    font-size: clamp(42px, 10.6vw, 66px);
  }
  .entry-grid {
    grid-template-columns: 1fr;
  }
  .entry-card {
    min-height: clamp(181px, 28svh, 290px);
    border-radius: 44px 44px 9px 9px;
  }
  .entry-card strong {
    font-size: clamp(50px, 14vw, 78px);
  }
  .entry-credit {
    margin-top: 10px;
  }
  .match-layout {
    grid-template-columns: 1fr;
  }
}

/* The heading receives programmatic focus; city links retain keyboard outlines. */
#entry-title:focus {
  outline: none;
}

/* Virtual viewing, public agency profile and team */
#tour-feature,
#team,
#reviews {
  scroll-margin-top: var(--header);
}
.tour-feature {
  position: relative;
  isolation: isolate;
  min-height: min(85svh, 900px);
  display: grid;
  align-items: end;
  overflow: clip;
  color: var(--paper);
  background: var(--wood);
}
.story-art {
  overflow: hidden;
}
.story-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tour-feature > .story-art,
.tour-feature::after {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.tour-feature::after {
  content: "";
  background:
    linear-gradient(87deg, #101827e8, transparent 92%),
    linear-gradient(0deg, #151725b0, transparent 86%);
}
.tour-feature-inner {
  padding-block: clamp(48px, 10vw, 132px);
}
.tour-feature h2 {
  font-size: clamp(65px, 10vw, 148px);
}
.tour-feature p:not(.eyebrow) {
  max-width: 39ch;
  font-size: clamp(16px, 2vw, 23px);
  line-height: 1.5;
}
.tour-feature small {
  display: block;
  margin-top: 15px;
  color: #eee0cc;
}
.team {
  background: var(--ivory);
}
.team-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 6vw, 92px);
  align-items: center;
}
.team h2 em {
  color: #8c5f2c;
}
.team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 22px 0 24px;
  list-style: none;
}
.team-list li {
  border-top: 1px solid var(--gold);
  padding: 12px 0;
  font-weight: 600;
}
.team .soft,
.feedback .soft {
  display: inline-block;
  white-space: normal;
}
.team-visual {
  margin: 0;
}
.team-visual .story-art {
  border-radius: 100px 100px 10px 10px;
  aspect-ratio: 1.23;
}
.team-visual figcaption {
  font-size: 12px;
  margin-top: 10px;
  color: #655542;
}
.feedback {
  background: #ead9c1;
}
.feedback-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 20px;
  padding-block: clamp(37px, 5.5vw, 78px);
}
.agency-contact {
  display: grid;
  gap: 6px;
  margin: 25px 0 16px;
  font-style: normal;
}
.agency-contact a,
.social-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 17px;
}
.card-tour {
  display: block;
  padding: 0;
  color: #795222;
  font-size: 14px;
  font-weight: 650;
  margin-top: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.tour-link {
  margin-top: 12px;
}
#tour-dialog {
  width: min(96%, 1280px);
  max-width: none;
  max-height: 96svh;
  color: var(--paper);
  background: var(--navy);
  border-color: var(--gold);
}
.tour-heading {
  padding: 16px 55px 15px 22px;
}
.tour-heading .eyebrow {
  margin: 0 0 8px;
}
.tour-heading h3 {
  font: 500 clamp(25px, 4vw, 46px) / 0.95 var(--display);
  margin: 0;
}
#tour-viewport {
  position: relative;
  background: #373529;
  width: 100%;
  height: min(59svh, 670px);
  overflow: hidden;
}
#tour-viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
#tour-viewport canvas:active {
  cursor: grabbing;
}
#tour-fallback {
  margin: 0;
  width: 100%;
  height: 100%;
}
#tour-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tour-controls {
  padding: 12px 18px 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 13px;
}
#tour-status {
  color: #eac18b;
  margin: 0;
  min-width: 76px;
  font-weight: 600;
}
#tour-rooms,
#tour-move {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tour-controls .soft {
  color: var(--ink);
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 13px;
}
.tour-controls .soft[aria-pressed="true"] {
  background: var(--gold);
}
.tour-help {
  flex-basis: 100%;
  margin: 0;
  color: #ecdecc;
  font-size: 13px;
}
@media (max-width: 700px) {
  .team-layout,
  .feedback-layout {
    grid-template-columns: 1fr;
  }
  .team-visual .story-art {
    border-radius: 52px 52px 8px 8px;
    aspect-ratio: 1.42;
  }
  .tour-feature {
    min-height: 72svh;
  }
  .tour-feature > .story-art img {
    object-position: 62% center;
  }
  #tour-viewport {
    height: min(52svh, 550px);
  }
}

#tour-dialog .dialog-close {
  color: var(--ink);
}

#tour-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-basis: 100%;
}
#tour-modes button[aria-pressed="false"] {
  color: var(--paper);
  background: transparent;
  border-color: var(--gold);
}

/* Three-chapter scroll film */
.hero-actions {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-film-link {
  color: var(--paper);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hero-film-link span {
  display: inline-block;
  transition: transform 0.25s ease;
}
.hero-film-link:hover span {
  transform: translateY(4px);
}
.film {
  scroll-margin-top: var(--header);
  background: #141726;
}
.film-stage {
  --film-wash: 0;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: calc(100svh - var(--header));
  min-height: 435px;
  overflow: clip;
  color: var(--paper);
  background: #1c1618;
}
.film-media,
.film-media video,
.film-media::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.film-media {
  z-index: -1;
  background: #20191a url(assets/golden-film-poster.webp) center/cover no-repeat;
}
.film-media video {
  object-fit: cover;
  object-position: center;
}
.film-media::after {
  content: "";
  background:
    linear-gradient(90deg, #0e1421b5, transparent 78%),
    linear-gradient(0deg, #111724e8, transparent 49%);
}
.film-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--ivory);
  opacity: var(--film-wash);
}
.film-chrome {
  width: min(88%, 1540px);
  height: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 7vh, 86px) 0 clamp(19px, 5vh, 60px);
}
.film-copy {
  max-width: min(100%, 620px);
}
.film-copy h2 {
  font-size: clamp(56px, 8vw, 132px);
  text-wrap: balance;
}
.film-copy p:not(.eyebrow) {
  font-size: clamp(15px, 1.65vw, 22px);
  max-width: 33ch;
}
.film-skip {
  display: inline-block;
  padding: 7px 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.film-progress {
  width: min(100%, 740px);
  margin-top: auto;
}
.film-meter {
  background: #eee2cf48;
  height: 2px;
  overflow: hidden;
}
#film-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
}
.film-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.film-steps button {
  text-align: left;
  padding: 12px 0;
  font-weight: 650;
  color: #ddd3c5;
}
.film-steps button[aria-current="step"] {
  color: #ffd28d;
}
.film-stage[data-media-error="true"] .film-media {
  background-image: url(assets/tour-living.webp);
}
.film-stage[data-media-error="true"] video {
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .film-stage {
    height: auto;
    min-height: 0;
  }
  .film-media {
    background-image: url(assets/tour-living.webp);
  }
  .film-media video {
    display: none;
  }
  .film-chrome {
    padding-block: 60px;
  }
}
@media (max-width: 680px) {
  .hero-actions {
    gap: 10px 15px;
  }
  .hero-film-link {
    font-size: 13px;
  }
  .film-chrome {
    justify-content: space-between;
    padding-top: 10vh;
  }
  .film-copy h2 {
    font-size: clamp(47px, 11vw, 76px);
    text-wrap: wrap;
  }
  .film-steps button {
    font-size: 13px;
  }
}

.catalog-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
}
.catalog-context .soft {
  padding: 7px 11px;
}
.catalog-context .soft[aria-pressed="true"] {
  color: var(--paper);
  background: var(--navy);
}
.catalog-reset {
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 7px 0;
}
.empty-results {
  grid-column: 1/-1;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 24px;
}
.empty-results h3 {
  margin: 0;
  font: 600 34px/1 var(--display);
}
.empty-results .dark-button {
  margin-top: 7px;
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.detail-facts > div {
  background: var(--ivory);
  border-radius: 8px;
  padding: 10px;
}
.detail-facts dt {
  font-size: 12px;
  color: #57514b;
}
.detail-facts dd {
  margin: 4px 0 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.detail-location {
  color: #555065;
  margin: 8px 0;
}
.districts {
  background: #efe0cb;
  scroll-margin-top: var(--header);
}
.districts h2 em {
  color: #865925;
}
.district-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.district-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.district-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.65;
  object-fit: cover;
}
.district-copy {
  padding: clamp(17px, 2.5vw, 29px);
}
.district-copy h3 {
  font: 600 clamp(28px, 3.2vw, 47px) / 1 var(--display);
  margin: 0;
}
.district-copy p {
  min-height: 3em;
  line-height: 1.45;
  color: #4c4a48;
}
.district-copy button {
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 650;
  text-align: left;
}
@media (max-width: 740px) {
  .district-grid {
    grid-template-columns: 1fr;
  }
  .district-copy p {
    min-height: 0;
  }
  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A poster remains in place until the first decoded video frame is ready. */
.film-media video {
  opacity: 0;
  object-position: 54% center;
}
.film-stage[data-video-ready="true"] .film-media video {
  opacity: 1;
}
.film-media::after {
  background:
    linear-gradient(90deg, #1217209b, transparent 72%),
    linear-gradient(0deg, #101620ce, transparent 44%);
}
.marker {
  padding: 4px 7px;
  border-width: 1px;
  line-height: 1.2;
  font-size: 12px;
  box-shadow: 0 2px 5px #17213633;
}
.marker::after {
  border-width: 1px;
}
.marker.marker-dot:not(.active) {
  width: 13px;
  height: 13px;
  bottom: 0;
  padding: 0;
  font-size: 0;
  border: 2px solid #f3ba65;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff7ea96;
}
.marker.marker-dot:not(.active)::after {
  display: none;
}
.property:hover,
.property.active {
  box-shadow: 0 8px 20px #442c1917;
  border-color: #b58a53;
}
.property-title {
  line-height: 1.08;
}
@media (min-width: 851px) {
  .map-frame {
    position: sticky;
    top: calc(var(--header) + 22px);
    height: clamp(370px, 62vh, 720px);
    align-self: start;
  }
}

/* Ambient films remain inside the city cards and keyhole, never behind text. */
.ambient-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.ambient-video[data-frame-ready="true"] {
  opacity: 1;
}
.portal-video {
  display: none;
}
:root[data-city="ke"] .portal-video[data-portal-city="ke"],
:root[data-city="ba"] .portal-video[data-portal-city="ba"] {
  display: block;
}
:root[data-city="ba"] .portal-image {
  background-image: url(assets/tour-living.webp);
}
.portal-video[data-portal-city="ke"] {
  object-position: 52% center;
}
.portal-video[data-portal-city="ba"] {
  object-position: 54% center;
}
.entry-foot {
  width: min(100%, 1500px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 18px;
  margin: 12px auto 0;
}
.entry-foot .entry-credit {
  margin: 0;
  text-align: left;
}
.ambient-control {
  color: #f1e4d3;
  padding: 4px 0;
  min-height: 27px;
  font-size: 12px;
  text-underline-offset: 4px;
  text-decoration: underline;
  opacity: 0.9;
}
.ambient-control:hover {
  opacity: 1;
}
.hero-motion {
  color: var(--paper);
}
@media (prefers-reduced-motion: reduce) {
  .ambient-video {
    display: none !important;
  }
}
@media (max-width: 560px) {
  .entry-foot {
    margin-top: 9px;
  }
  .hero-actions .hero-motion {
    font-size: 11px;
  }
}

/* Locale controls and editorial scroll chapters */
@font-face {
  font-family: "Cormorant Cyrillic";
  src: url(node_modules/@fontsource-variable/cormorant-garamond/files/cormorant-garamond-cyrillic-wght-normal.woff2)
    format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Cyrillic";
  src: url(node_modules/@fontsource-variable/cormorant-garamond/files/cormorant-garamond-cyrillic-wght-italic.woff2)
    format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
:root[lang="uk"] {
  --display: "Cormorant Cyrillic", Cormorant, Georgia, serif;
}
.language-picker {
  display: inline-flex;
}
.language-picker select {
  appearance: auto;
  min-height: 36px;
  padding: 4px 7px;
  color: var(--paper);
  background: var(--navy);
  border: 1px solid #ddbb807a;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.entry-top {
  position: relative;
}
.entry-language {
  position: absolute;
  inset: 0 0 auto auto;
}
.header {
  gap: 13px;
}
.header nav {
  gap: clamp(12px, 2vw, 31px);
}
.story-headline em {
  transform-origin: 0 100%;
}
.district-lead {
  position: relative;
  isolation: isolate;
  min-height: clamp(270px, 38vw, 490px);
  display: grid;
  align-items: end;
  overflow: clip;
  border-radius: 18px;
  padding: clamp(22px, 5vw, 72px);
  color: var(--paper);
  background: var(--wood);
}
.district-lead .story-art,
.chapter-background {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.district-lead::after,
.chapter-background::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.district-lead::after {
  z-index: -1;
  background:
    linear-gradient(90deg, #19171bd9, transparent 92%),
    linear-gradient(0deg, #1a181bc0, transparent 75%);
}
.district-lead h2 em {
  color: #f4d49f;
}
.story-art {
  position: relative;
}
.tour-feature > .story-art,
.district-lead > .story-art,
.story-art.chapter-background {
  position: absolute;
}
.chapter-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.chapter-video[data-frame-ready="true"] {
  opacity: 1;
}
.matchmaker,
.contact-editorial {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.chapter-background::after {
  background: linear-gradient(90deg, #0e1621ef, #121a29d5 53%, #151d2bb8);
}
.contact-editorial .chapter-background::after {
  background: linear-gradient(90deg, #111a29ed, #141b2ae3 53%, #161c28a8);
}
@media (max-width: 1080px) {
  .header nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--navy);
    padding: 14px 5%;
    flex-wrap: wrap;
  }
  .header nav.open {
    display: flex;
  }
  .header .menu {
    display: block;
    margin-left: auto;
    color: var(--paper);
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 7px 11px;
  }
  .header .ring-button {
    margin-left: 0;
  }
}
@media (max-width: 460px) {
  .header {
    gap: 7px;
  }
  .header .brand img {
    width: clamp(108px, 38vw, 165px);
  }
  .header .menu {
    padding: 6px 8px;
  }
  .header .ring-button {
    padding: 6px 9px;
    white-space: nowrap;
  }
  .hero-actions .gold-button {
    white-space: normal;
  }
  .language-picker select {
    min-height: 32px;
  }
  .entry-language {
    inset-inline-end: -3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chapter-video {
    display: none;
  }
}
