/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #9B1B30;
  --primary-dark: #7A1525;
  --primary-light: #B93048;
  --dark: #141416;
  --dark-gray: #1E1E22;
  --medium-gray: #6B7280;
  --light-gray: #F3F4F6;
  --lighter-gray: #F9FAFB;
  --white: #FFFFFF;
  --gold: #C9A84C;
  --gold-light: #E8D48B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul { list-style: none; }

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

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-top {
  background: var(--dark);
  color: var(--white);
  font-size: 0.82rem;
  padding: 6px 0;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.header-top a {
  color: var(--gold-light);
  transition: color var(--transition);
}

.header-top a:hover {
  color: var(--white);
}

.header-main {
  padding: 14px 0;
}

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

.logo {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: -2px;
}

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

.nav-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-gray);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(164, 30, 53, 0.06);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}

/* Nav dropdown (Listings → Active/Sold) */
.has-dropdown {
  position: relative;
  display: inline-block;
}

.has-dropdown > a .caret {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.75em;
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.has-dropdown:hover > a .caret,
.has-dropdown:focus-within > a .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 180px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  z-index: 500;
  border: 1px solid #eee;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px !important;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-gray) !important;
  border-radius: 0 !important;
  white-space: nowrap;
  background: transparent !important;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: rgba(164, 30, 53, 0.06) !important;
  color: var(--primary) !important;
}

.dropdown-menu a.active::after {
  display: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #141416 0%, #1C1018 40%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-split {
  display: flex;
  align-items: center;
  gap: 48px;
  text-align: left;
}

.hero-text {
  flex: 1;
}

.hero-photo {
  flex: 0 0 300px;
}

.hero-photo img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 4px solid rgba(201, 168, 76, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.2);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.9;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(164, 30, 53, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}

.btn-gold:hover {
  background: #B8963E;
  transform: translateY(-1px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 3px;
}

/* ===== STAT CARDS (Home Page Quick Stats) ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid #E5E7EB;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(164, 30, 53, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.3rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--medium-gray);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== FEATURES GRID (Home Page) ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #E5E7EB;
  transition: all var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--medium-gray);
  line-height: 1.6;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, #141416 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.cta-banner h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

/* ===== ABOUT NEIGHBOURHOOD PAGE ===== */
.page-hero {
  background: linear-gradient(135deg, #141416 0%, #1C1018 40%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  padding: 50px 0;
}

.content-section + .content-section {
  border-top: 1px solid #E5E7EB;
}

.content-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.content-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin: 24px 0 10px;
}

.content-section p {
  color: #374151;
  margin-bottom: 14px;
  line-height: 1.75;
}

/* Data tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table thead {
  background: var(--dark);
  color: var(--white);
}

.data-table th {
  padding: 12px 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  font-weight: 600;
}

.data-table td {
  padding: 12px 16px;
  font-size: 0.92rem;
  border-bottom: 1px solid #E5E7EB;
  color: #374151;
}

.data-table tbody tr:hover {
  background: var(--lighter-gray);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px 0;
}

.info-box {
  background: var(--lighter-gray);
  border-radius: var(--radius-lg);
  padding: 24px;
  border-left: 4px solid var(--primary);
}

.info-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.info-box p, .info-box li {
  font-size: 0.9rem;
  color: #4B5563;
  line-height: 1.6;
}

.info-box ul {
  padding-left: 18px;
  list-style: disc;
}

.info-box ul li {
  margin-bottom: 4px;
}

/* FAQ */
.faq-list {
  margin: 20px 0;
}

.faq-item {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--lighter-gray);
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 400;
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  content: '\2212';
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  padding: 0 20px 16px;
  max-height: 500px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: #4B5563;
}

/* ===== ABOUT ME PAGE ===== */
.about-profile {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.profile-sidebar {
  background: var(--lighter-gray);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid #E5E7EB;
  position: sticky;
  top: 120px;
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #141416);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.profile-sidebar h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.profile-sidebar .title {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-sidebar .brokerage {
  color: var(--medium-gray);
  font-size: 0.82rem;
  margin-bottom: 20px;
}

.profile-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #E5E7EB;
  font-size: 0.88rem;
  color: #374151;
}

.profile-contact-item .icon-sm {
  width: 32px;
  height: 32px;
  background: rgba(164, 30, 53, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.bio-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.bio-content p {
  color: #374151;
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 1rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.highlight-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--lighter-gray);
  border-radius: var(--radius);
  border: 1px solid #E5E7EB;
}

.highlight-item .number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.highlight-item .label {
  font-size: 0.82rem;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ===== CLIENT REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  align-items: stretch;
}
.review-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 26px 26px 22px;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  border-top: 3px solid var(--primary);
}
.review-stars {
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.review-card blockquote {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: #374151;
  font-size: 0.96rem;
  line-height: 1.72;
  flex: 1 1 auto;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--lighter-gray);
}
.review-initial {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-name { font-weight: 700; color: var(--dark); font-size: 0.95rem; }
.review-source { color: var(--medium-gray); font-size: 0.8rem; }

/* ===== AWARDS LIST (About page) ===== */
.awards-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}

.awards-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 18px;
  background: var(--lighter-gray);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 10px;
}

.awards-list .award-year {
  flex: 0 0 auto;
  min-width: 52px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.awards-list .award-detail {
  color: #374151;
  line-height: 1.5;
}

.awards-list .award-detail em {
  color: var(--medium-gray);
  font-size: 0.86rem;
}

@media (max-width: 600px) {
  .awards-list li {
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
  }
}

/* ===== MARKET STATS PAGE ===== */
.stats-month-header {
  text-align: center;
  padding: 20px 0 0;
}

.stats-month-header .month-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.dash-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid #E5E7EB;
  position: relative;
  overflow: hidden;
}

.dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

.dash-card .dash-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.dash-card .dash-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.dash-card .dash-label {
  font-size: 0.82rem;
  color: var(--medium-gray);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Price by type cards */
.price-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.price-type-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #E5E7EB;
  text-align: center;
}

.price-type-card .type-name {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--medium-gray);
  margin-bottom: 8px;
  font-weight: 600;
}

.price-type-card .type-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.price-type-card .type-count {
  font-size: 0.82rem;
  color: var(--medium-gray);
  margin-top: 4px;
}

.price-type-card.inactive {
  opacity: 0.5;
  background: var(--lighter-gray);
}

/* Sales detail table */
.sales-detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.sales-detail-table thead {
  background: var(--dark);
  color: var(--white);
}

.sales-detail-table th {
  padding: 14px 16px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  font-weight: 600;
}

.sales-detail-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid #E5E7EB;
  background: var(--white);
}

.sales-detail-table tbody tr:hover td {
  background: var(--lighter-gray);
}

.sales-detail-table tbody tr:last-child td {
  border-bottom: none;
}

.stats-disclaimer {
  background: var(--lighter-gray);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 30px;
  font-size: 0.82rem;
  color: var(--medium-gray);
  line-height: 1.6;
}

/* ===== ACTIVE LISTING CARDS ===== */
.listing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}

.listing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid #E5E7EB;
  overflow: hidden;
  transition: all var(--transition);
}

.listing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.listing-card-header {
  background: var(--dark);
  color: var(--white);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.listing-status {
  background: #16A34A;
  color: var(--white);
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.listing-status-suspended {
  background: #D97706;
}

.listing-status-conditional {
  background: #2563EB;
}

.listing-status-expired {
  background: #6B7280;
}

.listing-dom {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.listing-card-body {
  padding: 24px;
}

.listing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.listing-address {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 4px;
}

.listing-type {
  font-size: 0.88rem;
  color: var(--medium-gray);
  margin-top: 2px;
  margin-bottom: 20px;
}

.listing-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.listing-detail {
  text-align: center;
  padding: 12px 8px;
  background: var(--lighter-gray);
  border-radius: var(--radius);
}

.listing-detail .detail-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
}

.listing-detail .detail-label {
  display: block;
  font-size: 0.7rem;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.listing-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.listing-tag {
  background: rgba(155, 27, 48, 0.08);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.listing-card-footer {
  padding: 16px 24px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--lighter-gray);
}

.listing-card-footer span {
  font-size: 0.78rem;
  color: var(--medium-gray);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-info > p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-detail .c-icon {
  width: 40px;
  height: 40px;
  background: rgba(164, 30, 53, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-detail .c-text strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2px;
  font-weight: 600;
}

.contact-detail .c-text span {
  font-size: 0.95rem;
}

.contact-detail .c-text a {
  color: var(--gold-light);
}

.contact-detail .c-text a:hover {
  color: var(--white);
}

.brokerage-info {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.brokerage-info h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.brokerage-info p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #E5E7EB;
}

.contact-form-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #D1D5DB;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(164, 30, 53, 0.1);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

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

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(164, 30, 53, 0.3);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.78rem;
}

.footer-bottom p {
  margin-bottom: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .stats-grid,
  .stats-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid,
  .highlights-grid,
  .price-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-profile {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
  }

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

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

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

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-photo {
    flex: 0 0 250px;
  }

  .hero-photo img {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid #E5E7EB;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  /* Mobile: dropdown expands inline instead of hovering */
  .has-dropdown {
    width: 100%;
    display: block;
  }

  .has-dropdown > a {
    display: block;
  }

  .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding: 0 0 6px 16px;
    min-width: 0;
    background: transparent;
    z-index: auto;
  }

  .dropdown-menu a {
    padding: 8px 16px !important;
    font-size: 0.85rem;
  }

  .hero {
    padding: 50px 0;
  }

  .hero-split {
    flex-direction: column;
    text-align: center;
  }

  .hero-photo {
    flex: 0 0 auto;
    order: -1;
  }

  .hero-photo img {
    width: 200px;
    height: 200px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .stats-grid,
  .stats-dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid,
  .price-type-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .header-top .container {
    justify-content: center;
    text-align: center;
  }

  .section {
    padding: 50px 0;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }

  .sales-detail-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .stats-grid,
  .stats-dashboard {
    grid-template-columns: 1fr;
  }

  .listing-cards {
    grid-template-columns: 1fr;
  }

  .listing-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

/* ===== GATED CONTENT / REGISTRATION WALL ===== */
.gated-wrapper {
  position: relative;
}

.gated-content.blurred {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

#gate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-top: 80px;
}

#gate-overlay.hidden {
  display: none;
}

.gate-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  padding: 48px 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
}

.gate-card .gate-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.gate-card h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.gate-card .gate-subtext {
  color: var(--medium-gray);
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

.gate-form .gate-field {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #D1D5DB;
  border-radius: var(--radius);
  font-size: 1rem;
  margin-bottom: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
}

.gate-form .gate-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(155, 27, 48, 0.1);
}

.gate-form .gate-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 4px;
}

.gate-form .gate-submit:hover {
  background: var(--primary-dark);
}

.gate-form .gate-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.gate-privacy {
  font-size: 0.8rem;
  color: var(--medium-gray);
  margin-top: 16px;
}

.gate-error {
  color: #DC2626;
  font-size: 0.85rem;
  margin-top: 8px;
  display: none;
}

@media (max-width: 480px) {
  .gate-card {
    padding: 32px 24px;
  }
  #gate-overlay {
    padding-top: 40px;
  }
}

/* ===== COMMUNITY BOARD ===== */
.community-post-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.community-post-form-card h2 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.community-post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  border: 1px solid #E5E7EB;
  transition: box-shadow var(--transition);
}

.community-post-card:hover {
  box-shadow: var(--shadow-md);
}

.post-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.category-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-date {
  font-size: 0.8rem;
  color: var(--medium-gray);
}

.post-title {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.post-description {
  font-size: 0.92rem;
  color: #4B5563;
  line-height: 1.6;
  margin-bottom: 18px;
  white-space: pre-line;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #F3F4F6;
  font-size: 0.85rem;
  color: var(--medium-gray);
}

.post-contact {
  color: var(--primary);
  font-weight: 600;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #E5E7EB;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
  .community-post-form-card {
    padding: 24px;
  }
  .post-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
