@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Italiana&display=swap');

:root {
  --ink: #173e38;
  --ink-deep: #0e2e2a;
  --cream: #f4efe5;
  --paper: #fbf8f1;
  --sage: #bac8b4;
  --sage-light: #dfe5d8;
  --gold: #c79759;
  --rust: #b75c3b;
  --line: rgba(23, 62, 56, 0.19);
  --serif: "Italiana", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.hero {
  position: relative; min-height: 760px; height: 94vh; overflow: hidden;
  display: grid; grid-template-columns: 48% 52%; align-items: center;
  padding: 110px clamp(22px, 7vw, 110px) 118px;
  background: var(--ink); color: var(--cream);
}
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 73% 29%, rgba(228,190,125,.22), transparent 26%), linear-gradient(115deg, transparent 40%, rgba(0,0,0,.18)); pointer-events: none; }
.beam { position: absolute; z-index: 1; left: 49%; top: -100px; width: 3px; height: 115%; background: rgba(244,239,229,.12); transform: rotate(25deg); transform-origin: top; }
.beam-two { left: 75%; transform: rotate(-18deg); }
.hero-copy { position: relative; z-index: 3; max-width: 650px; }
.eyebrow { margin: 0 0 16px; text-transform: uppercase; letter-spacing: .22em; font-size: 11px; font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: .98; }
h1 { font-size: clamp(64px, 8vw, 124px); letter-spacing: -.03em; }
h1 i { color: #d6b987; }
.hero-intro { max-width: 470px; margin: 30px 0; color: rgba(244,239,229,.78); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; }
.text-link { color: inherit; text-decoration: none; display: inline-flex; gap: 18px; border-bottom: 1px solid rgba(244,239,229,.5); padding-bottom: 8px; }
.hero-architecture { position: relative; z-index: 2; height: 440px; align-self: end; perspective: 900px; }
.sun { position: absolute; left: 34%; top: 6%; width: 160px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(225,192,128,.75), rgba(225,192,128,.08) 70%); filter: blur(1px); }
.arch { position: absolute; bottom: 10%; width: 34%; height: 70%; border: 2px solid rgba(244,239,229,.48); border-bottom: 0; border-radius: 50% 50% 0 0; transform: skewY(-2deg); }
.arch::after { content:""; position:absolute; inset: 12px; border:1px solid rgba(244,239,229,.12); border-bottom:0; border-radius:inherit; }
.arch-1 { left: 3%; }
.arch-2 { left: 34%; height: 83%; }
.arch-3 { left: 65%; }
.floor-line { position: absolute; left: -4%; right: -8%; bottom: 10%; height: 1px; background: rgba(244,239,229,.55); box-shadow: 0 32px 60px rgba(232,196,132,.15); }
.room-label { position: absolute; right: 2%; bottom: 2%; color: rgba(244,239,229,.7); font-size: 11px; text-transform: uppercase; letter-spacing: .18em; }
.hero-stats { position: absolute; z-index: 3; left: clamp(22px, 7vw, 110px); right: clamp(22px, 7vw, 110px); bottom: 28px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(244,239,229,.25); padding-top: 18px; }
.hero-stats div { display: flex; align-items: baseline; gap: 12px; }
.hero-stats strong { font-family: var(--serif); font-size: 30px; font-weight: 400; color: #d6b987; }
.hero-stats span { color: rgba(244,239,229,.63); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.config-section { padding: clamp(76px, 10vw, 150px) clamp(20px, 6vw, 96px); background: var(--cream); }
.section-heading { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-heading h2 { font-size: clamp(48px, 6vw, 82px); }
.section-heading > p:last-child { color: rgba(23,62,56,.68); line-height: 1.6; max-width: 560px; margin: 22px auto 0; }
.config-shell { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); box-shadow: 0 26px 80px rgba(24,63,56,.12); }
.controls { background: var(--paper); padding: clamp(28px, 5vw, 62px); }
fieldset { border: 0; border-bottom: 1px solid var(--line); padding: 0 0 30px; margin: 0 0 30px; }
fieldset:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
legend { width: 100%; margin-bottom: 20px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
legend span { color: var(--rust); margin-right: 8px; }
.range-readout { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.range-readout output { font-family: var(--serif); font-size: 54px; }
.range-readout small { text-transform: uppercase; letter-spacing: .12em; }
input[type="range"] { width: 100%; appearance: none; height: 3px; background: linear-gradient(to right, var(--rust) 0 24%, var(--sage-light) 24% 100%); border-radius: 99px; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 21px; height: 21px; border-radius: 50%; background: var(--paper); border: 5px solid var(--rust); box-shadow: 0 1px 6px rgba(0,0,0,.2); cursor: grab; }
.range-labels { display: flex; justify-content: space-between; color: rgba(23,62,56,.5); font-size: 11px; margin-top: 10px; }
.select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.select-grid.layout-select { grid-template-columns: 1fr; }
.select-grid label > span { display: block; margin-bottom: 7px; color: rgba(23,62,56,.58); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.select-grid select { width: 100%; min-height: 50px; appearance: none; border: 1px solid var(--line); border-radius: 0; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23173e38'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ink); padding: 11px 36px 11px 13px; }
.select-grid select:focus { outline: 3px solid rgba(183,92,59,.25); outline-offset: 1px; }
.control-note { margin: 9px 0 0; color: rgba(23,62,56,.5); font-size: 10px; }
#layout-fieldset.is-inactive { opacity: .5; }
#layout-fieldset.is-inactive select { cursor: not-allowed; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label > span { min-height: 50px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; padding: 11px 14px; font-size: 13px; text-align: center; transition: .18s ease; }
.segmented input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.segmented input:focus-visible + span { outline: 3px solid rgba(183,92,59,.35); outline-offset: 2px; }
.segmented label.is-unavailable { opacity: .42; cursor: not-allowed; }
.segmented.stacked label > span { place-items: start; text-align: left; min-height: 68px; }
.segmented.stacked span small { display: block; margin-top: 5px; opacity: .66; }
.result-card { background: var(--ink); color: var(--cream); padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 34px; }
.result-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: rgba(244,239,229,.65); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.fit-pill { padding: 7px 10px; border-radius: 999px; color: var(--ink-deep); background: #dbe5c9; letter-spacing: .04em; }
.fit-pill.fit-warn { background: #efcf9a; }
.fit-pill.fit-over { background: #e8a38d; }
.result-card h3 { font-size: clamp(48px, 5vw, 70px); margin-bottom: 18px; }
.result-card > div > p:last-child { color: rgba(244,239,229,.7); line-height: 1.55; }
.track-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.track-label strong { font-size: 13px; color: #d7bd91; }
.track { height: 6px; overflow: hidden; margin: 13px 0; background: rgba(244,239,229,.15); border-radius: 20px; }
.track span { display: block; height: 100%; background: #d7bd91; border-radius: inherit; transition: width .35s ease, background .2s; }
.capacity-track p { margin: 0; color: rgba(244,239,229,.6); font-size: 12px; line-height: 1.5; }
.investment { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 23px 0; border-top: 1px solid rgba(244,239,229,.18); border-bottom: 1px solid rgba(244,239,229,.18); }
.investment > span { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.investment strong { grid-row: span 2; font-family: var(--serif); font-size: 40px; font-weight: 400; color: #d7bd91; }
.investment small { color: rgba(244,239,229,.55); margin-top: 6px; }
.amenities-panel { border-top: 1px solid rgba(244,239,229,.18); border-bottom: 1px solid rgba(244,239,229,.18); padding: 18px 0; }
.amenities-panel summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.amenities-panel summary::-webkit-details-marker { display: none; }
.amenities-panel[open] summary span { transform: rotate(45deg); }
.amenity-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 22px; }
.amenity-list > span { position: relative; padding-left: 14px; color: rgba(244,239,229,.68); font-size: 10px; line-height: 1.45; }
.amenity-list > span::before { content: "✦"; position: absolute; left: 0; color: #d7bd91; }
.amenity-list b, .amenity-list i { display: block; color: var(--cream); font-style: normal; font-size: 10px; }
.amenity-note { margin: 18px 0 0 !important; color: rgba(244,239,229,.45) !important; font-size: 9px; line-height: 1.5 !important; }
.primary-button { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: var(--rust); color: white; text-decoration: none; padding: 17px 19px; cursor: pointer; transition: transform .18s, background .18s; }
.primary-button:hover { background: #ca6744; transform: translateY(-1px); }
.fine-print { margin: -22px 0 0; font-size: 9px; line-height: 1.55; color: rgba(244,239,229,.46); }

.compare-section { padding: clamp(78px, 9vw, 130px) clamp(20px, 6vw, 96px); background: var(--paper); }
.section-heading.horizontal { max-width: 1220px; text-align: left; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-heading.horizontal > p { max-width: 430px; margin: 0 0 5px; }
.section-heading.horizontal h2 { font-size: clamp(45px, 5vw, 72px); }
.option-grid { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.option-card { position: relative; min-height: 470px; padding: 40px 34px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.option-card:last-child { border-right: 0; }
.option-card.featured { background: var(--sage-light); }
.option-card.bouquet-card { background: #efe3d3; }
.card-number { align-self: flex-end; font-family: var(--serif); font-size: 32px; color: rgba(23,62,56,.3); margin-bottom: 52px; }
.option-card h3 { font-size: 48px; }
.option-card > p:not(.eyebrow) { color: rgba(23,62,56,.67); line-height: 1.55; min-height: 96px; }
.option-card dl { margin: auto 0 0; }
.option-card dl div { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding: 13px 0; font-size: 12px; }
.option-card dt { color: rgba(23,62,56,.57); }
.option-card dd { margin: 0; font-weight: 600; text-align: right; }
.package-footnote { max-width: 1220px; margin: 15px auto 0; color: rgba(23,62,56,.52); font-size: 10px; line-height: 1.5; }

dialog { width: min(920px, calc(100% - 30px)); padding: 0; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 30px 120px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(7,28,25,.78); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; z-index: 2; right: 16px; top: 13px; border: 0; background: transparent; color: var(--ink); font-size: 30px; cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 510px; }
.dialog-intro { color: var(--cream); background: var(--ink); padding: 60px 46px; display: flex; flex-direction: column; justify-content: center; }
.dialog-intro h2 { font-size: 62px; color: #d7bd91; }
.dialog-intro p:last-child { line-height: 1.65; color: rgba(244,239,229,.7); margin-top: 25px; }
.tour-summary { padding: 60px 45px; display: flex; flex-direction: column; justify-content: center; }
.tour-summary h3 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
#tour-summary-lines { border-top: 1px solid var(--line); margin-bottom: 28px; }
.summary-row { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 14px 0; font-size: 13px; }
.summary-row span { color: rgba(23,62,56,.55); }
.summary-row strong { text-align: right; }
.copy-button { margin-top: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 14px; cursor: pointer; }
#copy-status { min-height: 18px; margin: 8px 0 0; text-align: center; font-size: 11px; color: var(--rust); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 780px; height: auto; padding-top: 140px; }
  .hero-architecture { position: absolute; opacity: .58; right: -15%; bottom: 90px; width: 70%; }
  .hero-copy { z-index: 4; }
  .hero-stats { gap: 16px; }
  .hero-stats div { flex-direction: column; gap: 3px; }
  .config-shell { grid-template-columns: 1fr; }
  .result-card { min-height: auto; }
  .option-grid { grid-template-columns: 1fr; }
  .option-card { min-height: 380px; border-right: 0; border-bottom: 1px solid var(--line); }
  .section-heading.horizontal { display: block; }
  .section-heading.horizontal > p { margin-top: 25px; }
}

@media (max-width: 620px) {
  .hero { padding-left: 22px; padding-right: 22px; padding-bottom: 170px; }
  .hero-architecture { width: 105%; right: -40%; bottom: 85px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats strong { font-size: 25px; }
  .hero-stats span { font-size: 8px; line-height: 1.35; }
  .config-section { padding-left: 14px; padding-right: 14px; }
  .controls, .result-card { padding: 30px 24px; }
  .segmented { grid-template-columns: 1fr; }
  .select-grid { grid-template-columns: 1fr; }
  .amenity-list { grid-template-columns: 1fr; }
  .investment strong { font-size: 33px; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-intro { padding: 42px 28px; }
  .dialog-intro h2 { font-size: 47px; }
  .tour-summary { padding: 38px 28px; }
}

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