:root{--ink:#123d3b;--muted:#6f807d;--line:#e4ecea;--soft:#f6faf9;--paper:#fff}
*{box-sizing:border-box}
body{margin:0;background:#fff;color:#173432;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}button{font:inherit;color:inherit}
.near-header{height:68px;padding:7px clamp(14px,4vw,48px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(14px)}
.near-header .back,.near-header .directory{font-size:12px;font-weight:800}.near-header .directory{text-align:right}.brand img{width:50px;height:50px;object-fit:contain}
main{max-width:1280px;margin:auto;padding:0 clamp(14px,3vw,36px) 50px}
.intro{padding:48px 0 28px;max-width:850px}.intro>p,.results-head p{margin:0 0 8px;font-size:11px;font-weight:900;letter-spacing:.16em;color:#1f6762}.intro h1{margin:0;font-size:clamp(38px,6vw,74px);line-height:.94;letter-spacing:-.055em;color:var(--ink)}.intro span{display:block;max-width:720px;margin-top:16px;font-size:15px;line-height:1.55;color:var(--muted)}
.near-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:12px}
.controls,.map-shell,.near-card{border:1px solid var(--line);border-radius:20px;background:#fff}
.controls{padding:17px;align-self:start}.controls>button{width:100%;min-height:48px;border:0;border-radius:14px;background:var(--ink);color:#fff;font-weight:850;cursor:pointer}.controls>button:disabled{opacity:.65}
.area-row,.category-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.area-row button,.category-row button{padding:8px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:12px;font-weight:800;cursor:pointer}.area-row button.active,.category-row button.active{background:var(--ink);border-color:var(--ink);color:#fff}.controls>p{margin:14px 0 0;font-size:12px;line-height:1.45;color:var(--muted)}
.map-shell{overflow:hidden}.map-shell #nearMap{height:430px;background:#eaf2ef}.map-shell>small{display:block;padding:10px 13px;font-size:11px;line-height:1.4;color:var(--muted)}
.results-head{grid-column:1/-1;margin-top:26px;display:flex;align-items:end;justify-content:space-between;gap:12px}.results-head h2{margin:0;font-size:36px;letter-spacing:-.04em;color:var(--ink)}.results-head>span{font-size:12px;color:var(--muted)}
.results{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.near-card{padding:17px;display:flex;flex-direction:column;gap:7px}.near-card>span{font-size:10px;font-weight:900;letter-spacing:.08em;color:#4b706c}.near-card>strong{font-size:18px;line-height:1.15;color:var(--ink)}.near-card>p{margin:0;font-size:12px;line-height:1.45;color:var(--muted)}.near-card>small{font-size:11px;line-height:1.4;color:#6f807d}.near-card>div{margin-top:auto;padding-top:7px;display:flex;gap:7px;flex-wrap:wrap}.near-card a{padding:7px 9px;border:1px solid var(--line);border-radius:999px;font-size:11px;font-weight:850}.empty{grid-column:1/-1;padding:22px;border:1px dashed var(--line);border-radius:18px;color:var(--muted)}
footer{max-width:1280px;margin:0 auto 40px;padding:22px clamp(14px,3vw,36px);border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:11px}footer strong{color:var(--ink)}
.user-dot{width:14px;height:14px;border-radius:50%;background:#123d3b;border:3px solid #fff;box-shadow:0 0 0 2px rgba(18,61,59,.2)}
@media(max-width:820px){.near-layout{grid-template-columns:1fr}.map-shell{grid-row:2}.results-head,.results{grid-column:1}.results{grid-template-columns:1fr}.map-shell #nearMap{height:340px}.intro{padding-top:34px}.intro h1{font-size:44px}.near-header{grid-template-columns:1fr auto}.near-header .brand{display:none}.area-row,.category-row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px}.area-row button,.category-row button{white-space:nowrap}.results-head h2{font-size:30px}footer{display:block}footer span{display:block;margin-top:6px}}



.map-unavailable{
  height:100%;min-height:430px;padding:24px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  text-align:center;color:var(--muted)
}
.map-unavailable strong{color:var(--ink);font-size:16px}
.map-unavailable span{max-width:420px;font-size:12px;line-height:1.5}
@media(max-width:820px){
  .map-unavailable{min-height:340px}
  .map-shell{order:1}
  .controls{order:2}
}


/* Reliable map iframe - independent from page image CSS */
#nearMap{overflow:hidden}
#nearMap .near-map-embed{
  display:block;
  width:100%;
  height:100%;
  min-height:inherit;
  border:0;
  background:#eaf2ef;
}


.map-shell-note{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 13px;border-top:1px solid var(--line)
}
.map-shell-note small{flex:1;color:var(--muted);font-size:11px;line-height:1.45}
.map-shell-note a{
  flex:0 0 auto;padding:7px 9px;border:1px solid var(--line);border-radius:999px;
  background:#fff;color:var(--ink);font-size:11px;font-weight:850
}
.near-card>div button{
  padding:7px 9px;border:1px solid var(--line);border-radius:999px;
  background:#f7fbf9;color:var(--ink);font-size:11px;font-weight:850;cursor:pointer
}
@media(max-width:820px){.map-shell-note{align-items:flex-start;flex-direction:column}}


/* Near Me map data layer - 22/09/2026 */
.near-layout,.controls,.map-shell,.results{min-width:0}
#nearMap{
  position:relative;
  width:100%;
  height:430px;
  overflow:hidden;
  background:#eaf2ef;
}
.near-map-live,
.near-map-directory{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  background:#eaf2ef;
}
.near-map-directory[hidden],
.near-map-live[hidden]{display:none!important}
.map-data-badge{
  position:absolute;
  z-index:600;
  left:12px;
  top:12px;
  max-width:calc(100% - 72px);
  padding:7px 10px;
  border:1px solid rgba(18,61,59,.14);
  border-radius:999px;
  background:rgba(255,255,255,.94);
  box-shadow:0 5px 18px rgba(18,61,59,.12);
  color:var(--ink);
  font-size:10px;
  line-height:1.25;
  font-weight:850;
  pointer-events:none;
}
.near-pin{
  width:30px!important;
  height:30px!important;
  margin:-15px 0 0 -15px!important;
  display:grid!important;
  place-items:center;
  border:2px solid #fff;
  border-radius:50% 50% 50% 10%;
  background:#123d3b;
  box-shadow:0 4px 14px rgba(18,61,59,.26);
  transform:rotate(-45deg);
}
.near-pin span{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  color:#fff;
  font-size:8px;
  line-height:1;
  font-weight:900;
  transform:rotate(45deg);
}
.near-user-pin{
  width:18px!important;
  height:18px!important;
  margin:-9px 0 0 -9px!important;
  border:3px solid #fff;
  border-radius:50%;
  background:#ff704f;
  box-shadow:0 0 0 3px rgba(255,112,79,.22);
}
.near-popup{min-width:180px}
.near-popup strong{display:block;color:#123d3b;font-size:13px;line-height:1.25}
.near-popup span{display:block;margin-top:4px;color:#4b706c;font-size:10px;font-weight:850}
.near-popup small{display:block;margin-top:5px;color:#6f807d;font-size:10px;line-height:1.35}
.leaflet-control-attribution{font-size:8px!important}
.discovery-card{
  grid-column:1/-1;
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#f7faf9;
}
.discovery-card>span{font-size:10px;font-weight:900;letter-spacing:.08em;color:#4b706c}
.discovery-card>strong{display:block;margin-top:7px;font-size:19px;color:var(--ink)}
.discovery-card>p{margin:7px 0 0;max-width:680px;font-size:12px;line-height:1.5;color:var(--muted)}
.discovery-card>a{display:inline-flex;margin-top:12px;padding:8px 11px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:11px;font-weight:850}
.map-shell-note{min-width:0}
.map-shell-note small{min-width:0;overflow-wrap:anywhere}

@media(max-width:820px){
  .near-layout{display:flex;flex-direction:column;gap:10px}
  .controls{order:1}
  .map-shell{order:2}
  .results-head{order:3}
  .results{order:4}
  #nearMap,.map-shell #nearMap{height:min(52vh,390px);min-height:320px}
  .intro{padding:28px 0 20px}
  .intro h1{font-size:40px;line-height:.96}
  .intro span{font-size:14px}
  .controls{padding:14px}
  .area-row,.category-row{
    flex-wrap:nowrap;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scrollbar-width:none;
    padding-bottom:3px;
  }
  .area-row::-webkit-scrollbar,.category-row::-webkit-scrollbar{display:none}
  .area-row button,.category-row button{flex:0 0 auto;white-space:nowrap;min-height:38px}
  .map-shell-note{padding:10px 12px}
  .map-shell-note a{max-width:100%}
  .map-data-badge{left:10px;top:10px;max-width:calc(100% - 62px)}
}


/* Near Me address finder - 22/09/2026 */
.near-search{display:block;margin-bottom:12px}
.near-search>span{display:block;margin-bottom:6px;font-size:10px;font-weight:900;letter-spacing:.10em;color:#4b706c;text-transform:uppercase}
.near-search input{
  width:100%;min-height:46px;padding:0 14px;border:1px solid var(--line);border-radius:14px;
  background:#fff;color:var(--ink);font:inherit;font-size:14px;outline:none
}
.near-search input:focus{border-color:#87aaa5;box-shadow:0 0 0 3px rgba(82,132,124,.10)}
.near-card button{
  appearance:none;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);
  padding:8px 10px;font:inherit;font-size:11px;font-weight:850;cursor:pointer
}
.results-more{
  grid-column:1/-1;padding:13px 15px;border:1px dashed var(--line);border-radius:14px;
  color:var(--muted);font-size:12px;line-height:1.45;background:#fafcfb
}
@media(max-width:820px){
  .near-search input{min-height:44px;font-size:16px}
  .near-card>div{flex-wrap:wrap}
}


/* Near Me mobile containment - keep horizontal filter rails inside the page. */
html,body{max-width:100%;overflow-x:hidden}
.near-layout,.controls,.map-shell,.results-head,.results{max-width:100%}
.area-row,.category-row{max-width:100%;min-width:0}
@media(max-width:820px){
  .controls,.map-shell,.results-head,.results{width:100%;min-width:0}
  .area-row,.category-row{width:100%;contain:inline-size}
}

.near-transit-cta{font-size:13px;color:#416d64;margin:8px 0 0}.near-transit-cta a{color:#147a62;font-weight:700;text-decoration:underline;text-underline-offset:3px}
