/* MERIDIAN RENTAL SUPPORT LOCATOR — styles (v5)
   Changes from the live version:
   - Brand green aligned to the theme's #2a7a38 (was #2e7b3d)
   - One CTA: the location list is a compact two-column grid of city
     names; the single "Get rental support" button lives in the
     result card by the map and updates with the selection
   - The list scrolls in its own panel on desktop so the map and its
     county coverage never leave the screen
   - Visible keyboard focus everywhere; reduced motion respected
*/
:root{
    --green:#2a7a38; --green-soft:rgba(42,122,56,.14); --green-fill:rgba(42,122,56,.34);
    --land:#EDEDED; --ink:#333; --line:#e3e6e3; --muted:#6b7280; --bg:#f7f8f7;
    --font:'Montserrat',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  }
  *{box-sizing:border-box}
  body{margin:0;font-family:var(--font);color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}
  .locator{max-width:1280px;margin:0 auto;padding:24px 20px 48px}
  h1{font-size:26px;margin:0 0 2px}
  .sub{color:var(--muted);font-size:14px;margin:0 0 18px}
  .grid{display:grid;grid-template-columns:1.35fr 1fr;gap:22px;align-items:start}
  .mapwrap{position:sticky;top:16px}
  .mapcard{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px}

  /* Status / result card: hint or error text by default,
     a bordered result card once a location is selected */
  .status{min-height:20px;font-size:13px;color:var(--muted);margin:2px 4px 10px;font-weight:600;line-height:1.6}
  .status a{color:var(--green);font-weight:700;text-decoration:none;white-space:nowrap}
  .status a:hover{text-decoration:underline}
  .status.has-selection{margin:2px 0 10px}
  .sel{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
       background:var(--bg);border:1px solid var(--line);border-radius:11px;padding:10px 14px}
  .sel-info{min-width:0}
  .sel-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  .sel-head b{color:var(--ink);font-size:15px}
  .sel-meta{color:var(--muted);font-size:12.5px;font-weight:600;margin-top:3px}
  .sel-cta{display:inline-block;background:var(--green);color:#fff !important;font-weight:700;font-size:13px;
       padding:9px 16px;border-radius:9px;text-decoration:none;white-space:nowrap;flex:none;transition:.12s}
  .sel-cta:hover{background:#236030;text-decoration:none !important}
  .sel-cta:focus-visible{outline:2px solid var(--green);outline-offset:2px}

  svg.map{width:100%;height:auto;display:block;border-radius:10px;background:#fff;touch-action:manipulation}
  .states{fill:var(--land);stroke:#333;stroke-width:1;vector-effect:non-scaling-stroke}
  .cty{fill:transparent;stroke:none;pointer-events:none;transition:fill .12s}
  .cty.on{fill:var(--green-fill);stroke:var(--green);stroke-width:.5;vector-effect:non-scaling-stroke}

  /* Location markers */
  .hub{outline:none}
  .hub .hit{fill:transparent;cursor:pointer}
  .hub .dot{fill:var(--green);stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke;cursor:pointer;transition:.12s;transform-box:fill-box;transform-origin:center}
  .hub:hover .dot{transform:scale(1.22)}
  .hub.active .dot{transform:scale(1.5);stroke:var(--green);stroke-width:2.5}
  .hub:focus-visible .dot{transform:scale(1.35);stroke:var(--green);stroke-width:3}

  .tip{position:fixed;pointer-events:none;background:#222;color:#fff;font-size:12px;padding:4px 8px;border-radius:5px;opacity:0;transition:opacity .1s;z-index:30;white-space:nowrap}

  .side{min-width:0}
  .side-head{display:flex;justify-content:space-between;align-items:baseline;margin:0 2px 10px}
  .side-head h2{font-size:16px;margin:0}
  ul.cards{list-style:none;margin:0;padding:2px 6px 2px 2px;display:flex;flex-direction:column;gap:10px;
       max-height:calc(100vh - 140px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  ul.cards::-webkit-scrollbar{width:8px}
  ul.cards::-webkit-scrollbar-thumb{background:#d6dbd6;border-radius:8px}

  .city-grid-wrap{margin:0;padding:0}
  /* Two columns reading top-to-bottom then across (directory order),
     so an alphabetical scan runs straight down each column */
  .city-grid{columns:2;column-gap:8px}

  /* City buttons: name only, marker icon echoes the map legend */
  .city{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:10px;
       padding:10px 12px;cursor:pointer;transition:.12s;outline:none;font:inherit;font-size:13.5px;font-weight:700;
       color:var(--ink);text-align:left;min-width:0;width:80%;margin:0 0 8px;break-inside:avoid}
  .city i{flex:none;width:10px;height:10px;border-radius:50%;background:var(--green)}
  .city:hover{border-color:#c8d3cb;box-shadow:0 2px 10px rgba(0,0,0,.04)}
  .city.active{border-color:var(--green);box-shadow:0 0 0 2px var(--green-soft);background:var(--green-soft)}
  .city:focus-visible{border-color:var(--green);box-shadow:0 0 0 2px var(--green-soft)}

  .finder{display:flex;gap:10px;flex-wrap:wrap;margin:2px 4px 12px}
  .geo{display:inline-flex;align-items:center;gap:7px;background:var(--green);color:#fff;border:none;border-radius:9px;
       font:inherit;font-size:13px;font-weight:700;padding:9px 14px;cursor:pointer;transition:.12s}
  .geo:hover{background:#236030}
  .geo:focus-visible{outline:2px solid var(--green);outline-offset:2px}
  .zip{display:flex;flex:1;min-width:190px}
  .zip input{flex:1;min-width:0;border:1px solid var(--line);border-radius:9px 0 0 9px;
       font:inherit;font-size:14px;padding:9px 12px;outline:none}
  .zip input:focus{border-color:var(--green)}
  .zip button{background:var(--green);border:1px solid var(--green);border-radius:0 9px 9px 0;
       color:#fff;font:inherit;font-size:13px;font-weight:700;padding:0 18px;cursor:pointer;transition:.12s}
  .zip button:hover{background:#236030;border-color:#236030}
  .zip button:focus-visible{outline:2px solid var(--green);outline-offset:2px}

  .fallback{font-size:13px;color:#4b5563;margin:12px 4px 2px}
  .fallback a{color:var(--green);font-weight:700;text-decoration:none}
  .fallback a:hover{text-decoration:underline}

  .legend{display:flex;gap:16px;align-items:center;font-size:12px;color:#4b5563;margin-top:10px;padding-left:4px;flex-wrap:wrap}
  .legend i{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:6px;vertical-align:middle;background:var(--green)}
  .legend i.area{border-radius:3px;background:var(--green-fill);border:1px solid var(--green)}
  .clear{background:none;border:1px solid var(--line);border-radius:8px;color:var(--muted);font:inherit;font-size:12px;font-weight:600;padding:5px 10px;cursor:pointer;margin-left:auto}
  .clear:hover{border-color:#c8d3cb}

  @media (max-width:820px){
    .grid{grid-template-columns:1fr;gap:16px}
    .mapwrap{position:static}
    h1{font-size:22px}
    ul.cards{max-height:none;overflow:visible;padding-right:2px}
    .sel{flex-direction:column;align-items:stretch;gap:10px}
    .sel-cta{text-align:center}
  }
  @media (max-width:430px){
    .city-grid{columns:1}
  }
  @media (prefers-reduced-motion: reduce){
    .cty,.hub .dot,.city,.geo,.sel-cta{transition:none}
  }
