/* Directory workspace: constrained desktop panes, independent mobile views. */
.cmpde-explorer {
    width: min(1840px, calc(100% - 40px));
    padding: 12px 0 24px;
    --cmpde-shadow: 0 4px 16px rgba(7,20,63,.06);
}
.cmpde-explorer [hidden], .cmpde-location-editor [hidden] { display: none !important; }
.cmpde-explorer > .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cmpde-explorer .cmpde-selected-card::before { display: none; }
.cmpde-explorer .cmpde-hero {
    grid-template-columns: minmax(0,1fr) 310px;
    min-height: 168px;
    padding: 22px 30px;
    gap: 24px;
    align-items: center;
    box-shadow: none;
}
.cmpde-explorer .cmpde-hero::before { background: linear-gradient(100deg,rgba(7,22,83,.88),rgba(7,22,83,.64) 55%,rgba(8,127,224,.36)); }
.cmpde-explorer .cmpde-hero::after { display: none; }
.cmpde-explorer .cmpde-hero h1 { font-size: 30px; line-height: 1.12; margin: 0; max-width: 900px; letter-spacing: 0; }
.cmpde-explorer .cmpde-hero p { font-size: 14px; line-height: 1.4; margin-top: 8px; }
.cmpde-explorer .cmpde-eyebrow { margin-bottom: 8px; min-height: 20px; font-size: 10px; }
.cmpde-explorer .cmpde-hero__panel { display: grid; grid-template-columns: 1fr 1fr; padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; }
.cmpde-explorer .cmpde-hero__metric { grid-template-columns: 26px 1fr; padding: 12px; min-height: 80px; gap: 4px 8px; border-radius: 6px; animation: none; background: rgba(10,30,70,.28); }
.cmpde-explorer .cmpde-hero__metric-icon { width: 24px; height: 28px; font-size: 20px; border: 0; background: none; line-height: 28px; grid-row: 1 / 3; }
.cmpde-explorer .cmpde-hero__metric strong { font-size: 32px; }
.cmpde-explorer .cmpde-hero__metric-label { font-size: 12px; }
.cmpde-explorer .cmpde-hero__metric small { display: none; }
.cmpde-explorer #cmp-logo-marquees { --logo-h: 62px; --gap: 56px; padding: 6px 0; }
.cmpde-explorer .cmpde-workspace { margin-top: 16px; gap: 16px; grid-template-columns: 230px minmax(0,1fr); }
.cmpde-explorer .cmpde-workspace.has-sponsor-rail { grid-template-columns: 220px minmax(0,1fr) 220px; }
.cmpde-explorer .cmpde-results { gap: 12px; min-width: 0; min-height: 0; }
.cmpde-explorer .cmpde-filters { padding: 14px 10px; box-shadow: none; background: #fff; }
.cmpde-explorer .cmpde-filter-title { padding: 0 8px; font-size: 12px; }
.cmpde-explorer .cmpde-chips { gap: 3px; }
.cmpde-explorer .cmpde-chips button { font-size: 12px; font-weight: 600; line-height: 1.4; text-transform: none; margin: 0; padding: 10px 8px; border-color: transparent; min-height: 42px; border-radius: 5px; letter-spacing: 0; }
.cmpde-explorer .cmpde-chips button > span:not(.cmpde-cluster-icon) { flex: 1; }
.cmpde-explorer .cmpde-chips button b { font-size: 11px; min-width: 26px; height: 24px; }
.cmpde-cluster-icon { display: inline-grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--cmpde-cluster-color,#405b67); color: var(--cmpde-cluster-ink,#fff); box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 2px 6px rgba(13,39,62,.12); }
.cmpde-cluster-icon svg { display: block; width: 17px; height: 17px; stroke: currentColor; }
.cmpde-explorer .cmpde-chips button .cmpde-cluster-icon { flex: 0 0 26px; width: 26px; height: 26px; }
.cmpde-explorer .cmpde-chips button .cmpde-cluster-icon svg { width: 15px; height: 15px; }
.cmpde-explorer .cmpde-toolbar { grid-template-columns: minmax(180px,1.6fr) minmax(150px,1fr) 90px 36px; gap: 10px; padding: 10px 12px; box-shadow: none; }
.cmpde-explorer .cmpde-toolbar__field input, .cmpde-explorer .cmpde-toolbar__field select { height: 40px; min-height: 40px; margin: 0; border-radius: 8px; box-shadow: none; font-size: 13px; font-weight: 500; }
.cmpde-explorer .cmpde-toolbar__field span { font-size: 10px; font-weight: 700; }
.cmpde-explorer button.cmpde-expand, .cmpde-map-heading button, .cmpde-selection-heading button {
    display: inline-grid; place-items: center; width: 36px; height: 36px; min-height: 36px; padding: 0; margin: 0;
    border: 1px solid #dbe2ea; background: #fff; border-radius: 6px; color: #17426b; cursor: pointer;
}
.cmpde-explorer button:focus-visible, .cmpde-explorer a:focus-visible, .cmpde-explorer .cmpde-grid:focus-visible { outline: 3px solid #159cad; outline-offset: 2px; }
.cmpde-explorer .cmpde-map-panel { position: relative; display: grid; grid-template-rows: 38px minmax(0,1fr); gap: 0; min-height: 0; height: 290px; border: 1px solid #d9e3e9; border-radius: 8px; overflow: hidden; background: #e9f0f2; }
.cmpde-map-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 14px; color: #1b3b46; background: #fff; }
.cmpde-map-heading strong { font-size: 12px; }
.cmpde-map-heading button { width: 28px; height: 28px; min-height: 28px; border: 0; }
.cmpde-explorer .cmpde-map-panel__canvas { position: relative; display: block; width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; background: #e7eef0; z-index: 0; }
.cmpde-explorer .cmpde-map-panel__canvas::before, .cmpde-explorer .cmpde-map-panel__canvas::after { display: none; }
.cmpde-map-status { position: absolute; left: 50%; bottom: 25px; transform: translateX(-50%); background: rgba(255,255,255,.96); border-radius: 5px; padding: 5px 10px; font-size: 11px; color: #365364; max-width: calc(100% - 80px); text-align: center; pointer-events: none; z-index: 401; box-shadow: 0 2px 8px #2342; }
.cmpde-map-pin { display: grid; place-items: center; border-radius: 50%; background: var(--sector-color); border: 2px solid #fff; box-shadow: 0 2px 7px #1237; overflow: hidden; }
.cmpde-map-pin img { width: 100% !important; height: 100% !important; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.cmpde-map-group { display: grid; place-items: center; width: 38px; height: 38px; border: 3px solid #fff; background: #234954; color: #fff; border-radius: 50%; font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px #1235; }
.cmpde-map-popup { font-family: 'Segoe UI',sans-serif; color: #153647; }
.cmpde-map-popup strong { display: block; font-size: 14px; }
.cmpde-map-popup p { margin: 7px 0 !important; font-size: 12px; line-height: 1.4; }
.cmpde-map-popup a { font-size: 12px; font-weight: 700; }
.cmpde-explorer .leaflet-control-attribution { font-size: 10px; line-height: 1.5; }
.cmpde-explorer .leaflet-control-zoom a { color: #234954; }
.cmpde-explorer .cmpde-grid { gap: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: max-content; align-content: start; }
.cmpde-explorer .cmpde-grid.is-empty { display: none !important; }
.cmpde-load-more { grid-column: 1/-1; display: flex; justify-content: center; padding: 12px 0 8px; }
.cmpde-explorer .cmpde-load-more__button { min-height: 44px; margin: 0; padding: 10px 24px; background: #fff; color: #123c64; border: 1px solid #bacbd9; border-radius: 8px; font-size: 14px; line-height: 1.4; text-transform: none; letter-spacing: 0; cursor: pointer; }
.cmpde-explorer .cmpde-load-more__button:hover { background: #edf7fa; border-color: #159cad; }
.cmpde-explorer .cmpde-card { box-shadow: 0 2px 5px #10263208; border-color: #dbe4ea; border-radius: 8px; }
.cmpde-explorer .cmpde-card__media { --cmpde-logo-height: 124px; height: 144px; min-height: 144px; flex-basis: 144px; background: #fff; padding: 10px; overflow: hidden; grid-template-rows: minmax(0,1fr); box-sizing: border-box; }
.cmpde-explorer .cmpde-card__media img { width: 100% !important; height: var(--cmpde-logo-height) !important; max-width: 100% !important; max-height: var(--cmpde-logo-height) !important; min-height: 0; object-fit: contain !important; position: static !important; transform: none !important; }
.cmpde-explorer .cmpde-card__body { display: grid; grid-template-rows: 48px 34px 30px 38px; height: 196px; flex: 0 0 196px; gap: 6px; padding: 14px; box-sizing: border-box; }
.cmpde-explorer .cmpde-card h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 48px; font-size: 18px; line-height: 1.3; min-height: 0; margin: 0; overflow: hidden; overflow-wrap: anywhere; }
.cmpde-explorer .cmpde-card__clusters { display: flex; flex-wrap: nowrap; gap: 5px; align-items: center; margin: 0; height: 34px; min-height: 34px; }
.cmpde-explorer .cmpde-card__cluster-btn, .cmpde-explorer .cmpde-card__cluster-more { display: inline-grid; flex: 0 0 32px; width: 32px; height: 32px; min-height: 32px; place-items: center; padding: 0; margin: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.cmpde-explorer .cmpde-card__cluster-btn .cmpde-cluster-icon { width: 30px; height: 30px; }
.cmpde-explorer .cmpde-card__cluster-more { background: #e8f0f5; color: #194569; font-size: 11px; font-weight: 700; }
.cmpde-explorer .cmpde-card__cluster-btn:hover, .cmpde-explorer .cmpde-card__cluster-more:hover { transform: translateY(-2px); }
.cmpde-explorer .cmpde-card__socials { align-self: center; min-height: 30px; height: 30px; gap: 5px; flex-wrap: nowrap; overflow: hidden; }
.cmpde-explorer .cmpde-social-link { width: 28px; height: 28px; flex: 0 0 28px; }
.cmpde-explorer .cmpde-card__actions { gap: 5px; align-self: stretch; padding: 0; }
.cmpde-explorer .cmpde-card__actions a, .cmpde-explorer .cmpde-card__actions button { margin: 0; min-height: 38px; height: 38px; }
.cmpde-explorer .cmpde-card__icon-link { flex: 0 0 32px; width: 32px; padding: 0; }
.cmpde-explorer .cmpde-card__link.is-primary { min-width: 90px; }
.cmpde-explorer .cmpde-card__link { font-size: 12px; }
.cmpde-explorer .cmpde-ad-rail { box-shadow: none; max-height: 100%; }
.cmpde-explorer .cmpde-sponsor-card { min-height: 160px; border-radius: 8px; }
.cmpde-mobile-views { display: none; }
.cmpde-explorer .cmpde-map-panel__selection { padding: 0; margin: 0; border: 0; border-radius: 0; background: none; overflow-y: auto; min-height: 0; }
.cmpde-selection-heading { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #d9e4e7; background: #eef6f7; border-radius: 6px; margin-bottom: 8px; }
.cmpde-selection-heading strong { font-size: 13px; color: #254957; }
.cmpde-selection-heading p { margin: 2px 0 0; font-size: 12px; color: #426472; }
.cmpde-selection-heading button { flex-shrink: 0; }
.cmpde-explorer.has-map-selection .cmpde-grid { display: none; }
.cmpde-explorer .cmpde-selected-card { display: grid; grid-template-columns: 160px 1fr; }
.cmpde-explorer .cmpde-selected-card .cmpde-card__media { --cmpde-logo-height: 140px; height: 160px; }
.cmpde-explorer .cmpde-selected-card .cmpde-card__body { display: flex; flex-direction: column; height: auto; min-height: 160px; }
.cmpde-explorer .cmpde-selected-card h2, .cmpde-explorer .cmpde-selected-card .cmpde-card__clusters { grid-column: 1/-1; }
.cmpde-explorer .cmpde-selected-card .cmpde-card__actions { grid-column: 1/-1; max-width: 400px; }
.cmpde-floating-info { position: fixed; z-index: 100001; width: max-content; max-width: min(280px,calc(100vw - 24px)); padding: 11px 13px; border: 1px solid #cbd9e0; border-radius: 6px; background: #fff; color: #1d3449; box-shadow: 0 12px 30px rgba(7,20,63,.18); font: 13px/1.4 Aptos,Manrope,Segoe UI,sans-serif; overflow-wrap: anywhere; }
.cmpde-floating-info[hidden] { display: none !important; }
.cmpde-floating-info strong, .cmpde-floating-info span { display: block; }
.cmpde-floating-info strong { margin-bottom: 4px; font-size: 11px; text-transform: uppercase; color: #517182; }
.cmpde-floating-info ul { margin: 4px 0 0 16px; padding: 0; }
.cmpde-floating-info li { margin: 3px 0; }
.cmpde-floating-info a { display: inline-block; margin-top: 8px; color: #006d9a; font-weight: 700; }
@media (min-width:1180px) {
    .cmpde-explorer { height: calc(100dvh - var(--cmpde-top,240px)); min-height: 620px; display: grid; grid-template-rows: auto minmax(0,1fr); }
    .cmpde-explorer .cmpde-workspace { min-height: 0; align-items: stretch; }
    .cmpde-explorer .cmpde-results { align-self: stretch; height: 100%; overflow: hidden; grid-template-rows: auto minmax(160px,.85fr) minmax(170px,1fr); }
    .cmpde-explorer .cmpde-map-panel { height: 100%; }
    .cmpde-explorer .cmpde-filters, .cmpde-explorer .cmpde-ad-rail { position: static; height: 100%; min-height: 0; max-height: 100%; overflow-y: auto; align-content: start; overscroll-behavior-y: contain; }
    .cmpde-explorer .cmpde-grid { min-height: 0; max-height: 100%; overflow-y: auto; overscroll-behavior-y: contain; padding: 0 5px 8px 0; }
    .cmpde-explorer .cmpde-map-panel__selection { overscroll-behavior-y: contain; }
    .cmpde-explorer .cmpde-empty { grid-row: 3; margin: 0; }
    .cmpde-explorer .cmpde-hero p { display: none; }
    .cmpde-explorer.is-expanded { position: fixed; inset: 0; height: 100dvh; min-height: 0; width: 100%; z-index: 99999; background: #f5f8fa; padding: 16px; }
}
@media (min-width:1600px) {
    .cmpde-explorer .cmpde-results { grid-template-rows: auto minmax(310px,1.35fr) minmax(170px,.9fr); }
    .cmpde-explorer .cmpde-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .cmpde-explorer .has-sponsor-rail .cmpde-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width:1180px) and (max-width:1440px) {
    .cmpde-explorer .cmpde-workspace { grid-template-columns: 190px minmax(0,1fr); }
    .cmpde-explorer .cmpde-workspace.has-sponsor-rail { grid-template-columns: 170px minmax(0,1fr) 180px; }
    .cmpde-explorer .has-sponsor-rail .cmpde-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:1179px) {
    .cmpde-explorer { width: calc(100% - 24px); }
    .cmpde-explorer .cmpde-workspace, .cmpde-explorer .cmpde-workspace.has-sponsor-rail { grid-template-columns: 1fr; }
    .cmpde-explorer .cmpde-filters { display: none; }
    .cmpde-explorer .cmpde-grid { max-height: none; overflow: visible; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .cmpde-explorer .cmpde-toolbar { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) 90px; }
    .cmpde-explorer button.cmpde-expand { display: none; }
    .cmpde-explorer .cmpde-ad-rail { position: static; max-height: none; }
}
@media (max-width:720px) {
    .cmpde-explorer { width: calc(100% - 20px); padding: 8px 0 20px; }
    .cmpde-explorer .cmpde-hero { grid-template-columns: 1fr; padding: 22px 18px; gap: 16px; min-height: 0; }
    .cmpde-explorer .cmpde-hero h1 { font-size: 25px; }
    .cmpde-explorer .cmpde-hero p { display: none; }
    .cmpde-explorer .cmpde-hero__panel { grid-template-columns: 1fr 1fr; gap: 10px; }
    .cmpde-explorer .cmpde-hero__metric { min-height: 68px; padding: 10px; }
    .cmpde-explorer .cmpde-hero__metric strong { font-size: 28px; }
    .cmpde-explorer #cmp-logo-marquees { --logo-h: 52px; --gap: 32px; }
    .cmpde-explorer .cmpde-toolbar { grid-template-columns: minmax(0,1fr) 85px; padding: 12px; gap: 12px; }
    .cmpde-explorer .cmpde-toolbar .is-search { grid-column: 1/-1; }
    .cmpde-explorer .cmpde-toolbar input, .cmpde-explorer .cmpde-toolbar select { font-size: 16px; }
    .cmpde-explorer .cmpde-results { display: flex; flex-direction: column; gap: 12px; }
    .cmpde-explorer .cmpde-toolbar { order: -2; }
    .cmpde-mobile-views { order: -1; display: flex; padding: 3px; background: #e8eef1; border-radius: 6px; }
    .cmpde-mobile-views button { display: flex; align-items: center; justify-content: center; flex: 1; gap: 7px; min-height: 40px; margin: 0; padding: 5px; border: 0; border-radius: 4px; color: #405763; background: transparent; font-size: 13px; }
    .cmpde-mobile-views button[aria-pressed="true"] { background: #fff; color: #0a4661; box-shadow: 0 2px 4px #1231; }
    .cmpde-explorer[data-view="list"] .cmpde-map-panel, .cmpde-explorer[data-view="list"] .cmpde-map-panel__selection { display: none; }
    .cmpde-explorer[data-view="list"] .cmpde-grid { display: grid; }
    .cmpde-explorer[data-view="map"] .cmpde-grid { display: none; }
    .cmpde-explorer .cmpde-map-panel { height: 340px; flex: 0 0 340px; }
    .cmpde-explorer .cmpde-grid { grid-template-columns: 1fr; }
    .cmpde-explorer .cmpde-card__media { --cmpde-logo-height: 148px; height: 168px; min-height: 168px; flex-basis: 168px; }
    .cmpde-explorer .cmpde-card__body { padding: 16px; height: 200px; flex-basis: 200px; }
    .cmpde-explorer .cmpde-card h2 { font-size: 20px; }
    .cmpde-explorer .cmpde-card__actions { display: flex; flex-direction: row; align-items: center; gap: 4px; width: 100%; padding: 0; }
    .cmpde-explorer .cmpde-card__link.is-primary { flex: 1 1 80px; width: auto; min-width: 0; }
    .cmpde-explorer .cmpde-card__icon-link { flex: 0 0 32px; width: 32px; }
    .cmpde-explorer .cmpde-card__meta dd { font-size: 14px; }
    .cmpde-explorer .cmpde-selected-card { grid-template-columns: 1fr; }
    .cmpde-explorer .cmpde-selected-card .cmpde-card__body { display: flex; flex-direction: column; }
    .cmpde-map-status { max-width: calc(100% - 20px); width: max-content; }
}
.cmpde-location-editor { max-width: 1200px; margin: 24px auto; padding: 20px; font-family: 'Segoe UI',sans-serif; background: #fff; color: #213d4c; border: 1px solid #dce5ea; border-radius: 8px; }
.cmpde-location-editor h2 { font-size: 22px; margin: 0 0 8px; }
.cmpde-location-editor p { font-size: 14px; }
.cmpde-location-row { border-top: 1px solid #e3eaee; padding: 14px 0; }
.cmpde-location-row summary { cursor: pointer; font-size: 16px; font-weight: 600; padding: 8px 0; }
.cmpde-location-row summary span { margin-left: 12px; font-size: 12px; color: #386574; }
.cmpde-location-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 16px 0; }
.cmpde-location-fields label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.cmpde-location-fields .is-wide { grid-column: 1/-1; }
.cmpde-location-fields input, .cmpde-location-fields select, .cmpde-location-fields textarea { width: 100%; max-width: none; min-height: 40px; margin: 0; border: 1px solid #cddbe2; border-radius: 5px; padding: 8px 10px; font: inherit; background: #fff; box-sizing: border-box; }
.cmpde-location-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cmpde-location-editor .button { font-size: 13px; border-radius: 5px; }
.cmpde-location-notice { background: #e7f5ed; color: #216343; padding: 12px; }
.cmpde-location-picker { height: 320px; margin: 12px 0; border-radius: 6px; z-index: 0; }
@media (max-width:600px) { .cmpde-location-fields { grid-template-columns: 1fr; } .cmpde-location-editor { padding: 16px; } }
@media (prefers-reduced-motion:reduce) { .cmpde-explorer *, .cmpde-explorer *::before, .cmpde-explorer *::after { animation: none !important; transition: none !important; } }
