.cer-finder-hero {
  padding: 56px 0 42px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, #0f172a, #166534);
  color: #fff;
}
.cer-finder-hero .container { max-width: 1240px; }
.cer-finder-hero .section-badge { margin-bottom: 18px; }
.cer-finder-hero .section-title { max-width: 820px; margin-bottom: 12px; color: #fff; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.12; }
.cer-finder-hero .section-subtitle { max-width: 780px; margin: 0; color: rgba(255,255,255,.86); font-size: 1.08rem; line-height: 1.7; }
.cer-finder-content { padding-top: 42px; }
.finder-editorial {
  max-width: 980px;
  margin: 0 auto 28px;
  padding: 28px 34px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--color-primary);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.finder-editorial h2 { margin: 0 0 12px; color: var(--color-navy); font-size: 1.2rem; }
.finder-editorial p, .finder-editorial li { color: var(--color-navy-muted); line-height: 1.7; }
.finder-editorial ol { display: grid; gap: 7px; margin: 0; padding-left: 22px; }
.finder-workspace {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.5fr);
  gap: 24px;
  align-items: stretch;
}
.finder-controls-card, .finder-map-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}
.finder-controls-card { padding: 28px; }
.finder-controls-card .section-badge { margin-bottom: 14px; }
.finder-controls-card h2, .finder-map-heading h2 { margin: 0 0 10px; color: var(--color-navy); font-size: 1.35rem; line-height: 1.3; }
.finder-controls-card > p { margin: 0 0 20px; color: var(--color-navy-muted); font-size: .94rem; line-height: 1.65; }
.finder-code-form label { display: block; margin-bottom: 8px; color: var(--color-navy); font-size: .88rem; font-weight: 700; }
.finder-code-field { display: flex; flex-wrap: wrap; gap: 10px; }
.finder-code-field input {
  flex: 1 1 160px;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: var(--color-navy);
  font-size: .95rem;
  text-transform: uppercase;
}
.finder-code-field input:focus { outline: 3px solid rgba(34, 197, 94, .2); border-color: var(--color-primary); }
.finder-code-field .btn { justify-content: center; min-height: 48px; padding: 11px 17px; cursor: pointer; }
.finder-controls-card .finder-control-help { margin: 10px 0 18px; color: #64748b; font-size: .81rem; line-height: 1.55; }
.finder-control-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.finder-control-actions .btn { justify-content: center; text-align: center; }
.finder-location-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.finder-location-button:hover { background: #dcfce7; }
.finder-location-button:disabled { cursor: wait; opacity: .65; }
.finder-controls-card .finder-data-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #e2e8f0; color: #64748b; font-size: .75rem; line-height: 1.55; }
.finder-data-note a { color: var(--color-primary-dark); text-decoration: underline; }
.finder-map-card { display: flex; flex-direction: column; }
.finder-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #e2e8f0; }
.finder-map-heading h2 { margin: 3px 0 0; font-size: 1rem; }
.finder-map-eyebrow { color: #64748b; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.finder-map-mark { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid #bbf7d0; border-radius: 12px; background: #f0fdf4; color: #15803d; font-size: .8rem; font-weight: 800; }
.radicer-gse-map { width: 100%; height: clamp(430px, 48vw, 620px); min-height: 360px; background: #e8f0ec; }
.radicer-gse-map.is-unavailable { display: grid; place-items: center; padding: 24px; color: #64748b; text-align: center; }
.radicer-gse-map .leaflet-interactive { cursor: pointer; }
.finder-map-status { min-height: 46px; padding: 12px 18px; border-top: 1px solid #e2e8f0; color: #475569; font-size: .82rem; line-height: 1.5; }
.finder-map-status--sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.finder-map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 11px 18px; border-top: 1px solid #f1f5f9; color: #64748b; font-size: .74rem; }
.finder-map-legend-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.finder-map-legend-mark { display: inline-block; width: 13px; height: 13px; flex: 0 0 13px; box-sizing: border-box; border: 1px solid; border-radius: 3px; }
.finder-map-legend-mark--boundary { border-color: #94a3b8; background: rgba(203, 213, 225, .25); }
.finder-map-legend-mark--active { border-color: #16a34a; background: rgba(34, 197, 94, .42); }
.finder-map-legend-mark--pending { border-color: #ca8a04; background: rgba(250, 204, 21, .48); }
.finder-map-attribution { margin-left: auto; text-align: right; }
.radicer-map-popup { display: grid; gap: 4px; color: var(--color-navy); font-family: var(--font-main); }
.radicer-map-popup strong { font-size: .92rem; }
.radicer-map-popup span { color: #64748b; font-size: .78rem; }
.finder-result {
  max-width: 980px;
  margin: 26px auto 0;
  padding: 26px 30px;
  border: 1px solid #bbf7d0;
  border-left: 5px solid #16a34a;
  border-radius: 16px;
  background: #f0fdf4;
  box-shadow: var(--shadow-sm);
}
.finder-result[hidden] { display: none; }
.finder-result-eyebrow { color: #15803d; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.finder-result h2 { margin: 5px 0 8px; color: var(--color-navy); font-size: 1.3rem; }
.finder-result-message { margin: 0 0 10px; color: #334155; line-height: 1.65; }
.finder-result-list { display: grid; gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.finder-result-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; padding: 12px 14px; border: 1px solid #dcfce7; border-radius: 10px; background: #fff; }
.finder-result-list a { color: #166534; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.finder-result-location { color: #64748b; font-size: .85rem; }
.finder-result-note { margin: 10px 0 0; color: #64748b; font-size: .82rem; line-height: 1.6; }
.finder-result > .btn { display: inline-flex; margin-top: 8px; }

/* The official GSE POD lookup and the independent, zoomable AC map share one
   map-first panel. The official app stays the source for POD/address results. */
.cer-finder-hero { padding-top: 126px; }
.finder-map-feature { margin-bottom: 26px; }
.finder-map-heading { align-items: flex-start; }
.finder-map-heading > div { min-width: 0; }
.finder-map-heading .finder-map-intro { max-width: 850px; margin: 8px 0 0; color: var(--color-navy-muted); font-size: .9rem; line-height: 1.6; }
.finder-map-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.finder-map-tab { min-height: 42px; padding: 9px 16px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #334155; font-size: .86rem; font-weight: 700; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.finder-map-tab:hover { border-color: #86efac; color: #166534; }
.finder-map-tab.is-active { border-color: #15803d; background: #15803d; color: #fff; box-shadow: 0 4px 12px rgba(21,128,61,.18); }
.finder-map-tab:focus-visible { outline: 3px solid rgba(34,197,94,.28); outline-offset: 2px; }
.finder-map-panel[hidden] { display: none !important; }
.finder-gse-iframe { display: block; width: 100%; height: min(680px, 72vh); min-height: 520px; border: 0; background: #f1f5f9; }
.finder-gse-fallback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; padding: 16px 20px; border-top: 1px solid #e2e8f0; background: #f8fafc; }
.finder-gse-fallback p { flex: 1 1 340px; margin: 0; color: #64748b; font-size: .82rem; line-height: 1.55; }
.finder-gse-fallback .btn { min-height: 42px; padding: 10px 17px; }
.finder-coverage-card { margin: 0 0 26px; }
.finder-coverage-card .section-badge { margin-bottom: 12px; }
.finder-coverage-card > p { max-width: 920px; }
.finder-coverage-card .finder-code-form { max-width: 800px; margin-top: 24px; }
.finder-coverage-card .finder-code-field { flex-wrap: nowrap; }
.finder-coverage-card .finder-code-field input { min-width: 220px; }
.finder-coverage-card .finder-control-help { max-width: 800px; }
.finder-coverage-card .finder-control-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
.finder-coverage-card .finder-control-actions > * { flex: 0 1 auto; }
.finder-coverage-card .finder-data-note { max-width: 920px; }
.radicer-gse-map { cursor: grab; }
.radicer-gse-map:active { cursor: grabbing; }
.finder-editorial { margin-top: 26px; }

@media (max-width: 900px) {
  .finder-workspace { grid-template-columns: minmax(0, 1fr); }
  .finder-controls-card { order: 1; }
  .finder-map-card { order: 2; }
  .radicer-gse-map { height: 520px; }
}
@media (max-width: 600px) {
  .cer-finder-hero { padding: 112px 0 30px; }
  .cer-finder-hero .section-title { font-size: clamp(2rem, 9vw, 2.7rem); }
  .cer-finder-hero .section-subtitle { font-size: .98rem; }
  .cer-finder-content { padding: 26px 0 54px; }
  .finder-editorial { margin-bottom: 18px; padding: 20px; }
  .finder-controls-card { padding: 21px; }
  .finder-map-heading { padding: 16px; }
  .finder-map-tabs { gap: 8px; padding: 12px; }
  .finder-map-tab { flex: 1 1 100%; text-align: center; }
  .finder-gse-iframe { height: 65vh; min-height: 460px; }
  .finder-gse-fallback { align-items: stretch; padding: 14px 16px; }
  .finder-gse-fallback .btn { width: 100%; }
  .finder-coverage-card .finder-code-field { flex-wrap: wrap; }
  .finder-coverage-card .finder-code-field input,
  .finder-coverage-card .finder-code-field .btn { width: 100%; min-width: 0; }
  .finder-coverage-card .finder-control-actions { flex-direction: column; align-items: stretch; }
  .finder-coverage-card .finder-control-actions > * { width: 100%; }
  .radicer-gse-map { height: 430px; min-height: 380px; }
  .finder-map-legend { flex-wrap: wrap; }
  .finder-map-attribution { flex-basis: 100%; margin-left: 0; text-align: left; }
  .finder-result { margin-top: 18px; padding: 21px; }
  .finder-result-list li { flex-direction: column; }
}


.finder-map-search-prompt { margin: 0 0 10px; color: var(--color-navy); font-size: .92rem; line-height: 1.5; }
.finder-map-search .finder-map-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.finder-map-search .finder-map-tab { width: auto; min-width: 0; min-height: 46px; padding: 10px 14px; text-align: center; white-space: normal; }
.finder-map-search-form label { font-size: .88rem; }
.finder-map-search-help { font-size: .84rem; line-height: 1.55; }
.finder-map-address-controls { margin-top: 10px; }
.finder-map-address-controls[hidden] { display: none !important; }
.finder-map-address-controls .finder-location-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.finder-map-address-controls .finder-location-button span { font-size: 1rem; line-height: 1; }
@media (max-width: 600px) {
  .finder-map-search .finder-map-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .finder-map-search .finder-map-tab { min-height: 44px; padding: 9px 8px; font-size: .78rem; }
  .finder-map-search-help { font-size: .82rem; }
  .finder-map-address-controls .finder-location-button { width: 100%; }
}
/* Search controls embedded in the existing map card, with plugin results styled to match. */
.finder-map-search { padding: 14px 20px 16px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.finder-map-search .finder-map-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; border: 0; background: transparent; }
.finder-map-search-form label { display: block; margin-bottom: 7px; color: var(--color-navy); font-size: .82rem; font-weight: 700; }
.finder-map-search-field { display: flex; gap: 10px; }
.finder-map-search-field input { flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--color-navy); font: inherit; font-size: .9rem; }
.finder-map-search-field input:focus { outline: 3px solid rgba(34,197,94,.2); border-color: var(--color-primary); }
.finder-map-search-field .btn { flex: 0 0 auto; min-height: 46px; justify-content: center; padding: 10px 17px; cursor: pointer; }
.finder-map-search-field .btn:disabled { cursor: wait; opacity: .7; }
.finder-map-search-help { margin: 8px 0 0; color: #64748b; font-size: .76rem; line-height: 1.45; }
.finder-result .rcf-finder__message { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #fff; color: #334155; line-height: 1.6; }
.finder-result .rcf-finder__configuration-list { display: grid; gap: 9px; margin: 12px 0; }
.finder-result .rcf-finder__configuration { padding: 14px 16px; border: 1px solid #dcfce7; border-radius: 11px; background: #fff; }
.finder-result .rcf-finder__configuration h3 { margin: 0 0 7px; color: var(--color-navy); font-size: 1rem; }
.finder-result .rcf-finder__configuration p { margin: 5px 0 0; color: #475569; font-size: .88rem; line-height: 1.55; }
.finder-result .rcf-finder__configuration a { color: #166534; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.finder-result .rcf-finder__profile-link { margin-top: 9px !important; }
.finder-result .rcf-finder__contact a { display: inline-flex; margin-top: 6px; padding: 10px 15px; border-radius: 999px; background: #15803d; color: #fff; font-weight: 700; text-decoration: none; }
@media (max-width: 600px) {
  .finder-map-search { padding: 13px 12px 14px; }
  .finder-map-search-field { flex-direction: column; }
  .finder-map-search-field .btn { width: 100%; }
}

.finder-result .finder-result__action { display: inline-flex; align-items: center; justify-content: center; margin: 10px 0 4px; padding: 11px 20px; border-radius: 999px; background: #15803d; color: #fff !important; font-weight: 700; text-decoration: none !important; box-shadow: 0 6px 16px rgba(0,105,52,.18); transition: transform .18s, background .18s; }
.finder-result .finder-result__action:hover { background: #116b35; transform: translateY(-2px); }
@media (max-width: 600px) { .finder-result .finder-result__action { width: 100%; box-sizing: border-box; } }
/* Ricerca per indirizzo o POD */
.finder-map-search-prompt { margin: 0 0 10px; color: var(--color-navy); font-size: .92rem; line-height: 1.5; }
.finder-map-search .finder-map-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.finder-map-search .finder-map-tab { flex: 1 1 0; width: auto; min-width: 0; min-height: 46px; padding: 10px 14px; text-align: center; white-space: normal; }
.finder-map-search-form label { font-size: .88rem; }
.finder-map-search-help { font-size: .84rem; line-height: 1.55; }
.finder-map-address-controls { margin-top: 10px; }
.finder-map-address-controls[hidden] { display: none !important; }
.finder-map-address-controls .finder-location-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.finder-map-address-controls .finder-location-button span { font-size: 1rem; line-height: 1; }
@media (max-width: 600px) {
  .finder-map-search .finder-map-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .finder-map-search .finder-map-tab { min-height: 44px; padding: 9px 8px; font-size: .78rem; }
  .finder-map-search-help { font-size: .82rem; }
  .finder-map-address-controls .finder-location-button { width: 100%; }
}

/* Autocomplete used by the RadiCER address and POD search. */
.finder-map-feature { position: relative; overflow: visible; }
.finder-map-feature > .finder-map-heading { border-radius: 16px 16px 0 0; }
.finder-map-feature > .finder-map-panel { overflow: hidden; border-radius: 0 0 16px 16px; }
.cer-finder-step > h2.cer-finder-step-intro { margin: 0 0 28px; color: var(--color-navy); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; line-height: 1.35; }
.finder-map-search-field { align-items: flex-start; }
.finder-map-autocomplete { position: relative; flex: 1 1 auto; min-width: 0; z-index: 20; }
.finder-map-autocomplete input { display: block; width: 100%; box-sizing: border-box; }
.finder-map-suggestions { position: absolute; z-index: 1200; top: calc(100% + 5px); left: 0; right: 0; max-height: 280px; overflow-y: auto; border: 1px solid #d5dde8; border-radius: 0 0 10px 10px; background: #fff; box-shadow: 0 12px 28px rgba(15, 23, 42, .18); }
.finder-map-suggestions[hidden] { display: none !important; }
.finder-map-suggestion { display: flex; width: 100%; flex-direction: column; gap: 3px; padding: 10px 14px; border: 0; border-bottom: 1px solid #edf1f5; background: #fff; color: var(--color-navy); font: inherit; text-align: left; cursor: pointer; }
.finder-map-suggestion:last-child { border-bottom: 0; }
.finder-map-suggestion:hover, .finder-map-suggestion:focus-visible { outline: 0; background: #f0fdf4; }
.finder-map-suggestion-label { font-size: .88rem; font-weight: 600; }
.finder-map-suggestion-detail, .finder-map-suggestion-message { color: #64748b; font-size: .76rem; line-height: 1.45; }
.finder-map-suggestion-message { padding: 12px 14px; }
@media (max-width: 600px) {
  .finder-map-search-field { gap: 9px; }
  .finder-map-autocomplete { width: 100%; flex-basis: auto; }
  .finder-map-suggestions { max-height: 240px; }
  .cer-finder-step > h2.cer-finder-step-intro { margin-bottom: 20px; font-size: clamp(1.18rem, 5vw, 1.4rem); }
  .finder-map-legend { gap: 8px 14px; padding: 10px 12px; font-size: .7rem; }
  .finder-map-attribution { flex-basis: 100%; margin-left: 0; text-align: left; }
}
