@font-face {
  font-family: "Butler";
  src: url("/assets/fonts/Butler.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Butler";
  src: url("/assets/fonts/Butler-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Butler";
  src: url("/assets/fonts/Butler-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Maytra";
  src: url("/assets/fonts/Maytra.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #1a3a52;
  --link: #003366;
  --accent: #f8961f;
  --text-secondary: #6a6d72;
  --border: #e0e0e0;

  /* Brand header/footer palette, matches mccarthygrouprealty's Header.tsx / PublicFooter.tsx */
  --brand-navy: #0f1c2e;
  --brand-gold: #D4AF37;
  --brand-text: #f2f2f2;
  --headline-font: "Butler", Georgia, "Times New Roman", serif;
  --body-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --script-font: "Maytra", cursive;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: #1a1a1a;
  line-height: 1.5;
}

a {
  color: var(--link);
}

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header .megamenu-container {
  max-width: none;
  padding: 0 60px;
}

/* ---- Header ---- */
/* Solid navy, sticky to the top on every page (all livingin pages are
   content/guide pages, not an image-hero homepage). */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: var(--brand-navy);
  color: var(--brand-text);
  font-family: var(--headline-font);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.site-header .container {
  max-width: 1536px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

@media (min-width: 900px) {
  .site-header .container {
    flex-direction: column;
    justify-content: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

.site-header .logos {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header .logos .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-header .logos img {
  display: block;
  object-fit: contain;
}

.site-header .logos .mccarthy-logo {
  height: 36px;
  width: 32px;
  object-fit: contain;
  border-radius: 4px;
}

.site-header .logos .brand-name {
  color: var(--brand-text);
  font-family: var(--body-font);
  font-size: 13.6px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.site-header .logos .divider {
  width: 1px;
  height: 40px;
  background: rgba(242, 242, 242, 0.4);
}

.site-header .logos .dickson-logo {
  height: 46px;
  width: 128px;
  object-fit: contain;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
  }
}

.site-nav > a,
.site-nav .nav-dropdown-trigger > a {
  display: inline-block;
  padding: 10px 24px;
  color: var(--brand-text);
  text-decoration: none;
  font-family: var(--headline-font);
  font-size: 15.2px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
}

.site-nav > a::after,
.site-nav .nav-dropdown-trigger > a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--brand-gold);
  transition: width 0.3s ease-in-out;
}

.site-nav > a:hover::after,
.site-nav .nav-dropdown-trigger > a:hover::after {
  width: 80%;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
}

.caret-toggle {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  margin-left: -4px;
  cursor: pointer;
}

.nav-dropdown-trigger svg.caret {
  display: inline-flex;
  color: var(--brand-text);
  fill: currentColor;
  width: 20px;
  height: 20px;
  padding: 5px;
  box-sizing: content-box;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-trigger .caret {
  color: var(--brand-gold);
  transform: rotate(180deg);
}

.nav-megamenu {
  display: none;
  position: fixed;
  left: 0;
  width: 100vw;
  z-index: 1300;
  background: rgba(15, 28, 46, 0.98);
  color: var(--brand-text);
  font-family: var(--body-font);
  padding: 2rem 0;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.nav-dropdown.open .nav-megamenu {
  display: block;
}

.nav-megamenu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 600px) {
  .nav-megamenu-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (min-width: 900px) {
  .nav-megamenu-grid.city-guides-grid {
    grid-template-columns: repeat(5, minmax(260px, 1fr));
  }
}

.nav-megamenu-col {
  padding: 0.75rem;
  border-radius: 6px;
  transition: background-color 0.15s ease-in-out;
}

.nav-megamenu-col:hover {
  background-color: rgba(212, 175, 55, 0.1);
}

.nav-megamenu-col .col-heading {
  display: block;
  color: var(--brand-gold);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.nav-megamenu-links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-megamenu-links a {
  display: block;
  color: var(--brand-text);
  font-size: 0.85rem;
  line-height: 1.5;
  text-decoration: none;
  padding: 4px 8px;
  margin: 0 -0.5rem;
  border-radius: 4px;
  transition: background-color 0.15s ease-in-out;
}

.nav-megamenu-links a:hover {
  background-color: rgba(212, 175, 55, 0.18);
}

/* Team dropdown */
.team-megamenu {
  display: none;
  position: fixed;
  left: 0;
  width: 100vw;
  z-index: 1300;
  background: rgba(15, 28, 46, 0.98);
  color: var(--brand-text);
  font-family: var(--body-font);
  padding: 2rem 0;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.nav-dropdown.open .team-megamenu {
  display: block;
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px);
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

@media (min-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(220px, 320px));
    justify-content: center;
  }
}

.team-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.15s ease-in-out;
}

.team-card:hover {
  background-color: rgba(212, 175, 55, 0.1);
}

.team-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.team-card .name {
  color: var(--brand-gold);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.team-card .contact {
  color: var(--brand-text);
  font-size: 0.8rem;
  line-height: 1.5;
}

.team-card .view-profile {
  color: var(--brand-gold);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.25rem;
  text-decoration: underline;
}

/* Mobile menu */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--brand-text);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle svg,
.mobile-menu-close svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle:hover {
  color: var(--brand-gold);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(15, 28, 46, 0.97);
  color: var(--brand-text);
  overflow-y: auto;
  padding: 1rem 0 3rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-close {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 1.5rem;
}

.mobile-menu-close button {
  background: transparent;
  border: none;
  color: var(--brand-text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-close button:hover {
  color: var(--brand-gold);
}

.mobile-menu a,
.mobile-menu .mobile-menu-label {
  display: block;
  padding: 0.65rem 1.5rem;
  color: var(--brand-text);
  text-decoration: none;
  font-family: var(--headline-font);
  font-size: 1rem;
}

.mobile-menu a:hover {
  background-color: rgba(212, 175, 55, 0.18);
  color: var(--brand-text);
}

.mobile-menu .mobile-menu-label {
  padding-top: 1rem;
  padding-bottom: 0.25rem;
  font-size: 0.75rem;
  color: rgba(242, 242, 242, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--body-font);
}

.mobile-menu .mobile-city a {
  padding-left: 2.25rem;
  font-weight: 700;
}

.mobile-menu .mobile-neighborhood a {
  padding-left: 3.25rem;
  font-size: 0.9rem;
  font-weight: 400;
}

/* ---- Header band ---- */
.header-band {
  background-color: var(--navy);
  color: #fff;
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.header-band h1 {
  font-family: var(--headline-font);
  font-weight: 700;
  font-size: 2rem;
  margin: 0 0 1rem;
}

.header-band p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin: 0 auto;
  max-width: 46rem;
}

.back-to-city-link {
  display: block;
  width: 100%;
  text-align: center;
  opacity: 0.8;
  margin: 0 0 0.75rem;
  max-width: none;
}

.back-to-city-link a {
  color: #fff;
  text-decoration: underline;
}

@media (min-width: 900px) {
  .header-band h1 {
    font-size: 3rem;
  }
}

/* ---- Map ---- */
.map-embed {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ---- Search / widget band ---- */
.search-band {
  background-color: #f4f6f8;
  padding: 3rem 0 3.5rem;
  text-align: center;
}

.search-band h2 {
  font-family: var(--headline-font);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}

realscout-simple-search {
  --rs-ss-font-primary-color: #6a6d72;
  --rs-ss-searchbar-border-color: #d9dce0;
  --rs-ss-box-shadow: 0 10px 15px -3px #0000001a;
  --rs-ss-widget-width: 350px !important;
}

@media (min-width: 900px) {
  realscout-simple-search {
    --rs-ss-widget-width: 1000px !important;
  }
}

/* ---- Stats strip ---- */
.stats-strip {
  background: #fff;
  padding-top: 2.5rem;
}

.stats-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 600px) {
  .stats-row {
    flex-direction: row;
    align-items: center;
  }
}

.stats-city {
  display: flex;
  align-items: stretch;
  gap: 1rem;
}

.stats-city .bar {
  width: 4px;
  background-color: var(--accent);
  border-radius: 4px;
}

.stats-city .state {
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
}

.stats-city h2 {
  font-family: var(--headline-font);
  font-weight: 700;
  font-size: 1.75rem;
  text-transform: uppercase;
  margin: 0;
}

.stats-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.stats-figures .label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
}

.stats-figures .value {
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0;
}

/* ---- Content layout ---- */
.content-band {
  background: #fff;
  padding: 4rem 0 5rem;
}

.content-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 900px) {
  .content-layout {
    flex-direction: row;
    gap: 3rem;
  }
}

.content-main {
  flex: 1;
  min-width: 0;
}

.guide-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 96px;
}

.guide-section h2 {
  font-family: var(--headline-font);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.guide-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 1rem;
}

.guide-section ul {
  padding-left: 1.5rem;
  margin: 0;
}

.guide-section li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.guide-section li a {
  font-weight: 600;
  text-decoration: none;
}

.guide-section li a:hover {
  text-decoration: underline;
}

/* ---- Sidebar ---- */
.content-sidebar {
  display: none;
  width: 260px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}

@media (min-width: 900px) {
  .content-sidebar {
    display: block;
  }
}

.sidebar-sticky {
  position: sticky;
  top: 96px;
}

.report-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  text-decoration: none;
  color: #1b4d20;
  cursor: pointer;
  background-color: rgba(46, 125, 50, 0.1);
  border: 1.5px solid rgba(27, 77, 32, 0.4);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.report-download:hover {
  background-color: rgba(46, 125, 50, 0.18);
  border-color: rgba(27, 77, 32, 0.6);
}

.report-download .icon-file-down {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.report-download span {
  font-weight: 600;
  line-height: 1.3;
  font-size: 0.9rem;
}

.on-this-page-label {
  display: block;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
  letter-spacing: 1px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.on-this-page nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.on-this-page nav a {
  color: var(--link);
  font-size: 0.95rem;
  line-height: 1.5;
  text-decoration: none;
}

.on-this-page nav a:hover {
  text-decoration: underline;
}

/* ---- FAQs ---- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h3 {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.faq-item p {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

/* ---- Contact CTA ---- */
.contact-cta {
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.contact-cta h2 {
  font-family: var(--headline-font);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.contact-cta p {
  opacity: 0.9;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
}

.contact-cta .btn {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
}

/* ---- City guide grid (hub page) ---- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 0 0 2rem;
}

.city-card {
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.city-card:hover {
  transform: translateY(-4px);
  border-color: var(--link);
}

.city-card .thumb {
  height: 180px;
  background: #e8ebee;
  background-size: cover;
  background-position: center;
}

.city-card .body {
  padding: 1.5rem;
}

.city-card h2 {
  font-family: var(--headline-font);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.city-card p.teaser {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.city-card .cta {
  color: var(--link);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---- Footer ---- */
/* Matches mccarthygrouprealty's PublicFooter.tsx: #0f1c2e background, #f2f2f2 text, #D4AF37 gold accents. */
.site-footer {
  background: var(--brand-navy);
  color: var(--brand-text);
  padding: 3rem 0 1rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2.5rem;
  justify-content: space-between;
}

@media (min-width: 900px) {
  .footer-top {
    flex-direction: row;
  }
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-shrink: 0;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 4px;
}

.footer-brand .name {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}

.footer-brand .brokerage {
  font-size: 0.85rem;
  color: rgba(242, 242, 242, 0.65);
  margin: 0;
}

.footer-brand .address {
  font-size: 0.8rem;
  color: rgba(242, 242, 242, 0.5);
  margin: 0.5rem 0 0;
}

.footer-brand .phone {
  display: block;
  font-size: 0.8rem;
  color: rgba(242, 242, 242, 0.5);
  text-decoration: none;
}

.footer-brand .phone:hover {
  color: var(--brand-gold);
}

.footer-agents {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .footer-agents {
    flex-direction: row;
    gap: 3rem;
  }
}

.footer-agents .agent-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.footer-agents a {
  display: block;
  font-size: 0.85rem;
  color: rgba(242, 242, 242, 0.75);
  text-decoration: none;
}

.footer-agents a:hover {
  color: var(--brand-gold);
}

.footer-agents .license {
  font-size: 0.8rem;
  color: rgba(242, 242, 242, 0.5);
  margin: 0.25rem 0 0;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .footer-social {
    justify-content: flex-end;
  }
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(242, 242, 242, 0.25);
  color: rgba(242, 242, 242, 0.85);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.footer-social a:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  border-top: 1px solid rgba(242, 242, 242, 0.12);
  padding: 2rem 0 2.5rem;
}

.footer-columns > div {
  min-width: 160px;
}

.footer-columns h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.5);
  margin: 0 0 0.75rem;
}

.footer-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-columns a {
  color: rgba(242, 242, 242, 0.8);
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-columns a .icon-external-link {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.footer-columns a:hover {
  color: var(--brand-gold);
}

.footer-legal {
  border-top: 1px solid rgba(242, 242, 242, 0.12);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

@media (min-width: 600px) {
  .footer-legal {
    flex-direction: row;
    align-items: center;
  }
}

.footer-legal p {
  font-size: 0.75rem;
  color: rgba(242, 242, 242, 0.5);
  margin: 0 0 0.75rem;
}

.footer-legal a {
  color: rgba(242, 242, 242, 0.6);
  text-decoration: underline;
}

.footer-legal .powered-by {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-legal .powered-by a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(242, 242, 242, 0.6);
}

.footer-legal .powered-by .icon-sprout {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-legal .powered-by a:hover {
  color: var(--brand-gold);
}

.footer-mls img {
  height: 32px;
  width: auto;
}
