 .ribbon-tag {
        position: absolute;
        top: 25px;
        right: -40px;
        background: #0d6efd;
        color: #fff;
        padding: 6px 30px;
        font-size: 12px;
        font-weight: 600;
        transform: rotate(45deg);
        z-index: 2;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .ribbon {
        font-size: 12px;
        font-weight: 500;
        color: #000;
    }

    .ribbon {
        --f: .5em;
        /* control the folded part*/
        --r: .8em;
        /* control the ribbon shape */
        position: absolute;
        bottom: 0;
        left: 0px;
        padding-inline: .25em;
        line-height: 1.8;
        background: #eecb72;
        border-top: var(--f) solid #0005;
        border-right: var(--r) solid #0000;
        clip-path:
            polygon(0 100%, 0 var(--f), var(--f) 0,
                var(--f) var(--f), 100% var(--f),
                calc(100% - var(--r)) calc(50% + var(--f)/2), 100% 100%);
    }

    /* Mobile Devices (up to 767px) */
    @media (max-width: 767px) {

        .ribbon {
            --f: .35em;
            /* smaller fold */
            --r: .6em;
            /* smaller ribbon shape */

            bottom: 0px;
            /* move to top for better mobile view */
            left: 0;

            font-size: 12px;
            padding: 3px 10px;
            line-height: 1.6;
        }

    }

    .images-group {
        position: relative;
        display: block;
    }

    .property-location {
        font-size: 14px;
        color: #777;

        margin-top: 5px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .project-card {
        position: relative;
        border-radius: 20px;
        overflow: hidden;
    }

    .project-card img {
        width: 100%;
        height: 320px;
        object-fit: cover;
        display: block;
    }

    .project-card::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    }


    .project-content {
        position: absolute;
        bottom: 20px;
        left: 25px;
        right: 25px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #fff;
        z-index: 2;
    }

    .location-map-section {
        background: #f8f8f8;
        padding: 70px;
    }


    .map-wrapper {
        width: 100%;
        height: 450px;
        border-radius: 10px;
        overflow: hidden;
    }

    .map-wrapper iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

    @media(max-width:768px) {
        .map-wrapper {
            height: 350px;
        }
    }

    .video-banner {
        overflow: visible !important;
    }

    .flat-slider {
        overflow: visible !important;
    }

    .hero-search {
        position: relative;
        z-index: 99999;
        max-width: 950px;
        margin: auto;
        padding: 20px;
    }



    /* SEARCH BOX */
    .search-box {
        display: flex;
        align-items: center;
        background: #fff;
        border-radius: 50px;
        padding: 10px 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        overflow: visible;
    }

    /* INPUT */
    .search-input {
        display: flex;
        align-items: center;
        flex: 2;
        padding: 0 15px;
    }

    .search-input i {
        margin-right: 8px;
        color: #999;
    }

    .search-input input {
        border: none;
        outline: none;
        width: 100%;
        font-size: 15px;
    }

    /* DROPDOWN TEXT */
    .dropdown {
        padding: 0 15px;
        font-size: 14px;
        color: #555;
        cursor: pointer;
    }

    /* DIVIDER */
    .divider {
        width: 1px;
        height: 25px;
        background: #ddd;
    }

    /* BUTTON */
    .search-btn {
        background: #000000;
        color: #fff;
        font-size: 15px;
        border: none;
        padding: 10px 48px;
        border-radius: 40px;
        font-weight: 600;
        cursor: pointer;
        margin-left: auto;
    }

    .dropdown-wrap {
        position: relative;
    }

    .dropdown-menu {
        position: absolute;
        top: 60px;
        left: 0;
        background: #fff;
        width: 180px;
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        list-style: none;
        padding: 10px 0;

        display: none;
        /* important */
        z-index: 99999;
        /* important */
    }



    .dropdown-menu li {
        padding: 10px 15px;
        cursor: pointer;
        font-size: 14px;
    }

    .dropdown-menu li:hover {
        background: #f5f5f5;
    }

    /* MOBILE FIX */
    @media (max-width: 768px) {

        .hero-search {
            padding: 10px;
            top: 200px;
        }

        .search-box {
            flex-direction: column;
            border-radius: 20px;
            gap: 10px;
            padding: 15px;
            maargin-bottom: 32px !important;
        }

        .search-input {
            width: 100%;
            border: 1px solid #eee;
            border-radius: 30px;
            padding: 10px 15px;
        }

        

        .dropdown-wrap {
            width: 100%;
        }

        .dropdown {
            width: 100%;
            border: 1px solid #eee;
            border-radius: 30px;
            padding: 12px 15px;
        }

        .search-btn {
            width: 100%;
            margin: 0;
            padding: 14px;
            border-radius: 30px;
            font-size: 16px;
        }

        .dropdown-menu {
            width: 100%;
            left: 0;
        }

        /* Tabs scrollable */
        .search-tabs {
            overflow-x: auto;
            white-space: nowrap;
            padding: 5px;
        }

        .search-tabs button {
            flex: 0 0 auto;
        }
    }

    .payment-modern {
    background: linear-gradient(135deg, #000000, #000000);
    border-radius: 16px;
    padding: 30px;
    color: #fff;
    
   
}

/* title */
.payment-modern h5 {
    font-weight: 600;
    margin-bottom: 25px;
    color: #fff;
}

/* step */
.payment-step {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

/* circle */
.payment-step .circle {
    width: 45px;
    height: 45px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
    color: #000000;
}

/* line */
.payment-step::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 50px;
    width: 2px;
    height: 30px;
    background: rgba(255,255,255,0.2);
}

.payment-step:last-child::after {
    display: none;
}

/* text */
.payment-content {
    flex: 1;
}

.payment-content span {
    font-size: 14px;
    color: #cbd5e1;
}

.payment-content h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* percentage */
.payment-percent {
    font-size: 20px;
    font-weight: 700;
}
/* IMAGE BOX */
.boxes-img {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* IMAGE */
.boxes-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* BLUR OVERLAY */
.boxes-img::after {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.3);
}

/* CENTER PRICE */
.floor-price {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    color: #fff;
    font-size: 28px;
    font-weight: 700;

    background: rgba(0,0,0,0.6);
    padding: 12px 25px;
    border-radius: 10px;

    z-index: 2;
}

/* OPTIONAL: hover zoom */
.box-img:hover img {
    transform: scale(1.05);
    transition: 0.4s;
}

 .project-filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* scroll wrapper */
.project-filters-wrap {
    overflow: hidden;
    width: 100%;
}

.project-filters-wrap::-webkit-scrollbar {
    display: none;
}

/* button row */
.project-filters {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}


/* filter buttons */
.filter-btn {
    white-space: nowrap;
    border-radius: 20px;
    padding: 5px 10px;
    border: 1px solid #fff;
    background: #eeeeee;
    font-size: 14px;
    cursor: pointer;
}

.filter-btn.active {
    background: #000;
    color: #fff;
}
/* arrow buttons */
.scroll-btn {
    border: 1px solid #000;
    background: #fff;
    padding: 0px 6px;
    font-size: 15px;
    
    border-radius: 10px;
}

/* disabled arrows */
.scroll-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #999;
    color: #999;
}

/* ❌ hide arrows on mobile */
@media (max-width: 991px) {
    .scroll-btn {
        display: none;
    }
}


.sort-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 40px;
  padding: 6px 18px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

.sort-dropdown:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}

.sort-label {
  font-size: 13px;
  font-weight: 600;
  color: #777;
  margin-right: 10px;
  letter-spacing: 0.5px;
}

.sort-dropdown select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
  padding-right: 25px;
}

.sort-dropdown i {
  position: absolute;
  right: 15px;
  font-size: 14px;
  color: #999;
  pointer-events: none;
  transition: 0.3s;
}

/* Focus effect */
.sort-dropdown select:focus + i {
  transform: rotate(180deg);
}


.project-sort label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
.custom-sort {
    position: relative;
    cursor: pointer;
}

.sort-selected {
    background: #fff;
    padding: 7px 40px;
    border-radius: 30px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.sort-selected i {
    margin-left: 10px;
}

.sort-options {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    list-style: none;
    padding: 8px 0;
    display: none;
    z-index: 99;
}

.sort-options li {
    padding: 5px 15px;
    transition: 0.3s;
}

.sort-options li:hover {
    
    color: #fff;
}

.custom-sort.active .sort-options {
    display: block;
}
/* ✅ SHOW arrows on mobile */
@media (max-width: 991px) {
    .scroll-btn {
        display: flex;   /* previously none */
        align-items: center;
        justify-content: center;
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        border-radius: 8px;
    }
}

/* ✅ Improve mobile spacing */
@media (max-width: 768px) {

    .project-filter-container {
        gap: 6px;
    }

    .project-filters {
        gap: 8px;
    }

    .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* ✅ sort dropdown fix */
    .project-sort {
        width: 100%;
        margin-top: 20px;
    }

    .custom-sort {
        width: 100%;
    }

    .sort-selected {
        width: 100%;
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 25px;
    }

    .sort-options {
        width: 100%;
        border-radius: 10px;
    }

    .sort-options li {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* ✅ extra small devices (tight UI like your screenshot) */
@media (max-width: 480px) {

    .filter-btn {
        font-size: 11px;
        padding: 5px 10px;
    }

    .scroll-btn {
        min-width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .sort-selected {
        font-size: 12px;
        padding: 6px 12px;
    }
}

