:root {
  --color-primary: #3D5A40;
  --color-accent: #C6975F;
  --color-secondary: #A65E3F;
  --color-background: #F3EEE3;
  --color-surface: #ffffff;
  --color-text: #352C21;
  --color-muted: color-mix(in srgb, var(--color-text) 72%, var(--color-background));
  --color-line: rgba(53, 44, 33, 0.13);
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", Arial, sans-serif;
  --radius-large: 30px;
  --radius-medium: 20px;
  --shadow-soft: 0 12px 35px rgba(53, 44, 33, 0.08);
  --shadow-strong: 0 28px 80px rgba(53, 44, 33, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 5% 5%, rgba(198, 151, 95, .14), transparent 28rem),
    var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { font: inherit; }
a { color: inherit; }

.page-shell {
  width: min(100%, 1240px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--color-background);
}

.hero {
  position: relative;
  min-height: clamp(430px, 72svh, 610px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--color-primary) center 48% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(53, 44, 33, .54) 0%, rgba(53, 44, 33, .08) 38%, rgba(53, 44, 33, .84) 100%),
    linear-gradient(90deg, rgba(53, 44, 33, .2), transparent 70%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) 18px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 3px 10px;
  border: 1px solid rgba(53, 44, 33, .2);
  border-radius: 18px;
  background: rgba(243, 238, 227, .96);
  box-shadow: 0 8px 26px rgba(53, 44, 33, .12);
  backdrop-filter: blur(14px);
}

.brand-logo {
  display: block;
  width: clamp(96px, 27vw, 112px);
  height: auto;
}

.language-control { position: relative; display: inline-flex; }
.language-control::after {
  content: "⌄";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-57%);
  color: #fff;
  pointer-events: none;
  font-size: 12px;
}

.language-switch {
  min-width: 70px;
  padding: 11px 28px 11px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(53, 44, 33, .34);
  color: #fff;
  font-weight: 700;
  backdrop-filter: blur(14px);
  cursor: pointer;
  appearance: none;
}

.language-switch option { color: var(--color-text); background: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.hero-copy { padding: 48px 18px 54px; }
.eyebrow { margin: 0 0 8px; color: var(--color-secondary); font-size: .74rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.hero .eyebrow { color: #F3EEE3; }
h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  max-width: 830px;
  margin: 0;
  font: 700 clamp(2.55rem, 11vw, 5.3rem)/.94 var(--font-heading);
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 6px 28px rgba(0,0,0,.18);
}

.address {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(53, 44, 33, .35);
  color: rgba(255,255,255,.92);
  font-size: .96rem;
  backdrop-filter: blur(12px);
}

.address .button-icon svg { width: 16px; height: 16px; }
.photo-credit { position: absolute; right: 14px; bottom: 12px; color: rgba(255,255,255,.7); font-size: .62rem; text-decoration: none; }
.photo-credit:hover { color: #fff; text-decoration: underline; }

.content { padding: 0 14px 76px; }

.quick-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: -27px 0 34px;
}

.quick-action {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-soft);
  color: var(--color-primary);
  font-size: .96rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.quick-action.primary { border-color: transparent; background: var(--color-primary); color: #fff; }
.button-icon { display: inline-grid; flex: 0 0 auto; place-items: center; }
.button-icon svg, .card-icon svg, .place-thumb-fallback svg, .card-arrow svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.intro { margin: 0 4px 22px; }
.intro h2 { margin: 0 0 4px; font: 700 clamp(1.65rem, 8vw, 2.25rem)/1.1 var(--font-heading); letter-spacing: -.025em; }
.intro p { margin: 0; color: var(--color-muted); font-size: 1.08rem; line-height: 1.5; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.info-card {
  position: relative;
  min-height: 158px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  color: var(--color-text);
  text-align: left;
  box-shadow: 0 5px 22px rgba(61, 90, 64, .14), 0 1px 3px rgba(61, 90, 64, .07);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.info-card::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -42px;
  top: -42px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-accent) 12%, white);
}

.info-card:active { transform: scale(.975); }
.info-card:hover { transform: translateY(-2px); box-shadow: 0 11px 30px rgba(61, 90, 64, .19); }

.card-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-accent) 16%, white);
  color: var(--color-primary);
}

.card-copy { margin-top: auto; padding-right: 4px; }
.info-card h3 { margin: 0 0 5px; font-size: 1.14rem; line-height: 1.25; letter-spacing: -.01em; }
.info-card p { margin: 0; color: var(--color-muted); font-size: .96rem; line-height: 1.45; }
.card-arrow { position: absolute; right: 12px; top: 13px; display: grid; color: var(--color-primary); opacity: .48; }
.card-arrow svg { width: 16px; height: 16px; }

.footer {
  padding: 40px 22px calc(36px + env(safe-area-inset-bottom));
  background: var(--color-primary);
  color: rgba(255,255,255,.72);
  text-align: center;
  font-size: .84rem;
}
.footer strong { display: block; margin-bottom: 5px; color: #fff; font: 700 1.35rem var(--font-heading); }
.footer p { margin: 0; }
.footer-credit { margin-top: 18px !important; color: rgba(255,255,255,.46); font-size: .64rem; }
.footer-credit a { text-underline-offset: 2px; }

.info-dialog {
  width: min(100%, 620px);
  max-height: min(88svh, 790px);
  margin: auto auto 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px 28px 0 0;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 -18px 60px rgba(13, 22, 19, .24);
}

.info-dialog::backdrop { background: rgba(10, 26, 21, .62); backdrop-filter: blur(5px); animation: backdrop-in .32s ease both; }
.info-dialog[open] { display: flex; flex-direction: column; animation: dialog-in .34s cubic-bezier(.22, 1, .36, 1) both; }
.info-dialog.is-closing { animation: dialog-out .2s ease-in both; pointer-events: none; }
.info-dialog.is-closing::backdrop { animation: backdrop-out .2s ease-in both; }

.dialog-head {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 23px 19px 16px;
  border-bottom: 1px solid var(--color-line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(15px);
}
.dialog-head h2 { margin: 0; font: 700 clamp(1.55rem, 7vw, 2.1rem)/1.08 var(--font-heading); letter-spacing: -.025em; }
.icon-button { width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--color-background); color: var(--color-text); font-size: 1.7rem; cursor: pointer; }
.dialog-content { min-height: 0; flex: 1 1 auto; padding: 18px 16px 34px; overflow-y: auto; overscroll-behavior: contain; }
.dialog-content > p:first-child { margin-top: 0; color: var(--color-muted); font-size: 1.08rem; line-height: 1.55; }

.place-list { display: grid; gap: 11px; }
.place-section-title { margin: 15px 3px 0; color: var(--color-secondary); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.place-section-title:first-child { margin-top: 0; }
.place-item { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border: 0; border-radius: 17px; background: #fff; box-shadow: 0 3px 16px rgba(61, 90, 64, .14), 0 1px 3px rgba(61, 90, 64, .08); }
.place-thumb { width: 68px; height: 68px; display: block; border-radius: 12px; object-fit: cover; background: var(--color-background); }
.place-thumb-button { width: 68px; height: 68px; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: var(--color-background); cursor: zoom-in; }
.place-thumb-fallback { display: grid; place-items: center; color: var(--color-primary); }
.place-body { min-width: 0; padding: 1px 0; }
.place-item h3 { margin: 0 0 6px; font-size: 1.18rem; line-height: 1.32; }
.place-item p { margin: 0 0 12px; color: var(--color-muted); font-size: 1.04rem; line-height: 1.55; }
.place-item.parking-pass-focus { position: relative; z-index: 1; animation: parking-pass-pulse 1.2s ease-in-out both; }
.place-item[data-parking-pass] { box-shadow: 0 6px 24px rgba(61, 90, 64, .25), 0 1px 5px rgba(61, 90, 64, .13); }
.place-item p.place-important { color: var(--color-secondary); }
.place-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0 0 10px; }
.place-gallery button { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: var(--color-background); cursor: zoom-in; }
.place-gallery img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; transition: transform .2s ease; }
.place-gallery button:hover img { transform: scale(1.025); }
.text-link { color: var(--color-primary); font-weight: 750; text-underline-offset: 3px; }
.place-actions { display: flex; flex-wrap: wrap; gap: 8px 15px; }
.place-actions .text-link { font-size: .92rem; }
.copy-button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 8%, white);
  color: var(--color-primary);
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.copy-button:active { transform: scale(.97); }
.copy-button.is-copied { background: var(--color-primary); color: #fff; }
.empty-note { padding: 18px; border-radius: 15px; background: var(--color-background); color: var(--color-muted); }

.contact-list { display: grid; gap: 10px; }
.contact-list a {
  display: block;
  padding: 17px 18px;
  border: 1px solid var(--color-line);
  border-radius: 15px;
  background: var(--color-surface);
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.contact-list a:hover { transform: translateY(-1px); border-color: rgba(61,90,64,.24); box-shadow: var(--shadow-soft); }
.contact-list a:active { transform: scale(.985); }

.image-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.image-dialog::backdrop { background: rgba(5, 13, 10, .94); backdrop-filter: blur(8px); animation: backdrop-in .25s ease both; }
.image-dialog[open] { display: grid; place-items: center; animation: image-in .28s cubic-bezier(.22, 1, .36, 1) both; }
.image-dialog.is-closing { animation: image-out .2s ease-in both; pointer-events: none; }
.image-dialog.is-closing::backdrop { animation: backdrop-out .2s ease-in both; }
.image-dialog img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  display: block;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.image-dialog-close {
  position: fixed;
  z-index: 2;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(12, 25, 20, .68);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.house-picker { min-height: 100svh; padding: 34px 16px 70px; background: var(--color-background); }
.house-picker header { max-width: 760px; margin: 24px auto 29px; }
.house-picker h1 { color: var(--color-primary); }
.house-picker header p { color: var(--color-muted); }
.house-list { max-width: 760px; display: grid; gap: 11px; margin: auto; }
.house-link { display: flex; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid var(--color-line); border-radius: 18px; background: #fff; text-decoration: none; box-shadow: 0 5px 18px rgba(26,36,32,.04); transition: transform .18s ease, box-shadow .18s ease; }
.house-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.house-link strong { display: block; margin-bottom: 3px; }
.house-link span { color: var(--color-muted); font-size: .85rem; }
.house-link b { align-self: center; font-size: 1.25rem; }

.error-state, .loading-state { min-height: 100svh; display: grid; place-content: center; padding: 30px; text-align: center; }
.loading-dot { width: 18px; height: 18px; justify-self: center; border-radius: 50%; background: var(--color-accent); animation: pulse 1s infinite alternate; }

@keyframes pulse { to { opacity: .35; transform: scale(.75); } }
@keyframes parking-pass-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 6px 24px rgba(61, 90, 64, .25), 0 1px 5px rgba(61, 90, 64, .13); } 45% { transform: scale(1.045); box-shadow: 0 16px 40px rgba(61, 90, 64, .34); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dialog-out { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(18px) scale(.99); } }
@keyframes image-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
@keyframes image-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.98); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }

@media (min-width: 720px) {
  body { padding: 26px; }
  .page-shell { min-height: auto; border-radius: 32px; box-shadow: var(--shadow-strong); }
  .hero { min-height: 520px; }
  .topbar { padding: 30px 38px; }
  .hero-copy { padding: 70px 38px 60px; }
  .photo-credit { right: 24px; bottom: 17px; }
  .content { padding: 0 38px 94px; }
  .quick-actions { width: min(590px, 100%); gap: 12px; margin-top: -29px; }
  .quick-action { min-height: 66px; font-size: .97rem; }
  .intro { margin-top: 4px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
  .info-card { min-height: 178px; padding: 20px; }
  .card-icon { width: 44px; height: 44px; margin-bottom: 20px; }
  .info-card h3 { font-size: 1.2rem; }
  .info-card p { font-size: 1rem; }
  .info-dialog { margin: auto; border-radius: 28px; }
  .dialog-head { padding: 26px 26px 18px; }
  .dialog-content { padding: 22px 26px 36px; }
  .place-item { grid-template-columns: 82px minmax(0, 1fr); padding: 14px; gap: 15px; }
  .place-thumb { width: 82px; height: 82px; }
  .place-thumb-button { width: 82px; height: 82px; }
}

@media (min-width: 1080px) {
  body { padding: 34px; }
  .hero { min-height: 560px; }
  .topbar, .hero-copy { padding-left: 54px; padding-right: 54px; }
  .content { padding-left: 54px; padding-right: 54px; }
  .card-grid { gap: 18px; }
  .info-card { min-height: 190px; }
}

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