*{box-sizing:border-box}
:root{--W:1200px;--blue:#00286f;--blue2:#0040c7;--green:#0aa844;--border:#d5e0ef;--bg:#f3f7fd;--text:#001b55}
html{scroll-behavior:smooth;background:var(--bg)}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text);min-width:1200px}.hidden{display:none!important}
.hero{position:relative;width:var(--W);height:520px;margin:0 auto;overflow:hidden;background:#12366e}.hero-image{width:100%;height:100%;object-fit:cover;display:block}.hero-shade{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,25,72,.45),rgba(0,25,72,.05)),linear-gradient(to right,rgba(0,30,80,.35),rgba(0,0,0,0))}.hero-content{position:absolute;z-index:3;top:34px;left:0;right:0;text-align:center;color:#fff}.hero-content h1{margin:0;font-size:56px;line-height:1.05;font-weight:800;letter-spacing:-1px}.hero-content p{margin:12px 0 0;font-size:22px}.address-pill{position:absolute;left:32px;bottom:28px;z-index:4;background:rgba(0,0,0,.78);color:#fff;padding:12px 18px;border-radius:8px;font-size:20px;font-weight:700}.page{width:var(--W);margin:0 auto 40px}.card{background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 3px 14px rgba(11,29,67,.06)}h2,h3{color:var(--blue)}.snapshot-card h2,.listing-details-card h2,.list-section h2,.open-house-card h2,.lead-form-section h2{margin:0 0 18px;text-transform:uppercase;font-size:22px;letter-spacing:.2px}.snapshot-card{padding:24px 28px;margin:0 0 22px;border-top-left-radius:0;border-top-right-radius:0}.snapshot-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:18px}.snapshot-item{border:1px solid #dbe5f2;border-radius:8px;min-height:128px;padding:20px 8px;text-align:center;background:#fff}.snapshot-icon{display:block;height:44px;font-size:29px;color:#0066ff}.snapshot-icon.money{width:44px;height:44px;line-height:39px;margin:0 auto;border:3px solid #0aa33f;border-radius:50%;color:#0aa33f;font-size:27px}.snapshot-item strong{display:block;margin-top:12px;font-size:24px;line-height:1}.snapshot-item small{display:block;margin-top:8px;font-size:13px}.two-column{display:grid;grid-template-columns:780px 392px;gap:22px;margin-bottom:22px}.listing-details-card{padding:24px}.details-layout{display:grid;grid-template-columns:350px 360px;gap:26px;align-items:start}.description-text{font-size:15px;line-height:1.65;margin:0 0 22px}.features-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;margin:0 0 28px}.feature-item{font-size:15px;line-height:1.3}.feature-item:before{content:"✓";margin-right:9px;color:#0b9a3d;font-weight:800}.blue-button{background:#003eb7;color:#fff;border:0;border-radius:7px;padding:14px 20px;font-size:14px;font-weight:800;cursor:pointer}.gallery-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.gallery-grid img{width:100%;height:132px;object-fit:cover;border-radius:8px;background:#d9e5f3}.gallery-grid img:first-child{grid-column:1/3;height:265px}.gallery-grid img:nth-child(n+4){display:none}.neighbor-card{position:relative;padding:28px;min-height:420px;overflow:hidden;background:linear-gradient(rgba(245,250,255,.88),rgba(233,243,253,.92)),url("../img/hero.svg") center/cover no-repeat}.neighbor-header{display:flex;align-items:center;gap:10px;margin-bottom:18px}.neighbor-icon{width:28px;height:28px;color:#0b9a3d;line-height:1;display:flex;align-items:center;justify-content:center;flex:0 0 28px}.neighbor-icon svg{width:28px;height:28px;display:block}.eyebrow{text-transform:uppercase;color:var(--blue);font-size:18px;font-weight:900;margin:0}.neighbor-card h2{font-size:30px;line-height:1.1;margin:0 0 22px}.neighbor-card p{font-size:16px;line-height:1.25}.neighbor-card ul{font-size:15px;line-height:2;padding-left:22px;margin:22px 0}.neighbor-card li::marker{color:#0b9a3d}.outline-button{background:#fff;color:#003080;border:1px solid #003080;border-radius:7px;padding:13px 18px;font-weight:800;cursor:pointer}.cards-row{display:grid;grid-template-columns:589px 589px;gap:22px;margin-bottom:22px;align-items:start}.list-section{padding:22px 22px 24px;min-height:280px}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-header h2{margin:0}.link-button{border:0;background:transparent;color:#003eb7;font-weight:800;cursor:pointer}.home-list{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;align-items:start}#priceDrops{grid-template-columns:repeat(3,1fr)}.home-card{display:flex;flex-direction:column}.home-card img{display:block;width:100%;height:92px;object-fit:cover;border-radius:6px;background:#dae6f4}.home-card strong{display:block;margin-top:10px;font-size:17px;line-height:1.1;min-height:20px}.home-card p{margin:4px 0;font-size:13px;line-height:1.15}.old-price{font-size:12px;color:#7b8494;text-decoration:line-through;margin-left:5px}.price-drop-label{display:none}.bottom-row{display:grid;grid-template-columns:360px 818px;gap:22px;margin-bottom:22px}.open-house-card{padding:30px 32px 28px;min-height:300px}.open-house-card h2{font-size:24px;margin-top:0}.open-house-card .muted{font-size:16px;margin:18px 0}.open-house-card h3{font-size:30px;line-height:1;margin:0 0 18px}.time-text{font-size:22px;margin:0 0 24px}.open-house-card hr{border:0;border-top:1px solid rgba(0,0,0,.35);margin:20px 0}.location-line{font-size:16px;line-height:1.45}.open-house-card a{display:inline-block;margin-top:26px;font-size:18px;font-weight:800;text-decoration:none;color:#0048d8}.lead-form-section{padding:30px 40px 28px}.lead-form-section h2{font-size:24px;margin:0 0 22px}.lead-form-section h2 span{color:#00a33d}.form-grid{display:grid;grid-template-columns:360px 1fr;gap:40px;align-items:start}.form-fields input{width:100%;height:52px;border:1px solid #c4d0e2;border-radius:7px;padding:0 16px;margin-bottom:14px;font-size:15px;background:#fff}.checkboxes p{font-size:16px;font-weight:800;margin:0 0 14px}.checkboxes label{display:block;margin-bottom:12px;font-size:14px;line-height:1.2}.checkboxes input{accent-color:#0aa33f;margin-right:10px}.green-button{width:100%;height:58px;border:0;border-radius:7px;background:var(--green);color:#fff;font-size:21px;font-weight:900;cursor:pointer;margin-top:18px}.privacy-note{text-align:center;color:#5f6b7e;font-size:13px;margin:16px 0 0}.team-intro-section{padding:24px;margin-bottom:42px;text-align:center}.team-intro-section img{display:block;width:100%;height:auto;max-height:1540px;object-fit:contain;border-radius:8px;background:#fff}@media(max-width:1199px){body{min-width:1200px}.hero,.page{width:1200px}}


/* =========================================================
   RESPONSIVE MOBILE LAYOUT
   Desktop keeps the original 1200px layout.
   Mobile becomes readable, scrollable, and form-friendly.
   ========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  :root {
    --W: 100%;
  }

  html,
  body {
    width: 100%;
    min-width: 0 !important;
    overflow-x: hidden;
    background: var(--bg, #f3f7fd);
  }

  body {
    font-size: 16px;
  }

  .page-scaler {
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
  }

  .hero,
  .page {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page {
    padding: 0 12px 28px;
    margin: 0 auto;
  }

  .hero {
    height: 410px;
    margin: 0;
  }

  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-content {
    top: 26px !important;
    left: 18px !important;
    right: 18px !important;
    text-align: left !important;
  }

  .hero-content h1 {
    font-size: 36px !important;
    line-height: 1.06 !important;
    letter-spacing: -0.5px;
    max-width: 92%;
  }

  .hero-content p {
    font-size: 17px !important;
    line-height: 1.35;
    max-width: 92%;
  }

  .address-pill {
    left: 14px !important;
    right: 14px !important;
    bottom: 18px !important;
    width: auto !important;
    max-width: none !important;
    font-size: 15px !important;
    line-height: 1.35;
    padding: 11px 13px !important;
    white-space: normal;
  }

  .snapshot-card,
  .listing-details-card,
  .neighbor-card,
  .list-section,
  .open-house-card,
  .lead-form-section,
  .team-section,
  .about-team-section,
  .agent-team-section {
    border-radius: 12px;
  }

  .snapshot-card {
    padding: 20px 14px;
    margin: 0 0 16px;
  }

  .snapshot-card h2,
  .listing-details-card h2,
  .list-section h2,
  .open-house-card h2,
  .lead-form-section h2 {
    font-size: 23px !important;
    line-height: 1.15;
  }

  .snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .snapshot-item {
    min-height: 118px !important;
    padding: 18px 8px !important;
  }

  .snapshot-icon {
    height: 34px !important;
    font-size: 25px !important;
  }

  .snapshot-icon.money {
    width: 38px !important;
    height: 38px !important;
    line-height: 33px !important;
    font-size: 23px !important;
  }

  .snapshot-item strong {
    font-size: 22px !important;
  }

  .two-column,
  .details-neighbor-row,
  .cards-row,
  .bottom-row,
  .details-layout,
  .form-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    margin-bottom: 16px !important;
  }

  .listing-details-card {
    padding: 20px 16px;
  }

  .description-text,
  #description {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .feature-item {
    font-size: 16px !important;
  }

  .blue-button,
  .outline-button,
  .link-button,
  .green-button {
    min-height: 48px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 8px;
  }

  .gallery-grid img:first-child {
    grid-column: 1 / 3 !important;
    height: 220px !important;
  }

  .gallery-grid img {
    height: 130px !important;
  }

  .gallery-grid img:nth-child(n+4) {
    display: none !important;
  }

  .neighbor-card {
    min-height: auto !important;
    padding: 24px 20px !important;
    background-position: center !important;
  }

  .neighbor-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .neighbor-card h2 {
    font-size: 28px !important;
    line-height: 1.12 !important;
  }

  .neighbor-card p,
  .neighbor-card li {
    font-size: 16px !important;
  }

  .cards-row {
    align-items: stretch !important;
  }

  .list-section {
    min-height: auto !important;
    padding: 20px 16px !important;
  }

  .section-header {
    gap: 10px;
  }

  .section-header h2 {
    font-size: 22px !important;
  }

  .link-button {
    font-size: 14px !important;
    white-space: nowrap;
  }

  .home-list,
  #similarHomes,
  #priceDrops {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .home-card {
    min-width: 190px;
    max-width: 190px;
    flex: 0 0 190px;
    scroll-snap-align: start;
  }

  .home-card img {
    height: 115px !important;
  }

  .home-card strong {
    font-size: 17px !important;
  }

  .home-card p {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  .open-house-card,
  .lead-form-section {
    padding: 22px 18px !important;
    min-height: auto !important;
  }

  .open-house-card h3 {
    font-size: 28px !important;
    line-height: 1.1 !important;
  }

  .time-text {
    font-size: 22px !important;
  }

  .location-line {
    font-size: 16px !important;
  }

  .open-house-card a {
    font-size: 18px !important;
    margin-top: 18px !important;
  }

  .lead-form-section h2 {
    margin-bottom: 18px !important;
  }

  .form-fields input {
    width: 100% !important;
    height: 54px !important;
    font-size: 16px !important;
  }

  .checkboxes p {
    font-size: 16px !important;
  }

  .checkboxes label {
    font-size: 15.5px !important;
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
  }

  .green-button {
    font-size: 19px !important;
    height: 56px !important;
    margin-top: 16px !important;
  }

  .privacy-note {
    font-size: 13px !important;
  }

  .team-section,
  .about-team-section,
  .agent-team-section {
    margin: 16px 0 !important;
    padding: 16px !important;
  }

  .team-section img,
  .about-team-section img,
  .agent-team-section img,
  img[src*="sold-by-alice-team"] {
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 10px;
  }
}

@media (max-width: 390px) {
  .hero {
    height: 380px;
  }

  .hero-content h1 {
    font-size: 32px !important;
  }

  .hero-content p {
    font-size: 16px !important;
  }

  .snapshot-card h2,
  .listing-details-card h2,
  .list-section h2,
  .open-house-card h2,
  .lead-form-section h2 {
    font-size: 21px !important;
  }

  .home-card {
    min-width: 176px;
    max-width: 176px;
    flex-basis: 176px;
  }
}



/* =========================================================
   MOBILE V5 REFINEMENTS
   1) Header title/subtitle fit one line
   2) Snapshot pairs: Price-Year, Beds-Baths, Sqft-Lot
   3) Similar/Price Drops: show 2 cards per swipe
   4) Team PDF image zoomed on mobile
   ========================================================= */

@media (max-width: 768px) {
  .hero {
    height: 340px !important;
  }

  .hero-content {
    top: 22px !important;
    left: 14px !important;
    right: 14px !important;
    text-align: center !important;
  }

  .hero-content h1 {
    font-size: 25px !important;
    line-height: 1.05 !important;
    max-width: 100% !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
  }

  .hero-content p {
    font-size: 13px !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 7px !important;
  }

  .address-pill {
    font-size: 14px !important;
    bottom: 14px !important;
  }

  .snapshot-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas:
      "price year"
      "beds baths"
      "sqft lot";
    gap: 10px !important;
  }

  .snapshot-grid .snapshot-item:nth-child(1) { grid-area: price; }
  .snapshot-grid .snapshot-item:nth-child(2) { grid-area: beds; }
  .snapshot-grid .snapshot-item:nth-child(3) { grid-area: baths; }
  .snapshot-grid .snapshot-item:nth-child(4) { grid-area: sqft; }
  .snapshot-grid .snapshot-item:nth-child(5) { grid-area: lot; }
  .snapshot-grid .snapshot-item:nth-child(6) { grid-area: year; }

  .snapshot-item {
    min-height: 104px !important;
    padding: 13px 8px !important;
  }

  .snapshot-icon {
    height: 28px !important;
    font-size: 22px !important;
  }

  .snapshot-icon.money {
    width: 32px !important;
    height: 32px !important;
    line-height: 27px !important;
    font-size: 20px !important;
    border-width: 2px !important;
  }

  .snapshot-item strong {
    font-size: 20px !important;
    margin-top: 9px !important;
  }

  .snapshot-item small {
    font-size: 12px !important;
    margin-top: 5px !important;
  }

  .home-list,
  #similarHomes,
  #priceDrops {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    scrollbar-width: thin;
  }

  .home-card {
    min-width: calc((100vw - 60px) / 2) !important;
    max-width: calc((100vw - 60px) / 2) !important;
    flex: 0 0 calc((100vw - 60px) / 2) !important;
    scroll-snap-align: start;
  }

  .home-card img {
    height: 104px !important;
  }

  .home-card strong {
    font-size: 16px !important;
    margin-top: 8px !important;
  }

  .home-card p {
    font-size: 13px !important;
  }

  .team-intro-section {
    padding: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .team-intro-section img,
  #teamIntroImage {
    width: 175% !important;
    max-width: none !important;
    height: auto !important;
    display: block !important;
    border-radius: 8px;
    transform-origin: top left;
    scroll-snap-align: start;
  }
}

@media (max-width: 390px) {
  .hero {
    height: 320px !important;
  }

  .hero-content h1 {
    font-size: 22px !important;
  }

  .hero-content p {
    font-size: 12px !important;
  }

  .home-card {
    min-width: calc((100vw - 54px) / 2) !important;
    max-width: calc((100vw - 54px) / 2) !important;
    flex-basis: calc((100vw - 54px) / 2) !important;
  }

  .home-card img {
    height: 96px !important;
  }

  .team-intro-section img,
  #teamIntroImage {
    width: 190% !important;
  }
}
