:root { color-scheme: light; }
body { margin: 0; background: #f5f7f5; color: #102b32; }
.essentials-main { max-width: 1600px; margin: 0 auto; padding: 20px 22px 36px; }
.essentials-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 2px 0 20px; }
.essentials-eyebrow { margin: 0 0 5px; color: #0c746f; font-weight: 750; text-transform: uppercase; font-size: 14px; }
.essentials-heading h1 { margin: 0; font-size: clamp(28px, 2.4rem, 36px); line-height: 1.1; }
.essentials-heading p:last-child { margin: 8px 0 0; color: #426068; }
.essentials-back { flex: none; color: #006d73; font-weight: 700; }
.essentials-workspace { display: grid; grid-template-columns: minmax(300px, 370px) minmax(0, 1fr); min-height: 670px; border: 1px solid #c9d9d8; background: white; }
.essentials-panel { min-width: 0; border-right: 1px solid #c9d9d8; display: flex; flex-direction: column; }
#place-search { display: grid; gap: 9px; padding: 20px; border-bottom: 1px solid #e3ebea; }
#place-search label { color: #163b42; font-weight: 700; font-size: 15px; }
#place-search input, #place-search select { width: 100%; min-height: 48px; padding: 9px 12px; background: white; border: 1px solid #aabfbd; border-radius: 5px; color: #102b32; font: inherit; font-size: 17px; }
#place-search button, #search-view { min-height: 44px; padding: 8px 14px; border: 1px solid #08747a; border-radius: 5px; background: #08747a; color: white; font: inherit; font-weight: 700; cursor: pointer; }
#place-search button:hover, #search-view:hover { background: #075e63; }
#place-search button:focus-visible, #search-view:focus-visible, .essentials-result button:focus-visible { outline: 3px solid #eeb44d; outline-offset: 2px; }
.essentials-status { margin: 0; padding: 14px 20px; color: #425f65; font-size: 15px; border-bottom: 1px solid #e3ebea; }
.essentials-results { overflow: auto; max-height: 620px; }
.essentials-result { padding: 14px 20px; border-bottom: 1px solid #e3ebea; }
.essentials-result h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; }
.essentials-result p { margin: 4px 0; color: #3c5960; font-size: 15px; }
.essentials-result .essentials-type { color: #08747a; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.essentials-result nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; }
.essentials-result a { color: #006d73; font-weight: 650; font-size: 15px; }
.essentials-result button { padding: 5px 9px; border: 1px solid #aabfbd; border-radius: 4px; background: white; color: #0d6469; font: inherit; font-size: 15px; cursor: pointer; }
.essentials-map-wrap { min-width: 0; display: flex; flex-direction: column; }
.essentials-map-toolbar { min-height: 54px; padding: 6px 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid #c9d9d8; font-size: 15px; }
#search-view { background: white; color: #08747a; }
#search-view:hover { background: #eaf4f2; }
.essentials-map { min-height: 560px; flex: 1; background: #d9e8e6; }
.essentials-attribution { margin: 0; padding: 10px 14px; color: #38565b; background: #f7fbfa; border-top: 1px solid #c9d9d8; font-size: 13px; line-height: 1.5; }
.essentials-attribution a { color: #006d73; }
.leaflet-popup-content { font: 15px/1.4 Inter, Arial, sans-serif; }
.leaflet-popup-content strong { display: block; font-size: 17px; }
@media (max-width: 800px) {
  .essentials-main { padding: 14px 12px 28px; }
  .essentials-heading { display: block; }
  .essentials-back { display: inline-block; margin-top: 10px; }
  .essentials-workspace { display: flex; flex-direction: column; }
  .essentials-panel { display: contents; }
  #place-search { order: 1; }
  .essentials-map-wrap { order: 2; }
  .essentials-status { order: 3; }
  .essentials-results { order: 4; }
  .essentials-map { min-height: 330px; height: 48vh; flex: none; }
  .essentials-results { max-height: none; }
}
@media (max-width: 360px) {
  .essentials-main { padding-left: 8px; padding-right: 8px; }
  .essentials-map-toolbar { align-items: start; }
  #search-view { padding-left: 8px; padding-right: 8px; }
}
