@charset "utf-8";
/* CSS Document */

/* =========================================================
   Allgemeines Seitenlayout
========================================================= */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* kein horizontaler Scroll */
    background: #f8f9fa;
}
.pwa-content {
    max-width: 1100px;
    width: 100%;
}

/* Mehr Padding für Desktop ab 798px */
@media (min-width: 798px) {
    .pwa-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* =========================================================
   Fonts
========================================================= */
.geotitel {
    font-size: 1.3rem;
}
/* =========================================================
   Geo-Banner
========================================================= */
.geo-banner {
    background: #008abc;
    color: #fff;
    padding: .75rem 1rem;
}

.geo-banner .small {
    opacity: .9;
}

/* =========================================================
   Unterkunftsliste
========================================================= */
.list-wrap {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
    padding: 0.5rem;
    margin-left: 0;
    margin-right: 0;
    scrollbar-width: thin;
    scrollbar-color: #008abc #f1f1f1;
    -webkit-overflow-scrolling: touch;
}

/* Sticky Header */
.list-header {
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #e0e0e0;
}

/* Desktop: Header normal im Flow halten, nicht ueber die Liste legen */
@media (min-width: 768px) {
    .last-minute-page .list-header.sticky-top {
        position: static;
        top: auto;
        z-index: auto;
        margin-bottom: 0.5rem;
    }
}

/* Map Button */
#openMapBtn {
    font-weight: 600;
    transition: all 0.2s ease;
}

#openMapBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}



/* Scrollbar */
.list-wrap::-webkit-scrollbar {
    width: 8px;
}

.list-wrap::-webkit-scrollbar-thumb {
    background-color: #9a1f1f;
    border-radius: 4px;
}

.list-wrap::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.list-wrap .card {
    margin-bottom: 1rem;
}

/* =========================================================
   Unterkunftskarten
========================================================= */
.card-sm {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.card-sm:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.card[data-status="belegt"] {
    opacity: .65;
    filter: grayscale(.4);
}

.card[data-status="frei"] {
    border-left: 4px solid #95a400;
}

/* Buttons */
.card .btn {
    font-size: .85rem;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .card .btn {
        flex: 1 1 100%;
    }
}

/* =========================================================
   🗺 MAP OVERLAY (KRITISCH – FINAL FIX)
========================================================= */

#mapOverlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    height: 100vh;
    transition: opacity .25s ease;
    opacity: 0;
    pointer-events: none;
}

@supports (height: 100svh) {
    #mapOverlay {
        height: 100svh;
    }
}

/* sichtbar */
#mapOverlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

#mapContainer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100vh;
}

@supports (height: 100svh) {
    #mapContainer {
        height: 100svh;
    }
}

/* Zurück-Button */
#closeMapBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10000;
}

/* =========================================================
   Preis-Marker
========================================================= */
.price-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #95a400;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    border-radius: 6px;
    padding: 3px 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transform: translateY(-4px);
}

.price-marker.frei {
    background: #c53934;
}

.price-marker.belegt {
    background: #c53934;
}

/* =========================================================
   Loader
========================================================= */
#loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity .3s ease, visibility .3s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}




/* ==============================
   MOBILE (Standard)
============================== */
.list-wrap {
    max-height: none;
    overflow: visible;
}
@media (min-width: 768px) {
    .list-wrap {
        max-height: calc(100vh - 260px);
        overflow-y: auto;
    }
}


/*----------------
last minute unterkunft seite – SEO Section als Fixed-Bottom-Toggle
 */
/* =========================================================
   SEO SECTION – Fixed Bottom Toggle
========================================================= */
.seo-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: #66767a;
    overflow: hidden;
    max-height: 44px;
    margin: 0;
    padding: 0;
    transition: max-height 0.35s ease;
}

.seo-section.open {
    max-height: 60vh;
    overflow-y: auto;
}

/* Toggle Bar */
.seo-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 1rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.seo-toggle-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.seo-section.open .seo-toggle-icon {
    transform: rotate(180deg);
}

/* Inhalt */
.seo-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

/* Typografie */
.seo-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff !important;
    margin-bottom: 1rem;
}

.seo-section p {
    color: #fff !important;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.seo-section ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.seo-section li {
    margin-bottom: 0.4rem;
    color: #fff !important;
}

/* Mobile */
@media (max-width: 767.98px) {
    .seo-section.open {
        max-height: 32vh;
    }

    @supports (max-height: 32svh) {
        .seo-section.open {
            max-height: 32svh;
        }
    }

    .seo-content {
        padding: 0.85rem 1rem 1rem;
    }

    .seo-section h2 {
        font-size: 1.25rem;
    }
}