/* 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: var(--primary-color1);
    border-color: var(--primary-color1);
}

.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: var(--title-color);
    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: #777;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.prop-loc i {
    color: var(--primary-color1);
}

.prop-price-block {
    text-align: right;
    min-width: 100px;
}

.small-price {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color1);
}

.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: var(--primary-color1);
    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: var(--primary-color1);
    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;
    gap: 12px;
    margin-top: 50px;
}

.page-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #666;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: 0.3s;
}

.page-btn:hover {
    background: #f0f0f0;
    color: var(--title-color);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--primary-color1);
    color: #fff;
    box-shadow: 0 5px 15px rgba(23, 129, 254, 0.3);
}

.page-btn.prev,
.page-btn.next {
    width: auto;
    padding: 0 24px;
    border-radius: 25px;
}

/* 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;
    }
}