/* ===== PURAVIDA XP — SHARED STYLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --jungle: #1B3A2D;
  --jungle-light: #2A5240;
  --sand: #F5ECD7;
  --sand-dark: #EDE0C4;
  --pacific: #2E7D9B;
  --gold: #E8A045;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #5A5A5A;
  --card-border: #D4C9B0;
  --radius: 12px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--sand);
  color: var(--text);
  line-height: 1.6;
}

/* PRIDE STRIPE */
.pride-stripe {
  height: 5px;
  background: linear-gradient(to right,
    #E40303 0% 14.28%, #FF8C00 14.28% 28.57%,
    #FFED00 28.57% 42.85%, #008026 42.85% 57.14%,
    #004DFF 57.14% 71.42%, #750787 71.42% 100%);
}

/* NAV */
nav {
  background: var(--jungle);
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 58px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--sand);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
}
.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(245,236,215,0.7);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.03em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--sand);
  border-bottom-color: var(--gold);
}

/* HERO */
.hero {
  background: var(--jungle);
  padding: 60px 24px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(46,125,155,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 16px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  color: rgba(245,236,215,0.75);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 32px;
  font-weight: 300;
}
.hero-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 0.82rem;
  color: var(--sand);
  font-weight: 500;
}

/* MAIN */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* SECTION HEADERS */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 24px;
}
.section-header:first-child { margin-top: 0; }
.section-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--jungle);
  white-space: nowrap;
}
.section-rule { height: 1px; background: var(--card-border); flex: 1; }
.section-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* CARDS */
.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  border-left: 4px solid var(--jungle);
  overflow: hidden;
  margin-bottom: 20px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(27,58,45,0.12);
  transform: translateY(-2px);
}
.card-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
}
.card-grid.small { grid-template-columns: 220px 1fr; }

/* PHOTO */
.card-photo {
  position: relative;
  overflow: hidden;
  background: var(--sand-dark);
  min-height: 200px;
}
.card-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.card:hover .card-photo img { transform: scale(1.04); }
.photo-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--jungle);
  color: var(--white);
  font-size: 0.7rem; font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.photo-badge.gold { background: var(--gold); color: var(--jungle); }
.photo-badge.blue { background: var(--pacific); color: var(--white); }
.rating-badge {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(0,0,0,0.65);
  color: var(--white);
  font-size: 0.78rem; font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

/* CARD BODY */
.card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--jungle);
  line-height: 1.25;
}
.card-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.tag {
  background: var(--sand);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}
.tag.hl {
  background: rgba(27,58,45,0.08);
  border-color: rgba(27,58,45,0.2);
  color: var(--jungle);
  font-weight: 600;
}
.tag.na {
  background: rgba(90,90,90,0.08);
  border-color: rgba(90,90,90,0.2);
  color: var(--text-muted);
  font-style: italic;
}
.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.amenity {
  font-size: 0.75rem;
  color: var(--pacific);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.amenity::before { content: '✓'; font-size: 0.7rem; font-weight: 700; }

/* CARD FOOTER */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--sand-dark);
  margin-top: auto;
}
.contact-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--jungle);
  color: var(--white);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--jungle-light); transform: translateY(-1px); }
.btn.gold { background: var(--gold); color: var(--jungle); }
.btn.gold:hover { background: #d4903a; }
.btn svg { width: 13px; height: 13px; flex-shrink: 0; }

/* COMPLEX GROUP */
.complex {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--pacific);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.complex-header {
  background: var(--jungle);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.complex-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 700;
}
.complex-subtitle {
  font-size: 0.8rem;
  color: rgba(245,236,215,0.7);
  margin-top: 3px;
}
.complex-desc {
  padding: 16px 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--sand-dark);
  line-height: 1.65;
}
.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.unit {
  padding: 16px 20px;
  border-right: 1px solid var(--sand-dark);
  border-bottom: 1px solid var(--sand-dark);
}
.unit-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--jungle);
  font-weight: 700;
  margin-bottom: 4px;
}
.unit-rating { font-size: 0.78rem; font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.unit-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 10px; }
.unit-link {
  font-size: 0.78rem; font-weight: 600;
  color: var(--pacific); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color 0.2s;
}
.unit-link:hover { color: var(--jungle); }
.unit-link.na { color: var(--text-muted); cursor: default; font-style: italic; }

/* COMING SOON CARD */
.coming-soon {
  background: var(--white);
  border: 2px dashed var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-bottom: 20px;
}
.coming-soon h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--jungle);
  margin-bottom: 8px;
}
.coming-soon p { font-size: 0.85rem; color: var(--text-muted); max-width: 400px; margin: 0 auto; }

/* BOTTOM CTA */
.bottom-cta {
  background: var(--jungle);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  margin-top: 56px;
}
.bottom-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 10px;
}
.bottom-cta p {
  color: rgba(245,236,215,0.75);
  font-size: 0.92rem;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}

/* FOOTER */
footer {
  background: var(--jungle);
  text-align: center;
  padding: 24px;
  font-size: 0.78rem;
  color: rgba(245,236,215,0.5);
}
footer a { color: var(--gold); text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 680px) {
  .card-grid, .card-grid.small { grid-template-columns: 1fr; }
  .card-photo { min-height: 200px; max-height: 220px; }
  .card-footer { flex-direction: column; align-items: flex-start; }
  .card-footer .btn { width: 100%; justify-content: center; }
  .complex-header { flex-direction: column; align-items: flex-start; }
  nav { padding: 0 16px; flex-wrap: wrap; min-height: auto; }
  .nav-links { overflow-x: auto; width: 100%; }
  .nav-links a { padding: 12px 12px; font-size: 0.78rem; }
  main { padding: 28px 16px 60px; }
  .hero { padding: 44px 20px 40px; }
}

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

/* EXTERNAL LINK ICON */
.ext-icon { width: 13px; height: 13px; flex-shrink: 0; }
