


.main-container {
    display: flex;
    flex: 1;
    position: relative;
    height: calc(100vh - 70px);
}

/* Mobile Filter Toggle Button */
.mobile-filter-toggle {
    display: none;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 100;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(115, 39, 83, 0.3);
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
}

.mobile-filter-toggle:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(115, 39, 83, 0.4);
}

.mobile-filter-toggle i {
    font-size: 14px;
}

.sidebar {
    width: 320px;
    background-color: var(--background-light);
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    z-index: 10;
    transition: transform 0.3s ease;
}

/* Hide close button on desktop */
.sidebar-close-btn {
    display: none;
}

.sidebar-title {
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-dark);
}

select,
input[type="text"],
input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    font-family: "Raleway", sans-serif;
}

.slider-container {
    width: 100%;
}

.slider {
    width: 100%;
    margin-top: 8px;
}

.slider-value {
    text-align: right;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

.search-button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.search-button:hover {
    background-color: var(--primary-hover);
}

.search-button:active {
    transform: translateY(1px);
}

.map-container {
    flex: 1;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
}

.map-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    text-align: center;
    padding: 20px;
    z-index: 1;
}

/* Results overlay */
.results-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    max-width: 350px;
    max-height: calc(100% - 40px);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 2;
    display: none;
}

.results-header {
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-title {
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.results-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

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

.result-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.result-item:hover {
    background-color: #f5f5f5;
}

.result-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.result-address {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.result-phone {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.result-distance {
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.result-availability {
    font-size: 12px;
    color: var(--success-color);
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}

/* Center Notification System */
.notification-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 9999;
}

.notification {
    max-width: 400px;
    min-width: 300px;
    padding: 20px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: auto;
}

.notification.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notification-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.notification-success .notification-icon {
    color: var(--success-color);
}

.notification-error .notification-icon {
    color: var(--error-color);
}

.notification-warning .notification-icon {
    color: var(--warning-color);
}

.notification-info .notification-icon {
    color: var(--info-color);
}

.notification-title {
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
}

.notification-message {
    margin-bottom: 15px;
    color: var(--text-light);
}

.notification-close {
    background-color: var(--background-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 20px;
    cursor: pointer;
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    transition: background-color 0.2s;
}

.notification-close:hover {
    background-color: #f0f0f0;
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Loading overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Hide old filter toggle button - replaced by bottom bar */
    .mobile-filter-toggle {
        display: none !important;
    }

    .main-container {
        position: relative;
        flex-direction: column;
        height: calc(100vh - 70px);
    }

    /* Hide old sidebar on mobile - replaced by bottom sheet */
    .sidebar {
        display: none !important;
    }

    .sidebar-close-btn {
        display: none !important;
    }

    .overlay {
        display: none !important;
    }

    .map-container {
        width: 100%;
        height: 80vh;
        min-height: 80vh;
    }

    #map {
        height: 100%;
        min-height: 100%;
    }

    .notification {
        max-width: 85%;
    }

    .results-overlay {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        max-width: 100%;
        max-height: 50%;
        border-radius: 0;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .mobile-filter-toggle {
        top: 10px;
        left: 10px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .sidebar {
        width: 100%;
        padding: 15px;
        padding-top: 60px;
    }
    
    .sidebar-title {
        font-size: 18px;
    }
    
    .results-overlay {
        max-height: 60%;
    }
    
    .result-item {
        padding: 12px;
    }
    
    .book-now-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

.pb-5 {
    padding-bottom: 2em;
}

.result-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.book-now-btn {
    background-color: #732753;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.book-now-btn:hover {
    background-color: var(--primary-hover);
    color:white!important;
    text-decoration: unset!important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.main-container {
    flex: 1;
    display: flex;
    position: relative;
}

/* ============================================
   MOBILE BOTTOM BAR FILTERS
   ============================================ */

/* Hide on desktop */
.filter-bottom-bar {
    display: none;
}

@media (max-width: 768px) {
    .filter-bottom-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        z-index: 100;
        padding: 12px 15px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }

    .filter-chips {
        display: flex;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-bottom: 12px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-chips::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        display: flex;
        align-items: center;
        gap: 6px;
        background: #f5f5f5;
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 13px;
        font-family: 'Raleway', sans-serif;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
        border: 1px solid #e0e0e0;
        transition: all 0.2s ease;
    }

    .filter-chip:hover,
    .filter-chip:active {
        background: #ebebeb;
    }

    .filter-chip i {
        font-size: 12px;
        color: var(--primary-color);
    }

    .filter-chip.has-value {
        background: rgba(115, 39, 83, 0.1);
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .filter-chip .chip-label {
        color: #666;
        font-size: 11px;
    }

    .filter-chip .chip-value {
        font-weight: 600;
        color: var(--text-dark);
    }

    .filter-chip.has-value .chip-value {
        color: var(--primary-color);
    }

    .search-button-mobile {
        width: 100%;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 25px;
        padding: 14px 20px;
        font-family: 'Raleway', sans-serif;
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition: background-color 0.3s, transform 0.2s;
        box-shadow: 0 4px 15px rgba(115, 39, 83, 0.3);
    }

    .search-button-mobile:hover {
        background-color: var(--primary-hover);
    }

    .search-button-mobile:active {
        transform: scale(0.98);
    }

    .search-button-mobile i {
        font-size: 16px;
    }

    /* Bottom Sheet Overlay */
    .bottom-sheet-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .bottom-sheet-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Bottom Sheet */
    .filter-bottom-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 1002;
        max-height: 75vh;
        overflow-y: auto;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .filter-bottom-sheet.open {
        transform: translateY(0);
    }

    .bottom-sheet-handle {
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin: 12px auto;
    }

    .bottom-sheet-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px 15px;
        border-bottom: 1px solid #eee;
    }

    .bottom-sheet-title {
        font-family: 'Raleway', sans-serif;
        font-weight: 600;
        font-size: 18px;
        color: var(--text-dark);
        margin: 0;
    }

    .bottom-sheet-close {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: #f5f5f5;
        color: #666;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }

    .bottom-sheet-close:hover {
        background: #eee;
    }

    .bottom-sheet-content {
        padding: 20px;
    }

    .bottom-sheet-content .form-group {
        margin-bottom: 20px;
    }

    .bottom-sheet-content .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--text-dark);
        font-size: 14px;
    }

    .bottom-sheet-content select,
    .bottom-sheet-content input[type="text"],
    .bottom-sheet-content input[type="date"] {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 10px;
        font-size: 16px;
        font-family: 'Raleway', sans-serif;
        background: #fafafa;
        transition: border-color 0.2s, background 0.2s;
    }

    .bottom-sheet-content select:focus,
    .bottom-sheet-content input[type="text"]:focus,
    .bottom-sheet-content input[type="date"]:focus {
        border-color: var(--primary-color);
        background: white;
        outline: none;
    }

    .bottom-sheet-content .slider-container {
        padding: 10px 0;
    }

    .bottom-sheet-content .slider {
        width: 100%;
        height: 6px;
        -webkit-appearance: none;
        appearance: none;
        background: #ddd;
        border-radius: 3px;
        outline: none;
    }

    .bottom-sheet-content .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--primary-color);
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .bottom-sheet-content .slider-value {
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        color: var(--primary-color);
        margin-top: 10px;
    }

    .bottom-sheet-actions {
        padding: 15px 20px;
        border-top: 1px solid #eee;
    }

    .bottom-sheet-search-btn {
        width: 100%;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 25px;
        padding: 14px 20px;
        font-family: 'Raleway', sans-serif;
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition: background-color 0.3s;
        box-shadow: 0 4px 15px rgba(115, 39, 83, 0.3);
    }

    .bottom-sheet-search-btn:hover {
        background-color: var(--primary-hover);
    }
}