/* Reykjavik Parking Map - StartupIceland.com Theme v2.0 */

.rvk-parking-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100%;
    margin: 0 auto;
    color: #000;
}

/* Top Bar - Language Toggle & Free Indicator */
.rvk-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #fff;
    border-radius: 0;
    border: 1px solid #ddd;
    border-bottom: none;
}

.rvk-free-indicator {
    padding: 10px 20px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rvk-free-indicator.rvk-free {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.rvk-free-indicator.rvk-paid {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffe082;
}

.rvk-indicator-icon {
    font-size: 1rem;
}

.rvk-lang-toggle {
    background: #32373c;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s, transform 0.1s;
}

.rvk-lang-toggle:hover {
    background: #000;
    transform: translateY(-1px);
}

/* Main Layout */
.rvk-parking-main {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

#rvk-parking-map {
    flex: 2;
    min-width: 300px;
    border: 1px solid #ddd;
    z-index: 1;
}

.rvk-parking-sidebar {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rvk-info-panel,
.rvk-stats-panel,
.rvk-legend,
.rvk-tips,
.rvk-calculator {
    background: #fff;
    border-radius: 0;
    padding: 20px;
    border: 1px solid #ddd;
}

.rvk-parking-sidebar h3 {
    font-size: 1.125rem;
    color: #000;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #32373c;
    font-weight: 600;
}

.rvk-parking-sidebar h4 {
    font-size: 1rem;
    color: #000;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.rvk-hint {
    color: #666;
    font-size: 0.875rem;
    font-style: italic;
    margin: 0;
}

#rvk-selected-parking {
    margin-top: 12px;
}

#rvk-selected-parking.rvk-hidden {
    display: none;
}

#rvk-parking-name {
    color: #0693e3;
    margin: 0 0 12px 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.rvk-detail-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.rvk-detail-row .rvk-label {
    color: #666;
    min-width: 85px;
    font-weight: 500;
}

/* Directions Link */
.rvk-directions-link {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background: #32373c;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
}

.rvk-directions-link:hover {
    background: #000;
    color: #fff !important;
    transform: translateY(-1px);
}

.rvk-directions-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: #32373c;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.2s;
}

.rvk-directions-btn:hover {
    background: #000;
}

/* Calculator */
.rvk-calculator {
    background: #f8f9fa;
    border-color: #ddd;
}

.rvk-calc-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.rvk-calc-row label {
    font-size: 0.875rem;
    color: #333;
    font-weight: 500;
}

.rvk-calc-row input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.rvk-calc-row input:focus {
    outline: none;
    border-color: #32373c;
    box-shadow: none;
}

.rvk-calc-button {
    width: 100%;
    padding: 12px 24px;
    background: #32373c;
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

.rvk-calc-button:hover {
    background: #000;
    transform: translateY(-1px);
}

.rvk-calc-result {
    margin-top: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #ddd;
    text-align: center;
    font-weight: 600;
    font-size: 1.125rem;
    color: #0693e3;
}

.rvk-calc-result.rvk-calc-error {
    color: #d32f2f;
    font-size: 0.875rem;
    font-weight: normal;
}

/* Stats Panel */
.rvk-stat-card {
    background: #f8f9fa;
    border-radius: 0;
    padding: 16px;
    margin-bottom: 10px;
    text-align: center;
    border: 1px solid #eee;
}

.rvk-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #32373c;
}

.rvk-stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Legend */
.rvk-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.rvk-legend-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.rvk-legend-marker.rvk-garage {
    background: #32373c;
}

.rvk-legend-marker.rvk-lot {
    background: #0693e3;
}

.rvk-legend-zone {
    width: 20px;
    height: 20px;
    border-radius: 0;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.1);
}

.rvk-legend-zone.rvk-p1 {
    background: #d32f2f;
}

.rvk-legend-zone.rvk-p2 {
    background: #f57c00;
}

.rvk-legend-zone.rvk-p3 {
    background: #388e3c;
}

.rvk-legend-zone.rvk-p4 {
    background: #1976d2;
}

/* Tips */
.rvk-tips ul {
    padding-left: 20px;
    margin: 0;
    font-size: 0.875rem;
    color: #333;
    line-height: 1.6;
}

.rvk-tips li {
    margin-bottom: 6px;
}

/* Custom Leaflet Markers */
.rvk-garage-marker,
.rvk-mall-marker,
.rvk-transit-marker,
.rvk-university-marker {
    border: 3px solid #fff;
    border-radius: 50%;
    width: 30px !important;
    height: 30px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    position: relative;
}

.rvk-garage-marker { background: #32373c; }
.rvk-mall-marker { background: #9c27b0; }
.rvk-transit-marker { background: #ff5722; }
.rvk-university-marker { background: #3f51b5; }

/* EV Charging indicator - green ring */
.rvk-has-ev {
    border-color: #4caf50 !important;
    box-shadow: 0 0 0 3px #4caf50, 0 2px 6px rgba(0,0,0,0.3) !important;
}

.rvk-lot-marker {
    background: #0693e3;
    border: 3px solid #fff;
    border-radius: 50%;
    width: 24px !important;
    height: 24px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* EV Info in sidebar */
.rvk-ev-info {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Popup EV and Free badges */
.rvk-popup-ev {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 8px;
    display: inline-block;
}

.rvk-popup-free {
    background: #e3f2fd;
    color: #1565c0;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 8px;
    margin-left: 6px;
    display: inline-block;
}

.rvk-free-note {
    color: #2e7d32;
    margin-top: 8px;
}

/* Leaflet Popup Customization */
.rvk-parking-container .leaflet-popup-content-wrapper {
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
}

.rvk-parking-container .leaflet-popup-content {
    margin: 16px 20px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rvk-popup-title {
    font-weight: 600;
    color: #000;
    font-size: 1rem;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.rvk-popup-detail {
    font-size: 0.875rem;
    margin-bottom: 6px;
    color: #333;
}

/* Data Source Attribution */
.rvk-data-source {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    padding: 12px;
    border-top: 1px solid #eee;
    margin-top: 8px;
}

.rvk-data-source a {
    color: #0693e3;
    text-decoration: none;
}

.rvk-data-source a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .rvk-parking-main {
        flex-direction: column;
    }

    .rvk-parking-sidebar {
        max-width: 100%;
    }

    #rvk-parking-map {
        min-height: 400px;
    }

    .rvk-top-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .rvk-free-indicator {
        order: 2;
        flex: 1;
        justify-content: center;
    }

    .rvk-lang-toggle {
        order: 1;
    }
}
