html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, video {
  max-width: 100%;
}

.mobile-filter-toggle {
  display: none;
}

@media (max-width: 700px) {
  body {
    background: #f7f5f0 !important;
    overflow-x: hidden;
  }

  .site-shell,
  .page {
    width: 100%;
    box-shadow: none !important;
  }

  .site-header,
  .top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    padding: 10px 16px !important;
  }

  .site-header img,
  .top .brand img {
    width: auto !important;
    height: 36px !important;
    max-width: min(70vw, 260px) !important;
  }

  .site-header-meta,
  .top-meta,
  .top > span {
    display: none !important;
  }

  .site-nav,
  .nav {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 22px !important;
    min-height: 44px;
    padding: 0 16px !important;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav::-webkit-scrollbar,
  .nav::-webkit-scrollbar,
  .market-strip::-webkit-scrollbar {
    display: none;
  }

  .site-nav a,
  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    flex: none;
  }

  .page-breadcrumb,
  .breadcrumb {
    padding: 9px 16px !important;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .page-intro {
    padding: 18px 16px !important;
  }

  .page-intro h1 {
    font-size: 25px !important;
    line-height: 1.15 !important;
  }

  .site-footer,
  .footer {
    gap: 8px;
    padding: 16px !important;
  }

  .home-tagline {
    max-width: 92vw;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
  }

  .market-strip {
    gap: 24px !important;
    padding: 9px 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .featured-news-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  #featured-news-title {
    font-size: 29px !important;
    line-height: 1.12 !important;
  }

  #featured-news-image-link {
    height: 210px !important;
  }

  .news-story-card {
    width: min(78vw, 280px) !important;
  }

  .transactions-header {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 4px;
  }

  .transactions-grid {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 8px 10px !important;
  }

  .transactions-grid > span:nth-child(5n + 2),
  .transactions-grid > span:nth-child(5n + 3) {
    display: none;
  }

  .classifieds-section {
    padding: 20px 16px 0 !important;
  }

  .classifieds-header {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 5px;
  }

  .classifieds-search {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
  }

  .classifieds-search input,
  .classifieds-search select,
  .classifieds-search button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 42px;
  }

  .classifieds-search input {
    grid-column: 1 / -1;
  }

  .home-listings-layout {
    display: block !important;
    padding: 0 16px !important;
  }

  .home-listings-column {
    padding: 20px 0 24px !important;
    border-right: 0 !important;
  }

  .home-listings-column + .home-listings-column {
    border-top: 1px solid #d5d0c4;
  }

  .home-listings-grid {
    grid-template-columns: 1fr !important;
  }

  .home-footer {
    grid-template-columns: 1fr 1fr !important;
    padding: 24px 16px !important;
  }

  .home-copyright {
    padding: 14px 16px !important;
  }

  .mobile-filter-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #1e3a5f;
    background: #fff;
    color: #1e3a5f;
    padding: 11px 12px;
    font: 700 12px 'IBM Plex Sans', sans-serif;
    letter-spacing: .04em;
    cursor: pointer;
  }

  [data-mobile-filters] {
    padding: 14px 16px !important;
  }

  [data-mobile-filters]:not(.is-open) > :not(.mobile-filter-toggle) {
    display: none !important;
  }

  [data-mobile-filters].is-open > .mobile-filter-toggle {
    margin-bottom: 18px;
  }

  .sales-results,
  .results {
    padding: 18px 16px 24px !important;
  }

  .sales-grid,
  .grid {
    gap: 12px !important;
  }

  .sales-grid > div,
  .card {
    min-height: 0 !important;
  }

  .content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .contact-page .content {
    padding-top: 30px !important;
  }

  .contact-page .intro h1 {
    font-size: 31px !important;
  }

  .contact-page .panel {
    padding: 22px 18px;
  }

  .property-page .quick-facts {
    grid-template-columns: 1fr 1fr !important;
  }

  .property-page .quick-fact:nth-child(odd) {
    border-right: 1px solid #e5e1d8 !important;
  }

  .property-page .quick-fact:nth-child(even) {
    border-right: 0 !important;
  }

  .property-page .quick-fact:nth-child(-n + 2) {
    border-bottom: 1px solid #e5e1d8 !important;
  }

  .property-page .quick-fact:nth-child(n + 3) {
    border-bottom: 0 !important;
  }
}

@media (max-width: 420px) {
  .classifieds-search {
    grid-template-columns: 1fr;
  }

  .classifieds-search input {
    grid-column: auto;
  }

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