/* ============================================================
   main.css — AllOz location directory
   Mobile-first. Single file. No framework.
   Brand palette: Eucalyptus green · Wattle gold · Sand
   ============================================================ */

/* --- Custom properties -------------------------------- */
:root {
  --green-900: #0f2e1c;
  --green-800: #1a4a2e;
  --green-700: #1f5c38;
  --green-600: #2b7a4b;
  --green-500: #3d8c5c;
  --green-100: #e8f4ec;
  --green-50:  #f2faf4;

  --gold-500:  #f0c040;
  --gold-600:  #d4a017;
  --gold-100:  #fdf8ec;

  --sand-100:  #f7f2e8;
  --sand-200:  #ede8db;
  --sand-300:  #ddd8cd;

  --ink:       #1a1a1a;
  --ink-600:   #444;
  --ink-400:   #777;
  --ink-200:   #bbb;

  --white:     #ffffff;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow:    0 2px 8px rgba(0,0,0,0.10);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);

  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-ui:   system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Menlo', 'Consolas', monospace;

  --container: 900px;
  --gutter:    16px;
}

/* --- Reset & base ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--green-700); }
a:hover { color: var(--green-900); }
a:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
  border-radius: 2px;
}

img { max-width: 100%; display: block; }

/* --- Accessibility ------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--green-800); color: var(--white);
  padding: 8px 16px; z-index: 200;
  font-family: var(--font-ui); font-size: 0.875rem;
  border-bottom-right-radius: var(--radius-sm);
}
.skip-link:focus { top: 0; }

/* --- Layout container --------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Site header -------------------------------------- */
.site-header {
  background: var(--green-800);
  color: var(--white);
  padding: 0;
  border-bottom: 3px solid var(--green-900);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
}

.site-logo {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  flex-shrink: 0;
  line-height: 1;
}
.logo-all { color: var(--white); }
.logo-oz  { color: var(--gold-500); }

.header-search {
  display: flex;
  align-items: center;
  flex: 1;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: background 0.15s, border-color 0.15s;
}
.header-search:focus-within {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}

.header-search input {
  flex: 1;
  padding: 9px 12px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 0.875rem;
  font-family: var(--font-ui);
  outline: none;
  min-width: 0;
}
.header-search input::placeholder { color: rgba(255,255,255,0.55); }

.header-search button {
  padding: 9px 12px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.header-search button:hover { color: var(--white); }

/* --- Breadcrumb --------------------------------------- */
.breadcrumb {
  background: var(--sand-100);
  border-bottom: 1px solid var(--sand-300);
  padding: 9px 0;
  font-size: 0.8125rem;
  font-family: var(--font-ui);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  list-style: none;
  align-items: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: '›';
  color: var(--ink-400);
  font-size: 0.75rem;
}

.breadcrumb a {
  color: var(--green-700);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink-600); }

/* --- Main content ------------------------------------- */
main { padding: 28px 0 56px; }

/* --- Page header -------------------------------------- */
.page-header { margin-bottom: 28px; }

.page-header-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-600);
  margin-bottom: 6px;
}
.page-header-eyebrow a {
  color: var(--green-600);
  text-decoration: none;
}
.page-header-eyebrow a:hover { color: var(--green-800); text-decoration: underline; }
.eyebrow-sep { color: var(--ink-400); margin: 0 4px; }

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.page-lead {
  margin-top: 8px;
  color: var(--ink-600);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 60ch;
}

.section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sand-200);
  color: var(--ink-600);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 1px 9px;
  margin-left: 8px;
  vertical-align: middle;
}

/* --- Home page ---------------------------------------- */
.home-hero {
  background: linear-gradient(160deg, var(--green-800) 0%, var(--green-700) 100%);
  color: var(--white);
  padding: 48px 0 44px;
  margin: -28px 0 0;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.home-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.75px;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--white);
}

.hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 52ch;
  line-height: 1.6;
}

.hero-search-wrap {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  max-width: 520px;
}

.search-icon {
  margin-left: 14px;
  flex-shrink: 0;
  color: var(--ink-400);
}

.hero-search-wrap input {
  flex: 1;
  padding: 14px 12px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-ui);
  color: var(--ink);
  background: transparent;
  outline: none;
  min-width: 0;
}
.hero-search-wrap input::placeholder { color: var(--ink-400); }

.hero-search-wrap button {
  padding: 0 20px;
  height: 52px;
  background: var(--green-700);
  color: var(--white);
  border: none;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.hero-search-wrap button:hover { background: var(--green-900); }

.hero-hint {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
}
.hero-hint a {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-hint a:hover { color: var(--white); }

/* States grid */
.home-states {
  padding: 36px 0 28px;
}
.home-states h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-600);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8125rem;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
}

.state-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--sand-100);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.state-card:hover {
  border-color: var(--green-600);
  background: var(--green-50);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.state-abbr {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--green-800);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 3px;
}

.state-name {
  font-size: 0.8rem;
  color: var(--ink-600);
  line-height: 1.3;
}

/* About section */
.home-about {
  border-top: 1px solid var(--sand-300);
  padding: 28px 0 8px;
}
.about-inner h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-600);
}
.about-inner p {
  font-size: 0.9rem;
  color: var(--ink-600);
  max-width: 60ch;
  line-height: 1.7;
}

/* --- Identity block (locality page) ------------------- */
.identity-block {
  background: var(--sand-100);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  padding: 4px 16px;
  margin-bottom: 28px;
}

.identity-row {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sand-300);
  font-size: 0.875rem;
  align-items: baseline;
}
.identity-row:last-child { border-bottom: none; }

.identity-row dt {
  color: var(--ink-600);
  min-width: 150px;
  flex-shrink: 0;
  font-weight: 500;
}
.identity-row dd { color: var(--ink); }
.identity-row dd a { color: var(--green-700); }
.meta { color: var(--ink-400); font-size: 0.8125rem; margin-left: 4px; }

/* --- Map ---------------------------------------------- */
.locality-map { margin-bottom: 28px; }

#map {
  height: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--sand-300);
  background: var(--sand-100);
  overflow: hidden;
}
.map-failed #map { display: flex; align-items: center; justify-content: center; }

.map-attribution {
  font-size: 0.72rem;
  color: var(--ink-400);
  margin-top: 5px;
  text-align: right;
}
.map-attribution a { color: var(--ink-400); }

.map-static-fallback {
  width: 100%;
  height: 280px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--sand-300);
}

/* --- Weather ------------------------------------------ */
.locality-weather { margin-bottom: 28px; }
.locality-weather h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 12px; }

.weather-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-400);
  font-size: 0.875rem;
  padding: 20px;
  background: var(--sand-100);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
}

.weather-loading-dot {
  width: 8px; height: 8px;
  background: var(--green-500);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.weather-unavailable {
  color: var(--ink-400);
  font-size: 0.875rem;
  padding: 18px 20px;
  background: var(--sand-100);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  margin: 0;
}

.weather-card {
  background: linear-gradient(135deg, var(--green-50) 0%, #eef8f2 100%);
  border: 1px solid #c8e6d4;
  border-radius: var(--radius);
  padding: 20px;
}

.weather-current {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.weather-temp {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green-800);
  letter-spacing: -1px;
  line-height: 1;
}
.weather-desc { color: var(--ink-600); font-size: 0.9375rem; }

.weather-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 0.8125rem;
}
.weather-details div { display: flex; flex-direction: column; gap: 1px; }
.weather-details dt { color: var(--ink-400); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.weather-details dd { font-weight: 600; color: var(--ink); }

.weather-attribution {
  font-size: 0.72rem;
  color: var(--ink-400);
  margin-top: 14px;
  text-align: right;
}
.weather-attribution a { color: var(--ink-400); }

/* Weather Toggle */
.weather-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.weather-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #c8e6d4;
  border-radius: var(--radius-sm);
  padding: 2px;
}
.weather-toggle button {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-400);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.weather-toggle button:hover { color: var(--green-800); }
.weather-toggle button.active {
  background: var(--white);
  color: var(--green-800);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* 7-Day View */
.weather-week-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}
.weather-week-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.weather-week-list li:last-child {
  border-bottom: none;
}
.ww-day {
  width: 50px;
  font-weight: 600;
  color: var(--ink);
}
.ww-desc {
  flex: 1;
  color: var(--ink-600);
  font-size: 0.8125rem;
}
.ww-temps {
  display: flex;
  gap: 10px;
  width: 60px;
  justify-content: flex-end;
}
.ww-max {
  font-weight: 600;
  color: var(--ink);
}
.ww-min {
  color: var(--ink-400);
}

/* --- Description -------------------------------------- */
.locality-description { margin-bottom: 28px; }
.locality-description h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 10px; }
.locality-description p {
  line-height: 1.75;
  color: var(--ink);
  max-width: 68ch;
}
.description-attribution {
  font-size: 0.775rem;
  color: var(--ink-400);
  margin-top: 8px;
}
.description-attribution a { color: var(--ink-400); }

/* --- Nearby localities -------------------------------- */
.locality-nearby { margin-bottom: 28px; }
.locality-nearby h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 12px; }

.nearby-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nearby-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--sand-100);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: border-color 0.12s, background 0.12s;
}
.nearby-list li:hover {
  border-color: var(--green-500);
  background: var(--green-50);
}
.nearby-list a {
  color: var(--green-700);
  text-decoration: none;
  font-weight: 500;
}
.nearby-list a:hover { text-decoration: underline; }
.nearby-distance { color: var(--ink-400); font-size: 0.8rem; }

/* --- Extension cards ---------------------------------- */
.locality-extensions { margin-bottom: 28px; }
.locality-extensions h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 12px; }

.extension-cards {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.extension-card {
  padding: 16px;
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.extension-card-provider {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.extension-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.extension-card-title a { color: var(--ink); text-decoration: none; }
.extension-card-title a:hover { color: var(--green-700); }
.extension-card-desc { font-size: 0.85rem; color: var(--ink-600); line-height: 1.5; }

/* --- Region and locality list cards ------------------- */
.region-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.region-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  background: var(--sand-100);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.12s, background 0.12s;
}
.region-card:hover {
  border-color: var(--green-600);
  background: var(--green-50);
  color: var(--ink);
}
.region-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-800);
}
.region-card-desc {
  font-size: 0.775rem;
  color: var(--ink-600);
  line-height: 1.4;
}

.locality-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}
.locality-grid li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--sand-100);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: border-color 0.12s;
}
.locality-grid li:hover { border-color: var(--green-500); }
.locality-grid a { color: var(--green-700); text-decoration: none; font-weight: 500; }
.locality-grid a:hover { text-decoration: underline; }

.locality-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.locality-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--sand-200);
  font-size: 0.875rem;
}
.locality-list li:last-child { border-bottom: none; }
.locality-list a { color: var(--green-700); text-decoration: none; font-weight: 500; }
.locality-list a:hover { text-decoration: underline; }
.locality-pop { color: var(--ink-400); font-size: 0.8rem; white-space: nowrap; }

/* --- Top localities (state page) ---------------------- */
.top-localities {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--sand-300);
}
.top-localities h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-600);
  margin-bottom: 12px;
}
.regions-list h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-600);
  margin-bottom: 12px;
}

/* --- Search results ----------------------------------- */
.search-prompt {
  color: var(--ink-600);
  padding: 24px 0;
}

.search-query-display {
  font-style: normal;
  color: var(--green-700);
}

.search-count {
  color: var(--ink-600);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.search-no-results {
  padding: 12px 0;
  color: var(--ink-600);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.search-results-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--sand-300);
}

.search-result {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sand-200);
}
.search-result-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-700);
  text-decoration: none;
}
.search-result-link:hover { text-decoration: underline; }
.search-result-location { font-size: 0.8125rem; color: var(--ink-600); }
.search-result-postcode {
  font-size: 0.775rem;
  color: var(--ink-400);
  font-family: var(--font-mono);
}

/* --- Postcode disambiguation -------------------------- */
.disambiguation-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
}
.disambiguation-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px;
  background: var(--sand-100);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.12s, background 0.12s;
}
.disambiguation-link:hover {
  border-color: var(--green-600);
  background: var(--green-50);
}
.disambiguation-name { font-size: 1.0625rem; font-weight: 600; color: var(--green-800); }
.disambiguation-state { font-size: 0.85rem; color: var(--ink-600); }
.disambiguation-lga   { font-size: 0.8rem;  color: var(--ink-400); }

/* --- Error page --------------------------------------- */
.page-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
}
.error-inner {
  max-width: 400px;
  padding: 40px 0;
}
.error-code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--sand-300);
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 12px;
}
.page-error h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.page-error p {
  color: var(--ink-600);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.error-cta {
  display: inline-block;
  padding: 12px 24px;
  background: var(--green-800);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.15s;
}
.error-cta:hover { background: var(--green-900); color: var(--white); }

/* --- Footer ------------------------------------------- */
.site-footer {
  background: var(--sand-100);
  border-top: 1px solid var(--sand-300);
  padding: 22px 0;
  margin-top: auto;
  font-size: 0.8125rem;
  color: var(--ink-600);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 6px;
}
.footer-links a { color: var(--green-700); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-sep { color: var(--ink-200); }
.footer-copy { font-weight: 500; margin-bottom: 4px; }
.footer-attribution {
  font-size: 0.75rem;
  color: var(--ink-400);
  line-height: 1.6;
}
.footer-attribution a { color: var(--ink-400); }
.footer-attribution a:hover { color: var(--ink-600); }

/* --- Desktop breakpoint (600px+) ---------------------- */
@media (min-width: 600px) {
  .home-hero { padding: 64px 0 56px; }
  .home-hero h1 { font-size: 3rem; }
  .hero-sub { font-size: 1.0625rem; }

  .state-grid { grid-template-columns: repeat(4, 1fr); }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .locality-grid { grid-template-columns: repeat(3, 1fr); }

  #map { height: 380px; }

  .weather-details { grid-template-columns: repeat(3, 1fr); }

  .identity-row dt { min-width: 180px; }

  .nearby-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .page-header h1 { font-size: 2.5rem; }
}

@media (min-width: 900px) {
  .state-grid { grid-template-columns: repeat(4, 1fr); }
  .region-grid { grid-template-columns: repeat(4, 1fr); }
  .locality-grid { grid-template-columns: repeat(4, 1fr); }
  #map { height: 440px; }
}

/* --- Contact page ------------------------------------- */
.contact-form-wrap {
  max-width: 560px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label,
.form-label-hint {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-600);
  font-family: var(--font-ui);
}

.form-required {
  color: var(--green-600);
}

.form-field input,
.form-field textarea {
  padding: 10px 12px;
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-200);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(43, 122, 75, 0.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* Captcha widget area — wraps the L8T drag/drop elements */
#captcha-container {
  background: var(--sand-100);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-sm);
}

.form-error {
  font-size: 0.875rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: none; /* shown by JS when not empty */
}

.form-error:not(:empty) {
  display: block;
}

/* Success state — JS replaces form innerHTML with <p> */
#l8t-contact-form > p {
  font-size: 1rem;
  color: var(--green-800);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  padding: 20px 24px;
  line-height: 1.7;
}

.contact-submit-btn {
  align-self: flex-start;
  padding: 12px 28px;
  background: var(--green-700);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: background 0.15s;
}

.contact-submit-btn:hover {
  background: var(--green-900);
}

.contact-submit-btn:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .form-row--two {
    grid-template-columns: 1fr;
  }
}
