/* Choice page for the two houses. Each door borrows its house's palette and type:
   Casa Zanta = ivory / champagne, Cormorant Garamond + Manrope;
   Casa Platamone 2 = night / gold, Playfair Display + DM Sans. */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/cormorant-garamond-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap; src: url(fonts/cormorant-garamond-latin-300-italic.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/playfair-display-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/playfair-display-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(fonts/dm-sans-latin-wght-normal.woff2) format('woff2'); }

:root {
  --night: #0a1420;
  --paper: #f3eee5;
  --gold: #c5a46d;
  --ivory: #f7f2e8;
  --ink: #1b2430;
  --champagne: #dcc7a1;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cine: cubic-bezier(0.76, 0, 0.24, 1);
  --gutter: max(1.25rem, env(safe-area-inset-left));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--night); }

.choose { position: relative; display: flex; min-height: 100vh; min-height: 100svh; isolation: isolate; overflow: hidden; }

/* ---- Header ------------------------------------------------------------- */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  padding: max(1.5rem, env(safe-area-inset-top)) var(--gutter) 0;
  text-align: center; pointer-events: none;
  animation: fade 1.2s var(--ease) 1.1s both;
}
.top-place, .top-ask {
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
}
.top-place { color: var(--gold); }
.top-title {
  margin: 0.6rem 0 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 400;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem); letter-spacing: 0.01em; color: var(--paper);
}
/* Shared fact for both houses, set between thin gold rules */
.top-sea {
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.75rem;
  font-family: 'Playfair Display', Georgia, serif; font-size: clamp(0.95rem, 1.25vw, 1.1rem); color: var(--paper);
}
.top-sea span {
  padding: 0.5rem 1.2rem; border: 1px solid rgba(197, 164, 109, 0.45); border-radius: 999px;
  background: rgba(10, 20, 32, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.top-sea em { color: var(--gold); }
.top-sea::before, .top-sea::after { content: ''; flex: none; width: 2.5rem; height: 1px; background: var(--gold); opacity: 0.7; }
.top-ask { margin-top: 0.7rem; color: rgba(243, 238, 229, 0.6); }

/* ---- Doors -------------------------------------------------------------- */
.door {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 11rem clamp(1.5rem, 4.5vw, 4.5rem) 4rem; overflow: hidden; isolation: isolate;
  transition: flex-grow 0.9s var(--ease);
}
.door-img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); transition: transform 1.6s var(--ease), filter 0.9s var(--ease);
}
.door::before { content: ''; position: absolute; inset: 0; z-index: -1; transition: opacity 0.9s var(--ease); }
.door-body { display: flex; flex-direction: column; align-items: flex-start; max-width: 32rem; }
.door-num {
  position: absolute; top: clamp(10.5rem, 21vh, 12rem); left: clamp(1.5rem, 4.5vw, 4.5rem);
  font-size: 0.6875rem; letter-spacing: 0.32em;
}
.door-num::after { content: ''; display: inline-block; vertical-align: middle; width: 2.5rem; height: 1px; margin-left: 0.9rem; background: currentColor; opacity: 0.6; }
.door-kicker { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; }
.door-name { display: block; margin-top: 0.9rem; line-height: 0.9; }
.door-text { display: block; margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.6; opacity: 0.88; max-width: 26rem; }
.door-list { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 1.25rem; font-size: 0.8125rem; opacity: 0.8; }
.door-list span { display: inline-flex; align-items: center; gap: 0.55rem; }
.door-list span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.door-go {
  display: inline-flex; align-items: center; gap: 0.85rem; min-height: 3.5rem; margin-top: 2rem; padding: 0 1.9rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.door-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 0.5s var(--ease); }
.door-cin { margin-top: 1.4rem; font-size: 0.6875rem; letter-spacing: 0.08em; opacity: 0.55; }

/* Casa Zanta — ivory, champagne, Cormorant */
.door-zanta { --accent: var(--champagne); color: var(--ivory); font-family: 'Manrope', system-ui, sans-serif; }
.door-zanta .door-img { object-position: 50% 72%; }
.door-zanta::before {
  background: linear-gradient(180deg, rgba(27, 36, 48, 0.6) 0%, rgba(27, 36, 48, 0) 30%, rgba(27, 36, 48, 0.25) 52%, rgba(27, 36, 48, 0.93) 100%);
}
.door-zanta .door-kicker, .door-zanta .door-num { color: var(--champagne); }
.door-zanta .door-name { font-family: 'Cormorant Garamond', 'Times New Roman', serif; font-weight: 300; font-size: clamp(3.6rem, 7.4vw, 7.25rem); letter-spacing: -0.01em; }
.door-zanta .door-name em { font-style: italic; }
.door-zanta .door-go { background: var(--ivory); color: var(--ink); }
.door-zanta:hover .door-go, .door-zanta:focus-visible .door-go { background: var(--champagne); }

/* Casa Platamone 2 — night, gold, Playfair */
.door-plat { --accent: var(--gold); color: var(--paper); }
.door-plat .door-img { object-position: 50% 45%; }
.door-plat::before {
  background: linear-gradient(180deg, rgba(10, 20, 32, 0.6) 0%, rgba(10, 20, 32, 0) 30%, rgba(10, 20, 32, 0.3) 52%, rgba(10, 20, 32, 0.95) 100%);
}
.door-plat .door-kicker, .door-plat .door-num { color: var(--gold); }
.door-plat .door-name { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(3.2rem, 6.4vw, 6.25rem); letter-spacing: -0.02em; }
.door-plat .door-name em { color: var(--gold); }
.door-plat .door-name .nowrap { white-space: nowrap; }
.door-kicker, .door-num { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55); }
.door-plat .door-go { background: var(--gold); color: var(--night); }
.door-plat:hover .door-go, .door-plat:focus-visible .door-go { background: var(--paper); }

/* Hover: the chosen door widens, the other one steps back */
.door:hover .door-img, .door:focus-visible .door-img { transform: scale(1); }
.door:hover .door-go svg, .door:focus-visible .door-go svg { transform: translateX(4px); }
.choose:has(.door:hover) .door:not(:hover) .door-img { filter: brightness(0.55) saturate(0.7); }
.door:focus-visible { outline: 2px solid var(--accent); outline-offset: -8px; }

/* Seam between the doors */
.split {
  position: relative; z-index: 2; flex: none; width: 1px; margin-inline: -0.5px;
  background: linear-gradient(180deg, transparent 16%, var(--champagne) 34%, var(--gold) 75%, transparent);
  transform-origin: 50% 50%; animation: seam 1s var(--ease-cine) both;
}
.split span {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 3.25rem; height: 3.25rem;
  transform: translate(-50%, -50%); border: 1px solid rgba(243, 238, 229, 0.45); border-radius: 50%;
  background: var(--night); font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 1.15rem; color: var(--paper);
  animation: fade 0.8s var(--ease) 0.9s both;
}

.top-wa {
  position: absolute; top: max(1.25rem, env(safe-area-inset-top)); right: var(--gutter); pointer-events: auto;
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0 1.1rem 0 0.4rem;
  border-radius: 999px; background: rgba(10, 20, 32, 0.55); border: 1px solid rgba(243, 238, 229, 0.25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; transition: border-color 0.4s, background-color 0.4s;
}
.top-wa svg { width: 2rem; height: 2rem; padding: 0.4rem; border-radius: 50%; background: #25d366; fill: #fff; }
.top-wa:hover { border-color: rgba(243, 238, 229, 0.6); background: rgba(10, 20, 32, 0.8); }

/* ---- Shared info: availability, how to arrive, WhatsApp ------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.info { position: relative; background: var(--night); border-top: 1px solid rgba(243, 238, 229, 0.08); }
.info-wrap { max-width: 80rem; margin-inline: auto; padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); }
.info-grid { display: grid; gap: clamp(3.5rem, 7vw, 6rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.kicker { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
.info h2 {
  margin: 1.1rem 0 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.015em;
}
.info h2 em { color: var(--gold); }
.info-block > p:not(.kicker) { margin-top: 1.4rem; max-width: 34rem; font-size: 1.0625rem; line-height: 1.75; color: rgba(243, 238, 229, 0.75); }
.info-block > p.info-small { margin-top: 0.9rem; font-size: 0.875rem; color: rgba(243, 238, 229, 0.5); }
.airports { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0.9rem; max-width: 34rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.airports li { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.25rem; border: 1px solid rgba(243, 238, 229, 0.14); border-radius: 0.75rem; }
.airport-city { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; color: var(--paper); }
.airport-name { font-size: 0.8125rem; color: var(--gold); }
.info-note { padding-top: 1.4rem; border-top: 1px solid rgba(243, 238, 229, 0.12); }
.info-note strong { display: block; margin-bottom: 0.3rem; font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 1.35rem; color: var(--paper); }
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem 0; margin: 2rem 0 0; padding: 0; list-style: none; max-width: 34rem; }
.months li { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(243, 238, 229, 0.6); }
.months li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
@media (min-width: 1100px) { .months { grid-template-columns: repeat(12, 1fr); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem; min-height: 3.5rem; margin-top: 2rem; padding: 0 1.9rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.btn-line { border: 1px solid rgba(243, 238, 229, 0.35); color: var(--paper); }
.btn-line:hover { background: var(--paper); border-color: var(--paper); color: var(--night); }
.btn-wa { margin-top: 1.25rem; background: var(--paper); color: var(--night); padding-left: 0.5rem; }
.btn-wa .wa { width: 2.5rem; height: 2.5rem; padding: 0.55rem; border-radius: 50%; background: #25d366; fill: #fff; stroke: none; }
.btn-wa:hover { background: var(--gold); }
.info-contact { margin-top: clamp(4rem, 8vw, 6.5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid rgba(243, 238, 229, 0.12); text-align: center; }
.info-num { margin-top: 1rem; font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; color: rgba(243, 238, 229, 0.85); }

.js-reveal .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

.foot {
  display: grid; gap: 0.5rem; justify-items: center; padding: 2.5rem var(--gutter) max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(243, 238, 229, 0.08); text-align: center; font-size: 0.75rem; color: rgba(243, 238, 229, 0.5);
}
.foot a { color: rgba(243, 238, 229, 0.85); }
.foot a:hover { color: var(--gold); }

/* ---- Opening: the doors open outwards from the seam ------------------------ */
.door-zanta { animation: open-left 1.5s var(--ease-cine) 0.45s both; }
.door-plat { animation: open-right 1.5s var(--ease-cine) 0.45s both; }
.door .door-img { animation: settle 2.6s var(--ease) 0.45s both; }
.door-num, .door-kicker, .door-name, .door-text, .door-list, .door-go, .door-cin { animation: rise 1.1s var(--ease) both; }
.door-num { animation-delay: 1.3s; }
.door-kicker { animation-delay: 1.15s; }
.door-name { animation-delay: 1.22s; }
.door-text { animation-delay: 1.32s; }
.door-list { animation-delay: 1.4s; }
.door-go { animation-delay: 1.48s; }
.door-cin { animation-delay: 1.56s; }

@keyframes open-left { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes open-right { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes open-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes open-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.18); } to { transform: scale(1.04); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes seam { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes seam-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- Phones and tablets: doors stacked ------------------------------------ */
@media (max-width: 899px) {
  .choose { flex-direction: column; }
  .top { position: relative; padding-bottom: 1.4rem; background: var(--night); }
  .door { flex: 1 0 auto; min-height: max(27rem, 50svh); padding: 4.5rem var(--gutter) 2.75rem; }
  .door:hover { flex-grow: 1; }
  .door-num { top: 1.75rem; left: var(--gutter); }
  .door-zanta .door-name { font-size: clamp(3.4rem, 15vw, 5rem); }
  .door-plat .door-name { font-size: clamp(3rem, 13.5vw, 4.5rem); }
  .door-text { margin-top: 1rem; font-size: 1rem; }
  .door-go { margin-top: 1.5rem; min-height: 3.25rem; padding: 0 1.6rem; }
  .door-cin { margin-top: 1rem; }
  .door-zanta { animation-name: open-up; }
  .door-plat { animation-name: open-down; }
  .choose:has(.door:hover) .door:not(:hover) .door-img { filter: none; }
  .split { width: auto; height: 1px; margin: -0.5px 0; background: linear-gradient(90deg, transparent, var(--champagne) 25%, var(--gold) 75%, transparent); animation-name: seam-x; }
  .top { text-align: left; padding-right: 9rem; }
  .top-sea { justify-content: flex-start; font-size: 0.9rem; }
  .top-sea::before, .top-sea::after { display: none; }
  .top-wa { top: max(1.5rem, env(safe-area-inset-top)); }
  .door-zanta .door-kicker, .door-zanta .door-num, .door-plat .door-kicker, .door-plat .door-num { color: var(--paper); }
  /* Text sits on a shorter door: deeper shade behind it */
  .door-zanta::before { background: linear-gradient(180deg, rgba(27, 36, 48, 0.35) 0%, rgba(27, 36, 48, 0.2) 15%, rgba(27, 36, 48, 0.7) 40%, rgba(27, 36, 48, 0.95) 100%); }
  .door-plat::before { background: linear-gradient(180deg, rgba(10, 20, 32, 0.35) 0%, rgba(10, 20, 32, 0.25) 15%, rgba(10, 20, 32, 0.75) 40%, rgba(10, 20, 32, 0.96) 100%); }
}
@media (max-width: 599px) {
  .top { padding-right: 4.25rem; }
  .top-wa { padding-right: 0.4rem; }
  .top-wa span { display: none; }
}
@media (max-width: 599px) {
  .door-list { display: none; }
}

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