/* vacacionesmiamiplaya.com — vacation rental landing.
   Also loaded by Core iframe via Landing.embedCssUrl. */

:root {
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --measure: 62ch;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4rem;

  --bg: #eef3f8;
  --bg-2: #dde7f0;
  --surface: #f7fafc;
  --ink: #0a1e33;
  --ink-soft: #4a5f73;
  --line: #c2d0dc;
  --accent: #1565a0;
  --accent-ink: #f4f9fc;
  --ok: #1f7a4d;
  --danger: #a33b3b;
  --header-bg: rgb(238 243 248 / 0.9);
  --hero-veil: linear-gradient(
    115deg,
    rgb(8 24 48 / 0.18) 0%,
    rgb(8 24 48 / 0.48) 48%,
    rgb(8 24 48 / 0.86) 100%
  );
  --font-display: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
}

body {
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgb(21 101 160 / 0.1), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgb(10 30 51 / 0.06), transparent 50%);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgb(10 30 51 / 0.08);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-text {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.lang-toggle a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.7rem;
}

.lang-toggle a:hover {
  color: var(--ink);
}

.lang-toggle a[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.lang-toggle a[aria-current="page"]:hover {
  color: var(--accent-ink);
  filter: brightness(1.05);
}

.nav-cta {
  display: none;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
}

.nav-cta:hover {
  color: var(--accent-ink);
  filter: brightness(1.06);
}

@media (min-width: 720px) {
  .nav-cta {
    display: inline-flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out,
    border-color 150ms ease-out, filter 150ms ease-out;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  color: var(--accent-ink);
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: 0.92;
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.12);
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  text-wrap: pretty;
}

.muted {
  color: var(--ink-soft);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  color: #f2f7fb;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.02);
  animation: hero-drift 20s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-veil);
}

.hero > .wrap {
  position: relative;
  z-index: 2;
  padding: var(--space-8) 0 var(--space-7);
  min-height: inherit;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
}

.hero-content {
  width: min(34rem, 100%);
  animation: rise-in 900ms var(--ease) both;
}

.hero-brand {
  margin: 0 0 var(--space-4);
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ec5e0;
}

.hero-kicker {
  margin: 0 0 var(--space-3);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgb(243 248 247 / 0.75);
}

.hero h1 {
  margin-bottom: var(--space-4);
  color: #f4f9fc;
}

.hero-lede {
  margin: 0 0 var(--space-6);
  max-width: 38ch;
  color: rgb(243 248 247 / 0.88);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 800px) {
  .hero > .wrap {
    min-height: 0;
  }

  .hero-veil {
    background: linear-gradient(
      to top,
      rgb(8 24 48 / 0.94) 0%,
      rgb(8 24 48 / 0.48) 40%,
      rgb(8 24 48 / 0.12) 70%
    );
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.4%, -0.9%, 0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .hero-content {
    animation: none;
  }
  .btn:active {
    transform: none;
  }
}

/* —— Sections —— */
.section {
  padding: var(--space-8) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: var(--space-6);
}

.section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

.section-head p {
  margin: var(--space-3) 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.band {
  background: var(--bg-2);
}

.perks {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 860px) {
  .perks {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-7);
  }
}

.perk {
  padding-top: var(--space-4);
  border-top: 2px solid var(--ink);
}

.perk h3 {
  margin-bottom: var(--space-3);
}

.perk p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.perk-index {
  display: block;
  margin-bottom: var(--space-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Apartment split */
.apartment-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .apartment-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-7);
    align-items: start;
  }
}

.gallery-main {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  aspect-ratio: 4 / 3;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.gallery-main:hover img {
  transform: scale(1.03);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: var(--space-3);
}

@media (max-width: 520px) {
  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-2);
  aspect-ratio: 1;
}

.gallery-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs button[aria-current="true"] {
  border-color: var(--accent);
}

.gallery-thumbs button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}

.apartment-copy p {
  color: var(--ink-soft);
  margin: 0 0 var(--space-4);
}

.specs {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.specs li {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.specs li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  transform: translateY(-0.1rem);
}

.rooms {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-7);
}

@media (min-width: 720px) {
  .rooms {
    grid-template-columns: repeat(2, 1fr);
  }
}

.room h3 {
  margin-bottom: var(--space-2);
}

.room p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.room ul {
  margin: var(--space-3) 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.room li {
  margin-bottom: 0.25rem;
}

/* Reviews */
.reviews {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 860px) {
  .reviews {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review {
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--line);
}

.review blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink);
}

.review cite {
  display: block;
  margin-top: var(--space-4);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* FAQ */
.faq {
  display: grid;
  gap: var(--space-4);
  max-width: 46rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  list-style: none;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: var(--space-3) 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.place-note {
  max-width: 46rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.place-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* Contact / form */
.contact-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
    gap: var(--space-8);
  }

  .contact-copy {
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }

  .contact-spacer {
    flex: 1 1 auto;
    min-height: var(--space-6);
  }
}

.contact-copy > p {
  margin: var(--space-3) 0 0;
  color: var(--ink-soft);
  max-width: 40ch;
}

.contact-expect {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  max-width: 42ch;
}

.contact-expect li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

.contact-expect-index {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 0.2rem;
}

.embed-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.embed-shell [data-core-embed] iframe {
  width: 100%;
  border: 0;
}

/* Form fields (iframe + theme) */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: var(--space-4);
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.88rem;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0 0 var(--space-4);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.form-status[data-state="ok"] {
  background: color-mix(in srgb, var(--ok) 14%, var(--surface));
  border-color: var(--ok);
}

.form-status[data-state="error"] {
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  border-color: var(--danger);
}

/* Footer / legal */
.site-footer {
  padding: var(--space-7) 0 var(--space-6);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.legal-nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.legal-nav a:hover {
  color: var(--accent);
}

.split-legal {
  padding: var(--space-7) 0 var(--space-8);
  max-width: 68ch;
}

.split-legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: var(--space-5);
}

.split-legal h2 {
  font-size: 1.25rem;
  margin: var(--space-6) 0 var(--space-3);
}

.split-legal p,
.split-legal li {
  color: var(--ink-soft);
}

.split-legal ul {
  padding-left: 1.2rem;
  margin: 0 0 var(--space-4);
}

.split-legal li {
  margin-bottom: 0.4rem;
}

.split-legal .legal-updated {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
}
