/* ============================================
   RAJIVAN REAL ESTATE – ADDITIONAL STYLES
   Components not covered in global.css
   ============================================ */

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-lg { padding: 16px 36px; font-size: 12px; }

/* ---- HERO SEARCH BAR ---- */
.hero {
  overflow: visible !important;
  z-index: 10 !important;
}
.hero-search-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 11 !important;
  padding: 0 0 40px;
  overflow: visible !important;
}
.quick-search-bar {
  display: flex;
  background: var(--white);
  border-radius: 4px;
  overflow: visible !important;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: 0 auto;
}
.quick-search-input {
  flex: 1;
  padding: 18px 20px;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
}
.quick-search-select {
  border: none;
  border-left: 1px solid var(--cream-dark);
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-mid);
  outline: none;
  cursor: pointer;
  min-width: 140px;
  background: var(--white);
}
.quick-search-bar .btn {
  border-radius: 0;
  padding: 18px 28px;
}

/* ---- LIVE AUTO-SUGGEST ENGINE STYLES ---- */
.search-input-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 0 0 4px 4px;
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 99999 !important;
  display: none;
  text-align: left;
  border-top: 1px solid var(--cream-dark);
}
.suggestion-group-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: var(--cream);
  padding: 8px 16px;
  font-weight: 700;
}
.suggestion-item {
  padding: 11px 16px;
  font-size: 13.5px;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0,0,0,0.02);
}
.suggestion-item:hover {
  background: var(--cream);
  color: var(--navy);
}
.suggestion-item i {
  color: var(--text-light);
  width: 16px;
  font-size: 12px;
  text-align: center;
}

/* ---- SECTION HEADERS ---- */
.section-header h2 {
  font-size: clamp(28px, 4vw, 48px);
}
.section-header p {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.8;
}

/* ---- INFO CARDS ---- */
.info-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.info-card-icon {
  width: 56px;
  height: 56px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--navy);
  margin: 0 auto 20px;
}
.info-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--navy);
}
.info-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- LISTING CARDS ---- */
.listing-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.listing-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--cream-dark);
}
.listing-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.listing-card:hover .listing-img-wrap img {
  transform: scale(1.04);
}
.listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
}
.badge-sale { background: var(--gold); color: var(--navy); }
.badge-contract { background: #2563eb; color: var(--white); }
.listing-body { padding: 20px; }
.listing-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 6px;
}
.listing-address {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 12px;
  line-height: 1.4;
}
.listing-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
}
.listing-meta i { color: var(--gold); margin-right: 4px; }
.listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.listings-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.listings-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- NEIGHBORHOOD CARDS ---- */
.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.neighborhood-card {
  position: relative;
  display: block;
  overflow: hidden;
  height: 200px;
}
.neighborhood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.neighborhood-card:hover img { transform: scale(1.06); }
.neighborhood-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.85) 0%, rgba(13,27,42,0.1) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.neighborhood-overlay h3 {
  color: var(--white);
  font-size: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ---- MEET SECTION ---- */
.meet-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: center;
}
.meet-photo {
  position: relative;
}
.meet-photo::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  z-index: 0;
}
.meet-photo img {
  width: 100%;
  border-radius: 4px;
  position: relative;
  z-index: 1;
  object-fit: cover;
  height: 480px;
}
.meet-content h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 20px; }
.meet-content p { color: var(--text-mid); line-height: 1.8; }
.meet-card {
  background: var(--navy);
  padding: 28px 32px;
  border-radius: 4px;
  margin-top: 32px;
}
.meet-card-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.12em;
}
.meet-card-title {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-top: 4px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.meet-card-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  font-size: 12px;
}
.meet-card-details span:first-child {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.meet-card-details a, .meet-card-details span {
  color: var(--white);
  font-weight: 500;
}

/* ---- TESTIMONIALS ---- */
.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}
.testimonial-stars { color: var(--gold); margin-bottom: 16px; font-size: 14px; }
.testimonial-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}
.testimonial-author {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.testimonials-slider { max-width: 700px; margin: 0 auto; text-align: center; }
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; }
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ---- CTA SECTION ---- */
.cta-section { background: var(--navy); padding: 48px 0; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-inner h2 { color: var(--white); font-size: clamp(22px, 3vw, 36px); }
.cta-inner .section-label { color: var(--gold-light); }

/* ---- WORK WITH SECTION ---- */
.work-with {
  position: relative;
  padding: 120px 0;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.work-with-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,0.75);
}
.work-with-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.work-with-content h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.work-with-content p {
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 15px;
}

/* ---- FOOTER ---- */
.footer { background: var(--navy); padding: 0; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 80px 0 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-heading {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.footer-contact-item i { color: var(--gold); margin-top: 2px; width: 16px; }
.footer-contact-item a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.35); transition: var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* ---- SEARCH PAGE ---- */
.search-page-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 70px);
  overflow: hidden;
}
.search-filters-panel {
  background: var(--white);
  border-right: 1px solid var(--cream-dark);
  overflow-y: auto;
  height: 100%;
}
.search-filters-inner { padding: 32px 24px; }
.filter-group { margin-bottom: 20px; }
.filter-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}
.filter-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
  background: var(--white);
}
.filter-input:focus { border-color: var(--gold); }
.search-results-panel {
  overflow-y: auto;
  height: 100%;
  padding: 24px;
  background: var(--cream);
}
.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.search-listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ---- VALUATION PAGE ---- */
.valuation-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}
.valuation-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  transition: var(--transition);
}
.valuation-step.active .step-circle {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.step-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}
.step-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 0 16px;
  margin-bottom: 20px;
  min-width: 60px;
}
.valuation-address-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 4px;
  padding: 0 20px;
  box-shadow: var(--shadow-lg);
}
.valuation-address-bar input {
  flex: 1;
  padding: 18px 0;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
}
.valuation-address-bar .btn {
  border-radius: 3px;
  margin: 8px 0;
}
.valuation-method-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}
.method-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.method-dot.gold { background: var(--gold); }
.method-dot.navy { background: var(--navy); }

/* ---- BLOG ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-img { height: 200px; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-body { padding: 24px; }
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.05em;
}
.blog-cat {
  background: var(--gold-pale);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.blog-title {
  font-size: 17px;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 10px;
}
.blog-excerpt { font-size: 13px; color: var(--text-mid); line-height: 1.7; margin-bottom: 16px; }
.blog-read-more { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.blog-read-more i { margin-left: 6px; }

/* ---- CONTACT PAGE ---- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-info {
  background: var(--navy);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(201,168,76,0.08);
}
.contact-info h2 { color: var(--white); margin-bottom: 32px; }
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-detail-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.contact-detail-item a, .contact-detail-item span { color: var(--white); font-size: 14px; }
.contact-form { padding: 64px 48px; }
.contact-form h2 { margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
  background: var(--white);
}
.form-input:focus { border-color: var(--gold); }
.form-textarea {
  min-height: 140px;
  resize: vertical;
}
.alert-success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- DETAIL PAGE ---- */
.detail-gallery { background: var(--navy); }
.detail-gallery-main { height: 480px; overflow: hidden; }
.detail-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery-thumbs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0,0,0,0.3);
}
.gallery-thumb {
  width: 100px;
  height: 64px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
  flex-shrink: 0;
}
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; outline: 2px solid var(--gold); }
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: flex-start;
}
.detail-contact-card {
  background: var(--white);
  padding: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--gold);
  position: sticky;
  top: 90px;
}

/* ---- CALC ---- */
.calc-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.calc-inputs { display: flex; flex-direction: column; gap: 24px; }
.calc-field {}
.calc-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.calc-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  overflow: hidden;
}
.calc-input-wrap:focus-within { border-color: var(--gold); }
.calc-prefix, .calc-suffix {
  padding: 0 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}
.calc-input {
  flex: 1;
  padding: 12px 14px;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
}
select.calc-input { padding: 12px 14px; cursor: pointer; }
.calc-slider {
  width: 100%;
  margin-top: 10px;
  accent-color: var(--gold);
  cursor: pointer;
}
.calc-result {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(201,168,76,0.3);
  border-radius: 8px;
  padding: 40px 32px;
  position: sticky;
  top: 90px;
}

/* ---- NAV DROPDOWN ---- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  min-width: 200px;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  padding: 8px 0;
  z-index: 200;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--white);
}
.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: -16px;         
  left: 0;
  width: 100%;
  height: 16px;       
  background: transparent;
  z-index: -1;        
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy) !important;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.nav-dropdown-menu a:hover {
  background: var(--cream);
  color: var(--gold) !important;
}

/* ---- ACTIVE NAV STATE ---- */
.nav-links a.active,
#mobile-menu a.active {
  color: var(--gold) !important;
}


/* ==========================================================================
   MASTER MOBILE & PORTRAIT NAVIGATION OVERRIDES
   Protects text scaling and forces smooth hardware-accelerated transitions
   ========================================================================== */

/* ---- TABLET LANDSCAPE LAYOUTS (max-width: 1100px) ---- */
@media (max-width: 1100px) {
  /* Fix 1: Re-architect Menu Properties to Enable Smooth CSS Slide Transitions */
  #mobile-menu {
    display: block !important;          /* Overrides display:none so transition works */
    position: fixed !important;
    top: 0 !important;                  /* Cover the viewport full height from the top boundary */
    height: 100vh !important;
    width: 280px !important;
    z-index: 99999 !important;          /* Elevate layer index completely above everything */
    padding: 40px 24px !important;
    visibility: hidden;                 /* Keeps it fully hidden from screen readers when shut */
    pointer-events: none;               /* Prevents click blocking when hidden */
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s !important;
  }
  
  #mobile-menu.open {
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }

  .mobile-menu-close {
    top: 20px !important;
    right: 20px !important;
    font-size: 28px !important;
  }

  /* Structural Page Grid Reflows */
  .search-page-layout {
    grid-template-columns: 1fr !important;
    height: auto !important;
    overflow: visible !important;
  }
  .search-filters-panel {
    height: auto !important;
    border-right: none !important;
    border-bottom: 1px solid var(--cream-dark);
  }
  .search-results-panel {
    height: auto !important;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
  }
  .meet-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
  .meet-photo img {
    height: 400px !important;
  }
  .meet-photo::before {
    display: none !important;
  }
}

/* ---- TABLET PORTRAIT LAYOUTS (max-width: 900px) ---- */
@media (max-width: 900px) {
  .listings-grid-3, .listings-grid-2, .listings-grid, .search-listings-grid,
  .neighborhoods-grid, .blog-grid, .vlog-grid, .info-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  .contact-split, .detail-layout, .calc-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .detail-contact-card, .calc-result {
    position: static !important;
    width: 100% !important;
  }
  .cta-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 20px !important;
  }
}

/* ---- SMARTPHONE PORTRAIT LAYOUTS (max-width: 640px) ---- */
@media (max-width: 640px) {
  .section {
    padding: 48px 0 !important;
  }
  
  /* Force all desktop grids to pile up vertically into single columns */
  .listings-grid-3, 
  .listings-grid-2, 
  .listings-grid, 
  .search-listings-grid,
  .neighborhoods-grid,
  .blog-grid,
  .vlog-grid,
  .info-cards-grid,
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* ==========================================================================
     FIX 1: HERO CONTAINER BREAKDOWN & FONT BLOWOUT PREVENTION
     Drastically reduces text sizing and forces standard wrapping mechanics
     ========================================================================== */
  .hero {
    padding-top: 90px !important;
    padding-bottom: 40px !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important; 
    justify-content: center !important;
    align-items: center !important;
    max-width: 100vw !important;
    overflow-x: hidden !important; /* Strictly lock horizontal axes layout boundaries */
  }
  .hero-content {
    margin-bottom: 40px !important;
    padding: 0 20px !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .hero-content h1 {
    font-size: clamp(32px, 7.5vw, 42px) !important; /* Scaled down beautifully to fit mobile screen widths */
    letter-spacing: 0.02em !important;            /* Tighten wide gaps between long letters */
    line-height: 1.15 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    margin-bottom: 16px !important;
  }
  .hero-content .hero-sub {
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
    margin-bottom: 24px !important;
    padding: 0 10px !important;
  }
  .hero-content p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 32px !important;
    padding: 0 10px !important;
  }
  
  /* Stack hero action buttons seamlessly on top of each other */
  .hero-content style + div, 
  .hero-content div {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }
  .hero-content .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .hero-search-bar {
    position: relative !important;
    bottom: auto !important;
    width: 100% !important;
    padding: 0 24px !important;
    overflow: visible !important;
  }
  .quick-search-bar {
    flex-direction: column !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .search-input-container {
    width: 100% !important;
  }
  .quick-search-input,
  .quick-search-select {
    width: 100% !important;
    border-radius: 4px !important;
    border: 1px solid var(--cream-dark) !important;
    background: var(--white) !important;
    padding: 14px 16px !important;
    height: 50px !important;
  }
  .quick-search-select {
    border-left: 1px solid var(--cream-dark) !important;
  }
  .quick-search-bar .btn {
    width: 100% !important;
    border-radius: 4px !important;
    padding: 14px 0 !important;
    justify-content: center !important;
  }

  /* ==========================================================================
     FIX 2: FOOTER SIDE SAFETY GUTTERS
     Re-injects horizontal padding loops to clean up edge cutoffs
     ========================================================================== */
  .footer-top {
    padding: 48px 24px 32px !important; 
  }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px !important;
    padding: 24px 24px !important; 
  }

  /* Navigation Bar Fine-Tuning elements */
  .nav-inner {
    padding: 0 16px !important;
  }
  .nav-logo {
    gap: 8px !important;
  }
  .nav-logo-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 15px !important;
  }
  .nav-logo-name {
    font-size: 13.5px !important;
    letter-spacing: 0.04em !important;
  }
  .nav-logo-sub {
    font-size: 8px !important;
  }

  /* Valuation Form Structural Layout Modifications */
  .valuation-address-bar {
    flex-direction: column !important;
    padding: 16px !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .valuation-address-bar input {
    padding: 8px 0 !important;
    text-align: center !important;
  }
  .valuation-address-bar .btn {
    margin: 0 !important;
    width: 100% !important;
  }

  .meet-card-details {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .email-form {
    flex-direction: column !important;
    gap: 12px !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .email-form input {
    border-radius: 4px !important;
    width: 100% !important;
  }
  .email-form .btn {
    border-radius: 4px !important;
    width: 100% !important;
  }
  
  .detail-gallery-main {
    height: 280px !important;
  }
  .gallery-thumb {
    width: 70px !important;
    height: 48px !important;
  }
}