.reset-css * {
    all: unset;
    display: revert;
}

#panorama canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* 360 Photo Modal Styles */
#foto360Modal .modal-content {
    border-radius: 8px;
    overflow: hidden;
}

#foto360Modal .modal-header {
    background-color: var(--accent-color, #e02b20);
    color: white;
    border-bottom: none;
}

#foto360Modal .modal-title {
    font-weight: 600;
}

#foto360Modal .btn-close {
    filter: brightness(0) invert(1);
}

#foto360Modal .modal-body {
    padding: 0;
    position: relative;
}

#panorama {
    width: 100%;
    height: 70vh;
    background-color: #f8f9fa;
}

/* Pannellum custom controls styling */
.pnlm-controls {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.pnlm-controls:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #panorama {
        height: 50vh;
    }

    #foto360Modal .modal-dialog {
        margin: 0.5rem;
    }

    #fullscreenBtn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Estilos para el menú de filtros vertical */
.vertical-filter-menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 800;
    transition: transform 0.3s ease, max-height 0.3s ease;
    max-height: 370px; /* Aumentado para acomodar el carrusel más alto */
    overflow: hidden;
}

/* Responsive height adjustments */
@media (max-width: 767px) {
    .vertical-filter-menu {
        max-height: 400px; /* More height on mobile for stacked layout and taller carousel */
    }
}

.vertical-filter-menu.collapsed {
    transform: translateY(-100%);
    max-height: 0;
}

.filter-header {
    background-color: #e02b20;
    color: white;
    padding: 10px 15px;
    text-align: center;
}

.filter-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    color: white;
}

.filter-content {
    padding: 5px;
}

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

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

/* Styles for the range slider */
.form-range {
    width: 100%;
    height: 1.5rem;
    padding: 0;
    margin: 0.5rem 0;
}

/* Slider container styles for all screen sizes */
.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-container .form-range {
    flex: 1;
    margin: 0;
}

.slider-container #price-min,
.slider-container #price-max {
    flex-shrink: 0;
    min-width: 30px;
}

/* Responsive layout for filter groups */
@media (min-width: 768px) {
    .filter-content {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .filter-group {
        flex: 1;
        min-width: 200px;
        margin-bottom: 0;
    }
}

/* Small screen adjustments */
@media (max-width: 767px) {
    .filter-group {
        margin-bottom: 1rem;
    }

    /* Ensure slider has enough space on small screens */
    .filter-group:last-child {
        margin-bottom: 0.5rem;
    }
}

/* Estilos para el carrusel de loteamientos */
.loteamientos-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 235px; /* Altura aumentada para mostrar las tarjetas completamente */
    box-sizing: border-box;
}

.carousel-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    /*padding: 10px 0;*/
    scroll-behavior: smooth;
    scrollbar-width: thin; /* Firefox - mostrar scrollbar delgado */
    -ms-overflow-style: auto; /* IE and Edge - mostrar scrollbar */
    height: 100%; /* Usar toda la altura disponible */
    box-sizing: border-box;
}

.carousel-container::-webkit-scrollbar {
    height: 6px; /* Chrome, Safari and Opera - scrollbar visible pero delgado */
}

.carousel-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: #e02b20;
    border-radius: 3px;
}

.carousel-container::-webkit-scrollbar-thumb:hover {
    background: #c02718;
}

/* En pantallas grandes, ocultar scrollbar si hay controles de navegación */
@media (min-width: 768px) {
    .loteamientos-carousel.has-controls .carousel-container {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .loteamientos-carousel.has-controls .carousel-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
}

/* Controles de navegación del carrusel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(224, 43, 32, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-nav:hover {
    background: rgba(224, 43, 32, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 5px;
}

.carousel-nav.next {
    right: 5px;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

.carousel-nav i {
    font-size: 16px;
}

.loteamiento-card {
    flex: 0 0 auto;
    width: 200px;
    height: 220px; /* Altura fija para mostrar todo el contenido */
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.loteamiento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.loteamiento-card.current {
    border-color: #e02b20;
    box-shadow: 0 4px 12px rgba(224, 43, 32, 0.3);
}

.loteamiento-card-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #f8f9fa;
}

.loteamiento-card-content {
    padding: 12px;
}

.loteamiento-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loteamiento-card-location {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 6px;
}

.loteamiento-card-price {
    font-size: 0.85rem;
    color: #e02b20;
    font-weight: 600;
}

/* Responsive adjustments for carousel */
@media (max-width: 767px) {
    .loteamiento-card {
        width: 180px;
        height: 220px; /* Altura ajustada para móviles */
    }

    .loteamiento-card-image {
        height: 100px;
    }

    .loteamiento-card-content {
        padding: 10px;
    }
}

/* Estilos para el botón de toggle del menú de filtros */
.filter-menu-toggle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e02b20;
    color: white;
    border: none;
    border-radius: 0 0 20px 20px;
    width: 40px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 800;
    transition: top 0.3s ease;
}

.filter-menu-toggle.collapsed {
    top: 0;
}

.filter-menu-toggle:not(.collapsed) {
    /* La posición se calculará dinámicamente con JavaScript */
    top: 0;
}

.filter-menu-toggle i {
    transition: transform 0.3s ease;
}

.filter-menu-toggle:not(.collapsed) i {
    transform: rotate(180deg);
}