:root {
  --paper: #fffaf4;
  --ink: #28211d;
  --forest: #203b35;
  --gold: #ad7e3c;
  --muted: rgba(40, 33, 29, 0.62);
  --line: rgba(40, 33, 29, 0.1);
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible {
  outline: 2px solid #c7847c;
  outline-offset: 4px;
}

.venue-page {
  --panel-rx: 0.5deg;
  --panel-ry: -0.7deg;
  --scene-y: 0px;
  --photo-y: 0px;
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 88px 24px 48px;
  isolation: isolate;
  overflow: hidden;
  perspective: 1800px;
}

.venue-page::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: -48px;
  background: var(--bg) center calc(50% + var(--scene-y)) / cover no-repeat;
  filter: blur(18px) saturate(0.75) brightness(0.76);
  transform: scale(1.1);
}

.venue-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.5), transparent 34%),
    linear-gradient(120deg, rgba(255, 250, 244, 0.91), rgba(255, 250, 244, 0.7));
}

.back {
  position: absolute;
  z-index: 10;
  top: 30px;
  left: clamp(24px, 5vw, 70px);
  color: inherit;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
}

.back::before { content: "←"; margin-right: 9px; }

.panel {
  position: relative;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(390px, 0.92fr) minmax(460px, 1.08fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 32px;
  background: rgba(255, 251, 246, 0.8);
  box-shadow: 0 36px 110px rgba(46, 32, 20, 0.2), inset 1px 1px 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(1.08);
  transform: rotateX(var(--panel-rx)) rotateY(var(--panel-ry));
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
  animation: panelIn 0.8s var(--ease) both;
}

.panel:hover {
  box-shadow: 0 44px 130px rgba(46, 32, 20, 0.25), inset 1px 1px 1px rgba(255, 255, 255, 0.86);
}

.visual {
  position: relative;
  min-height: 780px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  padding: 46px;
  overflow: hidden;
  background: var(--bg) center calc(50% + var(--photo-y)) / cover no-repeat;
  color: #fff;
  text-align: center;
  transform: translateZ(8px);
}

.visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 20, 17, 0.06) 20%, rgba(21, 20, 17, 0.26) 57%, rgba(21, 20, 17, 0.82));
  pointer-events: none;
}

.venue-photo {
  position: absolute;
  z-index: 0;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  transform: translateY(var(--photo-y)) scale(1.02);
}

.number,
.visual-text {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
}

.number {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%) translateZ(18px);
  color: rgba(255, 255, 255, 0.9);
  font-family: ui-serif, "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(72px, 8vw, 104px);
  font-weight: 400;
  line-height: 0.72;
  letter-spacing: -0.08em;
  white-space: nowrap;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

.number span {
  display: block;
  margin-top: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.visual-text {
  width: 100%;
  transform: translateZ(34px);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.26));
}

.eyebrow,
.fact-label,
.dress-label,
.map-kicker {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow,
.map-kicker { color: #e8c582; }

.visual h1 {
  margin: 14px 0 0;
  font-family: ui-serif, "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(46px, 5vw, 70px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.copy {
  position: relative;
  padding: clamp(44px, 5vw, 66px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 44%);
  text-align: center;
  transform-style: preserve-3d;
}

.copy > * { position: relative; transform: translateZ(14px); }

.copy h2 {
  max-width: 520px;
  margin: 12px auto 0;
  font-family: ui-serif, "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(30px, 3vw, 39px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
  transform: translateZ(25px);
}

.description {
  max-width: 560px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 350;
  line-height: 1.75;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 30px 0 0;
}

.fact {
  min-height: 92px;
  display: grid;
  align-content: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 10px 24px rgba(45, 32, 19, 0.045);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.fact:hover {
  transform: translateY(-3px) translateZ(12px);
  box-shadow: 0 17px 35px rgba(45, 32, 19, 0.09);
}

.fact-label,
.dress-label { color: var(--gold); }

.fact-value {
  margin: 7px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.dress {
  position: relative;
  margin-top: 16px;
  padding: 18px 20px;
  overflow: hidden;
  border-radius: 16px;
  background: #f4e7d5;
}

.dress p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.actions,
.venue-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.actions { margin-top: 20px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 11px 16px;
  border: 1px solid rgba(40, 33, 29, 0.17);
  border-radius: 999px;
  color: inherit;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.getting-there {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.3);
  text-align: left;
}

.getting-there h3 {
  margin: 7px 0 0;
  font-family: ui-serif, "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.travel-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.travel-route {
  padding: 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.5);
}

.travel-route strong {
  display: block;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.travel-route p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.route-guide {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.route-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  color: var(--forest);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-guide summary::-webkit-details-marker { display: none; }
.route-guide summary span { transition: transform 0.25s ease; }
.route-guide[open] summary span { transform: rotate(180deg); }

.route-guide-body { padding-top: 16px; }

.route-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--line);
}

.route-row {
  display: grid;
  grid-template-columns: 0.85fr 2.1fr 0.85fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  line-height: 1.45;
}

.route-row strong { font-size: 10px; }

.route-row-head {
  background: rgba(173, 126, 60, 0.09);
  color: var(--gold);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.route-recommendation {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.route-disclaimer {
  margin: 12px 0 0;
  color: rgba(40, 33, 29, 0.45);
  font-size: 9px;
  line-height: 1.5;
}

.venue-map {
  --map-rx: 0deg;
  --map-ry: 0deg;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.72);
  transform: translateZ(22px) rotateX(var(--map-rx)) rotateY(var(--map-ry));
  transform-style: preserve-3d;
  transition: transform 0.28s ease, box-shadow 0.3s ease;
}

.venue-map:hover { box-shadow: 0 20px 44px rgba(45, 32, 19, 0.1); }

.venue-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}

.venue-map-head strong,
.venue-map-head small { display: block; }

.venue-map-head strong {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.45;
}

.venue-map-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.map-frame {
  height: 220px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 13px 30px rgba(45, 32, 19, 0.1);
  transform: translateZ(10px);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.72) contrast(0.96);
}

.arrival-note,
.notes {
  color: rgba(40, 33, 29, 0.52);
  font-size: 10px;
  line-height: 1.6;
}

.arrival-note { margin: 12px auto 0; }
.venue-actions { margin-top: 14px; }
.notes { margin: 18px auto 0; }

.official-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--gold);
  font-size: 10px;
  text-underline-offset: 4px;
}

.night { color: #fff; }

.night::after {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(120deg, rgba(24, 33, 28, 0.91), rgba(24, 33, 28, 0.7));
}

.night .back { color: #fff; }

.night .panel {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(27, 37, 31, 0.82);
}

.night .description,
.night .venue-map-head small,
.night .arrival-note,
.night .notes,
.night .dress p { color: rgba(255, 255, 255, 0.63); }

.night .fact,
.night .venue-map,
.night .getting-there {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.055);
}

.night .dress { background: rgba(255, 255, 255, 0.09); }
.night .travel-route { background: rgba(255, 255, 255, 0.055); }
.night .travel-route p { color: rgba(255, 255, 255, 0.63); }
.night .route-guide { border-color: rgba(255, 255, 255, 0.11); }
.night .route-guide summary { color: #fff; }
.night .route-table { border-color: rgba(255, 255, 255, 0.11); background: rgba(255, 255, 255, 0.11); }
.night .route-row { background: rgba(255, 255, 255, 0.055); }
.night .route-row-head { background: rgba(232, 197, 130, 0.09); }
.night .route-recommendation { color: rgba(255, 255, 255, 0.63); }
.night .route-disclaimer { color: rgba(255, 255, 255, 0.45); }
.night .button { border-color: rgba(255, 255, 255, 0.22); }
.night .button-primary { border-color: #fff; background: #fff; color: var(--forest); }

.venue-wedding .visual {
  background-position: center calc(48% + var(--photo-y));
  filter: saturate(0.94) contrast(1.04);
}

.venue-wedding .copy { background: linear-gradient(145deg, rgba(255, 252, 246, 0.52), rgba(239, 225, 204, 0.18)); }

.tbd .visual,
.tbd::before { background: linear-gradient(145deg, #8e6651, #d3ae7c); }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px) rotateX(1deg); }
  to { opacity: 1; transform: rotateX(var(--panel-rx)) rotateY(var(--panel-ry)); }
}

@media (max-width: 940px) {
  .venue-page { place-items: start center; padding-top: 76px; }

  .panel {
    width: min(720px, 100%);
    grid-template-columns: 1fr;
  }

  .visual { min-height: min(66svh, 620px); }
  .copy { padding: 44px clamp(24px, 6vw, 52px) 50px; }
}

@media (max-width: 560px) {
  .venue-page {
    padding: calc(64px + env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    overflow: clip;
    perspective: none;
  }

  .venue-page::before {
    inset: -24px;
    filter: blur(12px) saturate(0.75) brightness(0.76);
    transform: scale(1.08);
  }

  .back {
    top: calc(14px + env(safe-area-inset-top));
    left: max(16px, env(safe-area-inset-left));
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .panel {
    border-radius: 25px;
    animation: none;
    transform: none;
  }

  .visual { min-height: clamp(390px, 60svh, 480px); padding: 30px 18px; transform: none; }
  .visual h1 { font-size: clamp(40px, 13vw, 52px); line-height: 0.98; overflow-wrap: anywhere; }
  .number { top: 36px; font-size: clamp(62px, 20vw, 72px); }
  .number span { margin-top: 15px; font-size: 8px; letter-spacing: 0.16em; }
  .copy { padding: 32px 16px 38px; }
  .copy h2 { font-size: clamp(28px, 9vw, 35px); line-height: 1.08; overflow-wrap: anywhere; }
  .description { margin-top: 20px; font-size: 14px; line-height: 1.7; }
  .facts { grid-template-columns: 1fr; }
  .travel-routes { grid-template-columns: 1fr; }
  .route-row { grid-template-columns: 1fr; gap: 5px; padding: 13px; }
  .route-row-head { display: none; }
  .route-row span:nth-child(2)::before { content: "Route · "; color: var(--gold); font-weight: 650; }
  .route-row span:nth-child(3)::before { content: "Time · "; color: var(--gold); font-weight: 650; }
  .route-row span:nth-child(4)::before { content: "Best for · "; color: var(--gold); font-weight: 650; }
  .fact { min-height: 78px; padding: 14px; }
  .dress, .getting-there { padding: 16px; }
  .getting-there h3 { font-size: 22px; }
  .route-guide summary { min-height: 44px; line-height: 1.45; }
  .route-row { font-size: 11px; line-height: 1.5; }
  .route-row strong { font-size: 11px; }
  .route-links { flex-direction: column; }
  .route-links .button { width: 100%; }
  .venue-map { padding: 14px; transform: none; }
  .venue-map-head { align-items: flex-start; flex-direction: column; }
  .venue-map-head .button { width: 100%; }
  .map-frame { height: 200px; transform: none; }
  .actions, .venue-actions { flex-direction: column; }
  .actions .button, .venue-actions .button { width: 100%; }
  .button { min-height: 46px; padding: 12px 14px; font-size: 10px; }
  .official-link { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 360px) {
  .panel { border-radius: 21px; }
  .visual { min-height: 380px; }
  .copy { padding-inline: 12px; }
  .getting-there, .venue-map, .dress { padding: 13px; }
  .map-frame { height: 185px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel { animation: none; transform: none; transition: none; }
  .venue-page::before { background-position: center; }
  .visual { background-position: center; }
  .venue-photo { transform: scale(1.02); }
  .venue-map, .map-frame, .fact, .fact:hover { transform: none; transition: none; }
}
