body { overflow-x:hidden!important; }
/* Select2 Personalizado para manter o layout atual */
.select2-container--bootstrap-5 .select2-selection--multiple {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    height: 38px !important;
    min-height: 38px;
    background-color: #fff;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.select2-search__field {
    font-size:13pt!important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected, .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) {
    background-color:orange;
}

.select2-results__option {
    font-size:13pt!important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white!important;
    border: none;
    border-radius: 0.25rem;
    padding: 2px 8px;
    margin: 2px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.selection { width: 100%!important; }

.select2-selection { width: 100%!important; }


.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 5px;
    font-weight: bold;
    opacity: 0.9;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff;
    opacity: 1;
}

.select2-container--bootstrap-5 .select2-search--inline .select2-search__field {
    margin: 0 !important;
    padding: 0;
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.5;
    height: 20px;
    min-height: 20px;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    padding: 0.375rem 0.75rem;
    margin: 0;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2px;
    padding-top: 0.5rem;
}

/* Ajustes para manter o layout atual */
.select2-container--bootstrap-5 {
    width: 100% !important;
    font-family: inherit;
}

.select2-container--bootstrap-5 .select2-selection--multiple {
    height: 76px !important;
    min-height: 76px;
    max-height: 76px;
    overflow: hidden;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    margin: 1px 2px;
    padding: 2px 6px;
    font-size: 0.8rem;
    max-width: calc(100% - 4px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select2-container--bootstrap-5 .select2-search--inline {
    margin: 0;
    padding: 0;
    height: 20px;
    min-height: 20px;
}

.select2-container--bootstrap-5 .select2-search--inline .select2-search__field {
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.5;
    height: 20px;
    min-height: 20px;
    border: none;
    outline: none;
    background: transparent;
}

/* Integração com o design atual */
.select-has-icon .select2-container--bootstrap-5 {
    display: block;
    font-family: inherit;
}

.select-has-icon .select2-container--bootstrap-5 .select2-selection--multiple {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height: 76px !important;
    min-height: 76px;
    max-height: 76px;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
}

.select-has-icon .select2-container--bootstrap-5 .select2-selection--multiple:focus-within {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Ajustes específicos para manter consistência com outros inputs */
.select-has-icon .select2-container--bootstrap-5 .select2-selection--multiple {
    box-sizing: border-box;
    vertical-align: middle;
}

/* Placeholder quando não há seleções */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__placeholder {
    color: #6c757d;
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.5;
    padding: 0.375rem 0;
    margin: 0;
}

/* Carrossel de Propriedades */
.property-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width:100%;
}

.property-carousel__slide {
    display: none;
    position: relative;
}

.property-carousel__slide:first-child {
    display: block;
}

.property-carousel__slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.property-carousel__slide img:hover {
    transform: scale(1.05);
}

.property-carousel__nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
}

.carousel-nav {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: white;
    transform: scale(1.1);
}

.carousel-nav i {
    color: #333;
    font-size: 14px;
}

/* Modal de Imagens */
.property-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.property-modal.active {
    display: block;
}

#btn-filtros-avancados-comprar {
    color: #666;
}

.property-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.property-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.property-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.property-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.property-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.property-modal__close:hover {
    background: #f5f5f5;
    color: #333;
}

.cover-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.property-modal__body {
    padding: 0;
}

.property-modal__carousel {
    position: relative;
}

.property-modal__slide {
    position: relative;
}

.property-modal__image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.property-modal__nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.modal-carousel-nav {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-carousel-nav:hover {
    background: white;
    transform: scale(1.1);
}

.modal-carousel-nav i {
    color: #333;
    font-size: 18px;
}

.property-modal__indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .property-modal__content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
    }
    
    .modal-carousel-nav {
        width: 40px;
        height: 40px;
    }
}

/* Estilos para os Filtros de Pesquisa */
.search-form {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.filtros-avancados {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.price-range {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.range-slider {
    position: relative;
    height: 40px;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 0 10px;
}

.range-slider input[type="range"] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 20px);
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    outline: none;
    pointer-events: none;
    -webkit-appearance: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ff6b35;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
    background: #ff5722;
    transform: scale(1.1);
}

.range-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ff6b35;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: none;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.range-slider .range-min {
    z-index: 1;
}

.range-slider .range-max {
    z-index: 2;
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d!important;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff!important;
}

.filtro-residencial,
.filtro-comercial {
    transition: all 0.3s ease;
}

.filtro-residencial.show,
.filtro-comercial.show {
    display: block !important;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.common-input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.select:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Melhorias adicionais para os filtros */
.search-form .row {
    margin-bottom: 0;
}

.search-form .col-lg-3,
.search-form .col-sm-6,
.search-form .col-xs-6 {
    margin-bottom: 15px;
}

.filtros-avancados .row {
    margin-bottom: 0;
}

.filtros-avancados .col-lg-3,
.filtros-avancados .col-sm-6 {
    margin-bottom: 20px;
}

.filtros-avancados .col-lg-6,
.filtros-avancados .col-sm-12 {
    margin-bottom: 20px;
}

.filtros-avancados .col-lg-12 {
    margin-bottom: 0;
}

.price-range .d-flex {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.range-slider {
    margin-top: 10px;
}

/* Estilo para botões de filtros */
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: #fff;
}

/* Animação suave para transições */
.search-form * {
    transition: all 0.3s ease;
}

/* Responsividade para filtros */
@media (max-width: 768px) {
    .search-form {
        padding: 15px;
    }
    
    .filtros-avancados {
        padding: 15px;
    }
    
    .price-range {
        padding: 15px;
    }
}

.btn-outline-danger {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.btn-outline-danger:hover {
    color:#fff!important;
}
