/*
Theme Name: Guatemala Prime Properties
Theme URI: https://guatemalaprimeproperties.com
Author: Bill
Description: Luxury real estate MLS theme for Guatemala Prime Properties
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: gpp
*/

/* =============================================
   CSS VARIABLES — matching prototype exactly
   ============================================= */
:root {
  --teal:       #066e50;
  --teal-mid:   #077a5a;
  --teal-light: #066e50;
  --gold:       #b8973a;
  --gold-light: #d4ae55;
  --cream:      #f8f5ee;
  --warm:       #fdfcf9;
  --dark:       #0f0f0e;
  --char:       #1e1e1c;
  --mid:        #3a3a34;
  --muted:      #6a6a60;
  --bdr:        #e4ddd0;
  --red:        #c0392b;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--warm);
  color: #1a1a18;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* =============================================
   NAVIGATION
   ============================================= */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 125px;
  background: rgba(22, 22, 20, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184, 151, 58, 0.2);
  transition: height 0.3s;
}
#nav.scrolled { height: 90px; }

.nav-logo img {
  height: 100px;
  width: auto;
  transition: height 0.3s;
}
#nav.scrolled .nav-logo img { height: 70px; }

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-links a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.current { color: var(--gold-light); }

/* Join Our Team — gold filled button in nav */
.nav-join-btn {
  background: var(--gold) !important;
  color: var(--dark) !important;
  padding: 8px 18px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border: none !important;
  transition: background 0.2s !important;
  white-space: nowrap;
}
.nav-join-btn:hover {
  background: var(--gold-light) !important;
  color: var(--dark) !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.lang-btn {
  padding: 6px 13px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-family: 'Jost', sans-serif;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.lang-btn.active { background: var(--gold); color: var(--dark); }
.lang-btn:not(.active):hover { color: #fff; background: rgba(255,255,255,0.1); }

/* Agent Login Button */
.nav-btn {
  background: transparent;
  border: 1px solid rgba(184,151,58,0.55);
  color: var(--gold-light);
  padding: 7px 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  transition: all 0.2s;
  display: inline-block;
}
.nav-btn:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: all 0.3s;
}

/* =============================================
   HERO — split layout
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-image: url('images/hero.jpg');
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(22,22,20,0.78) 0%,
    rgba(22,22,20,0.55) 55%,
    rgba(22,22,20,0.35) 100%
  );
}
.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
  padding-top: 125px;
  padding-bottom: 3rem;
  width: 100%;
}
.hero-content { padding-right: 1rem; }
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-headline em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.95);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Search Panel */
.hero-search-panel {
  background: rgba(22,22,20,0.88);
  border: 1px solid rgba(184,151,58,0.3);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
}
.hsp-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(184,151,58,0.25);
}
.hsp-form { display: flex; flex-direction: column; gap: 0.7rem; }
.hsp-field { display: flex; flex-direction: column; gap: 4px; }
.hsp-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.hsp-select {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 8px 30px 8px 10px;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b8973a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.hsp-select:focus { outline: none; border-color: var(--gold); }
.hsp-select option { background: #1e1e1c; color: #fff; }
.hsp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.hsp-submit {
  width: 100%;
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.3rem;
}
.hsp-submit:hover { background: var(--gold-light); }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-search-panel { max-width: 500px; }
}
@media (max-width: 640px) {
  .hero-btns { flex-direction: column; }
  .hsp-row { grid-template-columns: 1fr; }
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border: 1px solid var(--gold);
  padding: 14px 32px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--dark); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 14px 32px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }


/* Hide ERE's injected map/pin on single property pages */
.single-property .ere-single-property-map,
.single-property .ere-property-map,
.single-property #ere-single-map,
.single-property .ere-map-wrap,
.single-property-page > .ere-property-map,
.single-property-page > div[class*="ere-map"],
.single-property-page > div[id*="ere-map"] {
    display: none !important;
}
.featured-listings-section {
  background: var(--cream);
  padding: 100px 0;
}
.featured-listings-section .section-intro { margin-bottom: 3rem; }
.featured-listings-section .section-intro h2 em {
  font-style: italic;
  color: var(--teal);
}
.featured-listings-section .section-intro p {
  font-size: 0.95rem;
  color: var(--mid);
  font-weight: 300;
  margin-top: 0.5rem;
}
.featured-listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 900px) {
  .featured-listings-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .featured-listings-grid { grid-template-columns: 1fr; }
}
  overflow: hidden;
  cursor: pointer;
}
.area-card-img {
  width: 100%;
  padding-top: 120%;
  background-size: cover;
  background-position: center;
  background-color: var(--char);
  transition: transform 0.5s ease;
}
.area-card:hover .area-card-img { transform: scale(1.04); }
.area-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22,22,20,0.85) 0%, rgba(22,22,20,0.1) 50%, transparent 100%);
}
.area-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
}
.area-card-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.4rem;
}
.area-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}
.area-card-count {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  display: block;
  margin-bottom: 1rem;
}
.area-card-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.area-card:hover .area-card-arrow {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

/* =============================================
   SECTION — ALL AREAS / DEPARTMENTS
   ============================================= */
.all-areas {
  background: var(--dark);
  padding: 100px 0;
}
.all-areas .eyebrow { color: var(--gold); }
.all-areas h2 { color: #fff; }
.all-areas h2 em { font-style: italic; color: var(--teal-light); }
.all-areas .section-sub {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
  margin-top: 0.5rem;
}

.region-group { margin-top: 60px; }
.region-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.region-icon { font-size: 1.4rem; }
.region-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gold-light);
}
.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.dept-card {
  background: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
/* Dark background cards (in all-areas dark section) */
.all-areas .dept-card {
  background: var(--char);
}
.dept-card:hover {
  border-color: rgba(184,151,58,0.4);
  transform: translateY(-2px);
}
.dept-card-img {
  width: 100%;
  padding-top: 65%;
  background-size: cover;
  background-position: center;
  background-color: #333;
}
.dept-card-body { padding: 1.25rem; }
.dept-number {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}
.dept-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.dept-name a { color: #ffffff; transition: color 0.2s; }
.dept-name a:hover { color: var(--gold-light); }
.dept-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.82);
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 1rem;
}
/* On white background cards (homepage dept section) */
.dept-grid .dept-card .dept-name { color: #ffffff; }
.dept-grid .dept-card .dept-name a { color: #ffffff; }
.dept-grid .dept-card .dept-desc { color: rgba(255,255,255,0.82); }
.dept-browse {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(184,151,58,0.4);
  padding: 6px 14px;
  display: inline-block;
  transition: all 0.2s;
}
.dept-browse:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* =============================================
   SECTION — LISTINGS / PROPERTY CARDS
   ============================================= */
.listings-section {
  background: var(--warm);
  padding: 100px 0;
}
.listings-section .section-intro { margin-bottom: 50px; }
.listings-section h2 em { font-style: italic; color: var(--teal); }

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.prop-card {
  background: #fff;
  border: 1px solid var(--bdr);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.prop-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.prop-card-img {
  position: relative;
  width: 100%;
  padding-top: 66%;
  overflow: hidden;
  background: var(--cream);
  flex-shrink: 0;
}
.prop-card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.prop-card:hover .prop-card-img img { transform: scale(1.04); }
.prop-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
}
.prop-card-body { padding: 1.4rem; }
.prop-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.prop-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a18;
  margin-bottom: 0.2rem;
}
.prop-location {
  font-size: 0.8rem;
  color: #4a4a44;
  font-weight: 400;
  margin-bottom: 1rem;
}
.prop-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: var(--mid);
  border-top: 1px solid var(--bdr);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.prop-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  line-height: 1;
}
.prop-meta span img,
.prop-meta span svg {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
}
/* Force emoji icons to a reasonable size */
.prop-meta span:first-child::before,
.prop-meta span { font-size: 0.78rem; }

.meta-icon {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--mid);
  padding: 2px 5px;
  border: 1px solid var(--bdr);
  border-radius: 2px;
  line-height: 1.4;
}

/* =============================================
   SECTION — TOP 10 LUXURY (dark band)
   ============================================= */
.luxury-band {
  background: var(--dark);
  border-top: 1px solid rgba(184,151,58,0.15);
  border-bottom: 1px solid rgba(184,151,58,0.15);
  padding: 80px 0;
}
.luxury-band h2 { color: #fff; }
.luxury-band h2 em { font-style: italic; color: var(--gold-light); }
.luxury-band .section-sub { color: var(--muted); font-size: 0.9rem; font-weight: 300; margin-top: 0.5rem; }

/* =============================================
   SECTION — CONTACT / CTA
   ============================================= */
.contact-section {
  background: var(--teal);
  padding: 100px 0;
  text-align: center;
}
.contact-section h2 { color: #fff; }
.contact-section h2 em { font-style: italic; color: var(--gold-light); }
.contact-section p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  margin: 1rem auto 2.5rem;
  max-width: 520px;
  line-height: 1.7;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(184,151,58,0.15);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo { margin-bottom: 1.25rem; }
.footer-logo img { height: 60px; width: auto; }
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  line-height: 1.65;
  max-width: 260px;
  margin-bottom: 1.5rem;
}
.footer-col h5 {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.78rem; color: var(--muted); font-weight: 300; }

/* =============================================
   GOLD DIVIDER BAR (under nav, before sections)
   ============================================= */
.gold-bar {
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* =============================================
   BUTTONS — general
   ============================================= */
.btn-teal {
  background: var(--teal);
  color: #fff;
  border: 1px solid var(--teal);
  padding: 14px 32px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-teal:hover { background: var(--teal-mid); border-color: var(--teal-mid); color: #fff; }

/* =============================================
   FORMS
   ============================================= */
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--bdr);
  background: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--dark);
  transition: border-color 0.2s;
  border-radius: 0;
  appearance: none;
}
.form-control:focus { outline: none; border-color: var(--gold); }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a8a7e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 6px;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 3rem;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--bdr);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mid);
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

/* =============================================
   UTILITIES
   ============================================= */
.text-gold  { color: var(--gold-light); }
.text-teal  { color: var(--teal-light); }
.text-muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.section-intro { margin-bottom: 3.5rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  #nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .areas-grid { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .property-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* =============================================
   ERE AGENT DASHBOARD STYLING
   ============================================= */

/* Overall dashboard wrapper */
.ere-dashboard-wrap,
.fave-dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Sidebar */
.fave-dashboard-sidebar,
.ere-dashboard-sidebar {
    background: var(--dark) !important;
    border: 1px solid rgba(184,151,58,.15) !important;
    border-radius: 0 !important;
    overflow: hidden;
}

/* Sidebar avatar */
.fave-dashboard-sidebar .fave-agent-avatar,
.ere-dashboard-sidebar .fave-agent-avatar {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    border: 3px solid var(--gold) !important;
    object-fit: cover !important;
}

/* Sidebar username */
.fave-dashboard-sidebar .agent-username,
.fave-dashboard-sidebar h4 {
    color: #fff !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 1rem !important;
}

/* Sidebar nav links */
.fave-dashboard-sidebar ul li a,
.ere-dashboard-sidebar ul li a {
    color: rgba(255,255,255,.75) !important;
    font-size: .85rem !important;
    font-weight: 400 !important;
    padding: 10px 16px !important;
    display: block !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    transition: all .2s !important;
    text-decoration: none !important;
}
.fave-dashboard-sidebar ul li a:hover,
.fave-dashboard-sidebar ul li.current a,
.ere-dashboard-sidebar ul li a:hover {
    color: var(--gold-light) !important;
    background: rgba(184,151,58,.08) !important;
}

/* Sidebar logout */
.fave-dashboard-sidebar .fave-logout a {
    color: rgba(255,255,255,.4) !important;
    font-size: .78rem !important;
}

/* Main content area */
.fave-dashboard-content,
.ere-dashboard-content {
    background: #fff !important;
    border: 1px solid var(--bdr) !important;
    border-radius: 0 !important;
    padding: 2rem !important;
}

/* My Properties heading */
.fave-dashboard-content h2,
.fave-dashboard-content h3 {
    font-family: 'Playfair Display', serif !important;
    color: var(--dark) !important;
    font-size: 1.4rem !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: .75rem !important;
    border-bottom: 2px solid var(--gold) !important;
}

/* Property listing rows - FIX OVERSIZED IMAGE */
.fave-my-properties .fave-prop-img,
.fave-my-properties .property-img,
.fave-my-properties img {
    width: 120px !important;
    height: 80px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

/* Property row layout */
.fave-my-properties .fave-prop-item,
.fave-my-properties > div {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid var(--bdr) !important;
}

/* Published badge */
.fave-my-properties .fave-prop-status .published,
.fave-my-properties .status-published {
    background: #22c55e !important;
    color: #fff !important;
    font-size: .65rem !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
}

/* Property title in list */
.fave-my-properties .fave-prop-title a,
.fave-my-properties h4 a {
    color: var(--dark) !important;
    font-weight: 600 !important;
    font-size: .95rem !important;
    text-decoration: none !important;
    transition: color .2s !important;
}
.fave-my-properties .fave-prop-title a:hover { color: var(--teal) !important; }

/* Edit/Delete/Hide buttons */
.fave-my-properties .fave-prop-actions a,
.fave-my-properties .actions a {
    display: inline-block !important;
    padding: 4px 12px !important;
    font-size: .72rem !important;
    font-weight: 600 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    border: 1px solid var(--bdr) !important;
    color: var(--mid) !important;
    text-decoration: none !important;
    transition: all .2s !important;
    margin-right: 4px !important;
}
.fave-my-properties .fave-prop-actions a:hover { 
    background: var(--dark) !important; 
    color: #fff !important;
    border-color: var(--dark) !important;
}

/* Filter tabs (All, Approved, Pending etc) */
.fave-my-properties .fave-filter-tabs a,
.fave-filter-tabs span {
    font-size: .78rem !important;
    font-weight: 600 !important;
    color: var(--mid) !important;
    padding: 6px 14px !important;
    border: 1px solid var(--bdr) !important;
    margin-right: 4px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all .2s !important;
}
.fave-my-properties .fave-filter-tabs a.active,
.fave-my-properties .fave-filter-tabs a:hover {
    background: var(--dark) !important;
    color: #fff !important;
    border-color: var(--dark) !important;
}

/* Search bar */
.fave-my-properties .fave-search-prop input {
    border: 1px solid var(--bdr) !important;
    padding: 8px 12px !important;
    font-family: 'Jost', sans-serif !important;
    font-size: .85rem !important;
}
.fave-my-properties .fave-search-prop button {
    background: var(--dark) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 20px !important;
    font-family: 'Jost', sans-serif !important;
    font-size: .78rem !important;
    font-weight: 600 !important;
    letter-spacing: .08em !important;
    cursor: pointer !important;
    transition: background .2s !important;
}
.fave-my-properties .fave-search-prop button:hover { background: var(--gold) !important; }

/* Submit New Property button */
.fave-dashboard-sidebar .fave-submit-btn a,
.fave-dashboard-sidebar a[href*="new-property"],
.fave-dashboard-sidebar a[href*="submit"] {
    display: block !important;
    background: var(--gold) !important;
    color: var(--dark) !important;
    text-align: center !important;
    padding: 12px !important;
    font-size: .75rem !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    margin: 1rem !important;
    text-decoration: none !important;
    transition: background .2s !important;
}
.fave-dashboard-sidebar a[href*="new-property"]:hover,
.fave-dashboard-sidebar a[href*="submit"]:hover {
    background: var(--gold-light) !important;
}

/* Page title area */
.ere-page-title,
.page-title-wrap {
    background: var(--dark) !important;
    padding: 60px 0 40px !important;
    border-bottom: 2px solid var(--gold) !important;
}
.ere-page-title h1,
.page-title-wrap h1 {
    color: #fff !important;
    font-family: 'Playfair Display', serif !important;
}


/* =============================================
   OVERRIDE ERE BOOTSTRAP TEAL VARIABLE
   ============================================= */
:root,
body,
html body {
    --teal: #066e50 !important;
    --teal-mid: #077a5a !important;
    --teal-light: #066e50 !important;
}

.contact-section { background: #066e50 !important; }

/* =============================================
   SPACING FIXES — homepage sections
   ============================================= */

/* Reduce gap between Featured Areas and 22 Departments */
.featured-areas-section {
    padding-bottom: 40px !important;
}

/* Reduce top padding of all-areas section */
.all-areas {
    padding-top: 40px !important;
    padding-bottom: 60px !important;
}

/* Reduce space between 22 Departments heading and region content */
.all-areas .container[style*="padding-top:80px"],
.all-areas .container {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

/* Reduce gap between Latest Listings and Featured Areas */
.listings-section {
    padding-bottom: 40px !important;
}

.featured-areas-section {
    padding-top: 40px !important;
}
