/* ===============================
   CW PROPERTY FILTER – UI DESIGN
   =============================== */

   .cw-property-filter {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* -------------------------------
   FORM ELEMENTS
-------------------------------- */

.cw-property-filter select,
.cw-property-filter input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background-color: #fff;
    transition: all 0.2s ease;
}

.cw-property-filter select:focus,
.cw-property-filter input:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

/* -------------------------------
   BUTTON
-------------------------------- */

.cw-property-filter button {
    padding: 13px 18px;
    background: #111;
    color: #fff;
    font-size: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cw-property-filter button:hover {
    background: #000;
}

/* ===============================
   GRID LAYOUT – DESKTOP
   =============================== */

/* Row 1 */
.cw-property-filter select[name="property"] { grid-column: span 3; }
.cw-property-filter select[name="city"]     { grid-column: span 3; }
.cw-property-filter select[name="area"]     { grid-column: span 3; }
.cw-property-filter select[name="features"] { grid-column: span 3; }

/* Row 2 */
.cw-property-filter select[name="bedroom"]  { grid-column: span 2; }
.cw-property-filter select[name="bathroom"] { grid-column: span 2; }
.cw-property-filter select[name="price_from"] { grid-column: span 2; }
.cw-property-filter select[name="price_to"]   { grid-column: span 2; }
.cw-property-filter select[name="built_size"] { grid-column: span 2; }
.cw-property-filter input[name="keyword"]     { grid-column: span 2; }

/* Row 3 */
.cw-property-filter button {
    grid-column: span 12;
}

/* ===============================
   TABLET VIEW (≤ 1024px)
   =============================== */

@media (max-width: 1024px) {

    .cw-property-filter {
        grid-template-columns: repeat(6, 1fr);
    }

    .cw-property-filter select,
    .cw-property-filter input {
        grid-column: span 3;
    }

    .cw-property-filter button {
        grid-column: span 6;
    }
}


/* ===============================
   RESULTS GRID (OPTIONAL)
   =============================== */

/* #property-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
} */

#property-results .type-post{display: flex; justify-content: space-between; gap: 60px; align-items: center; margin-bottom: 40px;}
#property-results .type-post:last-child{margin-bottom: 0;}
#property-results .type-post .pfThumb{display: block; width: 50%; aspect-ratio: 7/4; overflow: hidden;}
#property-results .type-post .pfThumb a{display: block; position: relative;}
#property-results .type-post .pfThumb img{width: 100%; height: 100%; object-fit: cover; object-position: center;}
#property-results .type-post .postInfo{width: 50%;}
#property-results .type-post .postInfo .post-title{text-transform: uppercase; font-size: 22px; line-height: 28px; margin-bottom: 10px;}
#property-results .type-post .postInfo .postLocation{text-transform: uppercase; font-size: 16px; line-height: 20px; margin-bottom: 6px; font-weight: 500;}
#property-results .type-post .postInfo .postDesc{margin-bottom: 22px;}
#property-results .type-post .postInfo #propertyInfo ul{justify-content:left; font-size: 15px;}
#property-results .type-post .postInfo .postPrice{font-size: 28px; font-weight: 600; line-height: 34px; text-transform: uppercase;}

#property-results .type-post .postInfo .tl{display: inline-block; line-height: 24px; padding: 0 22px; background: var(--darkColor); color: #FFF; position: relative; margin-bottom: 10px; border-radius: 60px; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;}
#property-results .type-post .postInfo .tl::after,#property-results .type-post .postInfo .tl::before{content: ""; width: 4px; height: 4px; background: #FFF; border-radius: 10px; position: absolute; top: 50%; transform: translateY(-50%);}
#property-results .type-post .postInfo .tl::before{left: 10px;}
#property-results .type-post .postInfo .tl::after{right: 10px;}

.property-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

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

.property-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}


.cw-pagination {
    margin: 30px 0;
    text-align: center;
}

.cw-page-link {
    display: inline-block;
    margin: 0 6px;
    padding: 8px 14px;
    border: 1px solid #ddd;
    text-decoration: none;
    cursor: pointer;
}

.cw-page-link.active {
    background: #000;
    color: #fff;
    border-color: #000;
}


.cw-count-inner {
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 500;
    color: #222;
}


/* ===============================
   MOBILE VIEW (≤ 768px)
   =============================== */

   @media (max-width: 768px) {

    .cw-property-filter {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .cw-property-filter select,
    .cw-property-filter input,
    .cw-property-filter button {
        grid-column: span 1;
    }

    .cw-property-filter button {
        padding: 14px;
        font-size: 15px;
    }
    
    #property-results .type-post{flex-direction: column;gap: 30px;}
    #property-results .type-post .pfThumb,#property-results .type-post .postInfo{width: 100%;}
}

