/* ============================================================
   STEPHANIE LEATHERS REAL ESTATE — Theme Stylesheet
   Color Palette: Teal #2D8B8C + Gold #C9A96E + Navy #1A2332
   ============================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --primary:        #2D8B8C;
  --primary-dark:   #1F6469;
  --primary-light:  #5AACAD;
  --primary-xlight: #E6F4F4;
  --secondary:      #1A2332;
  --accent:         #C9A96E;
  --accent-dark:    #A07E4A;
  --accent-light:   #EAD9B8;
  --light:          #F8F6F2;
  --gray-light:     #EBEBEB;
  --gray:           #8A8A8A;
  --dark:           #2C2C2C;
  --white:          #FFFFFF;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition:      all 0.3s ease;
  --transition-slow: all 0.6s ease;

  --shadow-sm:   0 2px 10px rgba(0,0,0,0.06);
  --shadow-md:   0 5px 25px rgba(0,0,0,0.10);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.14);
  --shadow-teal: 0 8px 30px rgba(45,139,140,0.22);

  --radius:    8px;
  --radius-lg: 16px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--primary-dark); }

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

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 100000;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: white; }

/* ===== UTILITIES ===== */
.text-primary-custom { color: var(--primary) !important; }
.text-accent         { color: var(--accent) !important; }
.bg-light-custom     { background-color: var(--light) !important; }
.section-padding,
.section-pad         { padding: 90px 0; }
.section-padding-sm  { padding: 60px 0; }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
}

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

.divider {
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 1rem 0 1.5rem;
}
.divider-center { margin: 1rem auto 1.5rem; }

.stars { color: var(--accent); font-size: 0.9rem; }

/* ===== BUTTONS ===== */
.btn-primary-custom {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-primary-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-weight: 700;
  padding: 0.65rem 1.8rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-outline-primary-custom:hover,
.btn-outline-primary-custom:focus {
  background-color: var(--primary);
  color: var(--white);
}

.btn-outline-white {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
  font-weight: 700;
  padding: 0.65rem 1.8rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-outline-white:hover,
.btn-outline-white:focus {
  background-color: var(--white);
  color: var(--primary);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  border: none;
  transition: var(--transition);
}
.btn-white:hover,
.btn-white:focus {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar-main {
  background: transparent;
  padding: 1.2rem 0;
  transition: var(--transition-slow);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1050;
}

.navbar-main::before {
  content: '';
  position: absolute;
  inset: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s ease;
}
.navbar-main.scrolled::before { opacity: 0; }

.navbar-main.scrolled {
  background: var(--secondary);
  padding: 0.7rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.20);
}

.navbar-main .navbar-brand img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}
.navbar-main .navbar-brand figure { margin: 0; }
.navbar-main.scrolled .navbar-brand img { height: 40px; }

.navbar-main .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.85rem !important;
  transition: var(--transition);
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active,
.navbar-main .nav-link:focus { color: var(--accent) !important; }

.navbar-main .dropdown-menu {
  background: var(--secondary);
  border: none;
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
}
.navbar-main .dropdown-item {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  padding: 0.6rem 1.2rem;
  transition: var(--transition);
}
.navbar-main .dropdown-item:hover,
.navbar-main .dropdown-item:focus {
  background-color: rgba(45,139,140,0.2);
  color: var(--accent);
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.4);
  padding: 0.4rem 0.65rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(201,169,110,0.4); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-cta-wrap {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.navbar-cta-wrap .btn {
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-weight: 700;
}

/* ===== HERO SECTION ===== */
.hero-main {
  min-height: 100vh;
  background-image: url('https://picsum.photos/seed/athensgahero/1920/1080');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 60px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,35,50,0.82) 0%, rgba(26,35,50,0.55) 60%, rgba(45,139,140,0.30) 100%);
}

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

.hero-main h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--white);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-main h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero-main p.lead {
  color: rgba(255,255,255,0.88);
  font-size: 1.2rem;
  max-width: 550px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

/* Hero Search Box */
.hero-search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

.hero-search-tabs .nav-link {
  color: var(--gray);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0.6rem 1.4rem;
  border: none;
  background: transparent;
}
.hero-search-tabs .nav-link.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}
.hero-search-tabs .nav-link:focus {
  box-shadow: 0 0 0 3px rgba(45,139,140,0.2);
  outline: none;
}

.hero-search-box .form-control,
.hero-search-box .form-select {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--dark);
}
.hero-search-box .form-control:focus,
.hero-search-box .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,139,140,0.15);
}

/* Page Heroes */
.page-hero {
  min-height: 380px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 60px;
}
.page-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(26,35,50,0.85) 0%, rgba(26,35,50,0.60) 100%);
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.page-hero .breadcrumb { background: none; padding: 0; margin-bottom: 0.75rem; }
.page-hero .breadcrumb-item { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.page-hero .breadcrumb-item a { color: var(--accent); }
.page-hero .breadcrumb-item.active { color: var(--white); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ===== PARALLAX DIVIDERS ===== */
.parallax-divider {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
  position: relative;
}
.parallax-divider .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,35,50,0.80) 0%, rgba(45,139,140,0.65) 100%);
}
.parallax-divider .content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.parallax-divider h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}
.parallax-divider p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ===== STATS BAR ===== */
.stats-bar { background: var(--secondary); padding: 2rem 0; }
.stat-item { text-align: center; padding: 1rem; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 0.3rem;
}
.stat-item .stat-divider {
  width: 30px;
  height: 2px;
  background: var(--accent);
  margin: 0.5rem auto 0;
}

/* ===== PROPERTY CARDS ===== */
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  border: 1px solid var(--gray-light);
  display: block;
}
.property-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.property-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.property-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.property-card:hover .property-card-img img { transform: scale(1.06); }

.property-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 1;
}
.badge-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}
.badge-for-sale { background: var(--primary); color: var(--white); }
.badge-for-rent { background: var(--accent); color: var(--white); }
.badge-sold     { background: var(--secondary); color: var(--white); }
.badge-new      { background: #28a745; color: var(--white); }
.badge-featured { background: rgba(255,255,255,0.95); color: var(--accent); border: 1px solid var(--accent); }

.property-save-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray);
  font-size: 0.9rem;
}
.property-save-btn:hover,
.property-save-btn:focus {
  background: var(--white);
  color: #e74c3c;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  outline: none;
}
.property-save-btn.saved { color: #e74c3c; }

.property-price-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26,35,50,0.85));
  padding: 2rem 1rem 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}

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

.property-address {
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.property-address i { color: var(--primary); font-size: 0.85rem; flex-shrink: 0; }

.property-type-label {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.property-stats {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  margin: 0.75rem 0;
  flex-wrap: wrap;
}
.property-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--gray);
}
.property-stat i { color: var(--primary); font-size: 0.85rem; flex-shrink: 0; }
.property-stat span { font-weight: 600; color: var(--dark); }

.property-agent {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 0.5rem;
}
.property-agent img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== FEATURED LISTINGS SECTION ===== */
.listings-section { background: var(--light); }

/* ===== CATEGORY CARDS ===== */
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  cursor: pointer;
  transition: var(--transition-slow);
  text-decoration: none;
  display: block;
}
.category-card:hover,
.category-card:focus {
  background: var(--primary);
  box-shadow: var(--shadow-teal);
  transform: translateY(-6px);
  border-color: var(--primary);
  outline: none;
}
.category-card:hover .category-icon,
.category-card:hover .category-title,
.category-card:hover .category-count,
.category-card:focus .category-icon,
.category-card:focus .category-title,
.category-card:focus .category-count { color: var(--white) !important; }

.category-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
  transition: var(--transition);
}
.category-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.3rem;
  transition: var(--transition);
}
.category-count {
  font-size: 0.8rem;
  color: var(--gray);
  transition: var(--transition);
}

/* ===== FEATURE BLOCKS ===== */
.feature-block {
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: var(--transition-slow);
  height: 100%;
}
.feature-block:hover { background: var(--white); box-shadow: var(--shadow-md); }

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-xlight);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
  transition: var(--transition);
}
.feature-block:hover .feature-icon { background: var(--primary); color: var(--white); }

.feature-block h3,
.feature-block h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.feature-block p { font-size: 0.92rem; color: var(--gray); margin: 0; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--secondary); }

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  height: 100%;
  margin: 0;
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-style: normal;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.testimonial-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.testimonial-name { font-weight: 700; color: var(--white); font-size: 0.95rem; text-align: left; }
.testimonial-location { font-size: 0.78rem; color: var(--accent); text-align: left; }

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
}
.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-next:focus { background: var(--primary-dark); opacity: 1; }

.carousel-indicators [data-bs-target] {
  background-color: var(--accent);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
}

/* ===== NEIGHBORHOOD CARDS ===== */
.neighborhood-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 280px;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.neighborhood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.neighborhood-card:hover img,
.neighborhood-card:focus img { transform: scale(1.06); }
.neighborhood-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(26,35,50,0.80) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: var(--transition);
}
.neighborhood-card:hover .neighborhood-card-overlay {
  background: linear-gradient(transparent 10%, rgba(26,35,50,0.88) 100%);
}
.neighborhood-name {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.neighborhood-count { color: var(--accent); font-size: 0.82rem; font-weight: 600; }

/* ===== BLOG CARDS ===== */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: var(--transition-slow);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }

.blog-card-img {
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-category {
  display: inline-block;
  background: var(--primary-xlight);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}
.blog-category a { color: inherit; }

.blog-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.blog-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0.6rem 0;
  transition: var(--transition);
  line-height: 1.4;
}
.blog-title a { color: inherit; text-decoration: none; }
.blog-card:hover .blog-title,
.blog-card:hover .blog-title a { color: var(--primary); }
.blog-excerpt { font-size: 0.88rem; color: var(--gray); line-height: 1.65; flex: 1; }
.blog-meta {
  font-size: 0.78rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.blog-meta i { color: var(--primary); }

/* Article Body Styles */
.article-body h2 { font-family: var(--font-serif); color: var(--secondary); font-size: 1.6rem; margin: 2rem 0 1rem; }
.article-body h3 { font-family: var(--font-serif); color: var(--secondary); font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.article-body p  { color: var(--gray); line-height: 1.9; margin-bottom: 1.2rem; font-size: 1rem; }
.article-body ul,
.article-body ol { color: var(--gray); line-height: 1.9; font-size: 1rem; margin-bottom: 1.2rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--primary-xlight);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--secondary);
  font-size: 1.05rem;
}
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; }

/* ===== CTA BANNER ===== */
.cta-banner { background: var(--primary); padding: 80px 0; }
.cta-banner h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.5rem; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ===== SIDEBAR ===== */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-light);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-xlight);
  margin-bottom: 1rem;
}

/* ===== SEARCH FORM ===== */
.search-form { display: flex; }
.search-form .search-field {
  flex: 1;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--dark);
}
.search-form .search-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,139,140,0.12);
  outline: none;
}
.search-form .search-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: var(--transition);
}
.search-form .search-submit:hover { background: var(--primary-dark); }

/* ===== FORMS ===== */
.form-control,
.form-select {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--dark);
  transition: var(--transition);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,139,140,0.12);
  outline: none;
}
.form-control::placeholder { color: var(--gray); }
.form-label { font-weight: 600; font-size: 0.85rem; color: var(--dark); margin-bottom: 0.4rem; }

/* ===== TAGS ===== */
.specialty-tag {
  display: inline-block;
  background: var(--primary-xlight);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  margin: 0.15rem;
  text-decoration: none;
  transition: var(--transition);
}
.specialty-tag:hover { background: var(--primary); color: white; }

/* ===== PAGINATION ===== */
.pagination .page-link {
  border-radius: var(--radius) !important;
  border: 1px solid var(--gray-light);
  color: var(--primary);
  font-weight: 600;
  margin: 0 2px;
  padding: 0.5rem 0.9rem;
  transition: var(--transition);
}
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; pointer-events: none; }
.pagination .page-item.disabled .page-link { color: var(--gray); border-color: var(--gray-light); background: transparent; pointer-events: none; }
.pagination .page-link:hover { background: var(--primary-xlight); color: var(--primary); border-color: var(--primary); }
.pagination .page-link i { font-size: .75rem; vertical-align: middle; }

/* ===== 404 PAGE ===== */
.error-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px;
}
.error-number {
  font-family: var(--font-serif);
  font-size: clamp(8rem, 20vw, 14rem);
  font-weight: 900;
  color: var(--primary);
  opacity: 0.12;
  line-height: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.error-content { position: relative; z-index: 2; text-align: center; }

/* ===== FOOTER ===== */
.footer-main {
  background: var(--secondary);
  padding: 70px 0 40px;
  color: rgba(255,255,255,0.65);
}
.footer-logo { margin-bottom: 1rem; }
.footer-logo img { height: 48px; filter: brightness(0) invert(1); }
.footer-tagline { font-size: 0.9rem; max-width: 280px; line-height: 1.65; }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
}
.footer-social a:hover,
.footer-social a:focus { background: var(--primary); border-color: var(--primary); color: var(--white); }

.footer-heading {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(201,169,110,0.4);
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a:focus { color: var(--accent); padding-left: 4px; }
.footer-links a::before { content: '›'; color: var(--primary); }

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.footer-contact p i { color: var(--accent); width: 16px; flex-shrink: 0; margin-top: 0.2rem; }

.newsletter-form .input-group .form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
}
.newsletter-form .input-group .form-control::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form .input-group .form-control:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--primary);
  box-shadow: none;
}
.newsletter-form .btn { border-radius: 0 var(--radius) var(--radius) 0; }

.footer-bottom {
  background: rgba(0,0,0,0.25);
  padding: 1.2rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ===== COMMENTS ===== */
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { margin-bottom: 2rem; }
.comment-body { background: var(--light); padding: 1.5rem; border-radius: var(--radius-lg); }
.comment-author .fn { font-weight: 700; color: var(--secondary); }
.comment-metadata { font-size: 0.8rem; color: var(--gray); margin: 0.2rem 0 0.75rem; }
.comment-metadata a { color: var(--gray); }
.comment-content p { color: var(--gray); font-size: 0.9rem; margin: 0; }
.reply { margin-top: 0.75rem; }
.comment-reply-link { font-size: 0.82rem; color: var(--primary); font-weight: 700; }
.children { list-style: none; padding-left: 2rem; margin-top: 1.5rem; }

.comment-form input,
.comment-form textarea {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  width: 100%;
  margin-bottom: 1rem;
  color: var(--dark);
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,139,140,0.12);
  outline: none;
}
.comment-form-comment { margin-bottom: 1rem; }
.comment-notes { font-size: 0.85rem; color: var(--gray); margin-bottom: 1rem; }
.submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.submit:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== AOS OVERRIDES ===== */
[data-aos] { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .hero-main h1 { font-size: 2.2rem; }
  .navbar-cta-wrap { display: none; }
  .parallax-divider { background-attachment: scroll; }
  .page-hero { background-attachment: scroll; }
  .hero-main { background-attachment: scroll; }

  .carousel-control-prev { left: -10px; }
  .carousel-control-next { right: -10px; }
}

@media (max-width: 767.98px) {
  .section-padding,
  .section-pad { padding: 60px 0; }
  .footer-main { padding: 50px 0 30px; }
  .cta-banner { padding: 60px 0; }
  .parallax-divider { padding: 70px 0; }
  .hero-search-box .row > div { margin-bottom: 0.5rem; }

  .carousel-control-prev,
  .carousel-control-next { display: none; }

  /* Page hero — reduce top padding on phones */
  .page-hero { padding: 100px 0 50px; }

  /* Property detail tabs — scroll horizontally rather than overflow */
  .property-detail-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .property-detail-tabs::-webkit-scrollbar { display: none; }
  .property-detail-tabs .nav-link {
    white-space: nowrap;
    padding: .5rem .7rem;
    font-size: .82rem;
  }

  /* Agent hero — stack portrait / info / buttons vertically */
  .agent-hero-banner .row {
    flex-direction: column;
    align-items: center !important;
    text-align: center;
    gap: 1rem !important;
  }
  .agent-hero-banner .col-auto,
  .agent-hero-banner .col { width: 100%; flex: none; }
  .agent-hero-portrait { width: 100px; height: 100px; }
  .agent-hero-banner .d-flex.gap-2 { justify-content: center; }

}

@media (max-width: 575.98px) {
  .navbar-main { padding: 0.8rem 0; }
  .property-stats { gap: 0.5rem; }
  .property-stat { font-size: 0.75rem; }

  /* Hero headline further reduction on very small phones */
  .hero-main h1 { font-size: 1.75rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero { padding: 80px 0 40px; }

  /* Mortgage calc: stack pie chart legend below the canvas */
  .calc-output { padding: 1.25rem; }
  .calc-monthly { font-size: 2.2rem; }

  /* Contact form radio group wraps tightly */
  .contact-form .d-flex.flex-wrap { gap: .5rem !important; }

  /* Services process steps — 2 per row on phone */
  .process-step { padding: 1rem .5rem; }
  .process-number { width: 44px; height: 44px; font-size: 1rem; }
}

/* ===== PRINT STYLES ===== */
@media print {
  #page-loader,
  .navbar-main,
  .footer-main,
  .cta-banner { display: none !important; }
  body { padding-top: 0 !important; }
}

/* ============================================================
   PROPERTIES — Archive & Single
   ============================================================ */

/* ===== PAGE HERO (properties, single-property, blog) ===== */
.page-hero {
  position: relative;
  padding: 140px 0 70px;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,35,50,.82) 0%, rgba(26,35,50,.58) 100%);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.page-hero .breadcrumb { background: none; padding: 0; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.75); text-decoration: none; }
.page-hero .breadcrumb-item.active,
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* Breadcrumb bar (solid, no background image) */
.breadcrumb-bar {
  background: var(--light);
  padding: .65rem 0;
  border-bottom: 1px solid var(--gray-light);
}
.breadcrumb-bar .breadcrumb { font-size: .85rem; margin: 0; }
.breadcrumb-bar .breadcrumb-item a { color: var(--primary); text-decoration: none; }

/* ===== FILTER BAR ===== */
.filter-bar-section {
  background: var(--light);
  padding: 1.25rem 0;
  position: sticky;
  top: 72px; /* matches scrolled navbar height */
  z-index: 100;
  border-bottom: 1px solid var(--gray-light);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.filter-bar-section .form-label { font-size: .78rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.filter-bar-section .form-control,
.filter-bar-section .form-select { font-size: .88rem; }
.filter-amenities { border-top: 1px solid var(--gray-light); padding-top: .75rem; margin-top: .5rem; }
.filter-amenities .form-check-label { font-size: .82rem; cursor: pointer; }
@media (max-width: 991.98px) {
  .filter-bar-section { top: 66px; padding: 1rem 0; }
  .filter-amenities { display: none; } /* collapse amenities on tablet/mobile to save space */
}
@media (max-width: 767.98px) {
  .filter-bar-section { top: 60px; position: relative; } /* not sticky on mobile — too tall */
  .filter-bar-section .col-6 { width: 50%; }
}

/* ===== VIEW TOGGLE ===== */
.btn-view {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-light);
  background: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}
.btn-view.active,
.btn-view:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== PROPERTY CARD (list layout) ===== */
.property-card-list {
  display: flex;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.property-card-list:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.property-card-list .property-card-img { position: relative; flex-shrink: 0; overflow: hidden; }
.property-card-list .property-card-img img { width: 280px; height: 200px; object-fit: cover; }
.property-card-list .property-card-body { padding: 1.25rem; flex: 1; }
@media (max-width: 767px) {
  .property-card-list { flex-direction: column; }
  .property-card-list .property-card-img,
  .property-card-list .property-card-img img { width: 100% !important; height: 220px !important; }
}

/* Additional badge statuses */
.badge-for-rent   { background: var(--secondary); color: #fff; }
.badge-sold       { background: #666; color: #fff; }
.badge-pre-sale   { background: var(--accent); color: var(--dark); }
.badge-off-market { background: #888; color: #fff; }

/* ===== GALLERY SLIDER ===== */
.gallery-slider .main-image img {
  transition: opacity .25s ease;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.gallery-thumb {
  flex-shrink: 0;
  width: 110px;
  height: 78px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
  opacity: .7;
  transition: opacity .2s, border-color .2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--accent); opacity: 1; }

/* ===== PROPERTY QUICK STATS BAR ===== */
.property-quick-stats {
  background: var(--secondary);
  border-radius: var(--radius-lg);
  padding: 1.25rem 0;
  color: #fff;
}
.quick-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: .5rem .75rem;
}
.quick-stat i { font-size: 1.2rem; color: var(--accent); }
.quick-stat .value { font-weight: 800; font-family: var(--font-serif); font-size: 1rem; line-height: 1; }
.quick-stat .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; opacity: .65; }
@media (max-width: 575px) {
  .property-quick-stats .row { flex-wrap: wrap; }
  .property-quick-stats .col { flex: 0 0 33.33%; max-width: 33.33%; }
  .property-quick-stats .border-start { border-left: none !important; }
}

/* ===== DETAIL TABS ===== */
.property-detail-tabs { border-bottom: 2px solid var(--gray-light) !important; gap: .25rem; }
.property-detail-tabs .nav-link {
  color: var(--gray);
  font-weight: 600;
  padding: .65rem 1rem;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: none;
  font-size: .9rem;
  transition: color .2s, border-color .2s;
  margin-bottom: -2px;
}
.property-detail-tabs .nav-link:hover { color: var(--primary); }
.property-detail-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }

.prop-section-title {
  font-family: var(--font-serif);
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* ===== SPECS TABLE ===== */
.specs-heading {
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  margin-bottom: .75rem;
}
.specs-table { border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--gray-light); }
.specs-table td {
  padding: .55rem .25rem;
  font-size: .88rem;
}
.specs-table td:first-child { color: var(--gray); width: 48%; font-weight: 500; }
.specs-table td:last-child  { color: var(--dark); font-weight: 600; }

/* ===== FLOOR PLAN CARDS ===== */
.floorplan-card {
  background: var(--light);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  transition: box-shadow .2s;
}
.floorplan-card.popular { border: 2px solid var(--primary); }
.floorplan-popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .15rem .7rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.floorplan-name  { font-weight: 700; color: var(--primary); margin-bottom: .3rem; }
.floorplan-sqft  { font-size: .85rem; color: var(--gray); margin-bottom: .75rem; }
.floorplan-icon  { height: 100px; display: flex; align-items: center; justify-content: center; color: var(--gray); background: var(--gray-light); border-radius: var(--radius); margin-bottom: .75rem; }
.floorplan-rooms { font-size: .78rem; color: var(--gray); margin-bottom: .5rem; }
.floorplan-price { font-weight: 800; color: var(--secondary); font-family: var(--font-serif); }

/* ===== NEIGHBORHOOD SCORE BARS ===== */
.map-placeholder {
  background: var(--light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--gray-light);
  color: var(--gray);
}
.score-bar {
  height: 8px;
  background: var(--gray-light);
  border-radius: 50px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 50px;
  transition: width .8s ease;
}

/* ===== CONTACT AGENT SIDEBAR ===== */
.contact-agent-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-agent-header {
  background: var(--secondary);
  color: #fff;
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
}
.contact-agent-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: .75rem;
}
.agent-cname  { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; }
.agent-ctitle { font-size: .8rem; opacity: .7; margin-top: .2rem; }
.stars i      { color: var(--accent); font-size: .85rem; }
.contact-agent-body { padding: 1.5rem; }
.contact-info-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  font-size: .9rem;
}
.contact-info-row a { color: var(--dark); text-decoration: none; }
.contact-info-row a:hover { color: var(--primary); }
.contact-agent-body hr { border-color: var(--gray-light); margin: 1rem 0; }

/* ===== CALC CARD (property page) ===== */
.calc-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--gray-light);
  height: 100%;
}
.calc-output {
  background: var(--secondary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: #fff;
}
.calc-monthly-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .65; }
.calc-monthly { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: .4rem 0;
  font-size: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.calc-breakdown-row .label { opacity: .7; }
.calc-breakdown-row .value { font-weight: 700; }
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  background: var(--gray-light);
  border-radius: 50px;
  outline: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}

.bg-light-custom { background: var(--light-bg, var(--light)); }

/* ============================================================
   AGENTS — Archive & Single
   ============================================================ */

/* ===== AGENT CARD ===== */
.agent-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.agent-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.agent-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.agent-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.agent-card:hover .agent-card-img img { transform: scale(1.04); }

.agent-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,35,50,.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
}
.agent-card:hover .agent-card-overlay { opacity: 1; }

.agent-social { display: flex; gap: .5rem; }
.agent-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .85rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.agent-social a:hover { background: var(--accent); transform: scale(1.1); }

.agent-card-body { padding: 1.5rem; }
.agent-name  { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--secondary); margin-bottom: .2rem; }
.agent-title { font-size: .82rem; color: var(--gray); margin-bottom: .6rem; }

.agent-stats {
  display: flex;
  gap: .75rem;
  margin-bottom: .75rem;
  padding: .75rem 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}
.agent-stat { text-align: center; flex: 1; }
.agent-stat .num { display: block; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.agent-stat .lbl { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); }

/* ===== AGENT HERO BANNER ===== */
.agent-hero-row { padding-top: 140px; }
@media (max-width: 767px) { .agent-hero-row { padding-top: 80px; } }
@media (max-width: 575px) { .agent-hero-row { padding-top: 60px; } }
.agent-hero-banner {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.agent-hero-portrait {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 4px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

/* ===== AGENT INFO BOX ===== */
.agent-info-box {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.agent-info-heading {
  font-weight: 700;
  color: var(--primary);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1rem;
}

/* ===== AGENT SOCIAL ICON (profile page) ===== */
.agent-social-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary-xlight);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.agent-social-icon:hover { background: var(--primary); color: #fff; }

/* ===== AGENT TESTIMONIAL CARD ===== */
.agent-testimonial-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-left: 3px solid var(--primary);
}
.agent-testimonial-card p {
  font-style: italic;
  color: var(--gray);
  font-size: .92rem;
  margin-bottom: .75rem;
}
.testimonial-author { font-weight: 700; color: var(--secondary); font-size: .88rem; }

/* ===== AGENT CONTACT SIDEBAR ===== */
.agent-contact-sidebar {
  background: var(--secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.agent-contact-sidebar-header {
  background: var(--primary);
  padding: 1.5rem;
  text-align: center;
}
.agent-contact-sidebar-header h5 { color: #fff; margin: 0; font-family: var(--font-serif); }
.agent-contact-sidebar-header p  { color: rgba(255,255,255,.75); font-size: .85rem; margin: .5rem 0 0; }
.agent-contact-sidebar-body { padding: 1.5rem; }

/* Dark form controls for the agent contact sidebar */
.form-control-dark,
.form-select-dark {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.15) !important;
  color: #fff !important;
}
.form-control-dark::placeholder { color: rgba(255,255,255,.5); }
.form-select-dark option { background: var(--secondary); color: #fff; }

/* ============================================================
   ABOUT PAGE — Timeline, Awards, Affiliations
   ============================================================ */

/* Timeline */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-light);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2rem);
  margin-bottom: 2.5rem;
  position: relative;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2rem);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1rem;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 3px var(--primary-xlight);
  z-index: 1;
}
.timeline-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  max-width: 420px;
  width: 100%;
}
.timeline-year {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
@media (max-width: 767px) {
  .timeline::before { left: 16px; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 3rem;
    padding-right: 0;
  }
  .timeline-dot { left: 16px; }
  .timeline-content { max-width: 100%; }
}

/* Award Card */
.award-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  border-top: 4px solid var(--accent);
  height: 100%;
  transition: var(--transition);
}
.award-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Affiliation Strip */
.affiliation-strip {
  background: var(--light);
  padding: 3rem 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}
.affiliation-logo {
  filter: grayscale(30%);
  opacity: 0.85;
  transition: var(--transition);
}
.affiliation-logo:hover { filter: none; opacity: 1; }

/* ============================================================
   SERVICES PAGE — Service Cards, Process Steps
   ============================================================ */

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  height: 100%;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}
.service-card h5 {
  font-family: var(--font-serif);
  color: var(--secondary);
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--gray);
  font-size: 0.92rem;
  flex: 1;
}
.service-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--primary-xlight);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

/* Process Steps (buy process) */
.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
}
.process-number {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  font-family: var(--font-serif);
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(45,139,140,0.30);
}

/* FAQ accordion custom look */
.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--secondary);
  background: var(--white);
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: var(--primary-xlight);
  box-shadow: none;
}
.faq-accordion .accordion-button:focus { box-shadow: none; }
.faq-accordion .accordion-item {
  border: 1px solid var(--gray-light);
  margin-bottom: 0.5rem;
  border-radius: var(--radius) !important;
  overflow: hidden;
}
.faq-accordion .accordion-item:first-child { border-radius: var(--radius) !important; }
.faq-accordion .accordion-body { color: var(--gray); font-size: 0.93rem; }

/* ============================================================
   CONTACT PAGE — Info Items, Map
   ============================================================ */

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.contact-info-item:last-of-type { border-bottom: none; }
.contact-info-item > i { font-size: 1rem; margin-top: 0.15rem; flex-shrink: 0; }
.contact-info-item .info-content {
  display: flex;
  flex-direction: column;
}
.contact-info-item .info-content strong {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}
.contact-info-item .info-content span,
.contact-info-item .info-content a {
  font-size: 0.9rem;
}

.map-placeholder {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-light);
}

/* ============================================================
   HOME VALUATION PAGE — Hero Badge
   ============================================================ */

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

/* ============================================================
   MORTGAGE CALCULATOR — Term Buttons
   ============================================================ */

.term-btn {
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition);
}
.term-btn.btn-primary-custom {
  pointer-events: none;
}
