/* ============================================================
   CHP — Custom Styles
   NOTE: Tailwind CDN used for dev. Switch to compiled Tailwind
   for production builds.
   ============================================================ */

:root {
  --primary:       #D4AF37;
  --primary-dark:  #B8860B;
  --primary-light: #FDFBF7;
  --dark:          #0A0A0A;
  --dark-2:        #111111;
  --text:          #1C1C1E;
  --text-muted:    #6B7280;
  --bg:            #F7F8FA;
  --white:         #FFFFFF;
  --border:        #E4E7EC;
  --accent-amber:  #F59E0B;
  --accent-green:  #25D366; /* WhatsApp */
  --wa-dark:       #128C7E;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Typography ---- */
.font-display { font-family: 'Playfair Display', Georgia, serif; }

/* ---- Brand ---- */
.brand-logo {
  font-weight: 800;
  font-size: 1.1rem; /* Smaller for mobile to fit long name */
  letter-spacing: -0.03em;
  color: var(--white);
}
@media (min-width: 640px) {
  .brand-logo {
    font-size: 1.3rem;
  }
}
@media (min-width: 1024px) {
  .brand-logo {
    font-size: 1.5rem;
  }
}
.brand-logo span { color: var(--primary); }

/* ---- Navbar ---- */
#navbar {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 100;
}
.nav-dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
}
.nav-dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-item:hover .nav-dropdown { display: block; }

/* Mobile nav */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
#mobile-menu.open { max-height: 500px; }

/* ---- Hero ---- */
.hero-section {
  min-height: 90vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,20,0.5) 0%,
    rgba(10,10,20,0.25) 50%,
    rgba(10,10,20,0.0) 100%
  );
}
.hero-content { position: relative; z-index: 2; }

/* Search bar */
.hero-search {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.hero-search input,
.hero-search select {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
}
.hero-search input::placeholder { color: var(--text-muted); }
.divider-v {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* Quick filter tags */
.filter-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.filter-tag:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---- Cards ---- */
.chp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.chp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,94,0.1);
  border-color: var(--primary);
}

/* ---- Category cards ---- */
.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}
.cat-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.cat-card:hover .cat-card-img { transform: scale(1.05); }
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
}
.cat-card-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  width: 100%;
}

/* ---- Steps ---- */
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-connector {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 1rem;
}

/* ---- Listing grid card ---- */
.listing-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  background: #e9ecef;
  overflow: hidden;
}
.listing-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.chp-card:hover .listing-img-wrap img { transform: scale(1.04); }
.badge-ref {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(212,175,55,0.92);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
}
.badge-status {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ---- Section label ---- */
.section-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--primary);
}

/* ---- Pulse dot ---- */
.pulse-dot {
  display: inline-flex;
  position: relative;
  width: 10px;
  height: 10px;
}
.pulse-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary);
  animation: ping 1.4s cubic-bezier(0,0,0.2,1) infinite;
}
.pulse-dot::after {
  content: '';
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---- WhatsApp float ---- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
.wa-float-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-green);
  animation: ping 2s cubic-bezier(0,0,0.2,1) infinite;
}

/* ---- Animations ---- */
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.22s; }
.fade-up-d3 { animation-delay: 0.34s; }

/* ---- Utility ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--dark);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 6px;
  border: 1.5px solid var(--primary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--dark);
}

/* ---- Spec pill ---- */
.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.spec-pill svg { color: var(--primary); }

/* ---- Section divider ---- */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ---- Map section ---- */
.map-embed {
  width: 100%;
  height: 380px;
  border: none;
  border-radius: 8px;
  filter: grayscale(15%);
}

/* ---- Footer ---- */
footer { background: var(--dark-2); color: rgba(255,255,255,0.85); }
footer a { color: rgba(255,255,255,0.65); transition: color 0.2s; text-decoration: none; }
footer a:hover { color: #fff; }

/* ---- Scrollbar (sidebar) ---- */
.custom-scroll::-webkit-scrollbar { width: 4px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ---- Mobile overrides ---- */
@media (max-width: 767px) {
  .hero-section { min-height: 100svh; align-items: flex-end; padding-bottom: 2rem; }
  .hero-search { flex-direction: column; }
  .hero-search .divider-v { display: none; }
  .map-embed { height: 260px; }
  .step-connector { display: none; }
}
