/* ==========================================================
   PROPERTY LISTING SECTION — property-listing.css
   ========================================================== */

.listing_wrapper {
    background-color: #f2efe6;
    padding: 60px 0;
    font-family: 'Poppins', Arial, sans-serif;
    color: #1c2b2b;
}

.listing_wrapper * {
    box-sizing: border-box;
}

.listing_wrapper .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.listing_wrapper .row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.listing_wrapper .col-md-3 {
    flex: 0 0 300px;
    max-width: 300px;
}

.listing_wrapper .col-md-9 {
    flex: 1;
    min-width: 0;
}

/* ==========================================================
   FILTERS SIDEBAR
   ========================================================== */

.property-filters {
    font-size: 13px;
    border: 1px solid #d8d3c4;
    border-radius: 4px;
    padding: 20px;
    background: transparent;
}

.filters-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 600;
    padding-bottom: 14px;
    border-bottom: 1px solid #d8d3c4;
    margin-bottom: 4px;
}

.filters-head .clear-all {
    color: #7a8f89;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.filters-head .clear-all:hover {
    text-decoration: underline;
}

.filter-group {
    border-bottom: 1px solid #d8d3c4;
    padding: 16px 0;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group > label {
    display: block;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 600;
    color: #1c2b2b;
    margin-bottom: 10px;
}

.filter-group input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9c3b3;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    color: #333;
}

/* ==========================================================
   TOGGLE DROPDOWN FILTERS (Guests / Stay Type / Bedrooms / Bathrooms)
   ========================================================== */

.filter-dropdown {
    padding: 0;
}

.filter-toggle-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 16px 10px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 600;
    color: #1c2b2b;
    font-family: inherit;
}

.filter-toggle-btn .toggle-arrow {
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
    transition: transform 0.25s ease;
}

.filter-dropdown.open .filter-toggle-btn .toggle-arrow {
    transform: rotate(90deg);
}

.filter-options-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
    padding: 0 2px;
}

.filter-dropdown.open .filter-options-panel {
    max-height: 400px;
    opacity: 1;
    padding-bottom: 12px;
}

.filter-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    cursor: pointer;
    font-size: 13px;
    color: #1c2b2b;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.filter-checkbox-row input[type="checkbox"] {
    display: none;
}

.checkbox-box {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1px solid #c9c3b3;
    border-radius: 3px;
    background: #fff;
    position: relative;
    transition: all 0.2s ease;
}

.filter-checkbox-row input[type="checkbox"]:checked + .checkbox-box {
    background: #1c3d3d;
    border-color: #1c3d3d;
}

.filter-checkbox-row input[type="checkbox"]:checked + .checkbox-box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    line-height: 1;
}

/* ==========================================================
   PRICE RANGE
   ========================================================== */

.price-range-group label span {
    font-weight: 700;
}

.price-range-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    border-radius: 2px;
    outline: none;
    background: #d8d3c4;
}

.price-range-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1c3d3d;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #1c3d3d;
    margin-top: 0;
}

.price-range-group input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1c3d3d;
    cursor: pointer;
    border: 2px solid #fff;
}

.price-range-group input[type="range"]::-moz-range-track {
    height: 3px;
    background: #d8d3c4;
    border-radius: 2px;
}

/* ==========================================================
   AMENITIES PILLS
   ========================================================== */

.amenities-group > label {
    margin-bottom: 12px;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amenity-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    border: 1px solid #c9c3b3;
    border-radius: 20px;
    padding: 10px 18px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    background: transparent;
    margin-bottom: 0 !important;
    transition: all 0.2s ease;
    color: #1c2b2b;
}

.amenity-pill input[type="checkbox"] {
    display: none;
}

.amenity-pill:has(input:checked) {
    background: #1c3d3d;
    color: #fff;
    border-color: #1c3d3d;
}

/* Apply button */
.filter-submit-btn {
    width: 100%;
    background: #1c3d3d;
    color: #f2efe6;
    border: none;
    padding: 14px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 16px;
}

.filter-submit-btn:hover,
.filter-submit-btn:focus     {
    background: #142c2c;
}

/* ==========================================================
   TOP BAR (Showing count + Sort)
   ========================================================== */

.listing-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d8d3c4;
    padding-bottom: 16px;
    margin-bottom: 30px;
}

.showing-count {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: #1c2b2b;
}

.sort-by-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-by-wrap label {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0;
    width: 90px;
}

.sort-by-wrap select {
    border: 1px solid #c9c3b3;
    border-radius: 4px;
    padding: 8px 30px 8px 12px;
    font-size: 13px;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231c2b2b'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* ==========================================================
   PROPERTY GRID + CARDS
   ========================================================== */

.property-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
}

.property-card {
    display: flex;
    flex-direction: column;
}

.property-card-img {
    display: block;
    width: 100%;
    height: 340px;
    overflow: hidden;
    border-radius: 2px;
    margin-bottom: 20px;
}

.property-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.property-card:hover .property-card-img img {
    transform: scale(1.04);
}

.property-card-body {
    display: flex;
    flex-direction: column;
}

.property-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.property-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #1c2b2b;
    line-height: 1.2;
}

.property-title a {
    color: inherit;
    text-decoration: none;
}

.property-price {
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4a4a4a;
    margin-top: 6px;
}

.property-location {
    font-size: 14px;
    color: #4a4a4a;
    margin-bottom: 10px;
}

.property-meta {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1c2b2b;
    margin-bottom: 10px;
}

.property-meta .dot {
    margin: 0 6px;
}

.property-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #1c2b2b;
    margin-bottom: 10px;
}

.property-rating .stars {
    display: inline-flex;
    gap: 1px;
}

.property-rating .star {
    font-size: 14px;
    color: #d8d3c4;
}

.property-rating .star.filled,
.property-rating .star.half {
    color: #c8a45d;
}

.rating-value {
    font-weight: 600;
}

.review-count {
    color: #7a8f89;
}

.night-minimum {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4a4a4a;
    margin-bottom: 18px;
}

.view-property-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    border: 1px solid #1c2b2b;
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #1c2b2b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.view-property-btn:hover {
    background: #1c2b2b;
    color: #f2efe6;
}

.no-properties-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    font-size: 16px;
    color: #7a8f89;
}

/* ==========================================================
   PAGINATION
   ========================================================== */

.property-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.property-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #c9c3b3;
    border-radius: 8px;
    text-decoration: none;
    color: #1c2b2b;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Playfair Display', Georgia, serif;
    transition: all 0.2s ease;
}

.property-pagination a:hover {
    border-color: #1c3d3d;
}

.property-pagination a.active,
.property-pagination a.page-number.active {
    background: #1c3d3d;
    color: #f2efe6;
    border-color: #1c3d3d;
}

.property-pagination a.page-arrow {
    font-size: 18px;
    background: transparent;
}

.property-pagination a.page-arrow.next {
    background: #1c3d3d;
    color: #f2efe6;
    border-color: #1c3d3d;
}

.filter-toggle-btn:hover, .filter-toggle-btn:focus {
    background-color: #1c3d3d;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 991px) {
    .listing_wrapper .row {
        flex-direction: column;
    }
    .listing_wrapper .col-md-3 {
        max-width: 100%;
        flex: 0 0 100%;
    }
    .property-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .listing-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .property-card-head {
        flex-direction: column;
    }
}