/* ===========================
   Global
=========================== */

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

html,
body{
    width:100%;
    height:100%;
    overflow:hidden;
    font-family:
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
    background:#f5f5f5;
    color:#222;
}

/* ===========================
   Top Bar
=========================== */

.topbar{

    height:64px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 18px;

    background:#ffffff;

    border-bottom:1px solid #e6e6e6;

    position:fixed;

    top:0;

    left:0;

    right:0;

    z-index:1000;

}

.logo{

    font-size:22px;

    font-weight:700;

    white-space:nowrap;

}

.search{

    flex:1;

    margin:0 25px;

}

.search input{

    width:100%;

    height:42px;

    border:1px solid #ddd;

    border-radius:8px;

    padding:0 15px;

    font-size:15px;

}

.filters{

    display:flex;

    gap:10px;

}

.filters select{

    height:40px;

    padding:0 12px;

    border-radius:8px;

    border:1px solid #ddd;

    background:#fff;

    cursor:pointer;

}

/* ===========================
   Main Layout
=========================== */

#main{

    position:absolute;

    top:64px;

    left:0;

    right:0;

    bottom:0;

    display:flex;

}

/* ===========================
   Sidebar
=========================== */

#sidebar{

    width:360px;

    min-width:360px;

    background:#fff;

    border-right:1px solid #ddd;

    display:flex;

    flex-direction:column;

    transition:.25s;

}

.sidebar-header{

    height:60px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 18px;

    border-bottom:1px solid #eee;

}

.sidebar-header h2{

    font-size:18px;

}

#toggleSidebar{

    border:none;

    background:none;

    cursor:pointer;

    font-size:22px;

}

/* ===========================
   Property List
=========================== */

#propertyList{

    flex:1;

    overflow-y:auto;

    padding:15px;

    background:#fafafa;

}

.property-card{

    background:#fff;

    border-radius:12px;

    overflow:hidden;

    margin-bottom:16px;

    cursor:pointer;

    transition:.2s;

    box-shadow:

    0 2px 10px rgba(0,0,0,.05);

}

.property-card:hover{

    transform:translateY(-2px);

}

.property-card img{

    width:100%;

    height:190px;

    object-fit:cover;

}

.property-body{

    padding:12px;

}

.price{

    color:#0f8a4b;

    font-size:22px;

    font-weight:bold;

}

.address{

    margin-top:6px;

    color:#444;

    font-size:15px;

}

.details{

    margin-top:8px;

    color:#777;

    font-size:14px;

}

/* ===========================
   Map
=========================== */

#map{

    flex:1;

}

/* ===========================
   Popup
=========================== */

.popup{

    width:250px;

}

.popup img{

    width:100%;

    border-radius:8px;

    margin-bottom:10px;

}

.popup-price{

    font-size:20px;

    font-weight:bold;

    color:#0f8a4b;

}

.popup-address{

    margin-top:6px;

}

.popup-button{

    display:block;

    margin-top:12px;

    padding:10px;

    text-align:center;

    border-radius:8px;

    background:#1d74ff;

    color:#fff;

    text-decoration:none;

}

.popup-button:hover{

    background:#0057d8;

}

/* ===========================
   Mobile
=========================== */

@media(max-width:900px){

#sidebar{

    position:absolute;

    z-index:999;

    left:0;

    top:0;

    bottom:0;

    width:320px;

}

.search{

    display:none;

}

.filters{

    display:none;

}

}

/* ===========================
Price Marker
=========================== */

.price-marker{

    background:none;

    border:none;

}

.marker-price{

    background:#ffffff;

    color:#222;

    border-radius:18px;

    padding:5px 12px;

    font-weight:bold;

    font-size:14px;

    border:1px solid #ddd;

    box-shadow:0 2px 8px rgba(0,0,0,.2);

    white-space:nowrap;

}