/* Properties Page Layout */
.properties-page {
    background-color: #f9f9f9;
    font-family: var(--font-poppins);
}

.properties-layout {
    display: flex;
    gap: 40px;
}

/* Sidebar */
.prop-sidebar {
    width: 25%;
    flex-shrink: 0;
}

.filter-box {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.filter-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--title-color);
}

.clear-all {
    font-size: 13px;
    color: var(--primary-color1);
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.clear-all:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--title-color);
}

.custom-check {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    cursor: pointer;
    font-size: 15px;
    user-select: none;
    color: #555;
    transition: 0.2s;
}

.custom-check:hover {
    color: var(--primary-color1);
}

.custom-check input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: 0.2s;
}

.custom-check:hover input~.checkmark {
    border-color: var(--primary-color1);
}

.custom-check input:checked~.checkmark {
    background-color: #D79C4E;
    border-color: #D79C4E;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-check input:checked~.checkmark:after {
    display: block;
}

.custom-check .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-divider {
    border: 0;
    border-top: 1px solid #f0f0f0;
    margin: 25px 0;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Content Area */
.prop-content {
    width: 75%;
}

.listing-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.count-text {
    font-weight: 600;
    color: #D79C4E !important;
    font-size: 15px;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #666;
}

.sort-box select {
    padding: 10px 16px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    font-family: var(--font-poppins);
    font-size: 14px;
    color: #444;
    transition: 0.3s;
}

.sort-box select:hover {
    border-color: var(--primary-color1);
}

/* Property Grid */
.prop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.prop-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.prop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.prop-img-wrapper {
    height: 260px;
    overflow: hidden;
    position: relative;
}

.prop-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.prop-card:hover .prop-img-wrapper img {
    transform: scale(1.08);
}

.prop-details {
    padding: 25px;
}

.prop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.prop-title-loc {
    flex: 1;
    padding-right: 15px;
}

.prop-title-loc h4 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.prop-title-loc h4 a {
    color: var(--title-color);
    transition: 0.3s;
}

.prop-title-loc h4 a:hover {
    color: var(--primary-color1);
}

.prop-loc {
    color: #e8e8e8;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.prop-loc i {
    color: #D79C4E;
}

.prop-price-block {
    text-align: right;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.small-price {
    font-size: 12px;
    color: #e8e8e8;
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-price {
    font-size: 22px;
    font-weight: 700;
    color: #D79C4E;
}

.book-now-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--title-color);
    color: #fff !important;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 25px;
    transition: 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.book-now-btn i {
    font-size: 16px;
    margin-left: 8px;
    transition: 0.3s;
}

.book-now-btn:hover {
    background: #D79C4E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 129, 254, 0.3);
}

.book-now-btn:hover i {
    transform: translateX(4px);
}

.card-divider {
    border: 0;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.prop-footer {
    display: flex;
    gap: 25px;
    font-size: 14px;
    color: #666;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.footer-item i {
    color: var(--primary-color1);
    font-size: 16px;
}

/* Expandable Details */
.view-details-btn {
    width: 100%;
    background: transparent;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    color: #D79C4E;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.view-details-btn:hover {
    background: #f0f7ff;
    border-color: var(--primary-color1);
}

.prop-hidden-details {
    margin-top: 15px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    display: none;
    /* Hidden by default */
}

.prop-hidden-details.active {
    display: block;
    /* Visible when active */
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-group {
    margin-bottom: 12px;
}

.detail-group:last-child {
    margin-bottom: 0;
}

.detail-group h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--title-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-group h6 i {
    color: var(--primary-color1);
}

.detail-group p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Pagination */
.prop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 50px;
}

.page-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.page-btn:hover:not(.ellipsis):not(.active) {
    background: #fff;
    color: #D79C4E;
    border-color: #D79C4E;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(215, 156, 78, 0.15);
}

.page-btn.active {
    background: #D79C4E;
    color: #fff;
    box-shadow: 0 6px 15px rgba(215, 156, 78, 0.3);
    border-color: #D79C4E;
    transform: translateY(-2px);
}

.page-btn.prev,
.page-btn.next {
    width: auto;
    padding: 0 24px;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.page-btn.prev:hover,
.page-btn.next:hover {
    background: #D79C4E;
    color: #fff;
}

.page-btn.ellipsis {
    background: transparent;
    box-shadow: none;
    cursor: default;
    color: #888;
    width: auto;
    padding: 0 4px;
}

/* Responsive */
@media (max-width: 992px) {
    .properties-layout {
        flex-direction: column;
        gap: 30px;
    }

    .prop-sidebar {
        width: 100%;
    }

    /* Mobile Filter Styles */
    .filter-header {
        cursor: pointer;
        user-select: none;
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }

    .filter-title-click {
        display: flex;
        font-size: 18px;
        align-items: center;
        gap: 8px;
    }

    .toggle-icon {
        display: inline-block;
        margin-left: auto;
        font-size: 14px;
        transition: transform 0.3s ease;
    }

    .filter-body {
        display: none;
        padding-top: 20px;
        margin-top: 15px;
        border-top: 1px solid #f0f0f0;
        animation: fadeIn 0.3s ease-in-out;
    }

    .filter-body.active {
        display: block;
    }

    .filter-header.active .toggle-icon {
        transform: rotate(180deg);
    }

    .filter-header.active {
        margin-bottom: 0;
        border-bottom: none;
    }

    .prop-content {
        width: 100%;
    }
}

/* Base styles for filter title and toggle icon (Desktop) */
.filter-title-click {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--title-color);
}

.toggle-icon {
    display: none;
}

@media (max-width: 768px) {
    .prop-grid {
        grid-template-columns: 1fr;
    }

    .prop-img-wrapper {
        height: 220px;
    }

    .listing-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }

    .sort-box {
        width: 100%;
        justify-content: space-between;
    }
}

/* Active Search Badge */
.active-search-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fff8ee, #fff3e0);
    padding: 14px 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(215, 156, 78, 0.2);
    box-shadow: 0 4px 15px rgba(215, 156, 78, 0.08);
    flex-wrap: wrap;
}

.search-badge-label {
    font-size: 14px;
    color: #888;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-badge-label i {
    color: #D79C4E;
    font-size: 14px;
}

.search-badge-keyword {
    font-size: 15px;
    font-weight: 600;
    color: var(--title-color);
}

.search-badge-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(215, 156, 78, 0.15);
    color: #D79C4E;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    margin-left: auto;
    transition: all 0.3s ease;
    font-weight: 600;
}

.search-badge-clear:hover {
    background: #D79C4E;
    color: #fff;
    transform: rotate(90deg);
}

/* Property Card Slider */
.prop-card-slider {
    width: 100%;
    height: 100%;
}

.prop-card-slider .swiper-button-next,
.prop-card-slider .swiper-button-prev {
    color: #fff;
    transform: scale(0.6);
    opacity: 0;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.prop-card-slider .swiper-button-next:after,
.prop-card-slider .swiper-button-prev:after {
    font-size: 20px;
}

.prop-card:hover .prop-card-slider .swiper-button-next,
.prop-card:hover .prop-card-slider .swiper-button-prev {
    opacity: 1;
}

.prop-card-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}

.prop-card-slider .swiper-pagination-bullet-active {
    background: #D79C4E;
    opacity: 1;
}