﻿.price-slider-wrapper::before 
{
    content: "";
    position: absolute;
    height: 6px;
    width: 100%;
    background: #dee2e6;
    border-radius: 3px;
    z-index: 0;
    left: 0;
}

.price-slider-wrapper 
{
    position: relative;
    height: 30px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.price-input-hidden 
{
    background-color: transparent !important;
    border: 1px solid transparent !important;
    color: #6c757d !important;
    font-weight: 600;
    width: 45px !important;
    padding: 0 !important;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.price-input-hidden:hover,
.price-input-hidden:focus 
{
    color: #198754 !important;
    border-bottom: 1px dashed #198754 !important;
    outline: none !important;
    box-shadow: none !important;
}

.price-input-hidden::-webkit-outer-spin-button,
.price-input-hidden::-webkit-inner-spin-button 
{
    -webkit-appearance: none;
    margin: 0;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button 
{
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] 
{
    -moz-appearance: textfield;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-weight: bold;
    color: #198754;
}

input[type=number]:focus 
{
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.1);
    outline: none;
}

.custom-range 
{
    accent-color: #198754;
    position: absolute;
    width: 100%;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    margin: 0;
    outline: none;
    left: 0;
    z-index: 2;
}

.slider-track 
{
    position: absolute;
    height: 6px;
    background: #198754;
    border-radius: 3px;
    z-index: 1;
    pointer-events: none;
}

.custom-range::-webkit-slider-thumb 
{
    pointer-events: auto;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #198754;
    border: 2px solid #ffffff;
    cursor: pointer;
    -webkit-appearance: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    position: relative;
    margin-top: -6px;
}

.custom-range::-webkit-slider-runnable-track 
{
    background: transparent !important;
    border: none !important;
}

.search-card-img 
{
    height: 235px;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: calc(0.375rem - 1px);
    border-bottom-left-radius: calc(0.375rem - 1px);
}

#largeMapModal .modal-xl 
{
    max-width: 80%; 
}

#largeMapModal .modal-content 
{
    height: 85vh;
    border-radius: 12px;
    overflow: hidden;
}

#largeMapFrame 
{
    min-height: 400px;
}

#largeMapModal .modal-header 
{
    border-bottom: none;
}

.mb-4.position-relative 
{
    margin-bottom: 1.5rem !important;
}

.search-label-small 
{
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
    letter-spacing: 0.5px;
}

.form-control-custom 
{
    border: 2px solid #e9ecef !important;
    background-color: #f8f9fa !important;
    border-radius: 25px !important;
    padding: 10px 15px 10px 45px !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    height: 45px;
}

.form-control-custom:focus 
{
    border-color: #198754 !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.1) !important;
    outline: none;
}

.input-icon 
{
    position: absolute;
    left: 18px;
    top: 40px;
    color: #198754;
    font-size: 1.2rem;
    z-index: 5;
    pointer-events: none;
    margin-top: 1px;
}

.custom-dropdown-list 
{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #198754;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999 !important;
    display: none;
    pointer-events: auto;
}

.dropdown-header-custom
{
    padding: 8px 15px;
    font-size: 0.75rem;
    color: #198754;
    background-color: #f8f9fa;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
}

.dropdown-item-custom
{
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #495057;
    transition: background 0.2s ease;
}

.dropdown-item-custom:hover 
{
    background-color: #e9f7ef;
    color: #198754;
}

.dropdown-item-custom i 
{
    margin-right: 12px;
    width: 18px;
    text-align: center;
    color: #6c757d;
}
.dropdown-item-custom:hover i 
{
    color: #198754;
}

.search-sort-dropdown
{
    position: relative;
    z-index: 1020; 
    right: 15px;
}

.search-sort-dropdown .dropdown-menu 
{
    margin-top: 50px !important;
    min-width: 220px;
    border: 1px solid #198754 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    z-index: 1030;
    left: 45% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

.dropdown-toggle::after
{
    vertical-align: middle;
    margin-left: 10px;
}

.search-sort-dropdown .dropdown-item 
{
    font-size: 0.9rem;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.search-sort-dropdown .dropdown-item:hover 
{
    background-color: #e9f7ef;
    color: #198754;
}

.btn-outline-success.dropdown-toggle 
{
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    border-width: 2px;
}

.custom-dropdown-list::-webkit-scrollbar
{
    width: 10px;
}

.custom-dropdown-list::-webkit-scrollbar-thumb 
{
    background: #ccc;
    border-radius: 10px;
}

.no-results-container 
{
    background: #ffffff;
    border: 1px solid #e9ecef !important;
    transition: transform 0.3s ease;
}

.no-results-icon-wrapper 
{
    position: relative;
    display: inline-block;
}

.text-success-dm 
{
    color: #198754;
}

.icon-pulse 
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(25, 135, 84, 0.1);
    border-radius: 50%;
    z-index: 0;
    animation: pulse-animation 2s infinite;
}

.btn-success,
.btn-outline-success
{
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, box-shadow 0.2s ease !important;
    will-change: transform;
    transform: translateY(0);
}

.btn-outline-success 
{
    border-width: 2px;
    background-color: rgba(25, 135, 84, 0.05);
}

.btn-success:hover,
.btn-outline-success:hover
{
    transform: translateY(-2px);
    background-color: #157347 !important;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3) !important;
}
.btn-map-static.position-absolute:hover 
{
    transform: translateX(-50%) translateY(0) !important;
    background-color: #157347 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.text-success.text-decoration-none.small:hover 
{
    color: #157347 !important;
    text-decoration: underline !important;
    cursor: pointer;
}

.search-result-card 
{
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.custom-dropdown-list:empty 
{
    display: none !important;
    pointer-events: none !important;
}

.form-check-input:checked 
{
    background-color: #198754;
    border-color: #198754;
}

.form-check-input:focus 
{
    border-color: #198754;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.grid-mode .result-wrapper 
{
    width: 33.333%;
}

.grid-mode .search-result-card .col-md-4
{
    width: 100% !important;
}

.grid-mode .search-result-card .col-md-8 
{
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    width: 100% !important;
    height: 300px !important;
    display: flex !important;
    justify-content: flex-start;
}

.grid-mode .card-body 
{
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
}

@media (max-width: 992px) 
{
    .grid-mode .result-wrapper 
    {
        width: 50%;
    }
}

@media (max-width: 576px)
{
    .grid-mode .result-wrapper 
    {
        width: 100%;
    }
}