/* SECTION */
.property-section {
    padding: 40px 0;
}

/* HEADER */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
}

.section-header p {
    color: #777;
}

.section-title {
    margin-bottom: 20px;   /* space below title */
    margin-top: 40px;      /* space above title */
}

.property-section h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

/* GRID */
.property-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* CARD */
.property-card {
    min-width: 360px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;

    margin: 0;   /* ❌ remove auto */
}


.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* IMAGE */
.property-image {

    position: relative;

    width: 100%;

    height: 240px;

    overflow: hidden;

    border-radius: 12px 12px 0 0;

}


.property-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}



.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

/* DETAILS */
.property-details {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-details h3 {
    color: #ff5a5f;
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: 700;
    color: #ff5a5f;
}

.property-details .title {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
    display: -webkit-box;
      -webkit-line-clamp: 2;   /* max 2 lines */
      -webkit-box-orient: vertical;
    overflow: hidden;
}

/* INFO */
.property-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

/* BUTTON */
.view-btn {
    display: block;
    margin-top: auto;
    text-align: center;
    background: #ff5a5f;
    color: white;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
}

.view-btn:hover {
    background: #e0484d;
}

.featured {
    border: 2px solid gold;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    transform: scale(1.03);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: black;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: bold;
}

.popular {
    border: 2px solid gold;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    transform: scale(1.03);
}

.popilar-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: black;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: bold;
}


.sponsored {
    font-size: 12px;
    color: #ff9800;
    font-weight: bold;
    margin-bottom: 5px;
}

.featured-row .property-card {
    border: 2px solid gold;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.popular-row .property-card {
    border: 2px solid #007bff;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.25);
}

.latest-row .property-card {
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.featured-row {
    margin-bottom: 40px;
}

.popular-row {
    margin-bottom: 40px;
}

.latest-row {
    margin-bottom: 40px;
}
/* ===== PREMIUM SLIDER ONLY ===== */

.property-slider {
    position: relative;
    overflow: hidden;   /* keep this */
    margin-top: 20px;
}


.slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 40px;   /* spacing INSIDE instead */
}
.slider-track::-webkit-scrollbar {
    display: none;
}

.property-slider .property-card {
    flex: 0 0 300px;   /* fixed width */
    min-width: 300px;  /* 🔥 prevents shrink */
    max-width: 300px;

    display: flex;
    flex-direction: column;

    background: #fff;
    border-radius: 12px;
}
/* BUTTONS */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10;
}

.property-slider,
.slider-track,
.property-card {
    pointer-events: auto;
}

.slider-btn.prev { left: 5px; }
.slider-btn.next { right: 5px; }

.slider-btn:hover {
    background: #ff5a5f;
    color: white;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .property-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   MOBILE SLIDER FIX
========================================= */

@media (max-width: 768px) {

    .property-slider {
        position: relative;
        overflow: hidden;
        padding: 0 10px;
    }

    .slider-track {
        display: flex;
        gap: 16px;

        overflow-x: auto;
        scroll-behavior: smooth;

        padding: 10px 20px;

        scroll-snap-type: x mandatory;

        justify-content: flex-start;
    }

    .slider-track::-webkit-scrollbar {
        display: none;
    }

    .property-slider .property-card {

        flex: 0 0 85%;

        max-width: 85%;

        margin: 0 auto;

        scroll-snap-align: center;
    }

    .slider-btn {

        width: 42px;
        height: 42px;

        font-size: 20px;

        z-index: 10;
    }

    .slider-btn.prev {
        left: 5px;
    }

    .slider-btn.next {
        right: 5px;
    }

}


.favorite-btn {

    position: absolute;

    top: 14px;

    right: 14px;

    width: 30px;

    height: 30px;

    border-radius: 50%;

    background: rgba(255,255,255,0.95);

    display: flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    font-size: 17px;

    z-index: 20;

    box-shadow: 0 4px 12px rgba(0,0,0,0.12);

    transition: 0.25s ease;

}


.favorite-btn.active {

    background: #ef4444;

    color: white;

    animation: favoritePop 0.35s ease;

}

.favorite-btn:hover {

    transform: scale(1.08);

}

.premium-slider .favorite-btn,
.popular-slider .favorite-btn {

    top: 45px;

}

@keyframes favoritePop {

    0% {

        transform: scale(1);

    }

    50% {

        transform: scale(1.35);

    }

    100% {

        transform: scale(1);

    }

}
