:root {
  --blue: #6d89c4;
  --blue-dark: #536fa9;
  --blue-soft: #edf1f9;
  --ink: #3f4045;
  --ink-soft: #777982;
  --paper: #f7f5f1;
  --white: #ffffff;
  --line: rgba(63, 64, 69, 0.12);
  --shadow: 0 18px 48px rgba(49, 55, 72, 0.08);
  --serif: "GFS Didot", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 4%, rgba(109, 137, 196, 0.12), transparent 27rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 18px 118px;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 78px;
  padding: max(12px, env(safe-area-inset-top)) 0 10px;
  background: linear-gradient(to bottom, rgba(247,245,241,.98) 70%, rgba(247,245,241,0));
  backdrop-filter: blur(14px);
}
.brand { width: 162px; }
.brand img { width: 100%; }
.language-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.64);
}
.lang-btn {
  min-width: 39px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}
.lang-btn.is-active { background: var(--ink); color: white; }

.hero { padding: 34px 0 12px; }
.eyebrow, .section-label {
  margin: 0;
  color: var(--blue-dark);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .18em;
}
.hero h1,
.section-head h2,
.closing-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.025em;
}
.hero h1 {
  max-width: 460px;
  margin: 10px 0 13px;
  font-size: clamp(3.15rem, 15vw, 4.65rem);
  line-height: .91;
}
.hero-copy {
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.65;
}

.villa-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 29px;
}
.villa-choice {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
  min-height: 86px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255,255,255,.72);
  text-align: left;
  box-shadow: 0 12px 32px rgba(52, 58, 72, .035);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.villa-choice:active { transform: scale(.985); }
.villa-choice.is-selected { border-color: rgba(83,111,169,.48); background: var(--blue-soft); }
.villa-initial {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.35rem;
}
.villa-copy small,
.villa-copy strong { display: block; }
.villa-copy small { margin-bottom: 2px; color: var(--ink-soft); font-size: .58rem; font-weight: 700; letter-spacing: .14em; }
.villa-copy strong { font-family: var(--serif); font-size: 1.23rem; font-weight: 400; }
.selector-check {
  position: absolute;
  top: 9px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: white;
  font-size: .65rem;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .18s ease, transform .18s ease;
}
.villa-choice.is-selected .selector-check { opacity: 1; transform: scale(1); }
.active-villa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.52);
  color: var(--ink-soft);
  font-size: .78rem;
}
.active-villa[hidden] { display: none; }
.active-villa strong { color: var(--ink); }
.active-villa button { padding: 0; border: 0; background: none; color: var(--blue-dark); font-size: .75rem; font-weight: 700; cursor: pointer; }


.contact-section {
  padding-bottom: 0;
}
.contact-section-head {
  margin-bottom: 12px;
}
.contact-section .contact-shortcuts {
  margin-top: 0;
}

.contact-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 22px;
}
.shortcut {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 82px;
  padding: 10px 5px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(52,58,72,.04);
  text-align: center;
}
.shortcut:active { transform: scale(.98); }
.shortcut-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 1rem;
  font-weight: 700;
}
.shortcut-icon .fa { line-height: 1; }
.shortcut strong { font-size: .67rem; font-weight: 600; }

.section { padding-top: 72px; scroll-margin-top: 72px; }
.section-head h2 {
  margin: 8px 0 8px;
  font-size: clamp(2.35rem, 11vw, 3.45rem);
  line-height: .98;
}
.section-head > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.6;
}

.detail-list {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(255,255,255,.74);
  box-shadow: var(--shadow);
}
.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}
.detail-row:last-child { border-bottom: 0; }
.detail-main { min-width: 0; }
.detail-main small,
.detail-main strong { display: block; }
.detail-main small { margin-bottom: 4px; color: var(--blue-dark); font-size: .57rem; font-weight: 700; letter-spacing: .14em; }
.detail-main strong { overflow-wrap: anywhere; font-size: .84rem; font-weight: 600; }
.row-action { flex: 0 0 auto; color: var(--blue-dark); font-size: .69rem; font-weight: 700; }

.doctor-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
  border-radius: 22px;
  background: var(--ink);
  color: white;
  box-shadow: 0 18px 44px rgba(44,47,56,.16);
}
.doctor-card small { color: #b8c7e8; font-size: .59rem; font-weight: 700; letter-spacing: .15em; }
.doctor-card h3 { margin: 7px 0 2px; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; }
.doctor-card p { margin: 0; color: rgba(255,255,255,.65); font-size: .81rem; }
.doctor-call {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: .67rem;
  font-weight: 700;
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 10px;
}
.emergency-grid a {
  display: flex;
  min-height: 98px;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}
.emergency-grid a:first-child { grid-column: 1 / -1; min-height: 90px; background: var(--blue-soft); }
.emergency-grid strong { font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.emergency-grid span { color: var(--ink-soft); font-size: .69rem; }

.soft-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 17px;
  margin-top: 12px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.66);
}
.section-head + .soft-card { margin-top: 24px; }
.soft-card-number { color: var(--blue-dark); font-family: var(--serif); font-size: 1.3rem; }
.soft-card small { color: var(--blue-dark); font-size: .58rem; font-weight: 700; letter-spacing: .14em; }
.soft-card h3 { margin: 6px 0 5px; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; line-height: 1.05; }
.soft-card p { margin: 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.55; }

.soft-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 1rem;
}
.wifi-card { align-items: start; }
.wifi-details {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.wifi-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.72);
}
.wifi-detail-row > span {
  color: var(--ink-soft);
  font-size: .68rem;
  font-weight: 600;
}
.wifi-detail-row > strong,
.wifi-copy strong {
  color: var(--ink);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
}
.wifi-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  cursor: pointer;
}
.wifi-copy:active { transform: scale(.98); }
.wifi-copy .fa { font-size: .78rem; }
.wifi-note {
  margin-top: 8px !important;
  font-size: .69rem !important;
}


/* Nearby essentials */
.nearby-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.nearby-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 32px rgba(52,58,72,.045);
}
.nearby-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 1rem;
}
.nearby-copy { min-width: 0; }
.nearby-copy small {
  display: block;
  color: var(--blue-dark);
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.nearby-copy h3 {
  margin: 5px 0 5px;
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1.05;
}
.nearby-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .79rem;
  line-height: 1.5;
}
.nearby-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: .65rem;
  font-weight: 600;
}
.nearby-location .fa { color: var(--blue-dark); }
.nearby-card > .nearby-action,
.nearby-card > .nearby-actions {
  grid-column: 1 / -1;
}
.nearby-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nearby-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(83,111,169,.18);
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: .68rem;
  font-weight: 700;
}
.nearby-actions .nearby-action {
  flex: 1 1 120px;
  width: auto;
}
.nearby-action:active { transform: scale(.985); }
.nearby-action .fa { line-height: 1; }


.coming-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 24px;
}
.coming-grid article {
  min-height: 128px;
  padding: 15px;
  border: 1px dashed rgba(83,111,169,.27);
  border-radius: 19px;
  background: rgba(237,241,249,.5);
}
.coming-grid span,
.coming-grid strong,
.coming-grid small { display: block; }
.coming-grid span { color: var(--blue-dark); font-family: var(--serif); font-size: 1.25rem; }
.coming-grid strong { margin-top: 26px; font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }
.coming-grid small { margin-top: 3px; color: var(--ink-soft); font-size: .63rem; }

.closing-card {
  margin-top: 76px;
  padding: 28px 22px 23px;
  border-radius: 28px;
  background: var(--ink);
  color: white;
  text-align: center;
  box-shadow: 0 22px 60px rgba(43,46,55,.19);
}
.closing-card img { width: 175px; margin: 0 auto 26px; filter: brightness(0) invert(1); opacity: .92; }
.closing-card .section-label { color: #9eb3e0; }
.closing-card h2 { margin: 8px auto 8px; font-size: 2.55rem; line-height: .96; }
.closing-card > p:not(.section-label) { margin: 0 auto; max-width: 350px; color: rgba(255,255,255,.66); font-size: .82rem; line-height: 1.55; }
.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 20px;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  gap: 8px;
  font-size: .76rem;
  font-weight: 700;
}

footer {
  display: grid;
  gap: 5px;
  padding: 30px 0 12px;
  color: var(--ink-soft);
  text-align: center;
  font-size: .72rem;
}
footer p { margin: 0 0 4px; color: var(--ink); font-family: var(--serif); font-size: 1.14rem; }

.mobile-nav {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: min(500px, calc(100% - 22px));
  padding: 6px;
  border: 1px solid rgba(63,64,69,.12);
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 55px rgba(42,45,55,.17);
}
.mobile-nav a {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 51px;
  border-radius: 14px;
  color: var(--ink-soft);
}
.mobile-nav span { font-size: .92rem; line-height: 1; }
.mobile-nav .fa { line-height: 1; }
.mobile-nav small { font-size: .54rem; font-weight: 600; white-space: nowrap; }

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 92px;
  transform: translate(-50%, 15px);
  width: max-content;
  max-width: calc(100% - 34px);
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: .72rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 375px) {
  .app-shell { padding-left: 14px; padding-right: 14px; }
  .brand { width: 145px; }
  .hero h1 { font-size: 3rem; }
  .villa-selector { grid-template-columns: 1fr; }
  .contact-shortcuts { grid-template-columns: repeat(2, 1fr); }
  .shortcut { min-height: 72px; }
}

@media (min-width: 768px) {
  body { padding: 24px 0; }
  .app-shell {
    min-height: calc(100vh - 48px);
    padding-left: 26px;
    padding-right: 26px;
    border: 1px solid rgba(63,64,69,.08);
    border-radius: 32px;
    background: rgba(247,245,241,.86);
    box-shadow: 0 24px 80px rgba(51,55,68,.08);
  }
}

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


/* ---------------------------------------------------------
   QR welcome sequence — mobile-first
   --------------------------------------------------------- */
body.welcome-active { overflow: hidden; }
.welcome-flow {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: var(--paper);
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility .45s ease;
}
.welcome-flow.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.welcome-splash,
.welcome-letter {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
}
.welcome-splash {
  display: grid;
  place-items: center;
  padding: max(26px, env(safe-area-inset-top)) 24px max(26px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 42%, rgba(109,137,196,.12), transparent 19rem),
    linear-gradient(180deg, #fbfaf7 0%, #f6f4ef 100%);
  transition: opacity .65s ease, transform .65s ease;
}
.welcome-flow.show-letter .welcome-splash {
  opacity: 0;
  transform: scale(1.025);
  pointer-events: none;
}
.welcome-logo-wrap {
  position: relative;
  z-index: 2;
  width: min(88vw, 390px);
  text-align: center;
  animation: anemosLogoArrival 1.45s cubic-bezier(.2,.75,.25,1) both;
}
.welcome-logo {
  width: 100%;
  filter: drop-shadow(0 14px 36px rgba(73,84,118,.08));
}
.welcome-kicker {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: 0;
  animation: welcomeKickerIn .7s ease 1s forwards;
}
.wind-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.wind-line {
  position: absolute;
  left: -45%;
  width: 75%;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(109,137,196,.08), rgba(109,137,196,.6), transparent);
  filter: blur(.15px);
  transform: skewX(-18deg);
  opacity: 0;
}
.wind-line::after {
  content: "";
  position: absolute;
  top: -7px;
  right: 12%;
  width: 56%;
  height: 14px;
  border-top: 1px solid rgba(109,137,196,.3);
  border-radius: 50%;
}
.wind-line-one { top: 34%; animation: windSweep 1.9s cubic-bezier(.15,.65,.2,1) .25s both; }
.wind-line-two { top: 50%; animation: windSweep 2.15s cubic-bezier(.15,.65,.2,1) .55s both; }
.wind-line-three { top: 63%; animation: windSweep 1.8s cubic-bezier(.15,.65,.2,1) .85s both; }
.welcome-skip {
  position: absolute;
  z-index: 3;
  top: max(18px, env(safe-area-inset-top));
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 5px 0 12px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 600;
  cursor: pointer;
}
.welcome-skip .fa { font-size: 1rem; }

.welcome-letter {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 100% 0%, rgba(109,137,196,.12), transparent 18rem),
    #ece9e2;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity .65s ease .18s, transform .65s ease .18s, visibility 0s linear .18s;
}
.welcome-flow.show-letter .welcome-letter {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.letter-sheet {
  position: relative;
  width: min(100%, 440px);
  min-height: calc(100dvh - max(36px, env(safe-area-inset-top)) - max(36px, env(safe-area-inset-bottom)));
  margin: auto;
  padding: 32px 25px 24px;
  border: 1px solid rgba(63,64,69,.08);
  border-radius: 28px;
  background:
    linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)),
    radial-gradient(circle at 20% 10%, rgba(109,137,196,.08), transparent 24rem);
  box-shadow: 0 28px 75px rgba(48,51,62,.12);
}
.letter-logo {
  width: min(65%, 250px);
  margin: 0 auto 32px;
}
.letter-eyebrow {
  margin: 0 0 9px;
  color: var(--blue-dark);
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .2em;
}
.letter-sheet h1 {
  margin: 0 0 23px;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 13vw, 4rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.035em;
}
.letter-copy {
  min-height: 145px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.letter-copy p {
  margin: 0;
  color: #5e6068;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.62;
}
.letter-copy p + p { margin-top: 16px; }
.letter-copy strong { color: var(--ink); font-weight: 500; }
.letter-copy a {
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(92,121,182,.35);
}
.letter-copy a:active { opacity: .7; }
.letter-signature {
  margin: 23px 0 26px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.15;
  text-align: right;
}
.letter-signature span {
  color: var(--ink-soft);
  font-size: .86rem;
  font-style: normal;
}
.letter-signature .signature-closing {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
}
.letter-continue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 0 19px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 14px 34px rgba(42,45,55,.16);
  cursor: pointer;
}
.letter-continue:active { transform: scale(.985); }
.letter-continue .fa { color: #a8b9dd; }

@keyframes anemosLogoArrival {
  0% { opacity: 0; transform: translateX(-22px) scale(.97); filter: blur(7px); }
  55% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}
@keyframes welcomeKickerIn { to { opacity: 1; } }
@keyframes windSweep {
  0% { left: -75%; opacity: 0; transform: skewX(-18deg) scaleX(.75); }
  20% { opacity: .9; }
  78% { opacity: .62; }
  100% { left: 115%; opacity: 0; transform: skewX(-18deg) scaleX(1.15); }
}

@media (max-width: 360px) {
  .letter-sheet { padding: 28px 20px 20px; border-radius: 24px; }
  .letter-logo { margin-bottom: 26px; }
  .letter-copy p { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-logo-wrap,
  .welcome-kicker,
  .wind-line { animation: none !important; }
  .welcome-kicker { opacity: 1; }
}

/* ---------------------------------------------------------
   Footer social + floating back-to-top
   --------------------------------------------------------- */
.footer-instagram {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 9px auto 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  color: var(--blue-dark);
  font-size: 1.15rem;
  box-shadow: 0 10px 26px rgba(49,55,72,.06);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.footer-instagram:active {
  transform: scale(.94);
  background: var(--blue-soft);
}
.footer-instagram .fa { line-height: 1; }

.back-to-top {
  position: fixed;
  z-index: 39;
  right: max(18px, calc((100vw - 480px) / 2 + 18px));
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + 72px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(63,64,69,.10);
  border-radius: 50%;
  background: rgba(63,64,69,.92);
  color: #fff;
  box-shadow: 0 14px 34px rgba(42,45,55,.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.94);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  cursor: pointer;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top .fa {
  margin-top: -2px;
  font-size: 1.25rem;
  line-height: 1;
}
.back-to-top:active { transform: scale(.92); }
body.welcome-active .back-to-top { display: none; }

@media (max-width: 520px) {
  .back-to-top { right: 18px; }
}

/* ---------------------------------------------------------
   Discover Rhodes page + home teaser
   --------------------------------------------------------- */
.explore-preview {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(83,111,169,.2);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(237,241,249,.94), rgba(255,255,255,.82));
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.explore-preview:active { transform: scale(.985); }
.explore-preview-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: white;
  font-size: 1.1rem;
}
.explore-preview-copy { min-width: 0; }
.explore-preview-copy small,
.explore-preview-copy strong,
.explore-preview-copy span { display: block; }
.explore-preview-copy small { margin-bottom: 4px; color: var(--blue-dark); font-size: .56rem; font-weight: 700; letter-spacing: .15em; }
.explore-preview-copy strong { font-family: var(--serif); font-size: 1.34rem; font-weight: 400; line-height: 1.05; }
.explore-preview-copy span { margin-top: 5px; color: var(--ink-soft); font-size: .72rem; line-height: 1.45; }
.explore-preview-arrow { color: var(--blue-dark); font-size: 1.1rem; }

.explore-page {
  background:
    radial-gradient(circle at 15% 0%, rgba(109,137,196,.13), transparent 24rem),
    radial-gradient(circle at 100% 16%, rgba(166,180,213,.12), transparent 23rem),
    var(--paper);
}
.explore-shell { padding-bottom: 120px; }
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 9px;
  padding: 0 4px;
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 600;
}
.page-back .fa { color: var(--blue-dark); font-size: 1rem; }
.explore-hero { padding: 24px 0 30px; }
.explore-hero h1 {
  margin: 9px 0 14px;
  font-family: var(--serif);
  font-size: clamp(3.55rem, 16vw, 5rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .88;
}
.explore-hero > p:last-of-type {
  max-width: 420px;
  margin: 0;
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.65;
}
.explore-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 21px;
}
.explore-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.64);
  color: var(--ink-soft);
  font-size: .65rem;
  font-weight: 600;
}
.explore-meta .fa { color: var(--blue-dark); }
.explore-meta strong { color: var(--ink); }

.places-list { display: grid; gap: 17px; }
.place-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 48px rgba(49,55,72,.075);
}
.place-photo {
  position: relative;
  height: 228px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8edf7, #dfe6f3);
}
.place-photo::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(28,31,38,.42), transparent);
  pointer-events: none;
}
.place-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}
.place-card:active .place-photo img { transform: scale(1.012); }
.place-photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(83,111,169,.65);
  font-size: 2rem;
}
.place-photo.is-image-missing::after { display: none; }
.place-number,
.place-icon {
  position: absolute;
  z-index: 3;
  bottom: 13px;
  display: grid;
  place-items: center;
  height: 36px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.place-number {
  left: 13px;
  min-width: 46px;
  padding: 0 12px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
}
.place-icon {
  right: 13px;
  width: 36px;
  background: rgba(63,64,69,.78);
  color: white;
  font-size: .9rem;
}
.place-content { padding: 19px 18px 18px; }
.place-kicker {
  margin: 0;
  color: var(--blue-dark);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .15em;
}
.place-content h2 {
  margin: 7px 0 8px;
  font-family: var(--serif);
  font-size: 1.84rem;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
}
.place-content > p:not(.place-kicker) {
  margin: 0;
  color: var(--ink-soft);
  font-size: .8rem;
  line-height: 1.58;
}
.map-action {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 14px;
  border-radius: 15px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: .7rem;
  font-weight: 700;
}
.map-action .fa-map-marker { font-size: 1rem; }
.map-action .fa-external-link { font-size: .68rem; opacity: .8; }
.map-action:active { transform: scale(.99); }

.explore-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.62);
}
.explore-note-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.explore-note strong { display: block; margin: 1px 0 5px; font-family: var(--serif); font-size: 1.18rem; font-weight: 400; }
.explore-note p { margin: 0; color: var(--ink-soft); font-size: .73rem; line-height: 1.55; }

.photo-credits {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.48);
  color: var(--ink-soft);
}
.photo-credits summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 15px;
  list-style: none;
  font-size: .68rem;
  font-weight: 600;
  cursor: pointer;
}
.photo-credits summary::-webkit-details-marker { display: none; }
.photo-credits summary .fa { color: var(--blue-dark); }
.photo-credit-list {
  display: grid;
  gap: 9px;
  padding: 0 15px 15px 38px;
}
.photo-credit-list a {
  color: var(--ink-soft);
  font-size: .62rem;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(83,111,169,.28);
  text-underline-offset: 2px;
}
.explore-closing { margin-top: 40px; }
.mobile-nav a.is-active {
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.mobile-nav a.is-active span { color: var(--blue-dark); }

@media (max-width: 375px) {
  .place-photo { height: 205px; }
  .place-content h2 { font-size: 1.7rem; }
  .explore-hero h1 { font-size: 3.45rem; }
}

@media (min-width: 768px) {
  .place-photo { height: 260px; }
}

/* Keep anchored sections clear of the sticky header and sync with bottom-nav states. */
#top, #contact, #important, #wifi, #nearby, #explore { scroll-margin-top: 92px; }
