/* =========================
   GLOBAL RESET
========================= */

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

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f6fa;
    height: 100vh;
    overflow: hidden;
}

/* =========================
   APP CONTAINER
========================= */

.app {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================
   TOP HEADER
========================= */

.app-header {
    height: 60px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.app-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.profile-icon {
    font-size: 22px;
    cursor: pointer;
}

/* =========================
   SEARCH BOX
========================= */

.search-box {
    padding: 15px;
    background: #fff;
}

.search-box input {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: #f1f3f8;
    font-size: 15px;
}

/* =========================
   FILTERS
========================= */

.filters {
    display: flex;
    gap: 10px;
    padding: 12px 15px;
    overflow-x: auto;
    background: #fff;
}

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

.filter {
    padding: 8px 18px;
    border-radius: 20px;
    border: none;
    background: #f1f3f8;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
}

.filter.active {
    background: #0077ff;
    color: #fff;
}

/* =========================
   PROPERTY LIST
========================= */

.property-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.property-list::-webkit-scrollbar {
    display: none;
}

/* =========================
   PROPERTY CARD
========================= */

.property-card {
    background: #fff;
    border-radius: 14px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: 0.2s;
}

.property-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.property-info {
    padding: 14px;
}

.property-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.property-info p {
    font-size: 13px;
    color: #777;
}

.price {
    display: block;
    margin-top: 8px;
    font-weight: 600;
    color: #0077ff;
}

/* =========================
   FULLSCREEN SAFE BAR
========================= */

.fullscreen-bar {
    height: 35px;
    background: #111;
    color: #fff;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    letter-spacing: 0.5px;
}

/* Push nav upward when bar visible */
.bottom-nav {
    margin-bottom: 35px;
}

/* Hide bar in fullscreen */
.fullscreen-active .fullscreen-bar {
    display: none;
}

.fullscreen-active .bottom-nav {
    margin-bottom: 0;
}

/* =========================
   BOTTOM NAVIGATION
========================= */

.bottom-nav {
    height: 65px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
}

.nav-item {
    text-align: center;
    font-size: 12px;
    color: #777;
    cursor: pointer;
}

.nav-item span {
    font-size: 22px;
    display: block;
}

.nav-item.active {
    color: #0077ff;
}

/* =========================
   DESKTOP PREVIEW MODE
========================= */

@media (min-width: 768px) {

    body {
        background: #ddd;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .app {
        width: 420px;
        height: 90vh;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    }

}
