/* ── Consent overlay (uoConsentMap integration) ─────── */

.uo-maps-wrapper.uoConsentMap {
    position: relative;
}

.uo-maps-wrapper .uoConsentDummyMapOverlay {
    z-index: 20;
    border-radius: 0;
}

/* ── Layer filter overlay (bottom of map) ───────────── */

.uo-maps-filter-overlay {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem 0.75rem;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    max-width: 1220px;
    margin-bottom: 24px;
    width: 70%;
}

.uo-maps-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    user-select: none;
    white-space: nowrap;
    color: #3c4043;
}

@media screen and (max-width: 980px) {
    .uo-maps-filter-item {
        width:100%;
    }

    .uo-maps-filter-overlay {
        justify-content: left;
    }
}

.uo-maps-filter-item input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    accent-color: #005ea8;
}

.uo-maps-filter-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    min-width: 12px;
    border-radius: 3px;
    border: 2px solid;
}

.uo-maps-filter-label {
    font-size: 18px;
    line-height: normal;
    font-family: "Roboto 700", "Segoe UI Bold", "Helvetica Neue Bold", Helvetica, Arial, sans-serif;
}

/* ── Fernwärme search overlay ────────────────────────── */

/* The canvas needs relative positioning so the overlay can be absolute inside it */
.uo-maps-canvas {
    position: relative;
}

/* Overlay: floats inside the map, top-centre */
.uo-maps-fw-overlay {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: min(600px, calc(100% - 80px));
    pointer-events: none;
    margin-top:24px;
}

/* White card */
.uo-maps-fw-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    pointer-events: all;
}

/* Input row */
.uo-maps-fw-input-row {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 48px;
    gap: 0;
    line-height: 0;
}

.uo-maps-fw-pin-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    line-height: 0;
}

.uo-maps-fw-input {
    flex: 1;
    border: none;
    outline: none;
    color: #212529;
    background: transparent;
    min-width: 0;
    font-size: 20px;
    padding: 0 10px
}

.uo-maps-fw-input::placeholder {
    color: #9aa0a6;
}

/* Clear (×) button */
.uo-maps-fw-clear {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #70757a;
    font-size: 0.8rem;
    border-radius: 50%;
    transition: background 0.15s;
    line-height: 1;
}

.uo-maps-fw-clear:hover {
    background: #f1f3f4;
}

/* Loading spinner (gleicher rechter Slot wie das ×) */
.uo-maps-fw-spinner {
    flex-shrink: 0;
    display: inline-block;
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    border: 2px solid #e0e0e0;
    border-top-color: #E8710A;
    border-radius: 50%;
    animation: uo-maps-fw-spin 0.7s linear infinite;
}

@keyframes uo-maps-fw-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .uo-maps-fw-spinner { animation-duration: 1.5s; }
}

/* Suggestions dropdown */
.uo-maps-fw-suggestions {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    border-top: 1px solid #e8eaed;
    max-height: 260px;
    overflow-y: auto;
}

.uo-maps-fw-suggestion-item {
    padding: 10px 16px 10px 53px;
    font-size: 0.875rem;
    color: #3c4043;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.1s;
}

.uo-maps-fw-suggestion-item:hover,
.uo-maps-fw-suggestion-item.is-active {
    background: #f1f3f4;
}

/* "Keine Ergebnisse gefunden." – nicht klickbarer Hinweis */
.uo-maps-fw-no-results {
    list-style: none;
    padding: 10px 16px 10px 53px;
    font-size: 0.875rem;
    color: #70757a;
    cursor: default;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Result banner */
.uo-maps-fw-result {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.8125rem;
    border-top: 1px solid #e8eaed;
    line-height: 1.45;
}

.uo-maps-fw-result--available  { background: #e6f4ea; color: #137333; }
.uo-maps-fw-result--soon       { background: #fef7e0; color: #7d5700; }
.uo-maps-fw-result--unavailable { background: #fce8e6; color: #c5221f; }
.uo-maps-fw-result--error      { background: #f8f9fa; color: #5f6368; }

.uo-maps-fw-result-icon {
    font-style: normal;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1.45;
}

.uo-maps-fw-result-icon--yes  { color: #188038; }
.uo-maps-fw-result-icon--soon { color: #e37400; }
.uo-maps-fw-result-icon--no   { color: #c5221f; }

/* ── Fernwärme InfoWindow popup ──────────────────────── */

/* Hinweis: Das InfoWindow liegt INNERHALB von Googles .gm-style-Container,
   der ein eigenstaendiger Stacking-Context ist. Ein z-index wirkt hier nur
   gegenueber anderen Elementen INNERHALB der Karte, NICHT gegenueber dem
   Suchfeld-Overlay (.uo-maps-fw-overlay), das ein Geschwister von .gm-style
   ist. Eine Ueberlappung wird daher per JS verhindert (ensureInfoWindowVisible
   in map.js verschiebt die Karte, sodass das InfoWindow unter dem Suchfeld
   bleibt). Der z-index unten sortiert lediglich mehrere Karten-Overlays. */
.gm-style .gm-style-iw-c,
.gm-style div[role="dialog"] {
    z-index: 30 !important;
}

.gm-style-iw-c button[type=button] {
    opacity: 1;
}

.gm-style-iw-c button[type=button]:focus,.gm-style-iw-c button[type=button]:active{
    outline: 0;
}

/* Remove default Google Maps InfoWindow padding/chrome */
.gm-style .gm-style-iw{
    font-size: 18px;
}
.gm-style-iw-d { overflow: hidden !important}
.gm-style .gm-style-iw-c { padding: 0 !important; border-radius: 12px !important; box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important; }
.gm-style .gm-style-iw-tc { display: none; }

.uo-maps-fw-iw {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 300px;
    overflow: hidden;
}

/* Green header with icon */
.uo-maps-fw-iw-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 17px 20px;
    background: #E8710A;
}

.uo-maps-fw-iw-header--unavailable  {
    background: #E8710A;
}

.uo-maps-fw-iw-header--available  {
    background: #057B16 ;
}

.uo-maps-fw-iw-header svg {
    display: block;
}

/* Body with text + buttons */
.uo-maps-fw-iw-body {
    padding: 29px;
    background: #fff;
}

.uo-maps-fw-iw-body strong {
    display: block;
    font-size: 24px;
    line-height: 1.35;
    color: #000;
    margin-bottom: 8px;
}

.uo-maps-fw-iw-body p {
    font-size: 18px;
    line-height: 1.5;
    color: #000;
    margin: 0 0 26px;
}

.uo-maps-fw-iw-body p:last-of-type,.uo-maps-popup-description p:last-of-type {
    margin: 0;
}

.uo-maps-fw-iw-body:has(.btn) p,.uo-maps-popup-description:has(.btn) p {
    margin: 0 0 13px
}

.uo-maps-fw-iw-body:has(.btn) .btn,.uo-maps-popup-description .btn{
    margin-top: 13px;
}

/* Button row */
.uo-maps-fw-iw-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.uo-maps-fw-iw-buttons .btn{
    white-space: nowrap;
}

.uo-maps-fw-iw-btn {
    flex: 1;
    display: inline-block;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
    white-space: nowrap;
}

.uo-maps-fw-iw-btn--outline {
    background: #fff;
    color: #212529;
    border: 1.5px solid #212529;
}
.uo-maps-fw-iw-btn--outline:hover {
    background: #f1f3f4;
    color: #212529;
    text-decoration: none;
}

.uo-maps-fw-iw-btn--primary {
    background: #E8710A;
    color: #fff;
    border: 1.5px solid #E8710A;
}
.uo-maps-fw-iw-btn--primary:hover {
    background: #c45a00;
    color: #fff;
    text-decoration: none;
}

.gm-style .gm-style-iw-c
{
    border-radius: 0;
    max-width: 500px !important;
}

.gm-style .gm-style-iw-c:has(.address) {
    padding: 20px !important;
}

.uo-maps-filter-item input[type="checkbox"]
{
    margin: 0;
    cursor: pointer;
    accent-color: transparent;
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.gm-style-iw-chr{
    position: absolute;
    width: 100%;
    z-index: 2;
    right: 10px;
}

.uo-maps-filter-overlay{
    padding: 18px 18px 0 18px;
}

.uo-maps-filter-item{
    margin-bottom: 18px;
}

@media screen and (max-width: 500px) {
    .uo-maps-filter-item{
        width:100%;
    }
}

.uo-maps-filter-item  .uo-maps-filter-dot{
    width: 24px;
    height: 24px;
    position: relative;
    border: 0;
}

.uo-maps-filter-item input[type="checkbox"]:checked + .uo-maps-filter-dot:before{
    content: "";
    position: absolute;
    color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M13.3337 4L6.00033 11.3333L2.66699 8" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')  ;
    width:16px;
    height:16px;
}

.uo-maps-fw-pin-icon svg path,.uo-maps-fw-pin-icon svg{
    filter: initial !important;
    width: 30px;
    height: 30px;
}

.uo-maps-fw-input-row{
    height: 60px;
}

.uo-maps-fw-iw-btn--outline,.uo-maps-fw-iw-btn--primary {
    border-radius: 100px;
}

.uo-maps-fw-iw {
    width: 100%;
}

@media screen and (max-width: 500px) {
    .uo-maps-fw-iw-btn{
        width: 100%;
        margin-bottom: 15px;
    }
    .uo-maps-fw-iw-btn:last-of-type{
        margin-bottom: 0;
    }
    .uo-maps-fw-iw-buttons {
       display: inline-block;
    }
    .gm-style .gm-style-iw-c {
        max-width: 300px !important;
    }
    .uo-maps-fw-iw-body p {
        font-size: 1rem;
    }
    .uo-maps-fw-iw-buttons a{
        font-size: 1rem;
    }
}

div[role="dialog"]:has(.uo-maps-fw-iw) button span{
    filter: brightness(0) invert(1);
    color: white;
}

div[role="dialog"]:has(.uo-maps-fw-iw) .gm-style-iw-chr{
    position: absolute
}

/*Filter Accordion*/

.uo-maps-filter-accordion-input,.uo-maps-filter-accordion{
    display: none;
}

.gm-style .transit-container .transit-div-line-name .gm-transit-short{
    width: auto
}

/*Filter Accordion* Ende*/

/* popUp Baustelle */

.uo-popup-header{
    background-color:#ec7d0f;
    padding: 10px;
    text-align: center;
    width: 100%;;
}

.uo-popup-header img{
    width: 40px;
    height: 40px;
}

.uo-maps-popup-hedline{
    padding: 29px 29px 0 29px;
    display: block;
    font-size: 24px;
    line-height: 1.35;
    color: #000;
    margin-bottom: 8px;
}

.uo-maps-popup-description{
    padding: 0 29px;
}

.uo-maps-popup-description p:has(.btn){
    margin: 0 !important;
}

.uo-maps-popup-description p:has(.btn) .btn{
    margin-bottom: 0 !important;
}

.uo-maps-popup{
    padding-bottom: 29px;
    width: 100%;
    min-width: 300px;
}

div[role="dialog"]:has(.uo-maps-popup) .gm-style-iw-chr{
    filter: brightness(0) invert(1);
    color: white;
}

/*popUp Baustelle ENDE*/

.uo-maps-filter-accordion{
  font-family: "Roboto 700", "Segoe UI Bold", "Helvetica Neue Bold", Helvetica, Arial, sans-serif;
}

@media screen and (min-width: 768px) {
    .uo-maps-popup{
        width: 100%;
        min-width: 400px;
    }
}

@media screen and (max-width: 980px) {

    .uo-maps-filter-overlay{
        width: 47%;
        left: 5%
    ;   transform: translateX(-5%);
        min-width: 175px;
        margin-bottom: 5px;
    }

    .uo-maps-filter-overlay:has(#filterAccordion:checked){
        width: 70%;
    }

    .uo-maps-filter-accordion{
        display: block;
        width: 100%;
        font-size: 18px;
        position: relative;
    }

    .uo-maps-filter-accordion:after{
        top: 45%;
        right: 0;
        font-family: "swbochum2020";
        content: "";
        position: absolute;
        font-size: 1rem;
        color: #ec7d0f;
        transform:translateY(-50%)
    }

    .uo-maps-filter-overlay:has(#filterAccordion:checked) .uo-maps-filter-accordion:after{
        content: ""
    }

    .uo-maps-filter-overlay .uo-maps-filter-item{
        opacity: 0;
        transition: opacity 0.15s;
    }

    .uo-maps-filter-overlay{
        height: 57px;
        overflow: hidden;
        transition: height 0.5s;
    }

    .uo-maps-filter-overlay:has(#filterAccordion:checked){
        height: initial ;
        overflow: initial;
    }

    .uo-maps-filter-overlay #filterAccordion:checked ~ .uo-maps-filter-item{
        opacity: 1;
    }
}

@media screen and (max-width: 345px) {
    .uo-maps-filter-overlay:has(#filterAccordion:checked){
        width: 80%;
    }
}




