.main-layout {
    padding-left: 0;
    padding-right: 40px;
}

/* Desktop: map layout full màn hình (3 cột cao bằng viewport) */
@media (min-width: 992px) {
    .main-layout {
        height: calc(100dvh - var(--dv-header-h, 70px));
        min-height: calc(100dvh - var(--dv-header-h, 70px));
        padding-top: 0;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
    }

    .main-layout > .container-fluid {
        height: 100%;
    }

    .layout-row {
        height: 100% !important;
        min-height: 0;
    }
}

/* Active Filter Tags */
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(51, 87, 147, 0.1) 0%, rgba(74, 107, 168, 0.08) 100%);
    border: 1px solid rgba(51, 87, 147, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #335793;
    transition: all 0.2s;
}

.filter-tag:hover {
    background: linear-gradient(135deg, rgba(51, 87, 147, 0.15) 0%, rgba(74, 107, 168, 0.12) 100%);
    border-color: rgba(51, 87, 147, 0.3);
    transform: translateY(-1px);
}

.filter-tag .btn-close {
    width: 16px;
    height: 16px;
    padding: 0;
    font-size: 10px;
    opacity: 0.6;
    background: none;
    border: none;
}

.filter-tag .btn-close:hover {
    opacity: 1;
    background: rgba(51, 87, 147, 0.1);
    border-radius: 50%;
}

/* Mobile Filter Button */
#mobile-filter-toggle {
    box-shadow: 0 4px 12px rgba(51, 87, 147, 0.3);
    transition: all 0.3s;
}

#mobile-filter-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(51, 87, 147, 0.4);
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-image {
    height: 200px;
    width: 100%;
    margin-bottom: 12px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-toast {
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    align-items: start;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.custom-toast.success {
    border-left: 4px solid #10b981;
}

.custom-toast.error {
    border-left: 4px solid #ef4444;
}

.custom-toast.warning {
    border-left: 4px solid #f59e0b;
}

.custom-toast.info {
    border-left: 4px solid #3b82f6;
}

.custom-toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.custom-toast.success .custom-toast-icon {
    color: #10b981;
}

.custom-toast.error .custom-toast-icon {
    color: #ef4444;
}

.custom-toast.warning .custom-toast-icon {
    color: #f59e0b;
}

.custom-toast.info .custom-toast-icon {
    color: #3b82f6;
}

.custom-toast-content {
    flex: 1;
}

.custom-toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a202c;
}

.custom-toast-message {
    font-size: 14px;
    color: #4a5568;
}

.custom-toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-toast-close:hover {
    color: #4a5568;
}

/* Quick Filter Chips */
.quick-filter-chip,
.quick-filter-chip-mobile {
    transition: all 0.2s;
    border: 2px solid #335793;
    font-weight: 600;
}

.quick-filter-chip:hover,
.quick-filter-chip-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 87, 147, 0.2);
}

.quick-filter-chip.active,
.quick-filter-chip-mobile.active {
    background: linear-gradient(135deg, #335793 0%, #4a6ba8 100%);
    color: white;
    border-color: #335793;
    box-shadow: 0 4px 12px rgba(51, 87, 147, 0.3);
}

/* Empty State Improvements */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
    color: #64748b;
}

/* Loading Overlay */
.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 16px;
}

.map-loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    color: #335793;
}

/* Price Range Slider */
.price-filter-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.price-filter-header {
    user-select: none;
}

.price-filter-header:hover {
    opacity: 0.8;
}

.price-range-slider-wrapper {
    height: 30px;
    margin: 20px 0;
    padding: 12px 0;
}

.price-range-track {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
}

.price-range-fill {
    height: 100%;
    background: #335793;
    border-radius: 3px;
    position: absolute;
    transition: all 0.1s ease;
}

.price-handle {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #335793;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    pointer-events: none;
}

.price-range-input {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 30px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    opacity: 0;
    cursor: pointer;
    z-index: 5;
    -webkit-appearance: none;
    appearance: none;
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    cursor: pointer;
    background: transparent;
}

.price-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: none;
    background: transparent;
}

.price-range-input::-webkit-slider-runnable-track {
    height: 30px;
    cursor: pointer;
}

.price-range-input::-moz-range-track {
    height: 30px;
    cursor: pointer;
}

.price-range-display {
    margin-top: 12px;
    font-size: 14px;
}
.btn-header {
    color: #335793;
}

.btn-header:hover {
    color: #335793;
}


@media (max-width: 768px) {
    .main-layout {
        padding-left: 10px;
        padding-right: 10px;
    }
}
.leaflet-popup-close-button {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}
.leaflet-container a.leaflet-popup-close-button {
    position: absolute;
    top: 5px;
    right: 10px;
}

