.property-listings .tile-container {
    display: flex;
    /* background-color: #8e9091; */
    padding: 5px;
    color: #2d2c2c;
    margin-bottom: 8px;
    gap: 14px;
}

.property-listings .tile-container i {
    font-size: 25px;
    cursor: pointer;
    background-color: #ffffff;
    padding: 4px;
    border-radius: 50%;

}

.property-listings .tile-container i:hover {
    background-color: #cecece;
}

.property-listings .tile-container h5 {
    font-size: 18px;
    margin-top: 5px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.property-card .property-info .right .wishlisted {
    color: #232323;
}


body {
    height: 100vh;
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;
}

/* Header */
.top-container {
    display: flex;
    flex-direction: column;
    /* padding: 10px 15px; */
    background: white;
    border-bottom: 1px solid #ddd;
}

.top-container .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 10px;

}

.top-container .bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgb(241, 241, 241);
}

.logo-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

/* Logo */
.logo-container a {
    text-decoration: none;
    font-size: 20px;
    color: black;
    font-weight: bolder;
    margin-top: 3px;
}

.logo-container i {
    font-weight: 900;
    font-size: 30px;
    cursor: pointer;
}

/* Location */
.location {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.location i {
    font-size: 18px;
    margin-right: 5px;
    color: #6c757d;
}

.name-container {
    display: flex;
    align-items: center;
}

.name {
    font-size: 15px;
    color: black;
}

.name-container i {
    font-size: 16px;
    margin-left: 5px;
    color: #6c757d;
}

/* Search Bar */
.search-bar {
    flex: 1;
    display: flex;
    justify-content: center;
    margin-right: 10px;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #a1a1a1;
    border-radius: 20px;
    padding: 10px 10px;
    /* width: 240px; */
    width: 100%;
    background: white;
}

.search-box i {
    color: #6c757d;
    font-size: 18px;
    margin-right: 8px;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 14px;
    flex: 1;
    background: transparent;
}

/* Icons */
.icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icons i {
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
}

.icons i:hover {
    color: black;
}

/* ==========================
   TOAST / ALERT MESSAGES
   ========================== */

.toast-container {
    position: fixed;
    top: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: auto;
    max-width: 90%;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.6rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    font-size: 1rem;
    animation: toast-slide-down 0.25s ease-out;
}

/* Message types */
.toast-error {
    border-left: 4px solid #ec1140;
    border-right: 4px solid #ec1140;
    background-color: #ffc8d4;
}

.toast-success {
    border-left: 4px solid #16a34a;
    border-right: 4px solid #16a34a;
    background-color: #b2ffce;

}

.toast-info {
    border-left: 4px solid #2563eb;
    border-right: 4px solid #2563eb;
}

.toast-warning {
    border-left: 4px solid #ff652f;
    border-right: 4px solid #ff652f;
    background-color: #ffcab6;

}

.toast-text {
    color: var(--text-dark);
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #565656;
    line-height: 1;
}

.toast-close:hover {
    color: #000;
}

/* Animation */
@keyframes toast-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== SideBar ========== */
.sidebar {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: rgb(250, 250, 250);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    /* padding: 20px; */
    transition: left 0.3s ease;
    z-index: 9999;
}

.sidebar.active {
    left: 0;
}


.sidebar .profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 15px;
}

.sidebar .sing-in-div {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    gap: 5px;
    margin-top: -13px;
}

.sidebar .profile .user-icon {
    font-size: 50px;
    color: #272626;
}

.sidebar .sing-in-div a {
    padding: 8px 20px;
    background-color: #303030;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-left: 0px;
}

.sidebar .sing-in-div h5 {
    font-size: 14px;
    color: #505253;
    font-weight: 500;
}

.sidebar .sing-in-div a:hover {
    background-color: #1f1f1f;
}

.sidebar .profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.sidebar .profile-info {
    display: flex;
    flex-direction: column;
}

.sidebar .profile-info strong {
    font-size: 18px;
}


.sidebar .profile-info span {
    font-size: 13px;
    color: #666565;
    margin-top: 2px;
}

.sidebar hr {
    border: 1px solid #e8e6e6;
    margin: 0px 5px;
}

.sidebar .nevigation {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 4px;
    margin-top: 25px;
    margin: 15px 20px;
    /* background-color: #777; */
}

.nevigation li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
}

.nevigation li i {
    font-size: 24px;
    /* Bigger icon */
    margin-bottom: 5px;
    margin-left: 8px;
    /* Space between icon & text */
}

.sidebar .explore {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 40px;
}

.sidebar .explore::-webkit-scrollbar {
    width: 6px;
}

.sidebar .explore::-webkit-scrollbar-thumb {
    background: #aaa9a9;
    border-radius: 10px;
}

.sidebar .explore::-webkit-scrollbar-thumb:hover {
    background: #868585;
}

.sidebar .explore h4 {
    padding: 0px 25px;
    font-size: 15px;
    margin-top: 20px;
    color: #9d9c9c;
    font-weight: 600;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    border-radius: 8px;
}

.sidebar .explore li a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar .explore li {
    margin: 3px 15px;
}


.sidebar li i {
    margin-right: 10px;
    font-size: 24px;
}

.sidebar li a {
    text-decoration: none;
    font-weight: 500;
    color: rgb(45, 45, 45);
    font-size: 14px;
    /* background-color: antiquewhite; */
    border-radius: 8px;
}

.sidebar .explore li a {
    padding: 13px;
}

.sidebar li a:hover {
    background: #d8d6d6;
}


.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
}

/* ---- dark-mode  sidebar*/

.dark-mode {
    background: #00070f;
    box-shadow: 2px 0 5px rgba(116, 116, 116, 0.2);
}

.dark-mode .close-btn {
    color: #e8e7e7;
}

.dark-mode li a {
    color: rgb(255, 255, 255)
}

.dark-mode li a:hover {
    background: #ffffff;
    color: rgb(0, 0, 0)
}

.dark-mode .profile-info strong {
    color: #ffffff;
}


.dark-mode .profile-info span {
    color: #b6b4b4;
}

.dark-mode hr {
    border: 1px solid #3e3e3e;
}

.dark-mode .explore h4 {
    color: #767676;
}


.dark-mode .sing-in-div a {
    background-color: #007bff;
}

.dark-mode .sing-in-div h5 {
    color: #7d8185;
}

.dark-mode .sing-in-div a:hover {
    background-color: #0056b3;
}

.dark-mode .profile .user-icon {
    color: #eaeaea;
}

/* ------------------------------------------------ *

/* wishlist window */
#wishlist-main {
    display: none;
}

/* chats window */
#chats-main {
    display: none;
}


/* Property Listings */
.property-listings {
    padding: 10px;
    display: flex;
    height: 100%;
    flex-direction: column;

}

.property-card {
    display: flex;
    height: 120px;
    width: 100%;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    gap: 15px;
    margin-bottom: 12px;
    text-decoration: none;
}


.property-img2 {
    width: 120px;
    height: 100px;
    border-radius: 5px;
    /* object-fit: cover; */
}

.property-img {
    width: 120px;
    height: 100px;

    display: block;          /*prevents inline expansion */
    max-width: 120px;       /*hard limit */
    max-height: 100px;      /* hard limit */
    min-width: 120px;
    min-height: 100px;

    object-fit: cover;    /* keeps real image */
    object-position: center;

    border-radius: 5px;
    background: inherit;
}

.property-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    justify-content: space-between;
    margin-top: 5px;
    margin-left: 12px;
}

.property-info .info {
    display: flex;
    flex-direction: row;
}

.property-info .info .left {
    display: flex;
    flex-direction: column;
    width: 100%;
}


.property-info .info .right i {
    font-size: 22px;
    font-size: 18px;
    margin-right: 4px;
    color: #3c3c3c;
    cursor: pointer;

}

.property-info .price {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

.property-info .title {
    font-size: 14px;
    margin-top: 4px;
    font-weight: 600;
    color: #555;
}

.property-info .details {
    font-size: 13px;
    color: #777;
    margin-top: 2px;
}

.property-info .location {
    font-size: 12px;
    color: #4f4f4f;
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 5px;
}

.property-info .location i {
    font-size: 14px;
    color: #777;
}

/* 
.property-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background-color: brown;
} */

/* .property-meta span {
    font-size: 12px;
    color: #777;
} */



.property-card .property-info .right i:hover {
    color: red;
}


/* Bottom Section (Hidden on large screens) */
.top-container .bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgb(241, 241, 241);
}

.card-link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Footer */

.site-footer {
    margin-top: auto;
    width: 100%;
    background: #e6e6e6;
    color: rgb(58, 58, 58);
    text-align: center;
    padding: 12px 10px;
    font-size: 14px;
    letter-spacing: .3px;
}

.site-footer p {
    margin: 0;
}

/* Responsive Design */
/* Responsive Design */
@media screen and (min-width: 751px) {

    .top-container .bottom {
        display: none;
    }

    .top-container .top {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

    .top-container .top .search-bar {
        display: flex;
    }

    .top-container .top .icons {
        display: flex;
        gap: 14px;
        margin-right: 10px;

    }

    .logo-container a {
        margin-top: 0px;
    }
}



@media screen and (min-width: 900px) {

    .top-container .top .search-bar {
        margin-left: 20px;
        justify-content: left;
    }

    .top-container .top .search-bar .search-box {
        width: 450px;
    }
}

@media screen and (max-width : 750px) {
    .top-container .top .search-bar {
        display: none;
    }



    .top-container .top .icons {
        display: none;
    }

    .top-container .bottom {
        display: flex;
    }

}