/*
 * Pfad: /var/www/html/camping-resort/css/platzkarte.css
 * Datum: 30.11.2026 - 20:27 Uhr
 * Version: 1.0
 * Beschreibung: Ausgelagertes, 100 % responsives Stylesheet für platzkarte.php inkl. 3D-Karte, Farblegende, Tooltip und Kategorie-Beschreibung unter dem Bild.
 */

/* Aurora-Mesh Hintergrund aus style.css */
body {
    background:
        radial-gradient(at 10% 20%, rgba(39, 174, 96, 0.35) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(52, 152, 219, 0.3) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(46, 204, 113, 0.2) 0px, transparent 50%),
        #eef2f7 !important;
    background-attachment: fixed !important;
}

.hero-section {
    text-align: center;
    padding: 30px 15px 45px;
    background: transparent !important;
}

.privatbad-notice-box {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(5px);
    border: 1px solid #a7f3d0;
    border-left: 5px solid #10b981;
    border-radius: 12px;
    max-width: 650px;
    margin: 0 auto 20px;
    padding: 14px 18px;
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #166534;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.privatbad-notice-box strong {
    color: #14532d;
    display: inline-block;
    margin-right: 4px;
}

.date-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(5px);
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin: 0 auto 28px;
    max-width: 650px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

.date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: flex-start;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 6px;
}

.date-input-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    font-weight: 700;
    color: #334155;
}

input.date-field {
    padding: 12px 14px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    width: 100%;
    font-size: 1.05rem;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    background-color: #ffffff !important;
    color: #1e293b;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

input.date-field:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
    outline: none;
}

.naechte-badge {
    background-color: #10b981 !important;
    color: #ffffff !important;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-block;
    margin: 0 auto;
}

.btn-submit-dates {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    width: 100%;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    height: 48px;
    font-size: 1.02rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-submit-dates:hover { opacity: 0.92; }
.btn-submit-dates:active { transform: scale(0.99); }

/* 3D-Bühne & Kartenrahmen */
.map-outer-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1600px;
}

.map-controls {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.map-ctrl-btn {
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1.25rem;
    font-weight: bold;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
    transition: background-color 0.2s, transform 0.15s;
    user-select: none;
}

.map-ctrl-btn:hover { background-color: #ffffff !important; transform: translateY(-1px); }
.map-ctrl-btn:active { transform: scale(0.92); }

/* Plastischer 3D-Schwebe-Effekt für das Luftbild */
.map-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        0 25px 55px -12px rgba(15, 23, 42, 0.42),
        0 12px 24px -8px rgba(15, 23, 42, 0.25),
        0 0 0 1px rgba(16, 185, 129, 0.25);
    background-color: #0f172a;
    touch-action: none;
    cursor: grab;
    transform: rotateX(1.5deg);
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.map-container:hover {
    transform: rotateX(0deg) translateY(-3px);
    box-shadow:
        0 32px 65px -12px rgba(15, 23, 42, 0.48),
        0 16px 30px -8px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(16, 185, 129, 0.35);
}

.map-container.is-zoomed {
    transform: none !important;
}

.map-container:active { cursor: grabbing; }

/* Feine 3D-Glanzkante über dem Bild */
.map-container::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.45), inset 0 -4px 12px rgba(15, 23, 42, 0.35);
    pointer-events: none;
    z-index: 50;
}

.map-pan-layer {
    position: relative;
    width: 100%;
    transform-origin: 0 0;
    transition: transform 0.05s ease-out;
}

.map-pan-layer img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
    filter: contrast(1.04) saturate(1.06);
}

.map-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 3D-Tiefe für die einzelnen Stellplatz-Kästchen */
.platz-rect {
    transition: all 0.2s;
    cursor: pointer;
    stroke: rgba(255,255,255,0.95);
    stroke-width: 1.5;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.platz-text {
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 800;
    user-select: none;
    text-anchor: middle;
    dominant-baseline: central;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.frei-card:hover {
    opacity: 0.92;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.belegt-card { fill: #ef4444 !important; cursor: not-allowed; }
.saison-card { fill: #94a3b8 !important; cursor: not-allowed; }
.hc-vorstart-card { fill: #f59e0b !important; cursor: not-allowed; }
.upgrade-glow { filter: drop-shadow(0 0 8px #fbbf24); stroke: #fbbf24 !important; stroke-width: 2 !important; }

.schild-rect {
    stroke: rgba(255,255,255,0.95);
    stroke-width: 1.5;
    cursor: default;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5));
}

/* Farblegende unter der Karte */
.map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 24px;
    max-width: 1200px;
    margin: 22px auto 0;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.15);
}

.legend-dot.frei { background-color: #10b981 !important; }
.legend-dot.belegt { background-color: #ef4444 !important; }
.legend-dot.winter { background-color: #94a3b8 !important; }
.legend-dot.hc-start { background-color: #f59e0b !important; }

.legend-hint {
    width: 100%;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
}

/* Komplette Kategorie-Beschreibung unter dem Bild */
.kat-beschreibung-box {
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 22px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    text-align: left;
}

.kat-beschreibung-header {
    text-align: center;
    margin-bottom: 18px;
}

.kat-beschreibung-header h2 {
    margin: 0 0 6px;
    font-size: clamp(1.3rem, 2.8vw, 1.7rem);
    color: #0f172a;
}

.kat-beschreibung-header p {
    margin: 0;
    color: #475569;
    font-size: 0.93rem;
}

.kat-beschreibung-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.kat-beschreibung-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
}

.kat-beschreibung-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.kat-beschreibung-top strong {
    font-size: 0.98rem;
    color: #0f172a;
}

.kat-leine-badge {
    font-size: 0.74rem;
    font-weight: 800;
    background: #fee2e2;
    color: #991b1b;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.kat-beschreibung-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #334155;
}

.kat-beschreibung-plaetze {
    margin-top: 8px !important;
    font-size: 0.84rem !important;
    color: #0f172a !important;
}

.kat-hc-box {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 3px solid #10b981;
    border-radius: 18px;
    padding: 16px 18px;
}

.kat-hc-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.kat-hc-pill {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b;
    font-weight: 900;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
}

.kat-hc-start {
    background: #059669;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.84rem;
    padding: 4px 12px;
    border-radius: 999px;
}

.kat-hc-box h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #064e3b;
}

.kat-hc-box p {
    margin: 0 0 10px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #065f46;
}

.kat-hc-btn {
    display: inline-block;
    background: #ffffff;
    color: #92400e;
    border: 2px solid #f59e0b;
    font-weight: 800;
    font-size: 0.86rem;
    padding: 8px 15px;
    border-radius: 999px;
    text-decoration: none;
}

.kat-hc-btn:hover {
    background: #fef3c7;
}

#price-tooltip {
    position: fixed;
    display: none;
    background-color: rgba(15, 23, 42, 0.96);
    color: #ffffff;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 0.82rem;
    z-index: 99999;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    border-left: 4px solid #10b981;
    line-height: 1.4;
    max-width: 260px;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    transform: translate(12px, 12px);
}

#price-tooltip .tt-sub {
    color: #38bdf8;
    font-weight: bold;
    margin-top: 3px;
    font-size: 0.78rem;
}

#price-tooltip .tt-hint {
    color: #facc15;
    font-weight: bold;
    margin-top: 2px;
    font-size: 0.76rem;
}

@media (hover: none) and (pointer: coarse) {
    #price-tooltip { display: none !important; }
}

.flatpickr-calendar { border-radius: 14px !important; box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important; border: 1px solid #e2e8f0 !important; }
.flatpickr-day.selected { background: #10b981 !important; border-color: #10b981 !important; }

@media (max-width: 768px) {
    .kat-beschreibung-grid { grid-template-columns: 1fr; }
    .kat-beschreibung-box { padding: 16px 14px; }
}

@media (max-width: 520px) {
    .date-row { grid-template-columns: 1fr; gap: 12px; }
    .date-bar { padding: 16px; }
    .map-ctrl-btn { width: 38px; height: 38px; font-size: 1.1rem; }
    .map-legend { gap: 10px 16px; padding: 12px; font-size: 0.82rem; }
    .map-container { border-width: 2px; border-radius: 14px; transform: none; }
}