@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;500;600;700&display=swap');

.property-archive-container,
.property-archive-container * {
    font-family: "Albert Sans", sans-serif !important;
}

.property-archive-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 20px;
}

.property-archive-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 30px;
}

.property-archive-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.property-filters-sidebar {
    width: 400px;
    flex-shrink: 0;
    border: 1px solid #00000029;
    border-radius: 20px;
    padding: 32px 20px;
}

.property-results {
    flex-grow: 1;
    position: relative;
}

/* Accordion */
.filter-accordion {
    border-radius: 8px;
    overflow: hidden;
}

.property-filters-sidebar .accordion-item {
    padding: 10px;
}


.accordion-item:last-child {
    border-bottom: none;
}


.property-filters-sidebar .accordion-item button.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
    border: none;
    background: #00000000;
    color: #1E1E1E;
    font-size: 16px;
    font-weight: 600;
}

.accordion-header::after {
    content: '+';
    font-size: 18px;
}

.accordion-item.open .accordion-header::after {
    content: '-';
}

.accordion-content {
    padding: 20px;
    display: none;
    background: #FBF8F5!important;
    border-radius: 8px;
}

.accordion-item.open .accordion-content {
    display: block;

}

/* Form Fields */
.filter-field {
    margin-bottom: 15px;
}

.filter-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.filter-field input[type="date"],
.filter-field input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#date-range-picker {
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
    background-color: #fff;
}

.checkbox-label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}


.range-inputs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.range-inputs input {
    width: 50%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Actions */
.filter-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.apply-filter-btn {
    flex-grow: 1;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.reset-filter-btn {
    background: #eee;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

#load-more-btn {
    font-size: 14px;
    font-weight: 500;
    padding: 12px 28px;
    background: #00000000;
    color: #1E1E1E;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

#load-more-btn:hover {
    background: #1e1e1e;
    color: #fff;
    border-color: #1e1e1e;
}



/*----proper-card--*/
article.property_card_holder {
    background: #f6f1eb80;
    border-radius: 18px;
    border: 1px solid #00000029;
    padding: 16px;
}
article.property_card_holder .property_card_image_holder {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.property_card_image_container {
    position: relative;
}
.property_card_image_container .property_card_avalable_date {
    position: absolute;
    z-index: 1;
    height: 100%;
    width: 100%;
    top: 0;
    background: rgba(0, 0, 0, 0);
    background: linear-gradient(177deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.4) 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.property_card_image_container .property_card_avalable_date span {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}
.property_card_image_container img.property_card_image {
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: cover;
    object-position: center;
}

article.property_card_holder .property_card_details_holder {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
article.property_card_holder .property_card_details_holder button.property_card_avability_date_putter {
    padding: 10px;
    border-radius: 8px;
    background: #FB956F;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s ease all;
    line-height: 1.6;
}

article.property_card_holder .property_card_details_holder button.property_card_avability_date_putter:hover{
    background: #1E1E1E;
}

article.property_card_holder .property_card_details_holder .property_card_pricing_details > span {
    width: 49%;
    display: inline-flex;
    align-items: center;
}
article.property_card_holder .property_card_details_holder .property_card_pricing_details > span.property_card_pricing{
    width: 70%;
}
article.property_card_holder .property_card_details_holder .property_card_pricing_details > span.property_card_property_id{
    width: 25%;
}
article.property_card_holder .property_card_details_holder .property_card_pricing_details span.property_card_property_id {
    margin: auto 0 auto auto;
    flex-direction: row;
    justify-content: flex-end;
    font-weight: 500;
    color: #D79943;
    font-size: 14px;
    line-height: 1.4;
}


article.property_card_holder
.property_card_details_holder
.property_card_pricing_details
span.property_card_pricing
em.duration_text {
    line-height: 2.6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-left: 6px;
    font-style: normal; /* This makes it normal */
}
article.property_card_holder .property_card_details_holder .property_card_pricing_details span.property_card_pricing span.calculated_price {
    font-size: 26px;
    font-weight: 600;
}
.property_card_ameneties_wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.property_card_ameneties_wrapper .property_card_ameneties_lists {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.property_card_ameneties_wrapper .property_card_ameneties_lists .property_card_ameneties_list {
    display: inline-flex;
    flex-direction: row;
    width: auto;
    gap: 10px;
    align-items: center;
}
.property_card_ameneties_wrapper .property_card_ameneties_lists .property_card_ameneties_list img {
    width: 18px;
}
.property_card_ameneties_wrapper .property_card_ameneties_lists .property_card_ameneties_list span {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: #1E1E1E;
}

.property_card_ameneties_wrapper .property_card_property_title a {
    font-size: 14px;
    font-weight: 500;
    color: #1E1E1E;
    transition: 0.3s ease all
}
.property_card_ameneties_wrapper .property_card_property_title a:hover{
    color: #FF3C3C;
}

.property-archive-header .property-sorting select#property-sort {
    font-size: 14px;
    font-weight: 500;
    border-radius: 50pc;
    padding: 10px 48px 10px 16px;
    appearance: none;
    color: #1E1E1E;
    border: 1px solid #1e1e1e50;
    background: url("../icons/sort-icon.svg");
    background-repeat: no-repeat;
    background-position: 90% center;
}


/*calentder*/
.flatpickr-calendar {
    background: #FBF8F5!important;
}
.flatpickr-calendar span.flatpickr-day {
    border-radius: 8px!important;
}
.flatpickr-calendar .flatpickr-day.startRange,
.flatpickr-calendar .flatpickr-day.endRange,
.flatpickr-calendar .flatpickr-day:focus,
.flatpickr-calendar .flatpickr-day.selected{
   background: #FB956F;
    color: #fff;
    border: none!important;
}
.flatpickr-calendar span.flatpickr-day.inRange {
    background: #fb956f33;
    border-radius: 0!important;
}
.flatpickr-calendar .flatpickr-day.inRange {
    border-radius: 0;
    -webkit-box-shadow: -5px 0 0 #fb956f33, 5px 0 0 #fb956f33;
    box-shadow: -5px 0 0 #fb956f33, 5px 0 0 #fb956f33;
    border: none!important;
}
.flatpickr-calendar  span.flatpickr-day.flatpickr-disabled {
    background: #ffe4e4;
    color: #d63638;
}


.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}

/* Hide default checkbox style */
.checkbox-label input {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #dcdcdc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
}

/* Checked state */
.checkbox-label input:checked {
    background: #f28c5c;
    border-color: #f28c5c;
}

/* Checkmark */
.checkbox-label input:checked::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    top: 2px;
    left: 7px;
    transform: rotate(45deg);
}

.property-filters-sidebar .filter-actions {
    display: flex;
    gap: 12px;
}

.property-filters-sidebar .filter-actions button {
    width: 100%;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    border: none;
    transition: 0.3s ease all;
    font-size: 14px;
}
.property-filters-sidebar .filter-actions button.reset-filter-btn:hover,
.property-filters-sidebar .filter-actions button.apply-filter-btn{
    background: #FF3C3C;
}
.property-filters-sidebar .filter-actions button.apply-filter-btn:hover,
.property-filters-sidebar .filter-actions button.reset-filter-btn{
    background: #1e1e1e;
}

.range-slider-container .noUi-horizontal {
    height: 8px;
}
.range-slider-container .noUi-horizontal .noUi-handle {
    width: 16px;
    height: 16px;
    border-radius: 50px;
    box-shadow: none;
    cursor: pointer;
    background: #FB956F;
    border: none;
}
.range-slider-container .noUi-horizontal .noUi-connect{
    background: #FB956F;
}
.range-slider-container .noUi-horizontal .noUi-handle:after,
.range-slider-container .noUi-horizontal .noUi-handle:before{
    display: none;
}



@media (max-width: 1370px) {
    article.property_card_holder .property_card_details_holder .property_card_pricing_details span.property_card_pricing span.calculated_price {
        font-size: 18px;
        font-weight: 600;
    }
    article.property_card_holder .property_card_details_holder .property_card_pricing_details > span.property_card_pricing {
        width: 70%;
    }
    article.property_card_holder .property_card_details_holder .property_card_pricing_details > span.property_card_property_id {
        width: 25%;
    }
}
/* Mobile styles */
@media (max-width: 1024px) {
    button#mobile-filter-trigger {
        position: fixed;
        bottom: 20px;
        z-index: 999;
        left: 20px;
        border-radius: 8px;
        color: #fff;
        border: none;
        background: #1e1e1e;
    }

    .property-archive-content {
        flex-direction: column;
    }

    .property-filters-sidebar {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 1001;
        transition: right 0.3s ease;
        padding: 20px;
        box-sizing: border-box;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        border-radius: 0;
    }

    .property-filters-sidebar.open {
        right: 0;
    }

    .mobile-filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        display: none;
    }

    .mobile-filter-overlay.open {
        display: block;
    }

    body.filter-open {
        overflow: hidden;
    }

    .filter-actions {
        position: sticky;
        bottom: -20px;
        background: #fff;
        padding: 10px 0;
        border-top: 1px solid #eee;
        z-index: 9;
    }

    .mobile-only {
        display: block;
    }
    .filter-field input[type="date"], .filter-field input[type="text"] {
        font-size: 12px;
    }
}

@media (min-width: 1025px) {
    .mobile-only {
        display: none;
    }
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    display: none;
    justify-content: center;
    padding-top: 100px;
    z-index: 10;
    animation: blink 1s infinite alternate;
}

/* Flatpickr Center Modal */
.flatpickr-center-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 99999 !important;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3) !important;
}

.flatpickr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
}

@keyframes blink {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
