/* Bo Cas Aruba — Custom styles */

:root {
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', Inter, system-ui, -apple-system, sans-serif;
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;
  --brand-500: #14b8a6;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-800: #115e59;
  --sand-50: #fffbeb;
  --sand-100: #fef3c7;
  --sand-200: #fde68a;
  --ink-900: #0f172a;
  --ink-500: #64748b;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-family: var(--sans); }

/* Editorial typography: serif display headings, humanist sans body */
h1, h2, .font-display { font-family: var(--serif); letter-spacing: -0.01em; }
h1 { line-height: 1.08; }
h2 { line-height: 1.15; }
.font-body { font-family: var(--sans); }
.brand-word { font-family: var(--serif); font-weight: 700; letter-spacing: -0.005em; }
.brand-word em { font-style: normal; color: var(--brand-700); }

/* Hero background — soft Caribbean gradient */
.hero-gradient {
  background:
    radial-gradient(80% 60% at 18% 0%, rgba(45,212,191,0.22) 0%, transparent 60%),
    radial-gradient(75% 60% at 100% 0%, rgba(251,191,36,0.20) 0%, transparent 60%),
    linear-gradient(180deg, #f0fdfa 0%, #ffffff 70%);
}

.section-sand {
  background: linear-gradient(180deg, #fffbeb 0%, #fff8e1 100%);
}

.section-tide {
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}

/* Property card hover */
.card-hover { transition: transform .2s ease, box-shadow .2s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -6px rgba(15,23,42,0.16); }

/* Image fallback */
.img-fallback {
  background:
    linear-gradient(135deg, #5eead4 0%, #14b8a6 55%, #0f766e 100%);
}

/* Pretty focus ring */
:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Step indicator */
.step-dot {
  width: 28px; height: 28px;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #475569;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
}
.step-dot.active { background: var(--brand-600); color: #fff; }
.step-dot.done   { background: var(--brand-100); color: var(--brand-700); }

/* Form inputs */
.input, .select, .textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  font-size: 16px; /* Avoid iOS zoom */
  color: var(--ink-900);
  transition: border .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.18);
}
.label { font-size: 14px; font-weight: 600; color: #334155; margin-bottom: 6px; display: block; }
.hint  { font-size: 12px; color: #64748b; margin-top: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 11px 18px;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-secondary { background: #fff; color: var(--brand-700); border: 1px solid var(--brand-200, #99f6e4); }
.btn-secondary:hover { background: var(--brand-50); }
.btn-ghost { background: transparent; color: #334155; }
.btn-ghost:hover { background: #f1f5f9; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebd5b; }
.btn-danger-ghost { background: transparent; color: #b91c1c; border: 1px solid #fecaca; }
.btn-danger-ghost:hover { background: #fef2f2; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 4px 8px; border-radius: 999px;
  letter-spacing: .02em; text-transform: uppercase;
}
.badge-sale { background: #ecfdf5; color: #065f46; }
.badge-rent { background: #eff6ff; color: #1e40af; }
.badge-verified { background: #fef3c7; color: #92400e; }
.badge-featured { background: #ccfbf1; color: #0f766e; }

/* Disclaimer */
.disclaimer {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 14px 16px;
  color: #78350f;
  font-size: 13px;
  line-height: 1.55;
}
.disclaimer strong { color: #713f12; }

/* Accordion */
details.faq summary { list-style: none; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] summary .chev { transform: rotate(180deg); }
details.faq summary .chev { transition: transform .2s ease; }

/* Toast */
.toast {
  background: #0f172a; color: #fff;
  padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 24px -6px rgba(15,23,42,0.35);
  animation: toast-in .2s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scrollbar (subtle) */
@media (min-width: 768px) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
  ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
}

/* Property image aspect */
.aspect-photo { aspect-ratio: 4 / 3; }

/* Mobile bottom-safe spacing for floating CTAs */
.safe-bottom { padding-bottom: max(env(safe-area-inset-bottom), 1rem); }

/* Prose tweaks for guides */
.prose-aruba h2 { font-size: 1.35rem; font-weight: 700; color: #0f172a; margin: 1.4rem 0 .6rem; }
.prose-aruba h3 { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin: 1.1rem 0 .4rem; }
.prose-aruba p  { color: #334155; line-height: 1.65; margin-bottom: .8rem; }
.prose-aruba ul { list-style: disc; padding-left: 1.25rem; color: #334155; line-height: 1.65; }
.prose-aruba ol { list-style: decimal; padding-left: 1.25rem; color: #334155; line-height: 1.65; }
.prose-aruba li { margin-bottom: .4rem; }

/* Mobile nav drawer */
.drawer-enter { transform: translateX(100%); }
.drawer-enter-active { transform: translateX(0); transition: transform .2s ease; }

/* Notary Ready dropzone */
.dropzone { cursor: pointer; }
.dropzone-active > div { border-color: var(--brand-600) !important; background: rgba(13,148,136,0.07); }
.dropzone-active { transform: scale(0.998); }

/* ======================================================================
   HOME v3 — image-rich editorial layout (Bo Cas Aruba)
   ====================================================================== */

/* Hero: full-bleed photo with a left-to-right teal scrim for legible text */
.hero3 {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: #0f766e;
}
.hero3-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 50%;
}
.hero3-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,60,56,0.78) 0%, rgba(6,60,56,0.42) 45%, rgba(6,60,56,0.08) 75%),
    linear-gradient(180deg, rgba(6,60,56,0.30) 0%, rgba(6,60,56,0) 30%, rgba(6,60,56,0.30) 100%);
}
.hero3 > .hero3-content { position: relative; z-index: 2; width: 100%; }
.hero3-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero3 h1 { font-size: clamp(38px, 5.2vw, 66px); max-width: 15ch; }
.hero3 h1 em { font-style: italic; color: #5eead4; }
.hero3-sub { font-size: clamp(16px, 1.4vw, 18px); max-width: 48ch; opacity: 0.94; }
.hero3-stats { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; }
.hero3-stats b { font-family: var(--serif); font-size: 26px; display: block; line-height: 1; }
.hero3-stats span { opacity: 0.88; }

/* Compact horizontal search bar in the hero */
.search3 {
  background: rgba(255,255,255,0.97);
  border-radius: 18px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  box-shadow: 0 24px 60px -20px rgba(6,40,38,0.55);
  color: var(--ink-900);
}
.search3 .sf { padding: 6px 12px; min-width: 0; }
.search3 .sf label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-500);
}
.search3 .sf select, .search3 .sf input {
  width: 100%; border: 0; background: transparent;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-900);
  padding: 2px 0 0; outline: none; text-overflow: ellipsis;
}
.search3 .sf select { appearance: auto; }
@media (max-width: 767px) { .search3 .sf select, .search3 .sf input { font-size: 14px; } }
.search3 .sf input::placeholder { color: #94a3b8; font-weight: 500; }
.search3 .sbtn { grid-column: 1 / -1; }
.search3 .sbtn .btn { width: 100%; border-radius: 12px; }
@media (min-width: 768px) {
  .search3 { grid-template-columns: 1.05fr 1.25fr 1fr 0.9fr auto; gap: 0; }
  .search3 .sf { border-right: 1px solid #e6ebf1; }
  .search3 .sf:nth-child(4) { border-right: 0; }
  .search3 .sbtn { grid-column: auto; padding-left: 8px; display: flex; }
  .search3 .sbtn .btn { width: auto; align-self: stretch; }
}

/* Section header (left aligned, editorial) */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); color: var(--ink-900); }
.sec-head p  { color: var(--ink-500); margin-top: 8px; max-width: 54ch; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700); }
.seelink { color: var(--brand-700); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.seelink:hover { text-decoration: underline; }

/* Neighborhood image tiles */
.areas { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 12px; }
@media (min-width: 900px) { .areas { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 16px; } .area.big { grid-row: span 2; } }
.area { position: relative; border-radius: 16px; overflow: hidden; color: #fff; display: block; background: #0f766e; }
.area img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; display: block; }
.area:hover img { transform: scale(1.06); }
.area::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,40,38,0) 40%, rgba(6,40,38,0.74) 100%); }
.area .cap { position: absolute; left: 14px; bottom: 12px; right: 14px; z-index: 2; }
.area .cap b { font-family: var(--serif); font-size: 19px; font-weight: 700; display: block; }
.area .cap span { font-size: 12px; opacity: .92; display: block; }

/* Lifestyle band (owners CTA) */
.band { position: relative; color: #fff; border-radius: 24px; overflow: hidden; background: #0f766e; }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.band-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,118,110,0.94) 0%, rgba(15,118,110,0.72) 45%, rgba(15,118,110,0.18) 100%); }
.band .inner { position: relative; z-index: 2; padding: 44px 24px; }
@media (min-width: 768px) { .band .inner { padding: 64px 48px; } }
.band h2 { font-size: clamp(28px, 3.4vw, 42px); max-width: 17ch; }
.band p  { max-width: 46ch; opacity: .95; }
.btn-white { background: #fff; color: var(--brand-800); }
.btn-white:hover { background: var(--brand-50); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.14); }

/* How it works — light numbered steps */
.step3 .n {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--brand-50); color: var(--brand-700);
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}

/* Guide photo cards */
.guides { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .guides { grid-template-columns: 2fr 1fr 1fr; gap: 20px; } }
.guide { position: relative; border-radius: 18px; overflow: hidden; color: #fff; min-height: 220px; display: block; background: #0f766e; }
.guide img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .45s ease; }
.guide:hover img { transform: scale(1.04); }
.guide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,40,38,0.05), rgba(6,40,38,0.80)); }
.guide .g { position: relative; z-index: 2; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 220px; }
.guide .g .k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.guide .g h3 { font-family: var(--serif); font-size: 21px; line-height: 1.2; margin-top: 6px; font-weight: 700; }

/* Testimonials panel */
.testi { background: var(--brand-50); border-radius: 22px; padding: 28px; }
@media (min-width: 768px) { .testi { padding: 48px; } }
.q p.quote { font-family: var(--serif); font-style: italic; font-size: 16px; color: #1e3a37; line-height: 1.55; }

/* Featured card price in serif */
.price-serif { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink-900); }

/* Header brand + dark teal footer */
.site-footer { background: #08312e; color: #cfe9e5; }
.site-footer a:hover { color: #fff; }

/* Legacy alias kept for other pages that still reference .hero-photo */
.hero-photo {
  background:
    radial-gradient(60% 70% at 84% 12%, rgba(251,191,36,0.28) 0%, transparent 55%),
    linear-gradient(135deg, rgba(13,148,136,0.64) 0%, rgba(15,118,110,0.70) 55%, rgba(17,94,89,0.74) 100%),
    url('img/hero.jpg') center/cover;
  color: #ffffff;
  position: relative;
}

/* Small "Sample photo" tag on placeholder images */
.placeholder-tag {
  position: absolute;
  bottom: 8px; right: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Ticker / marquee strip */
.ticker {
  background: var(--brand-700);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  opacity: .95;
}
.ticker-item::before { content: "•"; opacity: .5; margin-right: .75rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Category chip */
.cat-chip { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.cat-chip:hover { border-color: var(--brand-200, #99f6e4); box-shadow: 0 6px 18px -8px rgba(13,148,136,0.28); transform: translateY(-1px); }

/* FAQ topic chip */
.topic-chip {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: all .15s ease;
}
.topic-chip:hover { border-color: var(--brand-500); color: var(--brand-700); }
.topic-active { background: var(--brand-600); color: #fff !important; border-color: var(--brand-600) !important; }
