/**
 * Parken Konstanz Verzeichnis - Frontend Styles
 */

/* General Styles */
.parkplatz-detail {
    margin-bottom: 40px;
}

.parkplatz-header {
    margin-bottom: 30px;
}

.parkplatz-kategorie {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.parkplatz-subtitle {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Layout */
.parkplatz-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.parkplatz-info {
    flex: 1;
    min-width: 300px;
}

.parkplatz-karte {
    flex: 1;
    min-width: 300px;
}

/* Info Sections */
.parkplatz-info > div {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.parkplatz-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.parkplatz-info ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.parkplatz-info ul li {
    padding: 5px 0;
}

/* Pills für Bezahlmöglichkeiten und Services */
.bezahlung ul,
.services ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bezahlung ul li,
.services ul li {
    display: inline-block;
    padding: 8px 16px;
    background-color: #fafbfc;
    color: #333;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: normal;
    white-space: nowrap;
}

/* Parkplatz Subtitle (Kapazität und Höhe) */
.parkplatz-subtitle {
    font-size: 1.25em;
    color: #666;
    margin-top: 0.5em;
}

/* Button Styles */
.button-route {
    display: inline-block;
    padding: 10px 15px;
    background-color: #1761ba;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.button-route:hover {
    background-color: #1a7ad4;
    color: white !important;
}

/* Search Form */
.parkplatz-search-form {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.parkplatz-search-form .form-row {
    margin-bottom: 15px;
}

.parkplatz-search-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.parkplatz-search-form input[type="text"],
.parkplatz-search-form input[type="number"],
.parkplatz-search-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.parkplatz-search-form .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.parkplatz-search-form .checkbox-item {
    display: flex;
    align-items: center;
}

.parkplatz-search-form .checkbox-item input {
    margin-right: 5px;
}

.parkplatz-search-form button {
    padding: 10px 15px;
    background-color: #1761ba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.parkplatz-search-form button:hover {
    background-color: #1a7ad4;
}

/* Results List */
.parkplatz-results {
    margin-top: 30px;
}

.parkplatz-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.parkplatz-item {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.parkplatz-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.parkplatz-item-title {
    margin: 0;
}

.parkplatz-item-price {
    font-weight: bold;
    color: #1761ba;
}

.parkplatz-item-meta {
    color: #666;
    margin-bottom: 15px;
}

.parkplatz-item-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.parkplatz-feature {
    padding: 5px 10px;
    background-color: #e9e9e9;
    border-radius: 3px;
    font-size: 0.9em;
}

.parkplatz-item-actions {
    text-align: right;
}

.parkplatz-item-actions a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #1761ba;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.parkplatz-item-actions a:hover {
    background-color: #1a7ad4;
    color: white !important;
}

/* Map View */
.parkplatz-map {
    height: 500px;
    margin-bottom: 30px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Mobile Map - standardmäßig ausgeblendet */
.parkplatz-karte-mobile {
    display: none;
    margin-bottom: 30px;
}

.parkplatz-karte-mobile .parkplatz-map {
    height: 300px;
}

/* Desktop/Tablet - zeige nur Desktop-Karte */
@media (min-width: 769px) {
    .parkplatz-karte-mobile {
        display: none !important;
    }
    
    .parkplatz-karte {
        display: block;
    }
}

/* View Toggle */
.parkplatz-view-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.parkplatz-view-toggle button {
    padding: 8px 12px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    cursor: pointer;
    color: #1761ba;
}

.parkplatz-view-toggle button.active {
    background-color: #1761ba;
    color: white;
    border-color: #1761ba;
}

.parkplatz-view-toggle button:first-child {
    border-radius: 4px 0 0 4px;
}

.parkplatz-view-toggle button:last-child {
    border-radius: 0 4px 4px 0;
}

/* 3-spaltige Info-Box (Preise, Bezahlung, Services) */
.info-box-3col {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.info-box-3col > .preise,
.info-box-3col > .bezahlung,
.info-box-3col > .services {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    margin-bottom: 0;
    background: none;
    box-shadow: none;
    border-right: 1px solid #eee;
}

.info-box-3col > .preise:last-child,
.info-box-3col > .bezahlung:last-child,
.info-box-3col > .services:last-child {
    border-right: none;
}

.info-box-3col h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Funktionen Box */
.funktionen-box {
    width: 100%;
    margin-bottom: 30px;
}

.funktionen-box > .funktionen {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.funktionen-box > .funktionen h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.funktionen-box > .funktionen ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.funktionen-box > .funktionen ul li {
    padding: 5px 0;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .info-box-3col h3,
    .funktionen-box > .funktionen h3,
    .parkplatz-info h3 {
        font-size: 1.1em;
        font-weight: bold;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .parkplatz-layout {
        flex-direction: column;
    }
    
    .parkplatz-info,
    .parkplatz-karte {
        width: 100%;
    }
    
    .parkplatz-map {
        height: 300px;
    }
    
    /* Zeige mobile Karte, verstecke Desktop-Karte */
    .parkplatz-karte {
        display: none !important;
    }
    
    .parkplatz-karte-mobile {
        display: block !important;
    }
    
    /* Entferne Rahmen und Schatten nur bei der Karte auf mobilen Geräten */
    .parkplatz-karte-mobile {
        background: none !important;
        background-color: transparent !important;
        padding: 0 !important;
        margin-bottom: 30px;
        box-shadow: none !important;
    }
    
    .parkplatz-karte-mobile .parkplatz-map {
        box-shadow: none !important;
        border-radius: 0 !important;
        margin-bottom: 0;
        background: none !important;
    }
    
    /* 3-spaltige Box gestapelt auf Mobile */
    .info-box-3col {
        flex-direction: column;
    }
    
    .info-box-3col > .preise,
    .info-box-3col > .bezahlung,
    .info-box-3col > .services {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .info-box-3col > .preise:last-child,
    .info-box-3col > .bezahlung:last-child,
    .info-box-3col > .services:last-child {
        border-bottom: none;
    }
}

/* ========================================
   Schnellsuche (Compact Search for Homepage)
   ======================================== */

.parkplatz-schnellsuche {
    background: linear-gradient(135deg, #1761ba 0%, #1a7ad4 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 30px;
}

.schnellsuche-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.schnellsuche-field {
    flex: 1;
    min-width: 200px;
}

.schnellsuche-field label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schnellsuche-search {
    flex: 2;
}

.schnellsuche-search input {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.schnellsuche-search input:focus {
    outline: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.schnellsuche-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.schnellsuche-checkbox {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.schnellsuche-checkbox:hover {
    background: rgba(255,255,255,0.25);
}

.schnellsuche-checkbox input {
    display: none;
}

.schnellsuche-checkbox input:checked + span {
    font-weight: 600;
}

.schnellsuche-checkbox input:checked ~ span,
.schnellsuche-checkbox:has(input:checked) {
    background: #fff;
    color: #1761ba;
}

.schnellsuche-checkbox span {
    color: #fff;
    font-size: 0.9em;
    white-space: nowrap;
}

.schnellsuche-emobil {
    flex: 0 0 auto;
}

.schnellsuche-checkbox-single {
    background: rgba(255,200,0,0.2);
    border: 2px solid rgba(255,200,0,0.5);
}

.schnellsuche-checkbox-single:hover {
    background: rgba(255,200,0,0.3);
}

.schnellsuche-checkbox-single:has(input:checked) {
    background: #ffc800;
    border-color: #ffc800;
}

.schnellsuche-checkbox-single:has(input:checked) span {
    color: #1761ba;
}

.emobil-label {
    font-weight: 600;
}

.schnellsuche-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.schnellsuche-button {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.schnellsuche-submit {
    background: #ffc800;
    color: #1761ba;
    flex: 1;
    min-width: 200px;
}

.schnellsuche-submit:hover {
    background: #ffda44;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,200,0,0.4);
}

.schnellsuche-alle-filter {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.schnellsuche-alle-filter:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* Responsive Schnellsuche */
@media (max-width: 768px) {
    .parkplatz-schnellsuche {
        padding: 20px;
    }
    
    .schnellsuche-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .schnellsuche-field {
        width: 100%;
        min-width: 100%;
    }
    
    .schnellsuche-search {
        flex: 1;
    }
    
    .schnellsuche-checkboxes {
        justify-content: flex-start;
    }
    
    .schnellsuche-actions {
        flex-direction: column;
    }
    
    .schnellsuche-button {
        width: 100%;
    }
}

/* ========================================
   Map Popup Styles
   ======================================== */

.parkplatz-popup {
    min-width: 200px;
    padding: 5px;
}

.parkplatz-popup h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #1761ba;
    line-height: 1.3;
}

.parkplatz-popup .popup-address {
    margin: 0 0 8px 0;
    font-size: 1em;
    color: #333;
    font-weight: 500;
}

.parkplatz-popup .popup-price {
    margin: 0 0 12px 0;
    font-size: 0.95em;
    color: #666;
}

.parkplatz-popup-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1761ba;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95em;
    text-align: center;
    transition: background-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.parkplatz-popup-button:hover {
    background-color: #1a7ad4;
    color: white !important;
}

/* ========================================
   Statistik Boxen
   ======================================== */

.pkv-statistik {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0 !important;
}

.pkv-statistik-cards .pkv-stat-box {
    background: linear-gradient(135deg, #1761ba 0%, #2171c7 100%);
    border-radius: 10px;
    padding: 12px 20px;
    text-align: center;
    color: white;
    min-width: 120px;
    flex: 1;
    max-width: 160px;
    box-shadow: 0 2px 6px rgba(23, 97, 186, 0.25);
    transition: all 0.2s ease;
}

.pkv-statistik-cards .pkv-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(23, 97, 186, 0.35);
}

.pkv-stat-icon {
    display: block;
    font-size: 1.4em;
    margin-bottom: 4px;
}

.pkv-stat-number {
    display: block;
    font-size: 2em;
    font-weight: 700;
    line-height: 1.2;
}

.pkv-stat-label {
    display: block;
    font-size: 0.85em;
    opacity: 0.9;
    margin-top: 4px;
}

/* Inline Style */
.pkv-statistik-inline {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px 20px;
    gap: 30px;
}

.pkv-statistik-inline .pkv-stat-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.pkv-statistik-inline .pkv-stat-icon {
    font-size: 1.5em;
    margin: 0;
}

.pkv-statistik-inline .pkv-stat-number {
    font-size: 1.4em;
    color: #1761ba;
}

.pkv-statistik-inline .pkv-stat-label {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

/* ========================================
   Kategorie Boxen
   ======================================== */

.pkv-kategorie-boxen {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 15px;
    margin: 30px 0 !important;
}

.pkv-kategorie-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.pkv-kategorie-box:hover {
    border-color: var(--box-color, #1761ba);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.pkv-kategorie-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.pkv-kategorie-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.pkv-kategorie-count {
    font-size: 0.85em;
    color: #666;
}

.pkv-kategorie-box:hover .pkv-kategorie-name {
    color: var(--box-color, #1761ba);
}

/* ========================================
   Stadtteil Boxen
   ======================================== */

.pkv-stadtteil-boxen {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 !important;
    justify-content: center;
}

.pkv-stadtteil-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pkv-stadtteil-box:hover {
    border-color: #1761ba;
    background: #1761ba;
}

.pkv-stadtteil-name {
    font-size: 0.95em;
    font-weight: 500;
    color: #333;
}

.pkv-stadtteil-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: #e9ecef;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    color: #666;
}

.pkv-stadtteil-box:hover .pkv-stadtteil-name {
    color: white;
}

.pkv-stadtteil-box:hover .pkv-stadtteil-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* ========================================
   Feature Boxen
   ======================================== */

.pkv-feature-boxen {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0 !important;
}

.pkv-feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.pkv-feature-box:hover {
    border-color: var(--feature-color, #1761ba);
    background: var(--feature-color, #1761ba);
}

.pkv-feature-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.pkv-feature-title {
    font-size: 0.95em;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.pkv-feature-desc {
    font-size: 0.8em;
    color: #666;
}

.pkv-feature-box:hover .pkv-feature-title,
.pkv-feature-box:hover .pkv-feature-desc {
    color: white;
}

/* ========================================
   Responsive Boxen
   ======================================== */

@media (max-width: 992px) {
    .pkv-kategorie-boxen {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pkv-feature-boxen {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .pkv-statistik {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pkv-statistik-cards .pkv-stat-box {
        max-width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
        text-align: left;
    }
    
    .pkv-statistik-cards .pkv-stat-icon {
        margin-bottom: 0;
    }
    
    .pkv-kategorie-boxen {
        grid-template-columns: 1fr;
    }
    
    .pkv-feature-boxen {
        grid-template-columns: 1fr 1fr;
    }
    
    .pkv-stadtteil-boxen {
        justify-content: flex-start;
    }
}
