.damaneimmo-search-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
}

.damaneimmo-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #28317E;
    box-shadow: 0 0 0 2px rgba(40, 49, 126, 0.1);
}

.search-button {
    padding: 12px 25px;
    background-color: #28317E;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
}

.search-button:hover {
    background-color: #1e2563;
}

.toggle-button {
    padding: 8px 20px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.toggle-button:hover {
    background-color: #e0e0e0;
}

.toggle-button.active {
    background-color: #28317E;
    color: white;
    border-color: #28317E;
}

.advanced-filters {
    width: 100%;
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

.price-range,
.rooms-range,
.surface-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .damaneimmo-search-form {
        flex-direction: column;
        padding: 15px;
    }
    
    .search-input {
        width: 100%;
    }
    
    .advanced-filters {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .price-range,
    .rooms-range,
    .surface-range {
        grid-template-columns: 1fr;
    }
    
    .search-button {
        width: 100%;
    }
}

.bar {
    position: relative;
    width: 100%;
}

.rectangle-parent {
    position: relative;
    width: 100%;
    max-width: 1526px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.dropdown {
    flex: 1;
    min-width: 200px;
    height: 53px;
    border: 1px solid #2d2e82;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}


.dropdown-label {
    color: #2d2e82;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 20px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    white-space: nowrap;
}

.dropdown-icon {
    width: 11px;
    height: 8.8px;
    position: absolute;
    right: 15px;
    fill: currentColor;
}

.btn-container {
    display: flex;
    gap: 0px !important;
    height: 53px;
    align-items: center;
}

.btn {
    width: 53px;
    height: 53px;
    border: none;
    cursor: pointer;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    text-align: center;
    line-height: 1;
    position: relative;
}

.btn-plus {
    transition: none;
    background-color: transparent;
}

.btn-plus::before {
    content: '+';
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-plus span {
    display: none;
}

.btn-ok {
    background-color: #2d2e82;
    color: white;
    font-size: 18px;
    font-weight: 500;
}

/* Hover effects */
.dropdown:hover {
    border-color: #1a1b4e;
    background-color: #f8f9fb;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-plus:hover {
    background-color: #c8d0e0;
}

.btn-ok:hover {
    background-color: #1a1b4e;
}

/* Focus styles for accessibility */
.btn:focus {
    outline: 2px solid #2d2e82;
    outline-offset: 2px;
}

/* Active styles */
.btn:active {
    transform: translateY(1px);
}

/* Responsive styles */
@media (max-width: 1200px) {
    .rectangle-parent {
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .dropdown {
        min-width: calc(33.33% - 15px);
    }
    
    .btn-container {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .dropdown {
        min-width: 100%;
    }
    
    .dropdown-label {
        font-size: 16px;
    }
    
    .btn-container {
        width: 100%;
        justify-content: flex-end;
        margin-top: 15px;
    }
    
    .btn {
        width: 45px;
        height: 45px;
    }
    
    .btn-plus {
        font-size: 20px;
    }
    
    .btn-search {
        font-size: 16px;
    }
    
    .btn-search .search-icon {
        width: 14px;
        height: 14px;
    }
    
    .btn-search .search-icon:after {
        width: 6px;
        top: 11px;
        left: 11px;
    }
}

/* Filter Panel Styles */
.filter-panel {
    width: 100%;
    max-width: 1526px;
    margin: 15px auto 0;
    padding: 30px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.filter-group {
    position: relative;
}

.filter-input,
.filter-select {
    width: 100%;
    height: 53px;
    padding: 0 15px;
    border: 1px solid #2d2e82;
    border-radius: 4px;
    background: white;
    color: #2d2e82;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.filter-input::placeholder {
    color: #6e6e6e;
    opacity: 0.8;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #1a1b4e;
    box-shadow: 0 0 0 2px rgba(45, 46, 130, 0.1);
}

/* Enhanced Price Range Slider */
.price-range-container {
    grid-column: span 3;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid rgba(46, 47, 130, 0.1);
}

.price-range-slider {
    width: 100%;
}

.price-range-text {
    margin-bottom: 15px;
    color: #2d2e82;
    font-weight: 500;
    font-size: 16px;
}

.price-range-value {
    color: #2e2f82;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Active state for price range value */
.price-range-slider.active .price-range-value {
    color: #1a1b4e;
    text-decoration: underline;
}

/* Improved Range Slider */
.range-slider-container {
    position: relative;
    height: 6px;
    background: #e9ecef;
    border-radius: 6px;
    margin: 30px 0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.range-slider-container::before {
    content: '';
    position: absolute;
    height: 100%;
    background-color: #2e2f82;
    border-radius: 3px;
    z-index: 1;
    left: var(--left-thumb, 0%);
    right: calc(100% - var(--right-thumb, 100%));
    transition: left 0.3s ease, right 0.3s ease;
    box-shadow: 0 1px 2px rgba(46, 47, 130, 0.3);
}

.price-range-input {
    position: absolute;
    width: 100%;
    height: 6px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
    margin: 0;
}

.price-range-input::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid #2e2f82;
    background: white;
    pointer-events: auto;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(46, 47, 130, 0.3);
    z-index: 3;
    position: relative;
    transition: all 0.2s ease;
}

.price-range-input::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid #2e2f82;
    background: white;
    pointer-events: auto;
    -moz-appearance: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(46, 47, 130, 0.3);
    z-index: 3;
    position: relative;
    transition: all 0.2s ease;
}

.price-range-input:focus {
    outline: none;
}

.price-range-input:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(46, 47, 130, 0.2);
    transform: scale(1.1);
}

.price-range-input:focus::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(46, 47, 130, 0.2);
    transform: scale(1.1);
}

.price-range-input:hover::-webkit-slider-thumb {
    background-color: #f8f9fa;
    border-color: #1a1b4e;
    transform: scale(1.15);
}

.price-range-input:hover::-moz-range-thumb {
    background-color: #f8f9fa;
    border-color: #1a1b4e;
    transform: scale(1.15);
}

/* Plus Button Active State */
.btn-plus {
    transition: none;
    background-color: transparent;
}

.btn-plus::before {
    content: '+';
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-plus span {
    display: none;
}

.btn-plus.active::before {
    transform: rotate(35deg);
    color: #2d2e82;
}

/* Responsive Styles for Filter Panel */
@media (max-width: 1200px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-range-container {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr !important;
    }

    .filter-panel {
        padding: 20px;
        position: relative;
        transform: none;
    }

    .price-range-container {
        grid-column: span 1;
    }

    .filter-input,
    .filter-select {
        height: 45px;
        font-size: 14px;
    }
}

/* Filter Panel Animation */
.filter-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) translateX(-50%);
    transition: all 0.3s ease;
}

.filter-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-50%);
}

/* FIX css for select + input*/
.select2-container--default .select2-selection--single {
    border: 2px solid #e8e8ff00 !important;
    margin-bottom: 0px !important;
}

input.dropdown-input {
    margin-bottom: 0px !important;
    border: 2px solid #e8e8ff00 !important;
}

.select2-selection__rendered {
    text-transform: uppercase;
    color: #2d2e82 !important;
}

input.dropdown-input::placeholder {
    color: #2d2e82 !important;
    text-transform: uppercase;
}


.select2-property-child {
    padding-left: 20px;
}
[dir="rtl"] .select2-property-child {
    padding-left: 0px;
    padding-right: 20px;
}
.select2-container--default .select2-results>.select2-results__options{
    max-height: 500px !important;
}

.filter-group.bordered {
    border: 1px solid #2d2e82;
    border-radius: 4px;
    padding: 10px;
}

.filter-group .select2 {
    display: block;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: transparent !important;
}

/* Property Archive Styles */
.properties-archive {
    padding: 40px 0;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.property-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
}

.property-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-details {
    padding: 20px;
}

.property-title {
    margin: 0 0 15px;
    font-size: 1.2em;
}

.property-title a {
    color: #2d2e82;
    text-decoration: none;
}

.property-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    font-size: 0.9em;
}

.property-meta > div {
    padding: 5px 0;
}

.price {
    color: #2d2e82;
    font-weight: bold;
    grid-column: 1 / -1;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
}


.prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}


.prop-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    padding: 20px;
    display: flex;
    align-items: end;
}

.prop-card .prop-thumb {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    z-index: -1;
}

.prop-card .prop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prop-card .prop-content {
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.prop-card .prop-content svg {
    width: 20px;
    height: 20px;
}

/* Field hover animations */
.dropdown:hover .select2-selection__rendered,
.dropdown:hover input.dropdown-input {
    font-weight: bold;
    text-decoration: underline;
    transition: all 0.3s ease;
}

/* Magnifying glass icon for search button */
.btn-search {
    background-color: #2d2e82;
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-search .search-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-search .search-icon:after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 7px;
    height: 2px;
    background-color: white;
    transform: rotate(45deg);
    transform-origin: 0 0;
    transition: all 0.3s ease;
}

.btn-search:hover .search-icon {
    transform: scale(1.2);
}

.btn-search:hover .search-icon:after {
    width: 8px;
}

/* Animation for the magnifying glass on hover */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.btn-search:hover .search-icon {
    animation: pulse 1s infinite;
}

/* Filter inputs hover effect */
.filter-input:hover {
    font-weight: bold;
    text-decoration: underline;
    transition: all 0.3s ease;
}

/* Construction period selector hover effect */
.dropdown.construction-period:hover .dropdown-select {
    font-weight: bold;
    text-decoration: underline;
    transition: all 0.3s ease;
}

/* Price range slider hover effect */
.price-range-slider:hover .price-range-text {
    font-weight: bold;
}

.price-range-input:hover::-webkit-slider-thumb {
    background-color: #1a1b4e;
    transform: scale(1.2);
}

.price-range-input:hover::-moz-range-thumb {
    background-color: #1a1b4e;
    transform: scale(1.2);
}

/* Update hover effects for the new button */
.btn-search:hover {
    background-color: #1a1b4e;
}

/* Focus styles for accessibility */
.btn:focus {
    outline: 2px solid #2d2e82;
    outline-offset: 2px;
}

/* Update responsive styles */
@media (max-width: 768px) {
    .btn-search {
        font-size: 16px;
    }
}

/* Range slider hover state */
.range-slider-container.hover::before {
    background-color: #1a1b4e;
    height: 8px;
    margin-top: -1px;
}

.range-slider-container.hover {
    cursor: pointer;
}

@media (max-width: 768px) {
    .price-range-container {
        grid-column: span 1;
        padding: 15px;
    }
    
    .price-range-text {
        font-size: 14px;
    }
    
    .price-range-value {
        display: block;
        margin-top: 5px;
    }
    
    .price-range-input::-webkit-slider-thumb {
        height: 16px;
        width: 16px;
    }
    
    .price-range-input::-moz-range-thumb {
        height: 16px;
        width: 16px;
    }
}
