/* Service areas page — from Claude Design "ELITE Service Areas.html" (project 0c14a601).
   Moved out of an inline <style> so the page works under the strict CSP. */
:root {
  --ink: var(--cash-grey, #465d4f);
  --money: var(--money-green, #73da79);
  --bank: var(--bank-green, #6a9d6d);
  --hair: #dfe7e0;
  --water: #e4ecef;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-body, "Quicksand", system-ui, sans-serif);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
.wrap { display: grid; grid-template-columns: minmax(340px, 470px) minmax(0, 1fr); height: 100vh; }
@media (max-width: 860px) { .wrap { grid-template-columns: 1fr; height: auto; } #map { height: 62vh; } }

.panel { border-right: 1px solid var(--hair); display: flex; flex-direction: column; min-height: 0; }
.panel-head { padding: 40px 40px 22px; }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--bank); margin: 0 0 14px; }
h1 { font-family: var(--font-display, "Cormorant Garamond", serif); font-weight: 700; font-size: 44px; line-height: 1.04; margin: 0 0 12px; letter-spacing: -0.01em; }
.lede { margin: 0; font-size: 14.5px; line-height: 1.6; color: #5f7466; text-wrap: pretty; max-width: 38ch; }

.search { padding: 0 40px 18px; display: flex; gap: 10px; align-items: center; }
.search input {
  flex: 1; font-family: inherit; font-size: 14px; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--hair); border-radius: 10px; background: #fff; outline: none;
}
.search input:focus { border-color: var(--bank); box-shadow: 0 0 0 3px rgba(115,218,121,.22); }
.count { font-size: 12px; font-weight: 600; color: #7b8f80; white-space: nowrap; }

.list { overflow-y: auto; padding: 0 40px 48px; min-height: 0; }
.district { margin: 0 0 6px; }
.district-name {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display, "Cormorant Garamond", serif); font-weight: 700;
  font-size: 19px; color: var(--ink); padding: 18px 0 8px; border-bottom: 1px solid var(--hair);
}
.district-name span { font-family: var(--font-body, "Quicksand", sans-serif); font-size: 11px; font-weight: 700; color: #94a898; letter-spacing: .06em; }
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
li button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: transparent; border: 0; border-radius: 6px; padding: 9px 10px; margin: 0;
  text-align: left; cursor: pointer; transition: background 200ms ease-out, color 200ms ease-out;
}
li button:hover { background: #f1f8f2; }
li button.on { background: var(--money); color: #23342a; }
li button code {
  font-family: var(--font-body, "Quicksand", sans-serif); font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; color: #8ba190;
}
li button.on code { color: #3d5a45; }

#map { flex: 1; min-height: 340px; height: 100vh; background: var(--water); }
.leaflet-container { font-family: var(--font-body, "Quicksand", sans-serif); background: var(--water); }
.leaflet-control-attribution { font-size: 9.5px; color: #93a597; background: rgba(255,255,255,.7); }
.leaflet-tooltip.sub {
  background: #fff; border: 1px solid var(--hair); border-radius: 8px; box-shadow: var(--shadow-s, 0 2px 10px rgba(70,93,79,.10));
  font-size: 12px; font-weight: 700; color: var(--ink); padding: 5px 9px;
}
.leaflet-tooltip.sub::before { display: none; }
.leaflet-tooltip.lbl { display: none; }
/* Suburb label: dot + name as one unit, centred on the polygon's pole of
   inaccessibility so it sits inside the boundary, clear of the edges. */
.plab { background: none; border: 0; }
.plab .lab {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 4px; white-space: nowrap; cursor: pointer;
}
.plab .lab i {
  width: 4px; height: 4px; border-radius: 50%; background: #35513c;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.9); flex: none;
}
.plab .lab b {
  font-size: 9.5px; font-weight: 700; letter-spacing: .03em; color: #35513c;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 1px 0 #fff;
}
.plab.sel .lab i { width: 6px; height: 6px; background: #1d2f22; }
.plab.sel .lab b { font-size: 11.5px; color: #1d2f22; }

.legend {
  background: #fff; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 10px;
  box-shadow: var(--shadow-s, 0 2px 10px rgba(70,93,79,.10)); font-size: 12px; font-weight: 600; line-height: 1.5;
}
.legend div { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.legend div + div { margin-top: 7px; }
.sw { width: 13px; height: 13px; border-radius: 3px; }
.sw.on { background: rgba(115,218,121,.5); border: 1px solid var(--bank); }
.sw.off { background: #eceeea; border: 1px solid #dcdfd9; }

#map { position: relative; }
.cta {
  position: absolute; left: 50%; bottom: 28px; z-index: 1100; width: min(440px, calc(100% - 32px));
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  transition: opacity 260ms ease-out, transform 260ms ease-out;
  background: #fff; border: 1px solid var(--hair); border-radius: 16px; box-shadow: var(--shadow-l, 0 12px 40px rgba(70,93,79,.18));
  padding: 20px 22px; display: flex; flex-direction: column; gap: 14px;
}
#map:has(.cta.show) .leaflet-bottom.leaflet-left { opacity: 0; pointer-events: none; }
.leaflet-bottom.leaflet-left { transition: opacity 200ms ease-out; }
a { color: var(--bank); }
a:hover { color: var(--ink); }
.cta.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cta-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cta-eyebrow { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--bank); margin: 0 0 6px; }
.cta h2 { font-family: var(--font-display, "Cormorant Garamond", serif); font-weight: 700; font-size: 26px; line-height: 1.1; margin: 0; }
.cta p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: #5f7466; text-wrap: pretty; }
.cta-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: #7b8f80; font: inherit; font-size: 18px; cursor: pointer; }
.cta-x:hover { background: #f1f8f2; color: var(--ink); }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 20px;
  border-radius: 6px; background: var(--money); color: #23342a; font-family: inherit; font-size: 14.5px; font-weight: 700;
  text-decoration: none; transition: background 200ms ease-out;
}
#map .cta-btn, #map .cta-btn:hover { color: #23342a; }
.cta-btn:hover { background: var(--money-green-hover, #5fc866); }

/* Additions for the site build (not in the design file) */
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.home-link { display: inline-flex; }
.back-link { font-size: 13px; font-weight: 600; color: var(--bank); text-decoration: none; white-space: nowrap; }
.back-link:hover { color: var(--ink); text-decoration: underline; }
.home-link img { height: 32px; width: auto; display: block; }
.list .empty { padding: 24px 0; }
@media (max-width: 860px) {
  .panel-head { padding: 28px 20px 18px; }
  .search { padding: 0 20px 14px; }
  .list { padding: 0 20px 32px; max-height: 45vh; }
  h1 { font-size: 36px; }
}
