html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main {
    flex: 1;
    display: flex;
    position: relative;
    margin: 0;
}

#map-container {
    flex: 1;
    position: relative;
    margin: 0;
    height: auto;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 !important;
    height: 100% !important;
}

.leaflet-container {
    margin-bottom: 0 !important;
}

.footer {
    flex: none;
    margin: 0;
    padding: 40px 0;
    background-color: #595959;
}

/* Filter Sidebar */
.filter-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background: white;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.filter-header {
    padding: 20px;
    background: var(--primary-color);
    color: var(--text-on-primary);
    flex: none;
}

.filter-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.filter-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    font-size: 1em;
    margin-bottom: 15px;
    color: #000;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #666;
}

.form-check {
    margin-bottom: 10px;
}

.form-check-label {
    line-height: 1.4;
}

/* Mobile Anpassungen */
@media (max-width: 767px) {
    .filter-sidebar {
        position: fixed;
        left: -300px;
        top: 90px;
        bottom: 70px;
        transition: left 0.3s ease;
    }

    .filter-sidebar.show {
        left: 0;
    }

    .filter-toggle-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1001;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--primary-color);
        color: var(--text-on-primary);
        border: none;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
}

.section-header i {
    font-size: 0.8em;
    color: var(--primary-color);
    transition: transform 0.3s;
    position: relative;
    top: -6px;
}

.section-header[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.range-slider {
    padding: 10px 0;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.form-range {
    width: 100%;
    -webkit-appearance: none;
    height: 5px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    padding: 0;
    margin: 0;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: background .15s ease-in-out;
}

.form-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: background .15s ease-in-out;
}

.form-range::-webkit-slider-thumb:hover {
    background: var(--primary-hover-color);
}

.form-range::-moz-range-thumb:hover {
    background: var(--primary-hover-color);
}

.dual-range-slider {
    padding: 10px 0;
}

.range-slider-container {
    position: relative;
    height: 15px;
    margin: 10px 0;
}

.slider-track {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
}

.slider-handle {
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    margin-left: -8px;
    transition: background .15s ease-in-out;
}

.slider-handle:hover {
    background: var(--primary-hover-color);
}

.slider-handle.min {
    left: 0%;
}

.slider-handle.max {
    left: 100%;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.form-range.min-range,
.form-range.max-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-range.min-range::-webkit-slider-thumb,
.form-range.max-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: background .15s ease-in-out;
}

.form-range.min-range::-moz-range-thumb,
.form-range.max-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: background .15s ease-in-out;
}

.form-range.min-range::-webkit-slider-runnable-track,
.form-range.max-range::-webkit-slider-runnable-track {
    height: 5px;
    background: transparent;
    border: none;
}

.form-range.min-range::-moz-range-track,
.form-range.max-range::-moz-range-track {
    height: 5px;
    background: transparent;
    border: none;
}

.form-range.min-range::-webkit-slider-thumb:hover,
.form-range.max-range::-webkit-slider-thumb:hover {
    background: var(--primary-hover-color);
}

.form-range.min-range::-moz-range-thumb:hover,
.form-range.max-range::-moz-range-thumb:hover {
    background: var(--primary-hover-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

.location-details-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.location-details {
    padding: 1.5rem;
}

.location-details img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.location-details h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.location-details p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.location-details .btn {
    margin-top: 1rem;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(var(--primary-rgb), 0.4) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: rgba(var(--primary-rgb), 0.8) !important;
    color: #fff !important;
}

/* Aktuelle Position Marker */
.current-location-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--marker-color);
    color: var(--text-on-primary);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.current-location-marker::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--marker-color);
}

.location-tooltip {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.location-tooltip::before {
    border-top-color: rgba(255, 255, 255, 0.9);
}

/* Location Details Popup Styles */
.location-details {
    padding: 1.5rem;
}

.location-preview img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.location-info {
    padding: 1rem;
    border-radius: 4px;
}

.location-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.location-info p:last-child {
    margin-bottom: 0;
}

.location-info i {
    margin-right: 0.5rem;
}

.available-periods {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.available-periods::-webkit-scrollbar {
    width: 6px;
}

.available-periods::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.available-periods::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}

.period-item {
    background: #fff;
    transition: all 0.2s ease;
}

.period-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.period-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.additional-info {
    font-size: 0.85rem;
    font-style: italic;
}

.add-to-cart {
    width: 100%;
    margin-top: 0.5rem;
}

/* Modal Anpassungen */
.modal-dialog {
    max-width: 800px;
}

@media (max-width: 767px) {
    .location-details {
        padding: 1rem;
    }
    
    .location-info {
        margin-bottom: 1rem;
    }
    
    .available-periods {
        max-height: 250px;
    }
}

#map-loader {
    position: absolute;
    top: 50%;
    left: calc(50% + 150px);
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#map-loader .spinner-border {
    color: var(--primary-color);
}

@media (max-width: 767px) {
    #map-loader {
        left: 50%;
    }
}

.location-nav-btn[data-is-available="false"] {
    opacity: 0.7;
    background-color: #dee2e6;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    pointer-events: none;
}

.location-nav-btn[data-is-available="false"]:hover,
.location-nav-btn[data-is-available="false"]:focus {
    opacity: 0.7;
    background-color: #dee2e6;
    border-color: #dee2e6;
    color: #6c757d;
    transform: none;
}

/* Tippy.js Tooltip Styles */
.tippy-box[data-theme~='custom'] {
    background-color: white;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    padding: 12px;
}

.tippy-box[data-theme~='custom'] .tippy-content {
    text-align: left;
    padding: 0;
}

.tippy-box[data-theme~='custom'][data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: white;
}

.tippy-box[data-theme~='custom'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: white;
}

.tippy-box[data-theme~='custom'][data-placement^='left'] > .tippy-arrow::before {
    border-left-color: white;
}

.tippy-box[data-theme~='custom'][data-placement^='right'] > .tippy-arrow::before {
    border-right-color: white;
}

.restrictions-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    text-align: left;
}

.restrictions-list li {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.restrictions-list li:last-child {
    border-bottom: none;
}

/* Company Marker Styles */
.company-marker-container {
    background: white;
    border-radius: 8px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.company-marker-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
} 