:root {
  --bg: #0b0f14;
  --panel: #101723;
  --panel2: #0f1520;
  --text: #e8eef6;
  --muted: #a8b3c2;
  --border: rgba(255, 255, 255, 0.10);
  --border2: rgba(255, 255, 255, 0.14);
  --accent: #67d4ff;
  --good: #57e39a;
  --warning: #ffd166;
  --danger: #ff6b6b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #0b0f14 0%, #0d131c 100%);
  color: var(--text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 20, 0.82);
  border-bottom: 1px solid var(--border);
}

.siteHeader .container {
  min-height: 72px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.headerTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.title a {
  color: inherit;
  text-decoration: none;
}

.title a:hover {
  text-decoration: none;
}

.subtitle {
  margin: 0;
  color: var(--text);
  max-width: 900px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.5;
}

.viewToggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.toggleBtn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: #f3f5f7;
  color: #101723;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.toggleBtn:hover {
  transform: translateY(-1px);
}

.toggleBtn[aria-pressed="true"] {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

main {
  padding: 28px 0 56px;
}

.controls {
  margin-top: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(16, 23, 35, 0.96) 0%, rgba(15, 21, 32, 0.96) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.controlRow {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(160px, 1fr)) auto auto;
  gap: 14px;
  align-items: end;
}

.control {
  min-width: 0;
}

.control label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.control input,
.control select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: #0c121b;
  border: 1px solid var(--border2);
  border-radius: 12px;
  outline: none;
}

.control input::placeholder {
  color: #7f8a98;
}

.control input:focus,
.control select:focus {
  border-color: rgba(103, 212, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(103, 212, 255, 0.15);
}

.btnSecondary {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: #f3f5f7;
  color: #101723;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.btnSecondary:hover {
  transform: translateY(-1px);
}

.controlReset {
  justify-self: start;
}

.metaRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.resultsCount,
.mapNote {
  color: var(--text);
  font-size: 0.98rem;
}

.viewPane {
  min-width: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.grid > * {
  min-width: 0;
}

.emptyState {
  padding: 24px;
  background: linear-gradient(180deg, rgba(16, 23, 35, 0.96) 0%, rgba(15, 21, 32, 0.96) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.emptyState h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.emptyState p {
  margin: 0;
  color: var(--muted);
}

.card,
.providerCard,
.resultCard,
.directoryCard,
.grid article,
.grid .provider,
.grid a {
  display: block;
  padding: 20px;
  background: linear-gradient(180deg, rgba(16, 23, 35, 0.98) 0%, rgba(15, 21, 32, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.grid a:hover,
.card:hover,
.providerCard:hover,
.resultCard:hover,
.directoryCard:hover {
  text-decoration: none;
  border-color: rgba(103, 212, 255, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.card h2,
.card h3,
.providerCard h2,
.providerCard h3,
.resultCard h2,
.resultCard h3,
.directoryCard h2,
.directoryCard h3,
.grid article h2,
.grid article h3,
.grid a h2,
.grid a h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.card p,
.providerCard p,
.resultCard p,
.directoryCard p,
.grid article p,
.grid a p {
  margin: 0 0 10px;
  color: var(--text);
}

.card p:last-child,
.providerCard p:last-child,
.resultCard p:last-child,
.directoryCard p:last-child,
.grid article p:last-child,
.grid a p:last-child {
  margin-bottom: 0;
}

.card a,
.providerCard a,
.resultCard a,
.directoryCard a,
.grid article a,
.grid a {
  word-break: break-word;
}

.card .muted,
.providerCard .muted,
.resultCard .muted,
.directoryCard .muted {
  color: var(--muted);
}

.tag,
.chip,
#payments span,
#tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  margin: 0 8px 8px 0;
  border-radius: 999px;
  border: 1px solid rgba(103, 212, 255, 0.18);
  background: rgba(103, 212, 255, 0.08);
  color: #d9f6ff;
  font-size: 0.88rem;
  white-space: nowrap;
}

.mapWrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.map {
  width: 100%;
  height: 640px;
  min-height: 640px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0c121b;
  box-shadow: var(--shadow);
  position: relative;
}

.mapLegend {
  padding: 18px;
  background: linear-gradient(180deg, rgba(16, 23, 35, 0.96) 0%, rgba(15, 21, 32, 0.96) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legendTitle {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.legendList {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.legendList li + li {
  margin-top: 8px;
}

#content {
  display: grid;
  gap: 20px;
}

#content > section,
#content > h1,
#content > p {
  min-width: 0;
}

#content > h1,
#content > p,
#content > section {
  padding: 20px;
  background: linear-gradient(180deg, rgba(16, 23, 35, 0.98) 0%, rgba(15, 21, 32, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#content > h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

#content > p {
  margin: 0;
}

#meta,
#description,
#suburb {
  color: var(--text);
}

#payments,
#tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#content section h2,
#notFound h2,
#error h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

#content section p,
#notFound p,
#error p {
  margin: 0;
}

.providerMapSection {
  min-width: 0;
}
#providerMap {
  width: 100%;
  height: 380px;
  min-height: 380px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0c121b;
  box-shadow: var(--shadow);
  position: relative;
}

#notFound,
#error {
  padding: 24px;
  background: linear-gradient(180deg, rgba(16, 23, 35, 0.98) 0%, rgba(15, 21, 32, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.leaflet-container {
  font: inherit;
  overflow: hidden;
  background: #0c121b;
}

.map .leaflet-container,
#providerMap .leaflet-container,
#map.leaflet-container {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.leaflet-container img,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  max-width: none !important;
}

.leaflet-pane,
.leaflet-top,
.leaflet-bottom,
.leaflet-control-container {
  z-index: 1;
}

.leaflet-control {
  z-index: 10;
}

.leaflet-tile-pane {
  transform: translate3d(0, 0, 0);
}

.leaflet-container a {
  color: inherit;
}

.siteFooter {
  margin-top: 48px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
}

.footerText {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .controlRow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mapWrap {
    grid-template-columns: 1fr;
  }

  .mapLegend {
    order: 2;
  }

  .map {
    height: 560px;
    min-height: 560px;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 20px, var(--max));
  }

  .siteHeader .container {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .headerTop {
    flex-direction: column;
    align-items: stretch;
  }

  .viewToggle {
    align-self: flex-start;
  }

  .controlRow {
    grid-template-columns: 1fr;
  }

  .metaRow {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .map {
    height: 440px;
    min-height: 440px;
  }

  #providerMap {
    height: 320px;
    min-height: 320px;
  }
}

@media (max-width: 520px) {
  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .controls,
  .mapLegend,
  #content > h1,
  #content > p,
  #content > section,
  #notFound,
  #error {
    padding: 16px;
  }
}.telehealth-marker{
display:flex;
align-items:center;
justify-content:center;
font-size:30px;
}