/* ==========================================================================
   PRIMENEST REALTY — LUXURY REAL ESTATE STYLESHEET
   ========================================================================== */

:root {
  /* Luxury Residences (Default) */
  --bg-primary: #0a111f;
  --bg-secondary: #0f1a30;
  --bg-card: #15223e;
  --bg-card-hover: #1c2e54;
  --bg-glass: rgba(15, 26, 48, 0.92);
  
  --gold: #d4af37;
  --gold-hover: #e5be49;
  --gold-light: rgba(212, 175, 55, 0.15);
  --gold-glow: rgba(212, 175, 55, 0.35);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-active: rgba(212, 175, 55, 0.45);
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-alt: 'Outfit', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 38px rgba(0, 0, 0, 0.5);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Commercial Theme */
body.theme-commercial {
  --bg-primary: #0b1522;
  --bg-secondary: #102033;
  --bg-card: #182e47;
  --gold: #38bdf8;
  --gold-hover: #60a5fa;
  --gold-light: rgba(56, 189, 248, 0.15);
  --gold-glow: rgba(56, 189, 248, 0.35);
}

/* Rentals Theme */
body.theme-rentals {
  --bg-primary: #12151c;
  --bg-secondary: #1a1e28;
  --bg-card: #222735;
  --gold: #f472b6;
  --gold-hover: #fb7185;
  --gold-light: rgba(244, 114, 182, 0.15);
  --gold-glow: rgba(244, 114, 182, 0.35);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Demo Top Bar */
.demo-bar {
  background: #060b14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-size: 0.85rem;
}

.demo-bar-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e4e4e7;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}

.demo-presets {
  display: flex;
  align-items: center;
  gap: 8px;
}

.style-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d4d4d8;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.style-pill:hover, .style-pill.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  font-weight: 700;
}

.back-hub-btn {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Navbar */
.navbar {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 37px;
  z-index: 990;
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-light);
  border: 1px solid var(--border-active);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.3rem;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: block;
}

.brand-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-link:hover {
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 1.25rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--gold);
  color: #0b111f;
  box-shadow: 0 4px 16px var(--gold-glow);
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: var(--gold-light);
  color: var(--gold);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.w-100 {
  width: 100%;
}

.flex-grow {
  flex-grow: 1;
}

/* Typography Helpers */
.text-gold { color: var(--gold); }
.italic { font-style: italic; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  background: var(--gold-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-active);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 0 110px;
  background: linear-gradient(180deg, #0a111f 0%, #0f1c34 100%);
  text-align: center;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-active);
  color: #fde68a;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 40px;
}

/* Search Filter Box */
.search-filter-card {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  text-align: left;
}

.search-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 16px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid var(--border-active);
}

.search-inputs-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 16px;
  align-items: flex-end;
}

.input-col label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.filter-select {
  width: 100%;
  padding: 12px 14px;
  background: #0b1322;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.filter-select:focus {
  border-color: var(--gold);
}

.btn-search {
  height: 46px;
}

/* Properties Grid */
.properties-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 48px;
}

.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.property-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.prop-img-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.prop-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.property-card:hover .prop-img-wrap img {
  transform: scale(1.06);
}

.prop-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 17, 31, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-active);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.prop-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.prop-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.prop-body h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.prop-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.prop-specs {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
  padding: 12px 0;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.prop-specs i {
  color: var(--gold);
  margin-right: 4px;
}

.prop-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* Calculator Section */
.calculator-section {
  padding: 90px 0;
}

.calculator-box {
  background: linear-gradient(135deg, #13203c 0%, #0a1324 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-md);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

.slider-group {
  margin-bottom: 24px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.range-slider {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #1e3a6c;
  outline: none;
  cursor: pointer;
}

.calc-output-card {
  background: #0b1424;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}

.out-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.emi-large-val {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  color: var(--gold);
  margin: 8px 0 20px;
  line-height: 1;
}

.emi-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  border-top: 1px dashed var(--border-color);
  padding: 16px 0;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.emi-row {
  display: flex;
  justify-content: space-between;
}

.total-repayment {
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  font-weight: 700;
  color: #fff;
}

/* Neighborhood Section */
.neighborhood-section {
  padding: 90px 0;
  background: var(--bg-secondary);
}

.neighborhood-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.proximity-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.prox-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.prox-card i {
  font-size: 1.4rem;
  margin-top: 2px;
}

.prox-card strong {
  display: block;
  font-size: 0.92rem;
}

.prox-card small {
  color: var(--text-muted);
}

/* Agents Section */
.agents-section {
  padding: 90px 0;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 48px;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  overflow: hidden;
}

.agent-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.agent-body h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.agent-role {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.agent-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Reviews Section */
.reviews-section {
  padding: 90px 0;
  background: var(--bg-secondary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--radius-lg);
}

.stars {
  color: var(--gold);
  margin-bottom: 14px;
}

.review-card p {
  color: #e2e8f0;
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 20px;
}

.reviewer strong {
  display: block;
  font-size: 0.95rem;
}

.reviewer small {
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: #050a14;
  border-top: 1px solid var(--border-color);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.demo-price {
  background: var(--gold-light);
  border: 1px solid var(--border-active);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--gold);
  display: inline-block;
  margin-bottom: 12px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #111d33;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  position: relative;
}

.modal-content.prop-modal-box {
  max-width: 840px;
  padding: 0;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
}

.prop-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.prop-modal-img img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.prop-modal-details {
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.prop-modal-tag {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.prop-modal-details h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.prop-modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.prop-modal-location {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.prop-modal-desc {
  color: #cbd5e1;
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.prop-specs-row {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
  padding: 14px 0;
  margin-bottom: 24px;
}

.prop-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: #091222;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

.wa-tooltip {
  position: absolute;
  right: 70px;
  background: #0a111f;
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
}

.floating-whatsapp:hover .wa-tooltip {
  opacity: 1;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gold);
  color: #000;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  z-index: 1100;
  transition: var(--transition);
  font-size: 0.9rem;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.9); opacity: 0.6; }
}

/* Responsive */
@media (max-width: 992px) {
  .search-inputs-grid, .calc-grid, .neighborhood-grid, .agent-card, .footer-grid {
    grid-template-columns: 1fr;
  }
  .properties-grid, .agents-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }
  .prop-modal-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .proximity-cards {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.3rem;
  }
}
