.cp-places{--cp-blue:#003770;--cp-soft:#e3e3e3;--cp-orange:#f7ab59;--cp-junkersdorf:#469cd0;--cp-red:#b51318;color:var(--cp-blue);font-family:inherit;font-size:1rem;line-height:1.55;max-width:100%;min-width:0}
.cp-places *{box-sizing:border-box}
.cp-places [hidden]{display:none!important}
.cp-places:not(.cp-ready) .cp-js-only{display:none}
.cp-places button,.cp-places input,.cp-places select{font:inherit;line-height:1.4}
.cp-places button{cursor:pointer}
.cp-places a{color:var(--cp-blue);text-decoration:underline;text-underline-offset:.15em;overflow-wrap:anywhere}
.cp-places :is(button,a,input,select,summary):focus-visible{outline:3px solid var(--cp-blue);outline-offset:3px}
.cp-places p{max-width:none;margin:0 0 1rem}
.cp-places h2,.cp-places h3{font-family:inherit;color:var(--cp-blue);line-height:1.3}
.cp-places h2{font-size:1.5rem;margin:0 0 1rem}
.cp-places h3{font-size:1.12rem;margin:1.25rem 0 .5rem}
.cp-places.cp-ready .cp-filters{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr));gap:1rem;margin-bottom:1.25rem;align-items:end}
.cp-places .cp-filters label{display:block;font-weight:700;margin-bottom:.35rem}
.cp-places .cp-filters :is(input,select){width:100%;min-width:0;min-height:46px;border:1px solid var(--cp-blue);border-radius:.45rem;padding:.6rem .7rem;background:#fff;color:var(--cp-blue)}
.cp-places .cp-map-shell{border:1px solid var(--cp-soft);border-radius:1rem;overflow:hidden;background:#fff}
.cp-places .cp-gate{min-height:var(--cp-map-height);padding:clamp(1.2rem,4vw,3rem);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:linear-gradient(145deg,#fff 65%,#e3e3e3)}
.cp-places .cp-gate>p{max-width:50rem}
.cp-places .cp-gate-symbol{display:flex;gap:1.25rem;align-items:center;margin-bottom:1rem}
.cp-places .cp-gate-symbol span{display:grid;place-items:center;width:2.5rem;height:2.5rem;border-radius:50%;font-weight:800;box-shadow:0 0 0 3px #fff,0 0 0 4px var(--cp-blue)}
.cp-places .cp-gate-symbol span:nth-child(1){background:var(--cp-orange);color:var(--cp-blue)}
.cp-places .cp-gate-symbol span:nth-child(2){background:var(--cp-junkersdorf);color:#000}
.cp-places .cp-gate-symbol span:nth-child(3){background:var(--cp-red);color:#fff}
.cp-places .cp-privacy{font-size:.92rem}
.cp-places .cp-button,.cp-places .cp-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:.65rem .95rem;border:1px solid var(--cp-blue);border-radius:.45rem;font:inherit;font-weight:700;line-height:1.4;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere}
.cp-places .cp-button{background:var(--cp-blue);color:#fff}
.cp-places .cp-secondary{background:#fff;color:var(--cp-blue)}
.cp-places :is(.cp-button,.cp-secondary):hover{text-decoration:underline;text-underline-offset:.15em}
.cp-places .cp-map{height:var(--cp-map-height);width:100%;background:var(--cp-soft);isolation:isolate;z-index:0}
.cp-places .cp-map-tools{display:flex;flex-wrap:wrap;gap:.65rem;padding:1rem;border-top:1px solid var(--cp-soft)}
.cp-places .cp-tile-error{margin:0;padding:1rem;border-top:1px solid var(--cp-soft)}
.cp-places .cp-legend{display:flex;flex-wrap:wrap;gap:.65rem 1.25rem;padding:0;margin:1rem 0;list-style:none}
.cp-places .cp-legend li{display:flex;gap:.5rem;align-items:center;font-weight:600;min-width:0}
.cp-places .cp-legend li span{width:.8rem;height:.8rem;border:1px solid var(--cp-blue);border-radius:50%;flex:none;background:var(--cp-site)}
.cp-places .cp-braunsfeld{--cp-site:#f7ab59;--cp-site-text:#003770}
.cp-places .cp-junkersdorf{--cp-site:#469cd0;--cp-site-text:#000}
.cp-places .cp-weiden{--cp-site:#b51318;--cp-site-text:#fff}
.cp-places .cp-line-note{font-size:.88rem}
.cp-places .cp-count{font-weight:700;margin:1rem 0}
.cp-places .cp-location-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;align-items:start}
.cp-places .cp-location{min-width:0;border:1px solid var(--cp-soft);border-top:5px solid var(--cp-site,var(--cp-blue));border-radius:.7rem;background:#fff;overflow:hidden;margin:0}
.cp-places .cp-location>summary{display:grid;grid-template-columns:minmax(0,1fr) 1rem;gap:.35rem .75rem;padding:1.05rem 1.1rem;min-height:64px;list-style:none;cursor:pointer;line-height:1.4}
.cp-places .cp-location>summary::-webkit-details-marker{display:none}
.cp-places .cp-location>summary::marker{content:''}
.cp-places .cp-location>summary::after{content:'';grid-column:2;grid-row:1;width:.55rem;height:.55rem;border-right:2px solid var(--cp-blue);border-bottom:2px solid var(--cp-blue);transform:rotate(45deg);align-self:center}
.cp-places .cp-location[open]>summary::after{transform:rotate(225deg)}
.cp-places .cp-place-name{font-weight:700;overflow-wrap:anywhere}
.cp-places .cp-place-category{grid-column:1;font-size:.85rem}
.cp-places .cp-place-content{padding:0 1.1rem 1.1rem;overflow-wrap:anywhere}
.cp-places .cp-contact{border-top:1px solid var(--cp-soft);padding-top:.8rem;margin-top:.8rem}
.cp-places .cp-contact p{margin:0 0 .5rem}
.cp-places .cp-contact-links,.cp-places .cp-place-actions{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center}
.cp-places .cp-contact-links a{display:inline-flex;align-items:center;min-height:36px;padding:.3rem .55rem;border:1px solid var(--cp-soft);background:var(--cp-soft);border-radius:.4rem;max-width:100%;text-decoration:none}
.cp-places .cp-contact-links a:hover{text-decoration:underline}
.cp-places .cp-place-actions{margin-top:1rem}
.cp-places .cp-marker{display:flex;align-items:center;justify-content:center;border-radius:50%;border:2px solid var(--cp-blue);background:var(--cp-site,var(--cp-blue));color:var(--cp-site-text,#fff);font-family:inherit;font-size:16px;font-weight:800;box-shadow:0 0 0 2px #fff}
.cp-places .cp-marker-main{border-width:3px}
.cp-places .cp-map .leaflet-control-attribution{font-size:12px;background:#fff;color:var(--cp-blue);padding:3px 6px}
.cp-places .leaflet-control-zoom a{width:44px;height:44px;line-height:44px;color:var(--cp-blue);background:#fff}
.cp-places .leaflet-popup-content-wrapper{border-radius:.7rem;color:var(--cp-blue);font:inherit}
.cp-places .leaflet-popup-content{font-family:inherit;font-size:15px;line-height:1.5;margin:1rem;overflow-wrap:anywhere}
.cp-places .cp-popup-title{font-size:1.12rem;margin:0 0 .6rem;font-weight:700}
.cp-places .cp-popup .cp-place-content{padding:0}
.cp-places .cp-popup .cp-description{display:none}
.cp-places .cp-popup .cp-show{display:none}
.cp-places .leaflet-container a.leaflet-popup-close-button{font-size:24px;width:32px;height:32px;color:var(--cp-blue)}
@media(max-width:900px){.cp-places.cp-ready .cp-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-places .cp-filters>div:first-child{grid-column:1/-1}}
@media(max-width:700px){.cp-places .cp-location-list{grid-template-columns:minmax(0,1fr)}.cp-places .cp-map{height:min(var(--cp-map-height),380px)}.cp-places .cp-gate{min-height:380px}.cp-places .cp-gate h2{font-size:1.25rem}.cp-places .cp-map-tools{padding:.75rem}.cp-places .cp-map-tools>*{flex:1 1 12rem}}
@media(max-width:430px){.cp-places.cp-ready .cp-filters{grid-template-columns:minmax(0,1fr)}.cp-places .cp-filters>div:first-child{grid-column:auto}.cp-places .cp-place-actions>*{width:100%}}
@media(prefers-reduced-motion:reduce){.cp-places *{scroll-behavior:auto!important}}

/* Compact, clearly related heading and text groups in the location cards. */
.cp-places .cp-location>summary{padding:.9rem 1rem;min-height:60px}
.cp-places .cp-place-content{padding:0 1rem 1rem}
.cp-places .cp-place-content p{margin:0 0 .65rem;line-height:1.5}
.cp-places .cp-place-content h3{margin:1rem 0 .25rem;font-size:1.05rem;line-height:1.3}
.cp-places .cp-place-content h3+p{margin-top:0}
.cp-places .cp-place-content .cp-contact{margin-top:.65rem;padding-top:.65rem}
.cp-places .cp-place-content .cp-contact:first-of-type{border-top:0;padding-top:0;margin-top:0}
.cp-places .cp-place-content .cp-contact p{margin:0 0 .3rem}
.cp-places .cp-place-content .cp-place-actions{margin-top:.8rem;gap:.5rem}
.cp-places .cp-place-actions .cp-secondary{font-size:.9rem}
.cp-places .cp-popup .cp-place-content{padding:0}

/* Keep the map page's title, introduction and map close together. */
.page.cp-places-page #inner-wrap #primary{margin-top:.5rem!important}
.page.cp-places-page .entry-content-wrap{padding-top:0}
.page.cp-places-page .entry-content>p:first-child{margin-top:0;margin-bottom:.75rem}
.cp-places.cp-ready .cp-filters{margin-bottom:.75rem}
.editor-styles-wrapper:has(.wp-block-clarenbach-places-map) .is-root-container{margin-top:.5rem!important}
.editor-styles-wrapper:has(.wp-block-clarenbach-places-map) .is-root-container>p:first-child{margin-top:0;margin-bottom:.75rem}
.page.cp-places-page .entry-hero .entry-header{padding:.5rem 0 .25rem!important}
.editor-styles-wrapper:has(.wp-block-clarenbach-places-map) .editor-post-title{padding-top:.5rem!important;padding-bottom:.25rem!important}
@media(max-width:700px){.cp-places .cp-map{height:min(var(--cp-map-height),380px,calc(100svh - 8rem));min-height:240px}}

/* One shared control area below the map, on desktop and smartphones. */
.cp-places .cp-controls{padding:1rem;border-top:1px solid var(--cp-soft)}
.cp-places .cp-controls .cp-map-tools{padding:0;border-top:0;margin:0 0 .85rem}
.cp-places.cp-ready .cp-controls .cp-filters{margin:0}
@media(max-width:700px){.cp-places .cp-controls{padding:.75rem}}

.cp-places .cp-popup-place+.cp-popup-place{border-top:1px solid var(--cp-blue);margin-top:1rem;padding-top:1rem}
