*{
   padding: 0;
   margin: 0;
   box-sizing: border-box;
}

.main-container{
    width:93%;
    margin:90px auto 40px;
}
.properties-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.search-container{
    box-shadow:0 15px 40px rgba(15,23,42,.08);
    border:1px solid #edf2f7;
    grid-column: span 2;
    width: 100%;
    background:#fff;
    border-radius:20px;
    padding:28px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
    position: relative;
}

.search-header p{
    color:#64748b;
    margin-bottom:20px;
}

.search-form{
    display:flex;
    flex-direction:column;
    gap:22px;
}
.input-group{
    display:flex;
    flex-direction:column;
}

.input-group label{
    margin-bottom:5px;
    font-weight:600;
    color:#334155;
}



.input-group input,
.input-group select{
    height:47px;
    border:1px solid #dbe4ee;
    border-radius:12px;
    padding:0 18px;
    font-size:15px;
    transition:.3s;
    background:#fff;
}

.input-group input:focus,
.input-group select:focus{
    border-color:#22c55e;
    outline:none;
    box-shadow:0 0 0 4px rgba(34,197,94,.15);
}

.rent-range, .size-location{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.search-btn{
    margin-top:10px;
    border:none;
    height:56px;
    border-radius:14px;
    background:linear-gradient(135deg,#22c55e,#16a34a);
    color:#fff;
    font-size:17px;
    font-weight:700;
    cursor:pointer;
    transition:.35s;

    position: sticky;
    bottom: 10px;
    z-index: 20;
}


.search-btn i{
    margin-right:10px;
}

.search-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 15px 30px rgba(34,197,94,.35);
}


.leaflet-pm-icon-pencil {
    background-image: url('https://cdn-icons-png.flaticon.com/512/32/32195.png'); 
    background-size: cover;
    background-size: cover;
        width: 30px;
        height: 30px;
}
a.dark-mode {
    color: white;
}

.dark-mode .houses-container{
    background-color: rgb(32, 31, 31);
    color: white;
}
.dark-mode .search-container{
    background-color: rgb(32, 31, 31);
    color: white;
}

.dark-mode .search-btn{
     background-color:  rgb(10, 10, 10);
     border: 1px solid white;
}
.dark-mode .search-btn:hover{
    color: white;    
}
.dark-mode .form label{
    color: white;    
}



.card-wrapper{
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}
.card-wrapper a{
    text-decoration: none;
}
.card-wrapper:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 40px rgba(0,0,0,.15);
}

.buy-property , .rent-property, .request, .airbnb ,.services{
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;   
}
.property-location, .property-type, .company-name, .cost, .service-type{
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.details{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 10px 0 10px;
}

.property-type, .service-type{
    font-size: 17px;
    color: #495463;
    font-weight: 500;
}
.property-location{
    display:flex;
    align-items:center;
    gap:8px;
    margin:14px 0 0 0;
    color:#64748b;
    font-size:15px;
    font-weight:500;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.property-location i{
    color:#22c55e;
    font-size:16px;
    flex-shrink:0;
}

.property-location span{
    overflow:hidden;
    text-overflow:ellipsis;
}
.cost{
    display:flex;
    align-items:flex-end;
    gap:4px;
    white-space: nowrap;
}
.currency{
    font-size:15px;
    color:#64748b;
    margin-bottom:4px;
}

.price{
    font-size:28px;
    font-weight:800;
    color:#16a34a;
}

.period{
    color:#64748b;
    font-size:14px;
    margin-bottom:4px;
}
.card-actions{
    display:flex;
    gap:10px;
    padding:18px 10px 20px 0;
}

.view-btn, .b-b-f{
    flex:1;
    height:44px;
    border-radius:10px;
    border:none;
    cursor:pointer;
    font-weight:600;
    transition:.3s;
}
.view-btn{
    background:#22c55e;
    color:white;
    text-decoration:none;

    display:flex;
    justify-content:center;
    align-items:center;
}

.view-btn:hover{
    background:#16a34a;
}
.b-b-f{
   display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #64748b; 
    font-size: 12px;
}
.bedrooms,.bathrooms,.floor{
    display: flex;
    align-items: center;
    gap: 3px;
}
.photo{
    height:240px;
    overflow:hidden;
    position: relative;
}

.photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.45s;
}

.premium-badge{
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-bottom-right-radius: 0.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    z-index: 5;

    /* position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border-radius: 7px;
    background: #fff7df;
    color: #8a6310;
    font-size: 11px;
    font-weight: 800; */
}

.premium-badge i{
    font-size: 11px;
}

.card-wrapper:hover img{
    transform:scale(1.06);
}





.dark-mode .step-links ul a{
    background-color: rgb(32, 31, 31);
    color: white;
}

.pagination{
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.current{
    font-size: large;
    margin-bottom: 30px;
    color: #374151;
}
.pagination-btns{
   display: flex;
   list-style: none;
   gap: 30px;
   
}
.pagination-btns a{
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;  
    color: #374151;
    border: 1px solid #e5e7eb;
    padding: 4px 10px;
    border-radius: 10px;
}
.pagination-btns a:hover{
    border: none;
    background-color: rgb(93, 211, 93);
    color: white;
}


#scrollToTopBtn {
    display: none; 
    position: fixed; 
    bottom: 20px; 
    right: 30px; 
    z-index: 99999;
    font-size: 18px; 
    border: none; 
    outline: none; 
    background-color: #333;
    color: white; 
    cursor: pointer; 
    padding: 15px;
    border-radius: 10px;
  }

.no-matching-properties {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    grid-column: span 4;
    width: 100%;
}

.no-results-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f6f6f6;
    color: #777;
    font-size: 24px;
    margin-bottom: 18px;
}

.no-matching-properties h3 {
    margin: 0 0 7px;
    color: #222;
    font-size: 20px;
}


.no-matching-properties p {
    max-width: 450px;
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

.features-group{
    min-width:0;
}

.amenities-filter{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding-top:8px;
    max-height:42px;
    overflow:hidden;
    transition: max-height .4s ease;
}

.amenities-filter.expanded{
    max-height: 500px;
    overflow-y: auto;
}

/* Feature buttons */

.amenity{
    display:flex;
    align-items:center;
    gap:6px;
    padding:8px 12px;
    border:1px solid #ddd;
    border-radius:20px;
    background:#fff;
    cursor:pointer;
    font-size:13px;
    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .2s ease;
    white-space:nowrap;
    flex-shrink:0;
    color: #444;
}

.amenity:hover{
    border-color:#22c55e;
    transform:translateY(-1px);
}

.amenity.selected{
    background:#222;
    color:#fff;
    border-color:#222;
}

.amenity i{
    font-size:13px;
}

/* More features button */

.more-features-btn{
    margin-top:9px;
    padding:6px 10px;
    border:0;
    background:transparent;
    color:#16a34a;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:6px;
    transition:.25s ease;
}

.more-features-btn i{
    font-size:10px;
    transition:transform .35s ease;
}

.more-features-btn:hover{
    color:#15803d;
}

.more-features-btn.expanded i{
    transform:rotate(180deg);
}

.favorite-section{
    margin-bottom: 50px;
}
.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 10px 0 28px;
    padding: 22px 0;
    background: #ffffff;
}

.search-results-title {
    display: flex;
    align-items: center;
    gap: 15px;
}


.search-results-label {
    display: block;
    margin-bottom: 3px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.search-results-title h1 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    text-overflow: ellipsis;
    overflow: hidden;
}



.search-results-count {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-shrink: 0;
    padding-left: 20px;
    border-left: 1px solid #e5e7eb;
}

.search-results-count strong {
    color: #111827;
    font-size: 22px;
    font-weight: 700;
}

.search-results-count span {
    color: #6b7280;
    font-size: 12px;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .properties-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .search-container {
        grid-column: span 2 !important;
    }
}  
@media (max-width: 1024px) {

     .main-container{
        width: 100%;
        margin-top: 75px;
        padding: 0 8px;
    }
   
    .properties-grid{
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .search-container {
        grid-column: span 1;
        width: 100%;
        margin-right: 0;
    }
    #scrollToTopBtn {
        bottom: 10px; 
        right: 8px;
        font-size: 15px;
    }
   
    .no-matching-properties {
        grid-column: 1 / -1;
    }
    .moon{
        margin-right: 10px;
    }
   
    .rent-range, .size-location{
        grid-template-columns:1fr;
    }

    .card-wrapper {
        width: 100%;
        margin-bottom: 20px;
        display: block;
        border: 1px solid rgb(219, 228, 238);
    }
    .photo {
        height: 260px;
    }
    .details {
        gap: 12px;
    }
    
   .price {
        font-size: 20px;
        font-weight: 600;
    }
    .property-location {
        margin: 0;
    }
    .pagination-btns{

        gap: 10px;
        
        }

   .search-results-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding: 18px;
        margin-bottom: 22px;
    }

    .search-results-title {
        align-items: flex-start;
    }

    .search-results-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .search-results-title h1 {
        font-size: 17px;
    }

    .search-results-count {
        width: 100%;
        padding: 12px 0 0;
        border-left: 0;
        border-top: 1px solid #e5e7eb;
    }

    .search-results-count strong {
        font-size: 19px;
    }
    
   
}
