
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  :root {
    --color-text: #0f172a;
    --color-heading: #142033;
    --color-muted: #5b677a;
    --color-primary: #1266e8;
    --color-primary-strong: #0f5fd8;
    --color-surface: #ffffff;
    --color-surface-soft: #f8fafc;
    --color-border: #dce4ef;
    --radius-lg: 5px;
    --shadow-card: none;
    --shadow-card-strong: none;
    --card-min: 320px;
    --card-gap: 1.25rem;
  }
 
  body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text);
    background: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height, 80px);
  }
 
  a {
    text-decoration: none;
    color: inherit;
  }

  .page-offset {
    padding-top: 0;
  }
 
.properties,
.agents {
    padding: 2rem;
  }

  .services {
    margin: 14pt;
  }
  
  h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
  }

  .services-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
  }

  .services-header .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
  }

  .services-header .lede {
    color: #4a5568;
    font-size: 1.05rem;
  }

  .home-search-links {
    padding: 2rem 1rem 0;
  }

  .home-search-links__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.5rem;
    align-items: start;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    padding: 1.5rem;
    box-shadow: none;
  }

  .home-search-links__copy h2 {
    margin-bottom: 0.65rem;
    letter-spacing: 0;
  }

  .home-search-links__copy p:last-child {
    color: #4a5568;
  }

  .home-search-links__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .home-search-links__grid a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 5px;
    background: #eef6ff;
    border: 1px solid #cfdbea;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
  }

  .home-search-links__grid a:hover {
    background: #dbeafe;
  }

  .home-page {
    background: #ffffff;
    overflow: clip;
  }

  .home-idx-hero {
    background:
      linear-gradient(180deg, rgba(238, 246, 255, 0.64), rgba(255, 255, 255, 0.94) 62%, #ffffff),
      url('/images/hero_small.webp') center top / cover no-repeat;
    border-bottom: 1px solid #edf2f7;
    padding: 3.2rem 1.75rem 2.2rem;
    position: relative;
  }

  .home-idx-hero::before {
    background: rgba(255, 255, 255, 0.78);
    content: "";
    inset: 0;
    position: absolute;
  }

  .home-idx-hero__inner {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 1280px;
    position: relative;
    z-index: 1;
  }

  .home-idx-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0;
  }

  .home-eyebrow {
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
  }

  .home-idx-hero h1 {
    color: var(--color-heading);
    font-size: clamp(2.45rem, 5vw, 4.65rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.03;
    margin: 0 0 1rem;
    max-width: 780px;
  }

  .home-idx-hero__lede {
    color: var(--color-muted);
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.55;
    margin: 0 0 1.2rem;
    max-width: 650px;
  }

  .home-search-panel {
    background: #ffffff;
    border: 1px solid #d8e3f2;
    border-radius: 5px;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(280px, 1.55fr) minmax(230px, 0.95fr) minmax(170px, 0.72fr) minmax(130px, 0.54fr) minmax(130px, 0.54fr) minmax(128px, 0.5fr);
    margin-top: 0.35rem;
    padding: 0.8rem;
  }

  .home-search-panel label,
  .home-search-panel__toggle {
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
  }

  .home-search-panel label > span,
  .home-search-panel__toggle legend {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
  }

  .home-search-panel input[type="text"],
  .home-search-panel select {
    appearance: none;
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 5px;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    min-height: 48px;
    outline: none;
    padding: 0 0.85rem;
    width: 100%;
  }

  .home-search-panel select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 0.8rem center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 2.1rem;
  }

  .home-search-panel input:focus,
  .home-search-panel select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(18, 102, 232, 0.1);
  }

  .home-search-panel__location {
    position: relative;
  }

  .home-search-panel__location input {
    padding-left: 2.55rem;
  }

  .home-search-panel__location::after {
    background: url('/images/icons/search-magnifier.png') center / contain no-repeat;
    content: "";
    height: 18px;
    left: 0.86rem;
    pointer-events: none;
    position: absolute;
    top: 2.02rem;
    width: 18px;
  }

  .home-search-panel__toggle {
    background: #ffffff;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .home-search-panel__toggle legend {
    grid-column: 1 / -1;
    margin-bottom: 0.35rem;
  }

  .home-search-panel__toggle label {
    display: block;
  }

  .home-search-panel__toggle input {
    clip: rect(0 0 0 0);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .home-search-panel__toggle span {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce4ef;
    color: #0f172a;
    display: flex;
    font-size: 0.82rem;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 0 0.8rem;
  }

  .home-search-panel__toggle label:first-of-type span {
    border-radius: 5px 0 0 5px;
  }

  .home-search-panel__toggle label:last-of-type span {
    border-left: 0;
    border-radius: 0 5px 5px 0;
  }

  .home-search-panel__toggle input:checked + span {
    background: #eef6ff;
    color: var(--color-primary);
  }

  .home-search-panel__submit {
    align-self: end;
    background: var(--color-primary);
    border: 0;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    gap: 0.55rem;
    justify-content: center;
    min-height: 48px;
    min-width: 130px;
    padding: 0 1.25rem;
  }

  .home-search-panel__submit:hover {
    background: var(--color-primary-strong);
  }

  .home-search-panel__submit svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
    width: 18px;
  }

  .home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.95rem;
  }

  .home-hero-actions a {
    align-items: center;
    border: 1px solid #cfdbea;
    border-radius: 5px;
    color: var(--color-primary);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    justify-content: center;
    min-height: 40px;
    padding: 0 1rem;
  }

  .home-hero-actions a:first-child {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
  }

  .home-feature-panel {
    background: #ffffff;
    border: 1px solid #d8e3f2;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem;
  }

  .home-feature-panel__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
  }

  .home-feature-panel__header span {
    color: #142033;
    font-size: 1rem;
    font-weight: 800;
  }

  .home-feature-panel__header a {
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 800;
  }

  .home-feature-listings {
    display: grid;
    gap: 0.78rem;
  }

  .home-search-tile {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 5px;
    color: inherit;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 82px;
    padding: 0.82rem;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  }

  .home-search-tile:hover {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
  }

  .home-search-tile__icon {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #d2e3f8;
    border-radius: 5px;
    color: var(--color-primary);
    display: flex;
    height: 42px;
    justify-content: center;
    width: 42px;
  }

  .home-search-tile__icon svg {
    height: 24px;
    width: 24px;
  }

  .home-search-tile__icon path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .home-search-tile__content {
    display: grid;
    gap: 0.22rem;
    min-width: 0;
  }

  .home-search-tile__content span {
    color: #142033;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
  }

  .home-search-tile__content small {
    color: #5b677a;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
  }

  .home-proof-strip,
  .home-pathways,
  .home-estimate-band,
  .home-neighborhoods {
    margin: 0 auto;
    max-width: 1240px;
  }

  .home-proof-strip {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    padding: 1.35rem 1.75rem;
  }

  .home-proof-strip div {
    border-left: 2px solid #dce4ef;
    padding-left: 1rem;
  }

  .home-proof-strip strong {
    color: #142033;
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
  }

  .home-proof-strip span {
    color: #5b677a;
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    margin-top: 0.2rem;
  }

  .home-pathways,
  .home-neighborhoods {
    padding: 2.4rem 1.75rem 0;
  }

  .home-section-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
  }

  .home-section-heading h2 {
    color: #142033;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.12;
    margin: 0;
    max-width: 780px;
  }

  .home-pathway-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
  }

  .home-pathway-card {
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 5px;
    display: grid;
    gap: 0.45rem;
    min-height: 168px;
    padding: 1.1rem;
  }

  .home-pathway-card span {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .home-pathway-card strong {
    color: #142033;
    font-size: 1.18rem;
    line-height: 1.25;
  }

  .home-pathway-card small {
    color: #5b677a;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
  }

  .home-estimate-band {
    align-items: center;
    background: #0f172a;
    border-radius: 5px;
    color: #ffffff;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 2.4rem;
    padding: 1.5rem 1.75rem;
  }

  .home-estimate-band .home-eyebrow {
    color: #93c5fd;
  }

  .home-estimate-band h2 {
    color: #ffffff;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.15;
    margin: 0 0 0.5rem;
  }

  .home-estimate-band p {
    color: #dbeafe;
    font-weight: 700;
    margin: 0;
    max-width: 760px;
  }

  .home-estimate-band__button {
    align-items: center;
    background: var(--color-primary);
    border-radius: 5px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.2rem;
    white-space: nowrap;
  }

  .home-neighborhood-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(6, 1fr);
  }

  .home-neighborhood-grid a {
    background: #eef6ff;
    border: 1px solid #cfdbea;
    border-radius: 5px;
    color: var(--color-primary);
    font-size: 0.86rem;
    font-weight: 800;
    min-height: 42px;
    padding: 0.7rem 0.8rem;
    text-align: center;
  }

  .home-mobile-actions {
    display: none;
  }
  
.property-cards,
.service-cards,
.agent-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--card-min), 1fr));
    gap: var(--card-gap);
    justify-content: center;
    margin: 0;
}
  
.property-card,
.service-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    border: 1px solid var(--color-border);
  }

  .agent-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    padding: 2rem;
    margin: 0.75rem;
    box-shadow: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 400px;
  }
  
.property-card:hover,
.service-card:hover,
.agent-card:hover {
    box-shadow: var(--shadow-card-strong);
    transform: translateY(-1px);
  }
  
  .property-card img,
  .service-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 0.5rem;
  }

  .agent-photo {
    width: 180px;
    height: 180px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    display: block;
  }

  .agent-card .placeholder {
    width: 180px;
    height: 180px;
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    background-color: #ccc;
  }
  
  .property-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333333;
  }

  .agent-name {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
    font-weight: 600;
  }

  .agent-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
    text-align: left;
  }

  .agent-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }

  .agent-icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    background: #eef6ff;
    border: 1px solid #cfdbea;
    border-radius: 5px;
    color: var(--color-primary);
    flex-shrink: 0;
  }

  .agent-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
  }

  .agent-value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 500;
  }

  .agent-contact-btn {
    width: 100%;
    padding: 1rem;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-decoration: none;
    display: block;
    text-align: center;
  }

  .agent-contact-btn:hover {
    background: var(--color-primary-strong);
    transform: translateY(-1px);
  }

  .cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.6rem;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(18, 102, 232, 0.18);
  }

  .cta-primary:hover {
    background: var(--color-primary-strong);
    transform: translateY(-1px);
  }

  .service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1f2a3d;
  }

  .service-card p {
    font-size: 1rem;
    color: #4a5568;
  }

  .service-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-bottom: 1rem;
    box-shadow: none;
    color: #ffffff;
    font-size: 28px;
  }

.service-card__points {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0 1rem;
    color: var(--color-muted);
  }

  .service-card__points li {
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.35rem;
  }

  .service-card__points li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
  }

  .service-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.95rem 1.4rem;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 5px;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    width: 100%;
    box-shadow: 0 12px 26px rgba(18, 102, 232, 0.18);
  }

  .service-card__cta:hover {
    background: var(--color-primary-strong);
    box-shadow: 0 16px 32px rgba(18, 102, 232, 0.2);
    transform: translateY(-1px);
  }
  
  .property-card p {
    font-size: 1rem;
  }

  .valuation-hero {
    background: transparent;
    padding: 4rem 1.25rem 3rem;
    color: #1f2937;
  }

  .valuation-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
  }

  .valuation-hero-text h1 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    color: #3b82f6;
  }

  .valuation-hero-text p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
  }

  .valuation-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
  }

  .valuation-card.contact-card {
    background: #ffffff;
    border: 1px solid #d8e3f2;
    border-radius: 5px;
    box-shadow: none;
    padding: 2.25rem;
  }

  .valuation-card.contact-card h3 {
    color: #142033;
    font-size: 2.1rem;
    line-height: 1.2;
    margin: 0 0 1rem;
    text-align: left;
  }

  .valuation-card.contact-card .contact-card-copy {
    color: #5b677a;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 1.45rem;
    text-align: left;
  }

  .valuation-card.contact-card .contact-form {
    gap: 1rem;
  }

  .valuation-field {
    text-align: left;
  }

  .valuation-card.contact-card .contact-form label {
    color: #374151;
    gap: 0.45rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
  }

  .valuation-card.contact-card .contact-form input {
    border: 1px solid #d9e2ef;
    border-radius: 5px;
    font-size: 1rem;
    min-height: 58px;
    padding: 0.8rem 0.95rem;
  }

  .valuation-submit {
    border-radius: 5px;
    font-size: 1.05rem;
    margin-top: 0.25rem;
    min-height: 58px;
  }

@media screen and (max-width: 768px) {
  .home-idx-hero {
      padding: 1.4rem 1rem 1.2rem;
  }

  .home-idx-hero__inner {
      grid-template-columns: 1fr;
      gap: 1rem;
  }

  .home-idx-hero h1 {
      font-size: 2.45rem;
  }

  .home-idx-hero__lede {
      font-size: 0.98rem;
      margin-bottom: 1rem;
  }

  .home-search-panel {
      grid-template-columns: 1fr 1fr;
      padding: 0.85rem;
  }

  .home-search-panel__location,
  .home-search-panel__toggle,
  .home-search-panel__submit {
      grid-column: 1 / -1;
  }

  .home-search-panel > label:not(.home-search-panel__location) {
      min-width: 0;
  }

  .home-hero-actions {
      display: none;
  }

  .home-feature-panel {
      padding: 0.85rem;
  }

  .home-proof-strip {
      grid-template-columns: 1fr;
      padding: 1.15rem 1rem;
  }

  .home-pathways,
  .home-neighborhoods {
      padding: 2rem 1rem 0;
  }

  .home-section-heading {
      align-items: start;
      display: grid;
  }

  .home-pathway-grid,
  .home-neighborhood-grid {
      grid-template-columns: 1fr 1fr;
  }

  .home-estimate-band {
      border-radius: 0;
      grid-template-columns: 1fr;
      margin-top: 2rem;
      padding: 1.35rem 1rem;
  }

  .home-estimate-band__button {
      width: 100%;
  }

  .home-mobile-actions {
      background: #ffffff;
      border-top: 1px solid #d9e3f0;
      bottom: 0;
      box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
      display: grid;
      gap: 0.55rem;
      grid-template-columns: 1fr 1fr;
      left: 0;
      padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
      position: fixed;
      right: 0;
      z-index: 25;
  }

  .home-mobile-actions a {
      align-items: center;
      background: var(--color-primary);
      border-radius: 5px;
      color: #ffffff;
      display: flex;
      font-size: 0.95rem;
      font-weight: 800;
      justify-content: center;
      min-height: 44px;
  }

  .home-mobile-actions a:last-child {
      background: #0f172a;
  }

  .home-search-links__inner {
      grid-template-columns: 1fr;
      padding: 1rem;
  }

  .home-search-links__grid {
      grid-template-columns: 1fr;
  }

  .property-cards,
  .service-cards,
  .agent-cards {
      grid-template-columns: 1fr;
      margin: 0;
  }

  .valuation-hero {
      padding: 1rem 1rem 2rem;
  }

  .valuation-hero-text {
      display: none;
  }

  .valuation-card.contact-card {
      padding: 1.7rem 1.35rem;
      width: 100%;
  }

  .valuation-card.contact-card h3 {
      font-size: 1.55rem;
      margin-bottom: 1rem;
  }

  .valuation-card.contact-card .contact-card-copy {
      font-size: 1rem;
      margin-bottom: 1.35rem;
  }

  .valuation-card.contact-card .contact-form label {
      font-size: 0.95rem;
  }

  .valuation-card.contact-card .contact-form input {
      min-height: 50px;
      padding: 0.75rem 0.9rem;
  }

  .valuation-submit {
      font-size: 1rem;
      min-height: 54px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1180px) {
  .home-idx-hero__inner {
      grid-template-columns: 1fr;
  }

  .home-search-panel {
      grid-template-columns: minmax(280px, 1.4fr) minmax(220px, 0.95fr) minmax(150px, 0.7fr);
  }

  .home-search-panel__location {
      grid-column: span 1;
  }

  .home-search-panel__submit {
      grid-column: span 1;
      justify-self: stretch;
  }

  .home-feature-listings {
      grid-template-columns: repeat(3, 1fr);
  }

  .home-pathway-grid {
      grid-template-columns: repeat(2, 1fr);
  }

  .home-neighborhood-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .home-idx-hero h1 {
      font-size: 2.05rem;
  }

  .home-search-panel {
      grid-template-columns: 1fr;
  }

  .home-search-tile {
      grid-template-columns: 38px minmax(0, 1fr);
      min-height: 76px;
      padding: 0.72rem;
  }

  .home-search-tile__icon {
      height: 38px;
      width: 38px;
  }

  .home-pathway-grid,
  .home-neighborhood-grid {
      grid-template-columns: 1fr;
  }
}

.sr-only {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body .home-idx-hero {
  background: #ffffff;
  border-bottom: 1px solid #d9e3f0;
  padding: 2.75rem 2rem 1.55rem;
}

body .home-idx-hero::before {
  display: none;
}

body .home-idx-hero__inner {
  align-items: start;
  display: grid;
  gap: 2.35rem;
  grid-template-columns: minmax(380px, 0.78fr) minmax(0, 1.22fr);
  max-width: 1320px;
}

body .home-idx-hero__content {
  padding-top: 1.7rem;
}

body .home-eyebrow {
  color: var(--color-primary);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.05rem;
}

body .home-idx-hero h1 {
  color: #07142b;
  font-size: clamp(2.55rem, 3.25vw, 3.45rem);
  line-height: 1.08;
  margin-bottom: 1rem;
  max-width: 540px;
}

body .home-idx-hero__lede {
  color: #334155;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 1.45rem;
  max-width: 520px;
}

body .home-search-panel {
  border: 1px solid #d9e3f0;
  border-radius: 6px;
  box-shadow: none;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
  padding: 0.9rem;
}

body .home-search-panel__location {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9e3f0;
  border-radius: 5px;
  display: grid;
  grid-column: 1 / 3;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  min-height: 44px;
}

body .home-search-panel__location input {
  background: transparent;
  border: 0;
  min-height: 42px;
  padding: 0 0.85rem 0 0;
}

body .home-search-panel__search-icon {
  background: url('/images/icons/search-magnifier.png') center / contain no-repeat;
  height: 18px;
  justify-self: center;
  pointer-events: none;
  width: 18px;
}

body .home-search-panel__location::after {
  display: none;
}

body .home-search-panel__toggle {
  grid-column: 3 / 4;
}

body .home-search-panel label,
body .home-search-panel__toggle {
  gap: 0.45rem;
}

body .home-search-panel label > span {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: none;
}

body .home-search-panel input[type="text"],
body .home-search-panel select,
body .home-search-panel__toggle span {
  border-color: #d9e3f0;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 44px;
}

body .home-search-panel__toggle label:first-of-type span {
  border-radius: 5px 0 0 5px;
}

body .home-search-panel__toggle label:last-of-type span {
  border-radius: 0 5px 5px 0;
}

body .home-search-panel__toggle input:checked + span {
  background: #eef6ff;
  border-color: #c9dcf8;
}

body .home-search-panel__more {
  align-items: center;
  color: var(--color-primary);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0 0.55rem;
}

body .home-search-panel__more svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  width: 17px;
}

body .home-search-panel__submit {
  align-items: center;
  align-self: end;
  border-radius: 5px;
  font-size: 0.96rem;
  gap: 0.6rem;
  grid-column: 2 / 4;
  justify-self: stretch;
  min-height: 52px;
}

.home-featured-listings {
  min-width: 0;
}

.home-featured-listings__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.home-featured-listings__header h2 {
  color: #07142b;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0;
}

.home-featured-listings__header a {
  align-items: center;
  color: var(--color-primary);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.5rem;
}

.home-link-arrow {
  display: inline-block;
  flex: 0 0 auto;
  height: 1.1em;
  object-fit: contain;
  vertical-align: -0.08em;
  width: 1.1em;
}

.home-listing-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-listing-card {
  border: 1px solid #dce4ef;
  border-radius: 6px;
  color: inherit;
  display: block;
  overflow: hidden;
}

.home-listing-card article {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

.home-listing-card__photo {
  aspect-ratio: 1.68 / 1;
  background: #eef6ff;
  position: relative;
}

.home-listing-card__photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-listing-card__badge {
  background: rgba(15, 23, 42, 0.78);
  border-radius: 5px;
  bottom: 0.58rem;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  left: 0.58rem;
  padding: 0.3rem 0.46rem;
  position: absolute;
}

.home-listing-card__body {
  display: grid;
  gap: 0.34rem;
  grid-template-rows: auto auto auto minmax(42px, auto) auto;
  padding: 0.82rem;
}

.home-listing-card__body strong {
  color: #07142b;
  font-size: 1.22rem;
  line-height: 1.1;
}

.home-listing-card__body > span {
  color: #1f2a44;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.home-listing-card__body > small {
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.35;
}

.home-listing-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-top: 0.72rem;
  min-height: 42px;
}

.home-listing-card__facts span {
  align-items: center;
  color: #1f2a44;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 600;
  gap: 0.35rem;
  white-space: nowrap;
}

.home-listing-card__facts svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.home-listing-card__facts rect {
  fill: none;
}

.home-listing-card__cta {
  align-items: center;
  border: 1px solid var(--color-primary);
  border-radius: 5px;
  color: var(--color-primary);
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  justify-content: center;
  margin-top: 0.9rem;
  min-height: 36px;
}

body .home-proof-strip {
  border-bottom: 1px solid #d9e3f0;
  border-top: 1px solid #d9e3f0;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1320px;
  padding: 1rem 2rem;
}

body .home-proof-strip > div {
  align-items: center;
  border-left: 1px solid #d9e3f0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 0.1rem 1.2rem;
}

body .home-proof-strip > div:first-child {
  border-left: 0;
}

.home-proof-strip__icon {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  display: flex;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.home-proof-strip__icon img {
  display: block;
  height: 100%;
  width: 100%;
}

.home-help-card__icon svg {
  fill: none;
  height: 32px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 32px;
}

body .home-proof-strip strong {
  color: #07142b;
  font-size: 1rem;
}

body .home-proof-strip span {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 500;
}

body .home-proof-strip a {
  align-items: center;
  color: var(--color-primary);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.home-help {
  margin: 0 auto;
  max-width: 1320px;
  padding: 2.15rem 2rem 3.2rem;
}

.home-help h2 {
  color: #07142b;
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 1.9rem;
  text-align: center;
}

.home-help-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(4, 1fr);
}

.home-help-card {
  align-items: center;
  border: 1px solid #dce4ef;
  border-radius: 6px;
  color: inherit;
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 150px;
  padding: 1.25rem;
}

.home-help-card__icon {
  align-items: center;
  background: transparent;
  border-radius: 999px;
  display: flex;
  flex: 0 0 64px;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.home-help-card__icon img {
  display: block;
  height: 64px;
  width: 64px;
}

.home-help-card strong,
.home-help-card small,
.home-help-card div > span {
  display: block;
}

.home-help-card strong {
  color: #07142b;
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.home-help-card small {
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.home-help-card div > span {
  align-items: center;
  color: var(--color-primary);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 0.35rem;
}

.home-help-note {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 1.35rem auto 0;
  max-width: 760px;
  text-align: center;
}

.home-help-note a {
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media screen and (min-width: 1181px) and (max-width: 1500px) {
  body .home-idx-hero {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  body .home-idx-hero__inner {
    gap: 1.65rem;
    grid-template-columns: minmax(350px, 0.76fr) minmax(0, 1.24fr);
  }

  body .home-idx-hero h1 {
    font-size: clamp(2.35rem, 3.1vw, 3rem);
  }

  body .home-idx-hero__lede {
    font-size: 0.96rem;
  }

  body .home-search-panel {
    max-width: 500px;
  }

  .home-listing-card__facts {
    gap: 0.4rem;
  }

  .home-listing-card__body > span,
  .home-listing-card__body > small,
  .home-listing-card__facts span,
  .home-listing-card__cta {
    font-size: 0.7rem;
  }

  body .home-proof-strip {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  body .home-proof-strip > div {
    grid-template-columns: 50px minmax(0, 1fr);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .home-proof-strip__icon {
    height: 50px;
    width: 50px;
  }
}

@media screen and (max-width: 1180px) {
  body .home-idx-hero {
    padding: 2.4rem 1.75rem 1.5rem;
  }

  body .home-idx-hero__inner {
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  body .home-idx-hero__content {
    padding-top: 0;
  }

  body .home-search-panel {
    max-width: none;
  }

  .home-featured-listings__header {
    margin-bottom: 0.9rem;
  }

  .home-listing-grid {
    gap: 0.65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-listing-card__photo {
    aspect-ratio: 1.95 / 1;
  }

  .home-listing-card__badge {
    bottom: 0.42rem;
    font-size: 0.62rem;
    left: 0.42rem;
    padding: 0.22rem 0.34rem;
  }

  .home-listing-card__body {
    gap: 0.18rem;
    padding: 0.65rem;
  }

  .home-listing-card__body strong {
    font-size: 1rem;
  }

  .home-listing-card__body > span,
  .home-listing-card__body > small {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .home-listing-card__facts {
    gap: 0.34rem;
    margin-top: 0.42rem;
    min-height: 34px;
  }

  .home-listing-card__facts span {
    font-size: 0.62rem;
    gap: 0.24rem;
  }

  .home-listing-card__facts svg {
    height: 13px;
    width: 13px;
  }

  .home-listing-card__cta {
    font-size: 0.68rem;
    margin-top: 0.5rem;
    min-height: 31px;
  }

  body .home-proof-strip {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  body .home-proof-strip > div {
    padding: 0.15rem 1.25rem;
  }

  .home-help {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .home-help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  body .home-idx-hero {
    padding: 1.35rem 1rem 1.25rem;
  }

  body .home-idx-hero h1 {
    font-size: 2.35rem;
  }

  body .home-search-panel {
    grid-template-columns: 1fr 1fr;
  }

  body .home-search-panel__location,
  body .home-search-panel__toggle,
  body .home-search-panel__more,
  body .home-search-panel__submit {
    grid-column: 1 / -1;
  }

  .home-listing-grid {
    grid-template-columns: 1fr;
  }

  body .home-proof-strip {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  body .home-proof-strip > div {
    border-left: 0;
    border-top: 1px solid #d9e3f0;
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 1rem 0;
  }

  body .home-proof-strip > div:first-child {
    border-top: 0;
  }

  .home-proof-strip__icon {
    height: 58px;
    width: 58px;
  }

  .home-help {
    padding: 1.8rem 1rem 5.8rem;
  }

  .home-help h2 {
    font-size: 1.8rem;
  }

  .home-help-grid {
    grid-template-columns: 1fr;
  }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: #ffffff;
    border-bottom: 1px solid #d9e3f0;
    box-shadow: none;
    background-size: 100% 200%;
    background-position: 50% 0;
    padding-top: env(safe-area-inset-top, 0px);
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    min-height: 82px;
    padding: 0 28px;
    gap: 1.25rem;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    height: 48px;
    width: auto;
}

.nav-spacer {
    flex: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #0f172a;
    transition: color 0.15s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    font-size: 0.94rem;
}

.nav-links a:hover {
    color: #245fc4;
}

.nav-links a.active {
    color: #245fc4;
    font-weight: 700;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.nav-phone,
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nav-phone {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.nav-phone svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-cta {
    min-height: 40px;
    padding: 0 1.15rem;
    border-radius: 5px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    background: #1266e8;
    box-shadow: 0 14px 28px rgba(18, 102, 232, 0.28);
    gap: 0.65rem;
}

.nav-cta__arrow {
    filter: brightness(0) invert(1);
    height: 1.15rem;
    width: 1.15rem;
}

.nav-phone:hover,
.nav-cta:hover {
    transform: translateY(-1px);
}

.nav-phone:hover {
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.nav-cta:hover {
    background: #0f5fd8;
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(18, 102, 232, 0.34);
}

.nav-cta.active {
    background: #1266e8;
    color: #ffffff;
}

.nav-menu-toggle {
    display: none;
}

@media screen and (max-width: 768px) {
    header {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    nav {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
        min-height: 72px;
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
    }

    .logo-image {
        height: 38px;
        max-width: 154px;
    }

    .nav-spacer {
        display: block;
        flex: 1 1 auto;
    }

    .nav-links {
        display: none;
    }

    header.is-nav-open .nav-links {
        align-items: stretch;
        background: #ffffff;
        border-bottom: 1px solid #d9e3f0;
        border-top: 1px solid #edf2f7;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
        display: flex;
        flex-direction: column;
        gap: 0;
        left: 0;
        padding: 0.35rem 1rem 0.65rem;
        position: absolute;
        right: 0;
        top: 100%;
        width: 100%;
    }

    header.is-nav-open .nav-links li {
        border-bottom: 1px solid #edf2f7;
    }

    header.is-nav-open .nav-links li:last-child {
        border-bottom: 0;
    }

    header.is-nav-open .nav-links a {
        display: block;
        font-size: 0.98rem;
        padding: 0.85rem 0;
    }

    .nav-actions {
        display: flex;
        flex: 0 0 auto;
        margin-left: auto;
        gap: 0.45rem;
    }

    .nav-phone {
        border: 1px solid #d9e3f0;
        border-radius: 5px;
        box-shadow: none;
        width: 40px;
        height: 40px;
    }

    .nav-cta {
        display: none;
    }

    .nav-menu-toggle {
        align-items: center;
        background: transparent;
        border: 0;
        display: inline-flex;
        flex-direction: column;
        gap: 7px;
        height: 44px;
        justify-content: center;
        padding: 0;
        width: 44px;
    }

    .nav-menu-toggle span {
        background: #0f172a;
        display: block;
        height: 2.5px;
        transition: opacity 0.15s ease, transform 0.15s ease;
        width: 28px;
    }

    .nav-menu-toggle.is-open span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .nav-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .nav-menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }
}

.hero {
    position: relative;
    background-image: url('images/hero_small.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 3rem 2rem;
    overflow: hidden;
  }
  
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 20% 25%, rgba(120, 205, 255, 0.18), transparent 34%),
      radial-gradient(circle at 80% 20%, rgba(36, 115, 255, 0.14), transparent 30%),
      radial-gradient(ellipse at 40% 80%, rgba(0, 60, 120, 0.12), transparent 45%),
      linear-gradient(135deg, rgba(0, 40, 90, 0.12), rgba(0, 0, 0, 0.06));
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    mix-blend-mode: screen;
    opacity: 0.14;
  }
  
  .hero .text-container {
    position: relative;
    padding: 2rem;
    color: white;
    font-family: 'Poppins', sans-serif;
    text-align: left;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(1px);
    background: rgba(15, 23, 42, 0.18);
    border-radius: 5px;
    max-width: 720px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
  }
  
  .hero p {
    font-size: 1.15rem;
    font-weight: 300;
    color: #e9f2ff;
  }

  .hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
  }

  .hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: #cfe6ff;
    margin-bottom: 0.6rem;
    font-weight: 700;
  }

  .hero-lede {
    margin-bottom: 1.25rem;
    max-width: 640px;
  }

  .hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 5px;
    background: rgba(238, 246, 255, 0.18);
    color: #d6e6ff;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .btn-primary,
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    border-radius: 5px;
    font-weight: 700;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  }

  .btn-primary {
    background: #1266e8;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(31, 131, 230, 0.25);
  }

  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(31, 131, 230, 0.3);
  }

  .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #e9f2ff;
    border-color: rgba(255, 255, 255, 0.25);
  }

  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
  }

  .hero-microcopy {
    font-size: 0.95rem;
    color: #d6e6ff;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    align-content: start;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.1);
    padding: 1.4rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
  }

  .stat-card {
    padding: 0.85rem 1rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.1rem;
    letter-spacing: -0.4px;
  }

  .stat-label {
    color: #d6e6ff;
    font-size: 0.95rem;
  }

  @media screen and (max-width: 900px) {
    .hero-inner {
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    .hero {
      padding: 2.5rem 1.25rem;
      min-height: 70vh;
    }

    .hero-stats {
      display: none;
    }
  }

  @media screen and (max-width: 640px) {
    .hero h1 {
      font-size: 2.2rem;
    }

    .hero p {
      font-size: 1rem;
    }

    .hero .text-container {
      padding: 1.5rem;
    }

    .hero-ctas {
      flex-direction: column;
      align-items: stretch;
    }
  }

  @media screen and (max-width: 768px) {
    
    .hero .text-container {
      padding: 5px;
      color: white;
    }

    .hero h1 {
        font-size: 18pt;
        font-weight: 400;
      }
      
      .hero p {
        font-size: 12pt;
        font-weight: 200;
      }

    .hero {
        height: 30vh;
      }
}

/* Stats section with white text */
.stats-section {
  background: linear-gradient(to right, #3B82F6, #2563EB);
  padding: 4rem 1rem;
  color: #ffffff;
}

.stats-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stats-section .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.stats-section .stat-label {
  color: #ffffff;
  font-size: 1.1rem;
}

.footer {
  background-color: #0f172a;
  color: #fff;
  padding: 3.5rem 1rem;
  text-align: center;
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 3rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-seo-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1rem;
  max-width: 58rem;
  margin: 1.25rem auto 1.5rem;
}

.footer-seo-links a {
  color: #dbeafe;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-seo-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copyright {
  color: #9ca3af;
  font-size: 1rem;
}

.logo-container {
    width: 116px; /* Set the width of the container */
    height: 48px; /* Set the height of the container */
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

/* CSS for the logo image */
.logo-image {
    max-width: 100%; /* Ensure the image fits within the container */
    max-height: 100%; /* Ensure the image fits within the container */
    user-select: none; /* Make the image non-selectable */
}
.idx-hero {
    position: relative;
    background: linear-gradient(135deg, #3B82F6, #2563EB, #1D4ED8);
    color: #ffffff;
    padding: 3rem 1.25rem;
    overflow: hidden;
}

.idx-hero::before,
.idx-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(60px);
    z-index: 1;
}

.idx-hero::before {
    top: 10%;
    left: 5%;
}

.idx-hero::after {
    bottom: -10%;
    right: 5%;
}

.idx-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.idx-hero-text {
    text-align: center;
    margin-bottom: 1.5rem;
}

.idx-eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: #bfdbfe;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.idx-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0;
}

.idx-hero p {
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
    color: #dbeafe;
}

.idx-hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.idx-primary-cta,
.idx-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.8rem 1.15rem;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
}

.idx-primary-cta {
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.idx-secondary-cta {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.idx-search-card {
    margin-top: 1.5rem;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
    padding: 1.25rem;
}

.idx-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.4rem;
    background: #f3f4f6;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.toggle-btn {
    border: none;
    background: transparent;
    padding: 0.9rem;
    border-radius: 10px;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: #ffffff;
    color: #3b82f6;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.idx-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.span-full {
    grid-column: 1 / -1;
}

.field {
    position: relative;
}

.field input,
.field select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 0.95rem;
    background: #f3f4f6;
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 3rem;
}

.field select {
    padding-right: 2.5rem;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.icon-left::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    opacity: 1;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.icon-map::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 1 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.icon-dollar::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12 1v22'/%3E%3Cpath d='M17 5.5C17 3 14.761 1 12 1S7 3 7 5.5 9.239 10 12 10s5 2 5 4.5S14.761 19 12 19 7 17 7 14.5'/%3E%3C/svg%3E");
}

.icon-bed::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M2 4v16M2 4h5a2 2 0 0 1 2 2v6H2m0-8v8m18 0H2m18 0v6m0-6V9a3 3 0 0 0-3-3h-4a3 3 0 0 0-3 3v3h10Z'/%3E%3C/svg%3E");
}

.icon-bath::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M7 4V2a2 2 0 1 1 4 0v2'/%3E%3Cpath d='M5 6h10M5 12h14M5 6v6a6 6 0 0 0 12 0V6'/%3E%3C/svg%3E");
}

.idx-submit {
    grid-column: 1 / -1;
    padding: 0.95rem;
    border: none;
    border-radius: 12px;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.26);
    transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.idx-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(59, 130, 246, 0.3);
    filter: brightness(1.02);
}

.idx-landing-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 2rem auto 0;
    padding: 0 1.25rem;
    align-items: start;
}

.idx-landing-copy,
.idx-lead-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.idx-landing-copy {
    padding: 1.5rem;
}

.idx-landing-copy h2,
.idx-lead-card h2,
.idx-results-heading h2 {
    margin: 0 0 0.65rem;
    color: #1f2937;
    font-size: 1.45rem;
    letter-spacing: 0;
}

.idx-landing-copy p,
.idx-lead-card p,
.idx-results-heading p {
    margin: 0;
    color: #4b5563;
    line-height: 1.65;
}

.idx-highlight-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.idx-highlight-list span {
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.idx-proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.idx-proof-strip div {
    padding: 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.idx-proof-strip strong,
.idx-proof-strip span {
    display: block;
}

.idx-proof-strip strong {
    color: #111827;
    font-size: 0.95rem;
    line-height: 1.25;
}

.idx-proof-strip span {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.idx-related-links {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.idx-related-links h3 {
    margin: 0 0 0.7rem;
    color: #1f2937;
    font-size: 1rem;
    letter-spacing: 0;
}

.idx-related-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.idx-related-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.idx-lead-card {
    padding: 1.25rem;
}

.idx-lead-form {
    margin-top: 1rem;
}

.idx-results-heading {
    max-width: 1100px;
    margin: 0 auto 1.25rem;
}

.idx-results-heading span {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.idx-results {
    margin: 2rem;
}

.idx-faq {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding: 0 1.25rem;
}

.idx-section-heading {
    margin-bottom: 1rem;
}

.idx-section-heading span {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.idx-section-heading h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.45rem;
    letter-spacing: 0;
}

.idx-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.idx-faq-item {
    padding: 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.idx-faq-item h3 {
    margin: 0 0 0.55rem;
    color: #111827;
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: 0;
}

.idx-faq-item p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.95rem;
}

.idx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.idx-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.idx-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.idx-card article,
.idx-card-content {
    height: 100%;
}

.idx-photo {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f4f8;
}

.idx-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.idx-card:hover img {
    transform: scale(1.05);
}

.idx-photo-fallback {
    width: 100%;
    height: 100%;
    background: #f0f4f8;
}

.idx-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.18) 100%);
}

.idx-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #3b82f6;
    color: #ffffff;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.idx-card .idx-card-body {
    padding: 1.1rem 1.1rem 1.25rem;
}

.idx-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    color: #2d3748;
}

.idx-card .price {
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.idx-card .meta {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 0.25rem;
}

.idx-card .address {
    font-size: 0.95rem;
    color: #2d3748;
}

.idx-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    color: #4a5568;
    font-weight: 600;
}

.idx-card-cta {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1.5px solid #3b82f6;
    color: #3b82f6;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.15s ease;
}

.idx-card:hover .idx-card-cta {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.25);
}

.idx-alert {
    margin: 1rem 2rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: #fff5e5;
    color: #8a4b0e;
    border: 1px solid #f3d2a2;
}

  .idx-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.idx-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.idx-page-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: 1px solid #d5e3f7;
    background: #ffffff;
    color: #1f2a3d;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.idx-page-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.idx-detail-hero {
    background: #0f6ec7;
    color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin: 2rem;
    box-shadow: 0 18px 40px rgba(15, 110, 199, 0.28);
}

.idx-detail-hero .back-link {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #dff0ff;
    text-decoration: none;
}

.idx-detail-hero h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
}

.idx-detail-hero .detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.idx-detail-hero .price {
    font-size: 1.5rem;
    font-weight: 800;
}

.idx-detail-body {
    margin: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.idx-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    background: #f7fafc;
    padding: 1rem;
    border-radius: 10px;
}

.idx-gallery img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    height: 180px;
}

.idx-detail-info {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.idx-detail-info h2 {
    margin-top: 0;
}

.idx-detail-info p {
    line-height: 1.5;
}

.idx-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem 1rem;
    margin-top: 1rem;
}

.idx-detail-grid strong {
    display: block;
    color: #0f6ec7;
    margin-bottom: 0.25rem;
}

/* New Listing Detail Layout */
.listing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 2rem;
    width: 100%;
}

.listing-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    overflow: hidden;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: #3b82f6;
}

.listing-carousel {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.8);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.carousel-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.listing-carousel-showcase .carousel-shell {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 28%);
}

.carousel-main {
    position: relative;
    width: 100%;
    height: clamp(420px, 48vw, 640px);
    background: #f3f4f6;
}

.carousel-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.18s ease;
}

.carousel-main img.is-changing {
    opacity: 0.82;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.carousel-nav.prev {
    left: 1rem;
}

.carousel-nav.next {
    right: 1rem;
}

.carousel-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.74);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.carousel-view-all {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    min-height: 42px;
    padding: 0.65rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #14213d;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.carousel-view-all:hover {
    background: #ffffff;
}

.carousel-previews {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    min-height: 100%;
}

.carousel-preview {
    border: 0;
    padding: 0;
    background: #e2e8f0;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.carousel-preview + .carousel-preview {
    border-top: 1px solid rgba(255, 255, 255, 0.8);
}

.carousel-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.2s ease;
}

.carousel-preview:hover img,
.carousel-preview.active img {
    filter: saturate(1.05);
    transform: scale(1.03);
}

.carousel-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
}

.carousel-thumbnails img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.carousel-thumbnails img:hover {
    border-color: #3b82f6;
}

.carousel-thumbnails img.active {
    border-color: #3b82f6;
}

.photo-lightbox-open {
    overflow: hidden;
}

.photo-lightbox {
    align-items: stretch;
    display: none;
    inset: 0;
    justify-content: center;
    padding: 1.5rem;
    position: fixed;
    z-index: 3000;
}

.photo-lightbox.active {
    display: flex;
}

.photo-lightbox-backdrop {
    background: rgba(8, 15, 30, 0.86);
    inset: 0;
    position: absolute;
}

.photo-lightbox-panel {
    background: #0f172a;
    border: 1px solid rgba(226, 232, 240, 0.16);
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-width: 1280px;
    overflow: hidden;
    position: relative;
    width: min(100%, 1280px);
}

.photo-lightbox-topbar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.15rem;
}

.photo-lightbox-topbar div {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.photo-lightbox-topbar span {
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.photo-lightbox-topbar strong {
    color: #ffffff;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-lightbox-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.photo-lightbox-close:hover,
.photo-lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    outline: none;
}

.photo-lightbox-stage {
    align-items: center;
    background: #020617;
    display: grid;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.photo-lightbox-stage img {
    height: 100%;
    max-height: calc(100vh - 190px);
    object-fit: contain;
    width: 100%;
}

.photo-lightbox-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 0;
    border-radius: 999px;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    height: 52px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    z-index: 2;
}

.photo-lightbox-nav.prev {
    left: 1rem;
}

.photo-lightbox-nav.next {
    right: 1rem;
}

.photo-lightbox-nav:hover,
.photo-lightbox-nav:focus-visible {
    background: #ffffff;
    outline: none;
}

.photo-lightbox-thumbs {
    background: rgba(15, 23, 42, 0.96);
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.85rem 1rem 1rem;
}

.photo-lightbox-thumbs button {
    background: transparent;
    border: 3px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    flex: 0 0 auto;
    height: 76px;
    overflow: hidden;
    padding: 0;
    width: 104px;
}

.photo-lightbox-thumbs button.active,
.photo-lightbox-thumbs button:focus-visible {
    border-color: #3b82f6;
    outline: none;
}

.photo-lightbox-thumbs img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.carousel-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    color: #9ca3af;
    font-size: 1.25rem;
}

.listing-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: clamp(1.35rem, 2vw, 2rem);
    border-radius: 18px;
    border: 1px solid rgba(203, 213, 225, 0.85);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem 1.5rem;
    align-items: start;
}

.listing-trust-band {
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.trust-logo {
    width: 84px;
    display: flex;
    align-items: center;
}

.trust-logo img {
    width: 84px;
    height: auto;
    display: block;
}

.listing-trust-band h2 {
    color: #14213d;
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 0 0 0.25rem;
}

.listing-trust-band p {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0;
}

.listing-trust-band a {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #c8defd;
    border-radius: 999px;
    color: #1d5fbf;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 0.95rem;
    white-space: nowrap;
}

.listing-headline {
    min-width: 0;
}

.listing-kicker {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.listing-price {
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 0.95;
    font-weight: 800;
    color: #14213d;
    margin-bottom: 0.75rem;
}

.listing-badge {
    display: inline-block;
    background: #eaf3ff;
    color: #1d5fbf;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.listing-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #334155;
    margin-top: 0.85rem;
    font-size: 1.05rem;
    line-height: 1.45;
}

.listing-address svg {
    color: #2f7be6;
    flex: 0 0 auto;
}

.listing-hero-actions {
    display: grid;
    gap: 0.75rem;
    min-width: 220px;
}

.listing-lead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

.lead-action-primary,
.lead-action-secondary {
    min-height: 46px;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.lead-action-primary {
    background: #2f7be6;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(47, 123, 230, 0.24);
}

.lead-action-primary:hover {
    background: #1d63c8;
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(47, 123, 230, 0.3);
}

.lead-action-secondary {
    background: #ffffff;
    color: #1d5fbf;
    border: 1px solid #b7d7ff;
}

.lead-action-secondary:hover {
    background: #f0f9ff;
    transform: translateY(-1px);
}

.listing-facts {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.25rem;
}

.listing-fact {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.35rem 1rem 0.35rem 0;
}

.listing-fact + .listing-fact {
    border-left: 1px solid #e2e8f0;
    padding-left: 1rem;
}

.listing-fact svg {
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 999px;
    background: #edf6ff;
    color: #2f7be6;
    flex: 0 0 auto;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.listing-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid rgba(203, 213, 225, 0.75);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.listing-section h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.listing-section p {
    color: #4b5563;
    line-height: 1.6;
}

.listing-description p {
    color: #334155;
    font-size: 1.03rem;
    line-height: 1.75;
    max-width: 74ch;
}

.listing-highlights-section h2 {
    margin-bottom: 1.25rem;
}

.property-highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.property-highlight {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #e0ebf8;
    border-radius: 14px;
    color: #1f2937;
    display: flex;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.property-highlight span {
    background: #2f7be6;
    border-radius: 999px;
    box-shadow: 0 0 0 4px #eaf3ff;
    flex: 0 0 auto;
    height: 8px;
    width: 8px;
}

.listing-details {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(203, 213, 225, 0.75);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
}

.detail-item svg {
    color: #6b7280;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-groups {
    display: grid;
    gap: 1.35rem;
}

.feature-group {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.15rem;
}

.feature-group:first-child {
    border-top: 0;
    padding-top: 0;
}

.feature-group h3 {
    color: #14213d;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1f2937;
    font-size: 1rem;
}

.listing-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.contact-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 5px;
    border: 1px solid #d8e3f2;
    box-shadow: none;
    scroll-margin-top: 120px;
}

.contact-property-summary {
    background: #14213d;
    border-radius: 5px;
    color: #ffffff;
    display: grid;
    gap: 0.15rem;
    margin-bottom: 1rem;
    padding: 1rem;
    text-align: center;
}

.contact-property-summary span {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

.contact-property-summary small {
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
}

.contact-card h3 {
    font-size: 1.35rem;
    color: #142033;
    margin-bottom: 0.45rem;
    text-align: center;
}

.contact-card-copy {
    color: #5b677a;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 0 1.25rem;
    text-align: center;
}

.contact-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-logo img {
    height: 42px;
    width: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 700;
}

.contact-form label em {
    color: #94a3b8;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 0.95rem;
    border: 1px solid #d9e2ef;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1266e8;
    box-shadow: 0 0 0 3px rgba(18, 102, 232, 0.1);
    background: #ffffff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

@media screen and (min-width: 1025px) {
    .contact-card {
        padding: 1.15rem;
    }

    .contact-property-summary {
        border-radius: 5px;
        margin-bottom: 0.8rem;
        padding: 0.8rem;
    }

    .contact-property-summary span {
        font-size: 1.35rem;
    }

    .contact-logo {
        margin-bottom: 0.65rem;
    }

    .contact-logo img {
        height: 34px;
    }

    .contact-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .contact-card-copy {
        font-size: 0.84rem;
        line-height: 1.38;
        margin-bottom: 0.85rem;
    }

    .contact-form {
        gap: 0.7rem;
    }

    .contact-form label {
        gap: 0.25rem;
        font-size: 0.82rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.65rem 0.75rem;
        font-size: 0.92rem;
    }

    .contact-form textarea {
        min-height: 78px;
    }

    .btn-send,
    .btn-call {
        padding: 0.78rem;
        min-height: 46px;
    }

    .contact-trust {
        font-size: 0.73rem;
    }
}

@media screen and (min-width: 1025px) and (max-height: 900px) {
    .listing-sidebar {
        top: 88px;
    }

    .contact-card {
        padding: 1rem;
    }

    .contact-property-summary,
    .contact-logo {
        margin-bottom: 0.55rem;
    }

    .contact-card-copy {
        margin-bottom: 0.65rem;
    }

    .contact-form {
        gap: 0.55rem;
    }

    .contact-form textarea {
        min-height: 66px;
    }

    .btn-send,
    .btn-call {
        padding: 0.68rem;
        min-height: 42px;
    }
}

.lead-company-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.contact-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 5px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.contact-alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.contact-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.btn-send,
.btn-call {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.btn-send {
    background: #1266e8;
    color: #ffffff;
}

.btn-send:hover {
    background: #0f5fd8;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(18, 102, 232, 0.18);
}

.btn-call {
    background: #ffffff;
    color: #1266e8;
    border: 1px solid #cfdbea;
}

.btn-call:hover {
    background: #f0f9ff;
    transform: translateY(-1px);
}

.contact-trust {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
    margin: -0.2rem 0 0;
    text-align: center;
}

.mobile-lead-bar {
    display: none;
}

@media screen and (max-width: 1024px) {
    .idx-landing-content {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .listing-container {
        grid-template-columns: 1fr;
        max-width: 920px;
    }

    .listing-sidebar {
        position: static;
    }

    .contact-card {
        max-width: 680px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .listing-carousel-showcase .carousel-shell {
        grid-template-columns: 1fr;
    }

    .carousel-previews {
        display: none;
    }
}

@media screen and (max-width: 640px) {
    .idx-hero {
        margin: 0;
        border-radius: 0;
        padding: 3rem 1rem;
    }

    .idx-hero h1 {
        font-size: 2rem;
    }

    .idx-hero-actions,
    .idx-primary-cta,
    .idx-secondary-cta {
        width: 100%;
    }

    .idx-form {
        grid-template-columns: 1fr;
    }

    .idx-landing-content {
        margin-top: 1rem;
        padding: 0 1rem;
    }

    .idx-landing-copy,
    .idx-lead-card {
        padding: 1rem;
    }

    .idx-proof-strip {
        grid-template-columns: 1fr;
    }

    .idx-results-heading {
        margin-bottom: 1rem;
    }

    .idx-results {
        margin: 1rem 1rem 2rem;
    }

    .idx-detail-hero {
        margin: 1rem;
    }

    .idx-detail-body {
        margin: 1rem;
        grid-template-columns: 1fr;
    }

    .listing-container {
        padding: 1rem 1rem calc(6rem + env(safe-area-inset-bottom, 0px));
    }

    .listing-header {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.2rem;
    }

    .listing-price {
        font-size: clamp(2.25rem, 12vw, 3rem);
    }

    .listing-address {
        align-items: flex-start;
        font-size: 0.98rem;
    }

    .listing-hero-actions {
        min-width: 0;
    }

    .listing-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        padding-top: 1rem;
    }

    .carousel-main {
        height: 300px;
    }

    .carousel-view-all {
        display: none;
    }

    .photo-lightbox {
        padding: 0;
    }

    .photo-lightbox-panel {
        border-radius: 0;
        min-height: 100%;
        width: 100%;
    }

    .photo-lightbox-stage {
        align-content: center;
    }

    .photo-lightbox-stage img {
        height: auto;
        max-height: calc(100vh - 178px);
    }

    .photo-lightbox-nav {
        height: 46px;
        width: 46px;
    }

    .photo-lightbox-nav.prev {
        left: 0.65rem;
    }

    .photo-lightbox-nav.next {
        right: 0.65rem;
    }

    .photo-lightbox-thumbs button {
        height: 62px;
        width: 84px;
    }

    .listing-trust-band {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }

    .trust-logo {
        justify-content: center;
        margin: 0 auto;
    }

    .listing-fact,
    .listing-fact + .listing-fact {
        border-left: 0;
        padding: 0.7rem;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
    }

    .listing-fact svg {
        width: 34px;
        height: 34px;
        padding: 8px;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.76rem;
    }

    .listing-section,
    .listing-details {
        padding: 1.25rem;
    }

    .listing-description p {
        font-size: 0.98rem;
        line-height: 1.68;
    }

    .property-highlights-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .listing-sidebar {
        top: 20px;
    }

    .mobile-lead-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        display: grid;
        grid-template-columns: 1fr 0.8fr;
        gap: 0.75rem;
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid #dbeafe;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
        backdrop-filter: blur(12px);
    }

    .mobile-lead-primary,
    .mobile-lead-secondary {
        min-height: 48px;
        border-radius: 14px;
        font-weight: 800;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-lead-primary {
        background: #3b82f6;
        color: #ffffff;
        box-shadow: 0 10px 20px rgba(59, 130, 246, 0.22);
    }

    .mobile-lead-secondary {
        background: #ffffff;
        color: #3b82f6;
        border: 2px solid #3b82f6;
    }
}

/* Final cascade lock for the redesigned IDX search/results page. */
body.page-idx {
    background: #ffffff;
}

.idx-hero {
    background: #ffffff;
    color: #142033;
    padding: 2.25rem 1.25rem 1.25rem;
    overflow: visible;
}

.idx-hero::before,
.idx-hero::after {
    display: none;
}

.idx-hero-inner,
.idx-results,
.idx-landing-content,
.idx-faq {
    max-width: 1376px;
}

.idx-hero-text {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
    margin-bottom: 1.25rem;
}

.idx-hero h1 {
    color: #142033;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    margin: 0;
    max-width: 720px;
}

.idx-hero p {
    color: #5b677a;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 470px;
    margin: 0;
}

.idx-search-card {
    display: block;
    margin-top: 0;
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(20, 32, 51, 0.08);
    padding: 1rem;
}

.idx-toggle {
    align-self: end;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    background: #edf4ff;
    border: 1px solid #d7e6fb;
    border-radius: 12px;
}

.toggle-btn {
    min-height: 44px;
    color: #5b677a;
    font-size: 0.92rem;
}

.toggle-btn.active {
    color: #1266e8;
    box-shadow: 0 8px 20px rgba(18, 102, 232, 0.12);
}

.idx-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: end;
}

.idx-location-field {
    flex: 1 1 250px;
    min-width: 230px;
}

.idx-toggle {
    flex: 0 0 170px;
}

.idx-filter-field {
    flex: 0 0 110px;
}

.idx-filter-field:nth-of-type(6) {
    flex-basis: 130px;
}

.idx-filter-toggle {
    flex: 0 0 110px;
}

.idx-form-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.62rem;
}

.idx-filter-label-mobile {
    display: none;
}

.idx-submit {
    flex: 0 0 100px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field span,
.idx-sort-form span {
    color: #5b677a;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.field input,
.field select,
.idx-sort-form select {
    min-height: 46px;
    background: #ffffff;
    border-color: #dce4ef;
    color: #142033;
    font-size: 0.94rem;
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
    overflow: visible;
    padding-right: 0.85rem;
    text-overflow: clip;
}

.idx-filter-field.icon-bed::before,
.idx-filter-field.icon-bath::before {
    display: none;
}

.idx-filter-field.icon-bed select,
.idx-filter-field.icon-bath select {
    padding-left: 1rem;
}

.idx-sort-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
    padding-right: 0.85rem;
}

.idx-mobile-action-bar {
    display: none;
}

.idx-mobile-filters {
    display: none;
}

.idx-submit {
    min-height: 46px;
    align-self: end;
    padding: 0 1.25rem;
    border-radius: 10px;
    background: #1266e8;
    box-shadow: 0 12px 26px rgba(18, 102, 232, 0.22);
    font-weight: 800;
}

.idx-filter-toggle {
    align-items: center;
    align-self: end;
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 8px;
    color: #142033;
    display: inline-flex;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    padding: 0 0.85rem;
}

.idx-active-row {
    margin-top: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #edf2f7;
}

.idx-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.idx-chip-list > a,
.idx-chip-list > span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #eaf3ff;
    border: 1px solid #cfe2fb;
    color: #174ea6;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.idx-chip-remove {
    color: #174ea6;
    font-size: 0.88em;
    font-weight: 700;
    line-height: 1;
    opacity: 0.8;
}

.idx-clear-link {
    color: #5b677a;
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.idx-results {
    margin: 1.5rem auto 0;
    padding: 0 1.25rem;
}

.idx-results-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.25rem;
    align-items: start;
}

.idx-results-main {
    min-width: 0;
}

.idx-results-heading {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
}

.idx-results-heading span {
    color: #1266e8;
    letter-spacing: 0;
}

.idx-results-heading h2 {
    color: #142033;
    font-size: 1.65rem;
}

.idx-results-heading p {
    color: #5b677a;
    line-height: 1.55;
}

.idx-sort-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 180px;
}

.idx-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.idx-card {
    border: 1px solid #dce4ef;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(20, 32, 51, 0.07);
}

.idx-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(20, 32, 51, 0.1);
}

.idx-photo {
    height: 240px;
}

.idx-photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(20, 32, 51, 0), rgba(20, 32, 51, 0.28));
    pointer-events: none;
}

.idx-badge {
    background: rgba(255, 255, 255, 0.94);
    color: #142033;
    border: 1px solid rgba(220, 228, 239, 0.9);
    box-shadow: 0 8px 20px rgba(20, 32, 51, 0.12);
}

.idx-card .idx-card-body {
    padding: 1rem;
}

.idx-card .price {
    color: #142033;
    font-size: 1.45rem;
    font-weight: 850;
    line-height: 1.1;
    margin: 0 0 0.5rem;
}

.idx-card h3 {
    color: #142033;
    font-size: 1rem;
    line-height: 1.35;
    margin: 0;
}

.idx-card-city {
    color: #5b677a;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.idx-card-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.idx-card-facts span {
    border: 1px solid #dce4ef;
    border-radius: 999px;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 0.28rem 0.55rem;
}

.idx-card-footer {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid #edf2f7;
    color: #5b677a;
    font-size: 0.88rem;
}

.idx-card-cta {
    border-color: #1266e8;
    color: #1266e8;
    border-radius: 8px;
}

.idx-card:hover .idx-card-cta {
    background: #1266e8;
    box-shadow: 0 10px 24px rgba(18, 102, 232, 0.22);
}

.idx-assist-panel {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(20, 32, 51, 0.09);
    padding: 1rem;
}

.idx-assist-logo {
    margin-bottom: 0.75rem;
}

.idx-assist-logo img {
    height: 42px;
    width: auto;
}

.idx-assist-panel h2 {
    color: #142033;
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 0 0 0.45rem;
}

.idx-assist-panel p {
    color: #5b677a;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.9rem;
}

.idx-assist-summary {
    background: #f7f9fc;
    border: 1px solid #dce4ef;
    border-radius: 10px;
    color: #142033;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 1rem;
    padding: 0.75rem;
}

.idx-assist-panel .contact-form {
    gap: 0.75rem;
}

.idx-assist-panel .contact-form input,
.idx-assist-panel .contact-form textarea {
    padding: 0.72rem 0.8rem;
    font-size: 0.92rem;
}

.idx-assist-panel .contact-form textarea {
    min-height: 82px;
}

.idx-agent-contact {
    margin-top: 1rem;
}

.idx-agent-divider {
    align-items: center;
    color: #5b677a;
    display: flex;
    font-size: 0.82rem;
    gap: 0.75rem;
    margin: 0.9rem 0 1rem;
}

.idx-agent-divider::before,
.idx-agent-divider::after {
    background: #dce4ef;
    content: "";
    flex: 1;
    height: 1px;
}

.idx-agent-contact h3 {
    color: #142033;
    font-size: 1.18rem;
    margin: 0 0 0.35rem;
}

.idx-agent-contact p {
    margin-bottom: 0.75rem;
}

.idx-agent-contact a {
    align-items: center;
    border: 1px solid #bfd6f7;
    border-radius: 8px;
    color: #1266e8;
    display: flex;
    font-weight: 800;
    justify-content: center;
    margin-top: 0.55rem;
    min-height: 42px;
    text-decoration: none;
}

.idx-landing-content {
    grid-template-columns: 1fr;
    margin-top: 2rem;
}

.idx-landing-copy,
.idx-lead-card,
.idx-faq-item {
    border-color: #dce4ef;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(20, 32, 51, 0.05);
}

.idx-faq {
    margin-bottom: 2rem;
}

@media screen and (max-width: 1180px) {
    .idx-form {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 980px) {
    .idx-hero-text,
    .idx-results-heading {
        display: block;
    }

    .idx-hero p {
        margin-top: 0.75rem;
        max-width: 680px;
    }

    .idx-search-card,
    .idx-results-shell {
        grid-template-columns: 1fr;
    }

    .idx-active-row {
        grid-column: 1 / -1;
    }

    .idx-assist-panel {
        position: static;
        max-width: none;
    }
}

@media screen and (max-width: 700px) {
    .idx-hero {
        padding: 1.5rem 1rem 1rem;
    }

    .idx-hero h1 {
        font-size: 2rem;
    }

    .idx-hero-actions,
    .idx-primary-cta,
    .idx-secondary-cta {
        width: auto;
    }

    .idx-search-card {
        padding: 0.85rem;
        border-radius: 12px;
    }

    .idx-form {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.7rem;
    }

    .idx-location-field {
        grid-column: 1 / -1;
    }

    .idx-toggle {
        grid-column: 1 / -1;
    }

    .idx-filter-field {
        display: none;
        grid-column: 1 / -1;
    }

    .idx-search-card.filters-open .idx-filter-field {
        display: flex;
    }

    .idx-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 0 1rem;
        border: 1px solid #dce4ef;
        border-radius: 10px;
        background: #ffffff;
        color: #142033;
        font-weight: 800;
    }

    .idx-form-actions {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.65rem;
    }

    .idx-form-actions .idx-filter-toggle {
        grid-column: 1;
        width: 100%;
    }

    .idx-filter-label-desktop {
        display: none;
    }

    .idx-filter-label-mobile {
        display: inline;
    }

    .idx-submit {
        grid-column: 2;
        width: auto;
    }

    .idx-active-row {
        display: block;
    }

    .idx-clear-link {
        display: inline-flex;
        margin-top: 0.7rem;
    }

    .idx-results {
        margin-top: 1rem;
        padding: 0 1rem 5.75rem;
    }

    .idx-sort-form {
        margin-top: 0.85rem;
    }

    .idx-sort-form label {
        min-width: 0;
    }

    .idx-grid,
    .idx-proof-strip,
    .idx-faq-grid {
        grid-template-columns: 1fr;
    }

    .idx-photo {
        height: 250px;
    }

    .idx-assist-panel {
        scroll-margin-top: 110px;
    }

    .idx-landing-content,
    .idx-faq {
        padding: 0 1rem;
    }

    .idx-mobile-action-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid #dce4ef;
        box-shadow: 0 -10px 28px rgba(20, 32, 51, 0.12);
        backdrop-filter: blur(12px);
    }

    .idx-mobile-action-bar button,
    .idx-mobile-action-bar a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        border-radius: 12px;
        font-family: 'Poppins', sans-serif;
        font-size: 0.95rem;
        font-weight: 800;
        text-decoration: none;
    }

    .idx-mobile-action-bar button {
        border: 0;
        background: #1266e8;
        color: #ffffff;
    }

    .idx-mobile-action-bar a {
        border: 1px solid #bfd6f7;
        background: #ffffff;
        color: #1266e8;
    }
}

/* Pixel-match pass for IDX mock, scoped to the IDX page. */
body.page-idx header {
    background: #ffffff;
    border-bottom: 1px solid #d9e3f0;
    box-shadow: none;
}

body.page-idx nav {
    min-height: 82px;
    padding: 0 28px;
}

body.page-idx .logo-image {
    height: 48px;
}

body.page-idx .nav-links {
    gap: 3rem;
}

body.page-idx .nav-links a {
    color: #0f172a;
    font-size: 0.94rem;
    font-weight: 600;
}

body.page-idx .nav-phone {
    height: 36px;
    width: 36px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body.page-idx .nav-menu-toggle {
    display: none;
}

body.page-idx .idx-hero {
    background: #ffffff;
    padding: 1.05rem 1.75rem 1.1rem;
}

body.page-idx .idx-hero-inner,
body.page-idx .idx-results,
body.page-idx .idx-landing-content,
body.page-idx .idx-faq {
    max-width: 1376px;
}

body.page-idx .idx-hero-text {
    align-items: flex-start;
    margin-bottom: 1rem;
}

body.page-idx .idx-hero h1 {
    font-size: clamp(2.35rem, 2.8vw, 3rem);
    letter-spacing: 0;
    max-width: 780px;
    white-space: nowrap;
}

body.page-idx .idx-hero p {
    display: none;
    max-width: 455px;
    font-size: 1.02rem;
    line-height: 1.55;
}

body.page-idx .idx-search-card {
    background: transparent;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    padding: 0;
}

body.page-idx .idx-toggle {
    align-self: center;
    background: #ffffff;
    border: 1px solid #cfdbea;
    box-shadow: none;
    gap: 0;
    height: 44px;
    min-height: 44px;
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
}

body.page-idx .toggle-btn {
    background: #ffffff;
    box-shadow: none;
    color: #0f172a;
    height: 42px;
    line-height: 1;
    min-height: 42px;
    border-radius: 0;
    font-size: 0.88rem;
    padding: 0 0.45rem;
    white-space: nowrap;
}

body.page-idx .toggle-btn + .toggle-btn {
    border-left: 1px solid #cfdbea;
}

body.page-idx .toggle-btn.active {
    background: #eef6ff;
    color: #1266e8;
    box-shadow: none;
}

body.page-idx .idx-form {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 8px;
    gap: 0.62rem;
    padding: 0.7rem 0.8rem;
}

body.page-idx .idx-search-card .field > span {
    display: none;
}

body.page-idx .idx-form .idx-advanced-filter {
    display: none;
}

body.page-idx .idx-search-card.filters-open .idx-advanced-filter {
    display: flex;
}

body.page-idx .idx-search-card.filters-open .idx-form {
    flex-wrap: wrap;
}

@media screen and (min-width: 701px) {
    body.page-idx .idx-search-card.filters-open .idx-form-actions {
        margin-left: auto;
    }
}

body.page-idx .idx-form > .idx-filter-field:nth-of-type(3) {
    flex-basis: 190px;
}

body.page-idx .idx-form .icon-bed,
body.page-idx .idx-form .icon-bath {
    flex-basis: 128px;
}

body.page-idx .field input,
body.page-idx .field select,
body.page-idx .idx-sort-form select {
    min-height: 44px;
    border-radius: 5px;
}

body.page-idx .idx-form .icon-left::before {
    display: block;
    height: 18px;
    left: 0.72rem;
    opacity: 1;
    top: 50%;
    width: 18px;
}

body.page-idx .idx-form .icon-map::before {
    background-image: url("/images/icons/search-magnifier.png");
}

body.page-idx .idx-form .icon-dollar::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2395A0AE' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M17 7.5A4 4 0 0 0 13.5 6h-3A3.5 3.5 0 0 0 7 9.5c0 2 1.5 3.1 4.5 3.5l1 .1c3 .4 4.5 1.5 4.5 3.4A3.5 3.5 0 0 1 13.5 20h-3A4.8 4.8 0 0 1 6 18'/%3E%3C/svg%3E");
}

body.page-idx .idx-form .icon-bed::before,
body.page-idx .idx-form .icon-bath::before {
    display: none;
}

body.page-idx .idx-form .icon-left input,
body.page-idx .idx-form .icon-left select {
    padding-left: 2.25rem;
}

body.page-idx .idx-form .icon-bed select,
body.page-idx .idx-form .icon-bath select {
    padding-left: 0.85rem;
}

body.page-idx .idx-filter-field input[type="number"] {
    font-variant-numeric: tabular-nums;
}

body.page-idx .field select,
body.page-idx .idx-sort-form select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 0.72rem center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    padding-right: 2rem;
}

body.page-idx .idx-filter-toggle,
body.page-idx .idx-submit {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    border-radius: 5px;
    white-space: nowrap;
}

body.page-idx .idx-filter-toggle {
    flex-basis: 150px;
}

body.page-idx .idx-filter-toggle[aria-expanded="true"] {
    background: #eef6ff;
    border-color: #b7d4ff;
    color: #1266e8;
}

body.page-idx .idx-filter-toggle::after {
    background: currentColor;
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    height: 16px;
    margin-left: 0.55rem;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M4 21v-7'/%3E%3Cpath d='M4 10V3'/%3E%3Cpath d='M12 21v-9'/%3E%3Cpath d='M12 8V3'/%3E%3Cpath d='M20 21v-5'/%3E%3Cpath d='M20 12V3'/%3E%3Cpath d='M2 14h4'/%3E%3Cpath d='M10 8h4'/%3E%3Cpath d='M18 16h4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M4 21v-7'/%3E%3Cpath d='M4 10V3'/%3E%3Cpath d='M12 21v-9'/%3E%3Cpath d='M12 8V3'/%3E%3Cpath d='M20 21v-5'/%3E%3Cpath d='M20 12V3'/%3E%3Cpath d='M2 14h4'/%3E%3Cpath d='M10 8h4'/%3E%3Cpath d='M18 16h4'/%3E%3C/svg%3E") center / contain no-repeat;
    width: 16px;
}

body.page-idx .idx-submit::before {
    background: currentColor;
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    height: 16px;
    margin-right: 0.5rem;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.8-3.8'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.8-3.8'/%3E%3C/svg%3E") center / contain no-repeat;
    width: 16px;
}

body.page-idx .idx-chip-list > a,
body.page-idx .idx-chip-list > span {
    border-radius: 4px;
}

body.page-idx .idx-active-row {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    justify-content: flex-start;
    gap: 0.9rem;
}

body.page-idx .idx-chip-list > a,
body.page-idx .idx-chip-list > span {
    min-height: 30px;
    padding: 0.28rem 0.62rem;
}

body.page-idx .idx-clear-link {
    color: #0b5bd3;
    font-size: 0.78rem;
    font-weight: 700;
}

body.page-idx .idx-results {
    margin-top: 0.45rem;
    padding: 0 1.75rem;
}

body.page-idx .idx-results-shell {
    grid-template-columns: minmax(0, 1fr) 300px;
}

body.page-idx .idx-results-heading {
    align-items: center;
    gap: 0;
    margin-bottom: 0.45rem;
}

body.page-idx .idx-results-heading > div:first-child {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
    padding-right: 1rem;
}

body.page-idx .idx-results-heading span {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
}

body.page-idx .idx-results-heading h2,
body.page-idx .idx-results-heading p {
    display: none;
}

body.page-idx .idx-sort-form {
    border-left: 1px solid #9aa7b8;
    display: flex;
    align-items: center;
    min-height: 24px;
    margin-right: auto;
    order: 2;
    padding-left: 1rem;
}

body.page-idx .idx-sort-form label {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 0.32rem;
    min-width: 0;
}

body.page-idx .idx-sort-form span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1;
    text-transform: none;
}

body.page-idx .idx-sort-form select {
    background: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 0 center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    border: 0;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1;
    min-height: 24px;
    padding: 0 1.2rem 0 0;
    width: auto;
}

body.page-idx .idx-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.page-idx .idx-card {
    border-radius: 5px;
    box-shadow: none;
    position: relative;
}

body.page-idx .idx-card-link {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
}

body.page-idx .idx-card-content {
    height: 100%;
}

body.page-idx .idx-photo {
    height: 166px;
}

body.page-idx .idx-photo-fallback {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(226, 232, 240, 0.95), rgba(248, 250, 252, 0.95)),
        repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.18) 0 1px, transparent 1px 10px);
    color: #475569;
    display: flex;
    font-size: 0.82rem;
    font-weight: 800;
    height: 100%;
    justify-content: center;
    letter-spacing: 0;
    text-align: center;
    width: 100%;
}

body.page-idx .idx-photo-fallback span {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #dce4ef;
    border-radius: 4px;
    padding: 0.42rem 0.62rem;
}

body.page-idx .idx-card .idx-card-body {
    padding: 0.88rem 0.92rem 0.95rem;
}

body.page-idx .idx-badge {
    top: auto;
    bottom: 10px;
    left: 10px;
    background: rgba(12, 24, 43, 0.88);
    color: #ffffff;
    border: 0;
    border-radius: 3px;
    box-shadow: none;
    font-size: 0.72rem;
}

body.page-idx .idx-favorite {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 8px;
    z-index: 1;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.45);
    width: 34px;
}

body.page-idx .idx-favorite:hover,
body.page-idx .idx-favorite:focus-visible {
    transform: scale(1.08);
}

body.page-idx .idx-favorite:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

body.page-idx .idx-favorite.is-active {
    color: #ef233c;
    text-shadow:
        0 1px 0 #ffffff,
        0 2px 8px rgba(15, 23, 42, 0.45);
}

body.page-idx .idx-saved-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(15, 30, 55, 0.14);
    border-radius: 999px;
    color: #12395f;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    white-space: nowrap;
}

body.page-idx .idx-saved-toggle:disabled {
    cursor: not-allowed;
    opacity: .55;
}

body.page-idx .idx-saved-toggle[aria-pressed="true"] {
    background: #12395f;
    border-color: #12395f;
    color: #fff;
}

body.page-idx .idx-saved-toggle span {
    align-items: center;
    background: rgba(15, 110, 199, .1);
    border-radius: 999px;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    min-width: 24px;
    padding: 0 8px;
}

body.page-idx .idx-saved-toggle[aria-pressed="true"] span {
    background: rgba(255, 255, 255, .18);
}

body.page-idx .idx-card .price {
    font-size: 1.3rem;
    margin-bottom: 0.28rem;
}

body.page-idx .idx-card h3 {
    display: -webkit-box;
    font-size: 0.88rem;
    line-height: 1.28;
    min-height: 2.25em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.page-idx .idx-card-city {
    font-size: 0.78rem;
    margin-top: 0.08rem;
}

body.page-idx .idx-card-facts {
    align-items: center;
    gap: 0.72rem;
    margin-top: 0.7rem;
}

body.page-idx .idx-card-facts span {
    align-items: center;
    border: 0;
    border-radius: 0;
    color: #334155;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.38rem;
    line-height: 1;
    padding: 0;
    white-space: nowrap;
}

body.page-idx .idx-card-facts svg {
    color: #0f172a;
    flex: 0 0 auto;
    height: 18px;
    width: 18px;
}

body.page-idx .idx-card-facts svg path,
body.page-idx .idx-card-facts svg rect {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

body.page-idx .idx-card-facts .idx-card-icon-ruler path {
    stroke-width: 1.6;
}

body.page-idx .idx-card-footer {
    margin-top: 0.72rem;
    padding-top: 0.72rem;
}

body.page-idx .idx-card-cta {
    border-radius: 4px;
    display: flex;
    justify-content: center;
    width: 100%;
}

body.page-idx .idx-assist-panel {
    border-radius: 5px;
    box-shadow: none;
    padding: 1.35rem 1.2rem;
}

body.page-idx .idx-assist-panel h2 {
    color: #142033;
    font-size: 1.17rem;
    line-height: 1.26;
    margin-bottom: 0.65rem;
}

body.page-idx .idx-assist-panel p {
    color: #5b677a;
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

body.page-idx .idx-assist-summary {
    border-radius: 5px;
}

body.page-idx .idx-assist-panel .contact-form {
    gap: 0.65rem;
}

body.page-idx .idx-assist-panel .contact-form label {
    gap: 0.32rem;
    font-size: 0.72rem;
    line-height: 1;
}

body.page-idx .idx-assist-panel .contact-form input,
body.page-idx .idx-assist-panel .contact-form textarea {
    border-radius: 4px;
    font-size: 0.78rem;
    min-height: 34px;
    padding: 0.45rem 0.6rem;
}

body.page-idx .idx-assist-panel .contact-form textarea {
    min-height: 72px;
}

body.page-idx .idx-assist-panel .btn-send {
    border-radius: 4px;
    font-size: 0.78rem;
    min-height: 38px;
    padding: 0.55rem 0.75rem;
}

body.page-idx .idx-agent-divider {
    margin: 0.85rem 0 0.95rem;
}

body.page-idx .idx-agent-contact {
    margin-top: 0;
}

body.page-idx .idx-agent-contact h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

body.page-idx .idx-agent-contact p {
    font-size: 0.72rem;
    margin-bottom: 0.65rem;
}

body.page-idx .idx-agent-contact a {
    border-radius: 4px;
    font-size: 0.75rem;
    min-height: 34px;
    margin-top: 0.45rem;
}

body.page-idx .idx-agent-profile {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

body.page-idx .idx-agent-profile img {
    border-radius: 50%;
    display: block;
    height: 46px;
    object-fit: cover;
    width: 46px;
}

body.page-idx .idx-agent-profile strong,
body.page-idx .idx-agent-profile span {
    display: block;
}

body.page-idx .idx-agent-profile strong {
    color: #142033;
    font-size: 0.86rem;
}

body.page-idx .idx-agent-profile span {
    color: #5b677a;
    font-size: 0.72rem;
}

@media screen and (max-width: 980px) {
    body.page-idx .idx-hero h1 {
        white-space: normal;
    }

    body.page-idx .idx-results-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-idx .idx-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-idx .idx-assist-panel {
        display: block;
        margin-top: 1.25rem;
        max-width: none;
        position: static;
    }
}

@media screen and (max-width: 700px) {
    html,
    body.page-idx {
        max-width: 100%;
        overflow-x: hidden;
    }

    body.page-idx header {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    body.page-idx nav {
        flex-wrap: nowrap;
        gap: 0.5rem;
        min-height: 72px;
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
    }

    body.page-idx .logo-image {
        height: 38px;
        max-width: 154px;
    }

    body.page-idx .nav-spacer {
        display: block;
        flex: 1 1 auto;
    }

    body.page-idx .nav-links {
        display: none;
    }

    body.page-idx header.is-nav-open .nav-links {
        align-items: stretch;
        background: #ffffff;
        border-bottom: 1px solid #d9e3f0;
        border-top: 1px solid #edf2f7;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
        display: flex;
        flex-direction: column;
        gap: 0;
        left: 0;
        padding: 0.35rem 1rem 0.65rem;
        position: absolute;
        right: 0;
        top: 100%;
        width: 100%;
    }

    body.page-idx header.is-nav-open .nav-links li {
        border-bottom: 1px solid #edf2f7;
    }

    body.page-idx header.is-nav-open .nav-links li:last-child {
        border-bottom: 0;
    }

    body.page-idx header.is-nav-open .nav-links a {
        display: block;
        font-size: 0.98rem;
        padding: 0.85rem 0;
    }

    body.page-idx .nav-actions {
        display: flex;
        flex: 0 0 auto;
        gap: 0.45rem;
        margin-left: auto;
    }

    body.page-idx .nav-phone {
        border: 1px solid #d9e3f0;
        border-radius: 5px;
        box-shadow: none;
        height: 40px;
        width: 40px;
    }

    body.page-idx .nav-menu-toggle {
        align-items: center;
        background: transparent;
        border: 0;
        display: inline-flex;
        flex-direction: column;
        gap: 7px;
        height: 44px;
        justify-content: center;
        padding: 0;
        width: 44px;
    }

    body.page-idx .nav-menu-toggle span {
        background: #0f172a;
        display: block;
        height: 2.5px;
        transition: opacity 0.15s ease, transform 0.15s ease;
        width: 28px;
    }

    body.page-idx .nav-menu-toggle.is-open span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    body.page-idx .nav-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    body.page-idx .nav-menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    body.page-idx .idx-hero {
        padding: 0.85rem 1rem 0.95rem;
    }

    body.page-idx .idx-hero-text {
        display: none;
    }

    body.page-idx .idx-search-card {
        background: transparent;
        border: 0;
        border-radius: 8px;
        box-shadow: none;
        padding: 0;
    }

    body.page-idx .idx-form {
        background: transparent;
        border: 0;
        border-radius: 0;
        gap: 0.65rem;
        padding: 0;
    }

    body.page-idx .field span {
        font-size: 0;
        line-height: 0;
    }

    body.page-idx .idx-location-field input {
        min-height: 40px;
        padding-left: 2.4rem;
    }

    body.page-idx .idx-toggle {
        height: 38px;
        min-height: 38px;
    }

    body.page-idx .toggle-btn {
        height: 36px;
        min-height: 36px;
        font-size: 0.88rem;
    }

    body.page-idx .idx-filter-toggle {
        border-radius: 5px;
        min-height: 40px;
    }

    body.page-idx .idx-submit {
        min-height: 40px;
    }

    body.page-idx .idx-active-row {
        margin-top: 0.7rem;
    }

    body.page-idx .idx-clear-link {
        display: none;
    }

    body.page-idx .idx-chip-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
        overflow: visible;
    }

    body.page-idx .idx-chip-list > a,
    body.page-idx .idx-chip-list > span {
        font-size: 0.74rem;
        max-width: 100%;
        min-height: 28px;
        overflow: visible;
        padding: 0.35rem 0.58rem;
        white-space: nowrap;
    }

    body.page-idx .idx-search-card.filters-open .idx-advanced-filter {
        display: flex;
    }

    body.page-idx .idx-results {
        margin-top: 0;
        padding: 0 1rem 7.5rem;
    }

    body.page-idx .idx-results-shell {
        display: block;
    }

    body.page-idx .idx-results-heading {
        align-items: center;
        display: flex;
        gap: 0;
        margin-bottom: 0.9rem;
    }

    body.page-idx .idx-results-heading h2 {
        display: none;
    }

    body.page-idx .idx-results-heading p {
        display: none;
    }

    body.page-idx .idx-results-heading span {
        color: #0f172a;
        font-size: 0.86rem;
        font-weight: 800;
        letter-spacing: 0;
        margin: 0;
        text-transform: none;
        white-space: nowrap;
    }

    body.page-idx .idx-sort-form {
        border-left: 1px solid #9aa7b8;
        margin: 0 0 0 1rem;
        max-width: 100%;
        min-height: 24px;
        padding-left: 1rem;
    }

    body.page-idx .idx-sort-form label {
        min-width: 0;
        width: auto;
    }

    body.page-idx .idx-sort-form span {
        color: #64748b;
        display: inline;
        font-size: 0.82rem;
        font-weight: 500;
        line-height: 1;
        text-transform: none;
    }

    body.page-idx .idx-sort-form select {
        background: transparent;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        background-position: right 0 center;
        background-repeat: no-repeat;
        background-size: 14px 14px;
        border: 0;
        font-size: 0.82rem;
        font-weight: 500;
        min-height: 24px;
        padding: 0 1.2rem 0 0;
        width: auto;
    }

    body.page-idx .idx-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        width: 100%;
    }

    body.page-idx .idx-card {
        min-width: 0;
        width: 100%;
    }

    body.page-idx .idx-card article,
    body.page-idx .idx-card-content {
        display: block;
        min-width: 0;
    }

    body.page-idx .idx-photo {
        height: 164px;
        width: 100%;
    }

    body.page-idx .idx-card .idx-card-body {
        padding: 0.88rem 0.92rem 0.95rem;
        min-width: 0;
        width: 100%;
    }

    body.page-idx .idx-card .price {
        font-size: 1.32rem;
    }

    body.page-idx .idx-card h3 {
        font-size: 0.86rem;
        line-height: 1.35;
    }

    body.page-idx .idx-card-facts {
        gap: 0.7rem;
        margin-top: 0.7rem;
    }

    body.page-idx .idx-card-facts span {
        font-size: 0.76rem;
        white-space: nowrap;
    }

    body.page-idx .idx-card-facts svg {
        height: 17px;
        width: 17px;
    }

    body.page-idx .idx-card-cta {
        min-height: 34px;
    }

    body.page-idx .idx-mobile-action-bar {
        box-sizing: border-box;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
    }

    body.page-idx .idx-assist-panel {
        background: #ffffff;
        border: 1px solid #d8e3f2;
        border-radius: 5px;
        display: block;
        margin: 1.25rem 0 0;
        padding: 1.7rem 1.35rem;
        scroll-margin-top: 92px;
        width: 100%;
    }

    body.page-idx .idx-assist-panel h2 {
        font-size: 1.55rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    body.page-idx .idx-assist-panel p {
        font-size: 1rem;
        line-height: 1.45;
        margin-bottom: 1.35rem;
    }

    body.page-idx .idx-assist-panel .contact-form {
        gap: 1rem;
    }

    body.page-idx .idx-assist-panel .contact-form label {
        gap: 0.45rem;
        font-size: 0.95rem;
        line-height: 1.2;
    }

    body.page-idx .idx-assist-panel .contact-form input,
    body.page-idx .idx-assist-panel .contact-form textarea {
        border-radius: 5px;
        font-size: 1rem;
        min-height: 50px;
        padding: 0.75rem 0.9rem;
    }

    body.page-idx .idx-assist-panel .btn-send {
        border-radius: 5px;
        font-size: 1rem;
        min-height: 54px;
        margin-top: 0.15rem;
    }

    body.page-idx .idx-agent-divider {
        margin: 1.45rem 0 1.35rem;
    }

    body.page-idx .idx-agent-contact h3 {
        font-size: 1.35rem;
        margin-bottom: 0.7rem;
    }

    body.page-idx .idx-agent-contact p {
        font-size: 0.95rem;
        line-height: 1.45;
        margin-bottom: 1.1rem;
    }

    body.page-idx .idx-agent-contact a {
        border-radius: 5px;
        font-size: 1rem;
        min-height: 50px;
        margin-top: 0.75rem;
    }

    body.page-idx .idx-agent-profile {
        gap: 0.95rem;
        margin-top: 1.25rem;
    }

    body.page-idx .idx-agent-profile img {
        height: 58px;
        width: 58px;
    }

    body.page-idx .idx-agent-profile strong {
        font-size: 1.05rem;
    }

    body.page-idx .idx-agent-profile span {
        font-size: 0.9rem;
    }
}
