/* ==========================================================================
   Platinum Inc. Residential Services — Property Management Platform
   Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES / THEME
   -------------------------------------------------------------------------- */
:root {
  --primary-color: #0b1f3a;      /* dark navy */
  --primary-color-light: #142c52;
  --secondary-color: #14335c;    /* secondary navy */
  --accent-color: #d4a94b;       /* gold */
  --accent-color-dark: #b8862f;
  --text-dark: #0b1f3a;
  --text-muted: #5c6b82;
  --bg-light: #f7f8fa;
  --bg-white: #ffffff;
  --border-color: #e7eaf0;
  --success-color: #2e7d5b;
  --danger-color: #c0392b;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 12px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 20px 48px rgba(11, 31, 58, 0.16);
  --transition: all 0.3s ease;
  --font-main: "Inter", sans-serif;
}

/* Dark theme overrides (toggled via data-theme="dark" on <html>) */
[data-theme="dark"] {
  --bg-light: #0e162a;
  --bg-white: #101a30;
  --text-dark: #f2f4f8;
  --text-muted: #a9b3c4;
  --border-color: #223052;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------------------
   2. BASE / RESET
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-white);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text-dark); }

a { text-decoration: none; }

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

::selection { background: var(--accent-color); color: #fff; }

.text-accent { color: var(--accent-color) !important; }
.bg-navy { background-color: var(--primary-color) !important; }
.bg-soft { background-color: var(--bg-light) !important; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-color);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. NAVBAR
   -------------------------------------------------------------------------- */
.navbar-custom {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: 0.85rem 0;
  transition: var(--transition);
}

.navbar-brand.brand-custom {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary-color) !important;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
}
.navbar-brand.brand-custom span { color: var(--accent-color); }
.brand-logo-img { height: 72px; width: auto; display: block; }

/* Footer / dark sidebar logo badge — keeps the white-background logo legible on navy */
.footer-logo-badge,
.sidebar-logo-badge {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
}
.footer-logo-badge img,
.sidebar-logo-badge img { height: 64px; width: auto; display: block; }

.navbar-custom .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 0.4rem;
  position: relative;
  padding: 0.5rem 0.2rem !important;
}

.navbar-custom .nav-link.active,
.navbar-custom .nav-link:hover {
  color: var(--accent-color-dark);
}

.navbar-custom .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--accent-color);
  border-radius: 2px;
}

.dropdown-menu-custom {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  margin-top: 0.5rem;
}
.dropdown-menu-custom .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}
.dropdown-menu-custom .dropdown-item:hover,
.dropdown-menu-custom .dropdown-item:focus {
  background-color: rgba(212, 169, 75, 0.15);
  color: var(--accent-color-dark);
}

.theme-toggle-btn {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-dark);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.theme-toggle-btn:hover { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn-primary-custom {
  background-color: var(--accent-color);
  border: 1px solid var(--accent-color);
  color: #101a30;
  font-weight: 600;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-primary-custom:hover {
  background-color: var(--accent-color-dark);
  border-color: var(--accent-color-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#submission-confirmation-popup {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
}

#submission-confirmation-popup.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submission-confirmation-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 300px;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--success-color);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.1rem;
  color: var(--text-dark);
}

.submission-confirmation-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 125, 91, 0.12);
  color: var(--success-color);
  font-size: 1.3rem;
}

.submission-confirmation-card strong {
  display: block;
  margin-bottom: 0.15rem;
}

.submission-confirmation-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-outline-custom {
  background-color: transparent;
  border: 1.5px solid #fff;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-outline-custom:hover {
  background-color: #fff;
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-navy-custom {
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-navy-custom:hover {
  background-color: var(--primary-color-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn-sm-custom {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  isolation: isolate;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11,31,58,0.92) 10%, rgba(11,31,58,0.65) 55%, rgba(11,31,58,0.35) 100%);
  z-index: -1;
}

.hero-section .hero-content { max-width: 700px; }

.hero-section h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-section .lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
}

.hero-sub {
  min-height: 45vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  isolation: isolate;
}
.hero-sub::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(11, 31, 58, 0.82);
  z-index: -1;
}
.hero-sub h1,
.hero-sub p {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   6. SECTION TITLES
   -------------------------------------------------------------------------- */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.section-eyebrow {
  color: var(--accent-color-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
  display: inline-block;
}

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

.section-padding { padding: 5.5rem 0; }

/* --------------------------------------------------------------------------
   7. STATS SECTION
   -------------------------------------------------------------------------- */
.stats-section {
  background: var(--primary-color);
  color: #fff;
  padding: 3.5rem 0;
}
.stat-item { text-align: center; padding: 1rem 0.5rem; }
.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--accent-color);
  display: block;
  line-height: 1;
}
.stat-label {
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   8. PROPERTY CARDS
   -------------------------------------------------------------------------- */
.card-property {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  position: relative;
}
.card-property:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-property .property-img-wrap {
  position: relative;
  overflow: hidden;
  height: 230px;
}
.card-property .property-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card-property:hover .property-img-wrap img { transform: scale(1.08); }

.property-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--accent-color);
  color: #101a30;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  z-index: 2;
}

.property-fav-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  z-index: 2;
  transition: var(--transition);
}
.property-fav-btn:hover { background: #fff; transform: scale(1.1); }
.property-fav-btn.active { color: #e63946; }
.property-fav-btn.active i::before { content: "\f415"; } /* bi-heart-fill fallback handled in JS */

.card-property .card-body { padding: 1.4rem; }

.property-price {
  color: var(--accent-color-dark);
  font-weight: 800;
  font-size: 1.25rem;
}
.property-price small { color: var(--text-muted); font-weight: 500; font-size: 0.8rem; }

.property-location {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.property-meta {
  display: flex;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
  padding-top: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.property-meta span i { color: var(--accent-color-dark); margin-right: 0.3rem; }

.status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  text-transform: uppercase;
}
.status-available { background: rgba(46, 125, 91, 0.12); color: var(--success-color); }
.status-rented { background: rgba(192, 57, 43, 0.12); color: var(--danger-color); }

/* --------------------------------------------------------------------------
   9. SERVICE CARDS
   -------------------------------------------------------------------------- */
.service-category-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 2.5rem;
}

.service-category-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.service-category-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 169, 75, 0.12);
  color: var(--accent-color-dark);
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
}

.service-category-item strong {
  display: block;
  color: var(--text-dark);
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.service-category-item small {
  color: var(--text-muted);
  line-height: 1.6;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}
.service-icon {
  width: 62px; height: 62px;
  border-radius: var(--radius-sm);
  background: var(--primary-color);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.3rem;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--accent-color);
  color: var(--primary-color);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; }
.service-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.3rem;
}

/* --------------------------------------------------------------------------
   10. WHY CHOOSE US
   -------------------------------------------------------------------------- */
.benefit-list { list-style: none; padding: 0; margin: 0; }
.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
}
.benefit-list li:last-child { border-bottom: none; }
.benefit-check {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(212, 169, 75, 0.15);
  color: var(--accent-color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-choose-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.why-choose-img img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   11. TESTIMONIALS
   -------------------------------------------------------------------------- */
.maintenance-form {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.maintenance-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.maintenance-form input,
.maintenance-form select,
.maintenance-form textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #fff;
  padding: 0.8rem 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.maintenance-form input:focus,
.maintenance-form select:focus,
.maintenance-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(212, 169, 75, 0.18);
}

.contact-details-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.contact-detail-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-color);
}

.contact-detail-row:last-child {
  border-bottom: none;
}

.contact-detail-row .contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 169, 75, 0.12);
  color: var(--accent-color-dark);
}

.contact-detail-row label {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-detail-row a {
  color: var(--text-dark);
  font-weight: 700;
}

.testimonial-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,248,250,0.9));
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 22px;
  padding: 2.5rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 18px 35px rgba(11, 31, 58, 0.08);
}
.testimonial-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
  margin: 0 auto 1rem;
}
.testimonial-quote { font-size: 1.08rem; color: var(--text-dark); font-style: italic; margin-bottom: 1.2rem; line-height: 1.8; }
.testimonial-stars { color: var(--accent-color); margin-bottom: 1rem; }
.testimonial-name { font-weight: 700; margin-bottom: 0; }
.testimonial-role { color: var(--text-muted); font-size: 0.85rem; }

.testimonial-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.testimonial-tile {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.testimonial-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 169, 75, 0.5);
}

.testimonial-tile p {
  margin: 0 0 1rem;
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 0.96rem;
}

.testimonial-meta {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.testimonial-meta strong {
  display: block;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.testimonial-meta span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
  width: 44px; height: 44px;
  top: 50%; transform: translateY(-50%);
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.9;
}

@media (max-width: 991.98px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}
/* --------------------------------------------------------------------------
   12. CTA SECTION
   -------------------------------------------------------------------------- */
.cta-section {
  background: linear-gradient(120deg, var(--primary-color), var(--primary-color-light));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-section::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  background: rgba(212,169,75,0.15);
  border-radius: 50%;
  top: -120px; right: -80px;
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.footer-custom {
  background: var(--primary-color);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 1.5rem;
}
.footer-custom h5 { color: #fff; font-weight: 700; margin-bottom: 1.2rem; }
.footer-custom a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-custom a:hover { color: var(--accent-color); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}
.footer-social a:hover { background: var(--accent-color); color: var(--primary-color); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   13b. PROPERTY MANAGEMENT SERVICES CHECKLIST (Residential banner)
   -------------------------------------------------------------------------- */
/* This section replaces the hero banner (see app.js) and becomes the first
   element on the page, so it needs extra top padding to clear the fixed
   navbar (~99px tall) — otherwise its content, like the category icon row,
   renders partially hidden behind the navbar. */
#residentialServicesSection {
  padding-top: calc(5.5rem + 40px);
}

.service-image-caption {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(11, 31, 58, 0.88);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 2;
}

.service-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-bottom: 1px dashed var(--border-color);
}
.service-checklist li:last-child { border-bottom: none; }
.service-checklist li i {
  color: var(--accent-color-dark);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Category icon tiles (mimics the icon row on reference inspection sites) */
.service-icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.service-icon-tile .icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--accent-color-dark);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.service-icon-tile:hover .icon-circle {
  background: var(--primary-color);
  color: var(--accent-color);
  transform: translateY(-4px);
}
.service-icon-tile .icon-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Bottom CTA mini-cards (mimics "Selling Your Home?" style panels) */
.cta-mini-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  height: 100%;
}
.cta-mini-icon {
  font-size: 1.8rem;
  color: var(--accent-color-dark);
  margin-bottom: 0.75rem;
  display: block;
}

/* --------------------------------------------------------------------------
   14. FILTER / SEARCH (Listing Page)
   -------------------------------------------------------------------------- */
.filter-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
.filter-panel .form-label { font-weight: 600; font-size: 0.85rem; }
.filter-panel .form-control,
.filter-panel .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border-color);
  padding: 0.6rem 0.9rem;
}
.filter-panel .form-control:focus,
.filter-panel .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(212,169,75,0.2);
}

.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   15. PAGINATION
   -------------------------------------------------------------------------- */
.pagination-custom .page-link {
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  margin: 0 3px;
  border-radius: var(--radius-sm);
}
.pagination-custom .page-item.active .page-link {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #101a30;
}

/* --------------------------------------------------------------------------
   16. PROPERTY DETAILS PAGE
   -------------------------------------------------------------------------- */
.gallery-main {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 460px;
  box-shadow: var(--shadow-sm);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.gallery-thumbs img {
  width: 90px; height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  transition: var(--transition);
}
.gallery-thumbs img.active,
.gallery-thumbs img:hover { opacity: 1; border-color: var(--accent-color); }

.feature-box {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  text-align: center;
}
.feature-box i { font-size: 1.6rem; color: var(--accent-color-dark); margin-bottom: 0.5rem; display: block; }
.feature-box .feature-value { font-weight: 700; font-size: 1.05rem; }
.feature-box .feature-label { color: var(--text-muted); font-size: 0.8rem; }

.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-light);
  padding: 0.55rem 1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  margin: 0 0.5rem 0.5rem 0;
}
.amenity-chip i { color: var(--accent-color-dark); }

.contact-agent-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

/* --------------------------------------------------------------------------
   17. DASHBOARD (legacy admin view)
   -------------------------------------------------------------------------- */
.dashboard-wrapper { display: flex; min-height: 100vh; background: var(--bg-light); }

.dashboard-sidebar {
  width: 260px;
  background: var(--primary-color);
  color: #fff;
  flex-shrink: 0;
  padding: 1.5rem 0;
  transition: margin-left 0.3s ease;
}
.dashboard-sidebar .sidebar-brand {
  padding: 0 1.5rem 1.5rem;
  font-weight: 800;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}
.dashboard-sidebar .sidebar-brand span { color: var(--accent-color); }
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.5rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-left-color: var(--accent-color);
}
.sidebar-nav li a i { font-size: 1.1rem; width: 20px; text-align: center; }

.dashboard-main { flex: 1; padding: 2rem; min-width: 0; }

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.widget-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 100%;
}
.widget-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.widget-value { font-size: 1.6rem; font-weight: 800; }
.widget-label { color: var(--text-muted); font-size: 0.88rem; }

.dashboard-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.sidebar-toggle-btn {
  display: none;
  border: none;
  background: var(--primary-color);
  color: #fff;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   18. FORMS
   -------------------------------------------------------------------------- */
.form-control-custom,
.form-select-custom {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
}
.form-control-custom:focus,
.form-select-custom:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(212,169,75,0.2);
}
.form-floating-custom label { color: var(--text-muted); }
.was-validated .form-control:invalid,
.form-control.is-invalid { border-color: var(--danger-color); }
.valid-feedback-custom { color: var(--success-color); font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   19. ABOUT PAGE
   -------------------------------------------------------------------------- */
.team-card {
  text-align: center;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--accent-color);
}
.team-card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.team-role { color: var(--accent-color-dark); font-size: 0.85rem; font-weight: 600; }

.mission-vision-card {
  border-radius: var(--radius-md);
  padding: 2rem;
  height: 100%;
  background: var(--bg-light);
  border-left: 4px solid var(--accent-color);
}

/* --------------------------------------------------------------------------
   20. CONTACT PAGE
   -------------------------------------------------------------------------- */
.contact-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.contact-info-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(212,169,75,0.15);
  color: var(--accent-color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.map-placeholder {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 350px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
}

/* --------------------------------------------------------------------------
   21. BACK TO TOP / MISC
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1000;
  border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-color); color: var(--primary-color); }

.breadcrumb-bar {
  background: var(--bg-light);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   22. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

/* Mobile: <576px */
@media (max-width: 575.98px) {
  .section-padding { padding: 3rem 0; }
  .hero-section { min-height: 78vh; text-align: center; }
  .hero-section .hero-content { margin: 0 auto; }
  .stat-item { padding: 0.75rem 0.25rem; }
  .cta-section { padding: 2.5rem 1.25rem; }
  .filter-panel { position: static; margin-bottom: 1.5rem; }
  .contact-agent-card { position: static; margin-top: 1.5rem; }
  .gallery-main { height: 260px; }
  .dashboard-main { padding: 1.25rem; }
  .sidebar-toggle-btn { display: inline-flex; }
  .dashboard-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 1050;
    margin-left: -260px;
    box-shadow: var(--shadow-lg);
  }
  .dashboard-sidebar.open { margin-left: 0; }
}

/* Tablet: 576px - 992px */
@media (min-width: 576px) and (max-width: 991.98px) {
  .hero-section { min-height: 82vh; }
  .section-padding { padding: 4rem 0; }
  .filter-panel { position: static; margin-bottom: 1.5rem; }
  .contact-agent-card { position: static; margin-top: 1.5rem; }
  .gallery-main { height: 340px; }
  .sidebar-toggle-btn { display: inline-flex; }
  .dashboard-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 1050;
    margin-left: -260px;
    box-shadow: var(--shadow-lg);
  }
  .dashboard-sidebar.open { margin-left: 0; }
}

/* Desktop: >992px */
@media (min-width: 992px) {
  .hero-section { min-height: 90vh; }
}

/* AOS init fallback so content is visible without JS */
[data-aos] { }

/* Utility */
.rounded-custom { border-radius: var(--radius-md) !important; }
.shadow-custom { box-shadow: var(--shadow-md) !important; }
.divider-gold {
  width: 60px; height: 4px;
  background: var(--accent-color);
  border-radius: 4px;
  margin: 0 auto 1.5rem;
}

.text-gold { color: var(--accent-color) !important; }

.luxury-hero {
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
  min-height: 80vh;
  padding-top: 4rem;
}

.hero-copy {
  max-width: 620px;
}

.hero-section .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.hero-trust div {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-trust strong {
  font-size: 1.5rem;
  color: var(--accent-color);
  line-height: 1.1;
}

.hero-trust span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.showcase-panel {
  position: relative;
  width: min(520px, 100%);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 32px 40px rgba(10, 18, 35, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.showcase-panel img {
  display: block;
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.floating-stat,
.floating-card {
  position: absolute;
  background: rgba(12, 23, 39, 0.88);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 28px rgba(10, 18, 35, 0.3);
}

.floating-stat {
  right: 24px;
  top: 28px;
  padding: 1rem 1.2rem;
  min-width: 170px;
}

.floating-stat span,
.floating-card small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.floating-stat strong {
  display: block;
  margin: 0.3rem 0;
  font-size: 2rem;
  color: var(--accent-color);
  line-height: 1;
}

.floating-card {
  left: 24px;
  bottom: 24px;
  padding: 1rem 1.1rem;
  min-width: 210px;
}

.badge-soft {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(212, 169, 75, 0.15);
  color: var(--accent-color);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.floating-card strong {
  display: block;
  color: #fff;
  font-size: 1.2rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.process-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.2rem;
  height: 100%;
}

.process-step {
  display: inline-block;
  color: var(--accent-color-dark);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.process-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.process-card p {
  margin-bottom: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.spotlight-panel {
  background: linear-gradient(180deg, rgba(212, 169, 75, 0.12), rgba(11, 31, 58, 0.04));
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.spotlight-image {
  overflow: hidden;
  border-radius: 20px;
}

.spotlight-image img {
  display: block;
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: 20px;
}

@media (max-width: 991.98px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-trust {
    justify-content: center;
  }

  .showcase-panel {
    width: min(480px, 100%);
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-category-row {
    grid-template-columns: 1fr;
  }
}
