:root {
  --pm-ink: #102b3a;
  --pm-muted: #526975;
  --pm-accent: #00686e;
  --pm-accent-dark: #005157;
  --pm-border: #d8e5e8;
  --pm-surface: #f2f7f8;
}
body.pm-site { min-height: 100vh; display: flex; flex-direction: column; margin: 0; color: var(--pm-ink); background: var(--pm-surface); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.pm-main { flex: 1; min-width: 0; }
.pm-wrap { max-width: 1440px; }
.pm-header { background: #fff; border-bottom: 1px solid var(--pm-border); }
.pm-header .navbar { min-height: 70px; }
.pm-brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 760; letter-spacing: -.035em; color: var(--pm-ink); }
.pm-brand-mark { display: inline-grid; width: 36px; height: 36px; border-radius: 11px; place-items: center; color: #fff; background: var(--pm-accent); }
.pm-brand-mark svg { width: 23px; height: 23px; }
.pm-header .nav-link { color: var(--pm-muted); font-weight: 600; border-radius: 8px; padding: .55rem .75rem; }
.pm-header .nav-link:hover, .pm-header .nav-link.active { background: #e7f4f3; color: var(--pm-accent-dark); }
.pm-site .btn-primary { --bs-btn-bg: var(--pm-accent); --bs-btn-border-color: var(--pm-accent); --bs-btn-hover-bg: var(--pm-accent-dark); --bs-btn-hover-border-color: var(--pm-accent-dark); --bs-btn-active-bg: var(--pm-accent-dark); --bs-btn-active-border-color: var(--pm-accent-dark); --bs-btn-focus-shadow-rgb: 0, 104, 110; }
.pm-site button[aria-pressed="true"] { background: var(--pm-accent); border-color: var(--pm-accent); color: #fff; }
.pm-header .btn, .pm-footer a, .pm-crumbs a { white-space: nowrap; }
.pm-footer { background: #102b3a; color: #dce9ed; margin-top: 3rem; }
.pm-footer a { color: #e9f6f7; text-underline-offset: .22em; }
.pm-crumbs { padding-top: 1.05rem; padding-bottom: .65rem; }
.pm-crumbs .breadcrumb { --bs-breadcrumb-divider: "›"; font-size: .875rem; margin: 0; }
.pm-crumbs a { color: var(--pm-accent-dark); white-space: normal; }
.pm-hero { padding: clamp(1.15rem, 4vw, 3.4rem) 0 clamp(1.2rem, 3vw, 2.2rem); }
.pm-hero h1 { font-size: clamp(2.05rem, 5vw, 4.125rem); font-weight: 770; letter-spacing: -.055em; line-height: 1.02; margin: 0 0 .65rem; }
.pm-hero p { font-size: clamp(1rem, 1.7vw, 1.16rem); color: var(--pm-muted); margin: 0; }
.pm-welcome { margin-top: clamp(2rem, 8vw, 6rem); padding: clamp(1.35rem, 5vw, 3.5rem); max-width: 940px; background: linear-gradient(120deg,#fff,#e3f1ed); border: 1px solid var(--pm-border); border-radius: 22px; }
.pm-welcome .btn { margin-top: 1.35rem; }
.pm-panel { min-width: 0; background: #fff; border: 1px solid var(--pm-border); border-radius: 17px; }
.pm-map-panel { overflow: hidden; }
.pm-map-toolbar { padding: .75rem; border-bottom: 1px solid var(--pm-border); }
.pm-map-toolbar label { margin: 0; color: var(--pm-muted); font-size: .85rem; font-weight: 650; }
.pm-map-toolbar .form-select, .pm-map-toolbar .form-control { width: auto; min-width: 0; }
.pm-map-area { position: relative; min-height: 400px; }
.pm-map { min-height: 400px; height: min(73vh, 790px); background: #deebeb; }
.pm-map-error { position: absolute; inset: 0; background: #edf5f5; color: var(--pm-ink); display: grid; place-content: center; padding: 1.25rem; text-align: center; z-index: 2; }
.pm-map-error[hidden] { display: none; }
.pm-map-note { min-height: 2.35rem; padding: .5rem .85rem; font-size: .84rem; color: var(--pm-muted); }
.pm-map-note:empty { display: none; }
.pm-map .maplibregl-popup-content { border-radius: 12px; padding: .85rem 1.2rem .85rem .9rem; }
.pm-map .maplibregl-popup-close-button { font-size: 1.15rem; min-width: 23px; }
.pm-map .maplibregl-popup-content a { color: var(--pm-accent-dark); }
.pm-catalog-list { overflow: hidden; }
.pm-list-top, .pm-list-bottom { padding: 1rem; }
.pm-list-top { border-bottom: 1px solid var(--pm-border); }
.pm-list-top h2 { font-size: 1.25rem; font-weight: 730; letter-spacing: -.025em; margin: 0; }
.pm-list-top .form-control { background: #fff; border-color: #afc7cd; }
.pm-count { display: inline-flex; align-items: center; background: #e2f2ef; color: var(--pm-accent-dark); border-radius: 40px; font-weight: 720; padding: .25rem .65rem; white-space: nowrap; }
.pm-list-status { color: var(--pm-muted); font-size: .85rem; margin: .55rem 0 0; }
.pm-results { margin: 0; padding: 0; list-style: none; max-height: min(52vh, 555px); min-height: 11rem; overflow: auto; }
.pm-result { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid #e7eff1; }
.pm-result:focus-within, .pm-result:hover { background: #f2f9f8; }
.pm-result.is-selected { background: #e1f1ef; }
.pm-result-select { min-width: 0; padding: .85rem .55rem .85rem 1rem; text-align: left; color: var(--pm-ink); border: 0; background: transparent; font: inherit; text-decoration: none; }
.pm-result-select:hover { color: var(--pm-accent-dark); }
.pm-result-title { display: block; font-size: .96rem; font-weight: 680; line-height: 1.35; overflow-wrap: anywhere; }
.pm-result-detail { display: block; color: var(--pm-muted); font-size: .83rem; margin-top: .3rem; overflow-wrap: anywhere; }
.pm-result-more { padding: .75rem 1rem .75rem .45rem; color: var(--pm-accent-dark); }
.pm-empty { padding: 1rem; color: var(--pm-muted); }
.pm-list-bottom { border-top: 1px solid var(--pm-border); }
.pm-list-bottom .btn { min-width: 2.75rem; }
.pm-pool-form .form-control { background: #fff; border-color: #afc7cd; }
.pm-pool-form label { font-weight: 650; }
.pm-pool-form [data-error], .pm-pool-form [data-validation-error] { color: #a02222; }
.pm-pool-form [data-success] { color: var(--pm-accent-dark); }
.pm-pool-form [data-error]:empty, .pm-pool-form [data-validation-error]:empty, .pm-pool-form [data-success]:empty { display: none; }
.pm-picker .pm-map { height: min(74vh, 800px); }
.pm-toast-container { z-index: 1090; max-width: 100vw; }
.pm-toast-container .toast { max-width: 100%; }
.pm-detail .pm-hero h1 { font-size: clamp(1.7rem, 3.8vw, 3rem); overflow-wrap: anywhere; }
.pm-detail .pm-map { height: clamp(365px, 64vh, 690px); min-height: 0; }
.pm-detail .pm-map-area { min-height: 0; }
.pm-detail .pm-map { position: relative; overflow: hidden; }
.pm-raster-tiles, .pm-raster-pin { position: absolute; pointer-events: none; }
.pm-raster-tiles { inset: 0; }
.pm-raster-tiles img { position: absolute; max-width: none; }
.pm-raster-pin { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; background: var(--pm-accent); box-shadow: 0 0 0 2px #102b3a8c; }
.pm-raster-attribution { position: absolute; bottom: 0; right: 0; font-size: .75rem; color: var(--pm-ink); background: #ffffffed; padding: .15rem .35rem; }
.pm-detail-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: .55rem .75rem; }
.pm-detail-fields dt { color: var(--pm-muted); font-weight: 600; }
.pm-detail-fields dd { margin: 0; overflow-wrap: anywhere; }
.pm-detail-comment { white-space: pre-wrap; overflow-wrap: anywhere; }
.pm-depth .form-control { max-width: 9rem; }
.pm-care-result { background: var(--pm-surface); }
.pm-care-result a { color: var(--pm-accent-dark); }
.pm-weather-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(107px, 1fr)); gap: .5rem; list-style: none; padding: 0; margin: 0 0 .7rem; }
.pm-weather-grid:empty { display: none; }
.pm-weather-day { display: grid; gap: .2rem; background: var(--pm-surface); padding: .55rem .65rem; border: 1px solid var(--pm-border); border-radius: 10px; }
.pm-weather-day time { color: var(--pm-muted); }
.pm-site :focus-visible { outline: 2px solid #087782; outline-offset: 2px; }
.pm-layout > * { min-width: 0; }
@media (min-width: 992px) {
  .pm-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px, 375px); gap: 1rem; align-items: start; }
  .pm-detail-map { width: 70.833333%; }
  .pm-detail-parameters { width: 29.166667%; }
}
@media (max-width: 991.98px) {
  .pm-layout { display: flex; flex-direction: column; gap: .9rem; }
  .pm-layout > * { width: 100%; }
  .pm-map, .pm-map-area { min-height: 315px; }
  .pm-map, .pm-picker .pm-map, .pm-detail .pm-map { height: clamp(315px, 61vh, 520px); }
  .pm-results { max-height: 26rem; }
}
@media (max-width: 575.98px) {
  .pm-layout[data-view="map"] .pm-catalog-list, .pm-layout[data-view="list"] .pm-map-panel { display: none; }
  .pm-map-toolbar { gap: .5rem !important; }
  .pm-map-toolbar .form-select { max-width: 12rem; }
  .pm-header .navbar { min-height: 62px; }
}
