/* ============================================================
   Guarujá Enseada — Design tokens
   Paleta: maré profunda + espuma + coral queimado
   Tipografia: Bricolage Grotesque (display) + Inter (corpo)
   ============================================================ */

:root {
  --tide-900: #0e2a3d;
  --tide-800: #14384f;
  --tide-700: #1b4763;
  --foam-50: #f6f8f7;
  --foam-100: #eef2f0;
  --sand-400: #d9a85c;
  --sand-200: #f0dbb2;
  --coral-500: #e8654a;
  --coral-600: #d1553c;
  --seagrass-500: #6f9c8d;
  --ink-900: #14201d;
  --ink-600: #47554f;
  --line: rgba(14, 42, 61, 0.12);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-soft: 0 12px 34px rgba(14, 42, 61, 0.12);
  --shadow-tight: 0 4px 14px rgba(14, 42, 61, 0.10);
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--foam-50);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
  max-width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  font-weight: 600;
}
p { margin: 0 0 1em; color: var(--ink-600); }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  min-width: 0;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--coral-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 20px; height: 1.5px;
  background: var(--coral-500);
  display: inline-block;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn-whats {
  background: #21c063;
  color: #fff;
  box-shadow: 0 8px 20px rgba(33,192,99,.35);
}
.btn-whats:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(33,192,99,.4); }
.btn-outline {
  background: transparent;
  color: var(--tide-900);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--tide-900); }
.btn-sand {
  background: var(--tide-900);
  color: var(--foam-50);
}
.btn-sand:hover { background: var(--tide-700); }
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246,248,247,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--tide-900);
}
.brand .brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(155deg, var(--coral-500), var(--sand-400));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.brand .brand-mark svg { width: 19px; height: 19px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--ink-600); letter-spacing: .04em; }
.nav-desktop { display: none; }
.header-cta { display: none; }

@media (min-width: 860px) {
  .nav-desktop { display: flex; gap: 28px; font-weight: 600; font-size: 14.5px; }
  .nav-desktop a { color: var(--ink-600); transition: color .15s; }
  .nav-desktop a:hover { color: var(--coral-600); }
  .header-cta { display: inline-flex; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 38px 0 46px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 30px;
}
.hero-grid-single {
  padding-top: 20px;
  padding-bottom: 10px;
}
.hero h1 {
  font-size: clamp(30px, 6.4vw, 52px);
  color: var(--tide-900);
}
.hero h1 em {
  font-style: normal;
  color: var(--coral-500);
}
.hero .lede { font-size: 17px; max-width: none; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--tide-900);
  display: block;
}
.hero-stats .stat span { font-size: 12.5px; color: var(--ink-600); text-transform: uppercase; letter-spacing: .06em; }

/* wave divider */
.wave-divider {
  display: block;
  width: 100%;
  height: 46px;
  color: var(--foam-100);
}

/* ---------------- Section heads ---------------- */
.section { padding: 52px 0; }
.section-head { margin-bottom: 30px; }
.section-head h2 { font-size: clamp(24px, 4.6vw, 34px); color: var(--tide-900); }
.section-tinted { background: var(--foam-100); }

/* ---------------- Property cards ---------------- */
.property-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .property-grid { grid-template-columns: repeat(3, 1fr); }
}
.property-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-tight);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.property-card .thumb {
  position: relative;
  height: 0;
  padding-bottom: 75%; /* proporção 4:3, compatível com qualquer navegador */
  overflow: hidden;
}
.property-card .thumb img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.property-card:hover .thumb img { transform: scale(1.05); }
.badge-dist {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,.94);
  color: var(--tide-900);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 6px;
}
.badge-dist svg { width: 14px; height: 14px; color: var(--coral-500); flex-shrink: 0; }
.property-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.property-card h3 { font-size: 19px; color: var(--tide-900); margin-bottom: 2px; }
.addr { font-size: 13px; color: var(--ink-600); display: flex; gap: 6px; align-items: flex-start; }
.addr svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: var(--seagrass-500); }
.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--foam-100);
  color: var(--ink-900);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
}
.spec-pill svg { width: 14px; height: 14px; color: var(--tide-700); }
.card-actions { margin-top: auto; display: flex; justify-content: center; gap: 10px; padding-top: 4px; }
.card-actions .btn { flex: 1; max-width: 220px; padding: 12px 14px; font-size: 13.5px; }

/* ---------------- Carrossel de fotos (com setas) ---------------- */
.js-carousel {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* proporção 4:3, compatível com qualquer navegador */
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--foam-100);
  isolation: isolate;
}
.js-carousel-track { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; }
.js-carousel-slide {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
  pointer-events: none;
}
.js-carousel-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14,42,61,.55);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background .15s ease;
}
.carousel-arrow:hover { background: rgba(14,42,61,.82); }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow-prev { left: 10px; }
.carousel-arrow-next { right: 10px; }
.carousel-counter {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(14,42,61,.68);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 3;
}

/* ---------------- Property list (home, blocos completos) ---------------- */
.property-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
  max-width: 100%;
}
.property-feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-tight);
  display: grid;
  gap: 22px;
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 900px) {
  .property-feature { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: center; padding: 26px; }
}
.property-feature-media { min-width: 0; max-width: 100%; position: relative; }
.property-feature-body { min-width: 0; max-width: 100%; }
.property-feature-media .badge-dist { z-index: 3; }
.property-feature-body h3 { font-size: 22px; color: var(--tide-900); margin-bottom: 8px; }
.feature-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
}
.feature-list li svg { width: 17px; height: 17px; color: var(--seagrass-500); flex-shrink: 0; }
@media (min-width: 480px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- Property detail page ---------------- */
.detail-title-top { margin-bottom: 18px; }
.detail-title-top h1 { font-size: clamp(26px, 4.6vw, 38px); color: var(--tide-900); margin-bottom: 0; }

.gallery {
  display: grid;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}
.js-carousel-lg { border-radius: var(--radius-lg); }
.gallery-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  max-width: 100%;
}
.gallery-scroll img {
  scroll-snap-align: start;
  width: 84px; height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .75;
  transition: opacity .15s, border-color .15s;
}
.gallery-scroll img.active { opacity: 1; border-color: var(--coral-500); }

.detail-grid {
  display: grid;
  gap: 40px;
  margin-top: 34px;
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 960px) {
  .detail-grid { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); align-items: start; }
}
.detail-main { min-width: 0; }
.detail-header h1 { font-size: clamp(26px, 4.6vw, 38px); color: var(--tide-900); }
.detail-address {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-600); font-size: 14.5px; margin-top: 8px; margin-bottom: 22px;
}
.detail-address svg { width: 17px; height: 17px; color: var(--coral-500); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 26px 0;
}
@media (min-width: 480px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
.spec-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
}
.spec-card svg { width: 22px; height: 22px; color: var(--coral-500); margin-bottom: 8px; }
.spec-card b { display: block; font-family: var(--font-display); font-size: 17px; color: var(--tide-900); }
.spec-card span { font-size: 11.5px; color: var(--ink-600); text-transform: uppercase; letter-spacing: .04em; }

.amenity-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px 16px; }
.amenity-list li { list-style: none; display: flex; gap: 10px; align-items: center; font-size: 14.5px; font-weight: 500; }
.amenity-list svg { width: 19px; height: 19px; color: var(--seagrass-500); flex-shrink: 0; }

.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-tight);
  position: sticky;
  top: 90px;
}
.sidebar-card h3 { font-size: 19px; color: var(--tide-900); }
.sidebar-card .price { font-family: var(--font-display); font-size: 26px; color: var(--tide-900); margin: 6px 0 16px; }
.sidebar-card .price span { font-size: 13px; font-weight: 500; color: var(--ink-600); }

.map-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 0;
  padding-bottom: 75%; /* proporção 4:3, compatível com qualquer navegador */
}
.map-wrap iframe { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; }

.nearby-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.nearby-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; padding: 9px 12px;
  background: var(--foam-100); border-radius: var(--radius-sm);
}
.nearby-item svg { width: 17px; height: 17px; color: var(--coral-500); flex-shrink: 0; }
.nearby-item .dist { margin-left: auto; font-weight: 700; color: var(--tide-900); font-size: 12.5px; }

/* ---------------- Region page ---------------- */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.6em; color: var(--tide-900); font-size: 24px; }
.prose p { font-size: 15.5px; }
.beach-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 26px 0; }
@media (min-width: 720px) { .beach-grid { grid-template-columns: repeat(3, 1fr); } }
.beach-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; }
.beach-card h4 { color: var(--tide-900); font-size: 16px; }
.beach-card p { font-size: 13.5px; margin: 0; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--tide-900);
  color: var(--foam-100);
  padding: 46px 0 28px;
  margin-top: 40px;
}
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: rgba(246,248,247,.75); font-size: 14px; display: block; margin-bottom: 8px; transition: color .15s; }
.site-footer a:hover { color: var(--sand-400); }
.site-footer p { color: rgba(246,248,247,.65); font-size: 13.5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 34px; padding-top: 20px;
  font-size: 12.5px; color: rgba(246,248,247,.55);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}

/* ---------------- WhatsApp floating button ---------------- */
.whats-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 50;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #21c063;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(33,192,99,.45);
  animation: floatpulse 2.8s ease-in-out infinite;
}
.whats-float svg { width: 28px; height: 28px; color: #fff; }
@keyframes floatpulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .whats-float { animation: none; }
}

/* ---------------- Breadcrumb ---------------- */
.breadcrumb { font-size: 12.5px; color: var(--ink-600); margin-bottom: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--tide-700); font-weight: 600; }
.breadcrumb span { opacity: .5; }

/* ---------------- Misc ---------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
