html, body {
    overflow: hidden !important;
    height: 100%;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sticky {
    position: sticky;
    top: 0;
    background: white;
    z-index: 30;
}

.border-nexur-blue {
    border-color: #003366 !important;
    color: #003366 !important;
}
.bg-blue-50 {
    background-color: rgba(0, 51, 102, 0.05) !important;
}

.text-nexur-blue span {
    color: #003366 !important;
}

#price-slider-inline {
    height: 3px;
    border: none;
    background: #f1f5f9;
}
#price-slider-inline .noUi-connect {
    background: #003366;
}
#price-slider-inline .noUi-handle {
    width: 18px;
    height: 18px;
    right: -9px;
    top: -8px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}
#price-slider-inline .noUi-handle:before,
#price-slider-inline .noUi-handle:after {
    display: none;
}

.filter-checkbox {
    appearance: none;
    -webkit-appearance: none;
    background-color: #f8fafc;
    margin: 0;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.375rem;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

.filter-checkbox::before {
    content: "";
    width: 0.65rem;
    height: 0.65rem;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #ffffff;
    background-color: #ffffff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.filter-checkbox:checked {
    background-color: #003366; /* Azul Nexur */
    border-color: #003366;
}

.filter-checkbox:checked::before {
    transform: scale(1);
}

.bedroom-btn-inline {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b; /* slate-500 */
    transition: all 0.2s;
    background-color: #ffffff;
}

.bedroom-btn-inline.active {
    border-color: #003366;
    color: #003366;
    background-color: rgba(0, 51, 102, 0.05);
}

.bedroom-btn-inline:hover:not(.active) {
    border-color: #cbd5e1;
    color: #475569;
}

.filter-dropdown .custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.filter-dropdown .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #f1f5f9;
    border-radius: 10px;
}

.switch-selection {
    background-color: #003366; /* Azul Nexur */
}

.segmented-control label {
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#price-slider-premium {
    height: 4px; /* Barra mucho más fina */
    border: none;
    background: #f1f5f9; /* Slate 100 */
    box-shadow: none;
    margin: 30px 10px; /* Espacio para que no se corten los tiradores */
}

.noUi-connect {
    background: #003366 !important; /* Azul Nexur */
}

.noUi-horizontal .noUi-handle {
    width: 22px !important;
    height: 22px !important;
    right: -11px !important;
    top: -9px !important; /* Centrado vertical respecto a la barra de 4px */
    border-radius: 50%;
    background: #003366 !important; /* Color plano (puedes cambiarlo a blanco si prefieres) */
    border: 2px solid #ffffff !important; /* Borde blanco para resaltar */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; /* Sombra mínima exterior */
    cursor: pointer;
    transition: transform 0.2s ease;
}

.noUi-handle:before,
.noUi-handle:after {
    display: none !important;
}

.noUi-active {
    transform: scale(1.15);
}

.noUi-target {
    border: none !important;
    box-shadow: none !important;
}

.bedroom-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 2px solid #f1f5f9; /* slate-100 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #94a3b8; /* slate-400 */
    transition: all 0.2s;
    background-color: #ffffff;
    cursor: pointer;
}

.bedroom-btn.active {
    border-color: #003366; /* Azul Nexur */
    color: #003366;
    background-color: rgba(0, 51, 102, 0.05); /* Azul muy tenue */
}

.bedroom-btn:hover:not(.active) {
    border-color: #cbd5e1; /* slate-300 */
    color: #475569; /* slate-600 */
}

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { @apply bg-slate-200 rounded-full; }

.animate-fade-in { animation: fadeIn 0.3s ease-out forwards; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


#drawer-overlay.hidden { display: none; }

.border-b, .border-t {
    border-color: #f1f5f9 !important; /* Un gris muy suave (slate-100) */
}

.border-b.pb-6.mb-2 {
    border-color: #f8fafc !important;
}

#map-results-badge {
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
