/* assets/css/style.css */

:root {
    --primary-color: #0b4c8f; /* Updated to match your branding blue */
    --accent-color: #ffce32;  /* Vibrant yellow/warning accent */
    --footer-bg: #003380;     /* Specific solid blue from your image */
    --text-dark: #002f34;
    --bg-light: #f2f4f5;
    --border-color: #ebeced;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* -----------------------------------
   1. Typography & Utilities
----------------------------------- */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.hover-white:hover { color: white !important; }
.max-w-800 { max-width: 800px; margin: 0 auto; }

/* -----------------------------------
   2. Global UI Elements
----------------------------------- */
/* Navbar */
.navbar {
    border-bottom: 2px solid var(--border-color);
    background: #fff;
}
.navbar-brand img {
    height: 50px; /* Sized for the circular logo */
    width: auto;
}

/* Custom Buttons */
.btn-warning {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
    font-weight: 600;
}
.btn-warning:hover {
    background-color: #e5b92d;
}

/* Custom Footer */
.custom-footer {
    background-color: var(--footer-bg);
    color: #ffffff;
}

/* -----------------------------------
   3. Property Cards (Grid View)
----------------------------------- */
.property-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fff;
}
.property-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}
.property-card .card-img-top {
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

/* Save / Favorite Button Overlay */
.btn-save-property {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}
.btn-save-property.saved i {
    color: #ff3b3b; /* Red heart */
}

/* -----------------------------------
   4. Horizontal Scroll UI (Categories)
----------------------------------- */
.scroll-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.scroll-horizontal::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}
.category-circle {
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}
.category-circle img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    margin-bottom: 5px;
}

/* -----------------------------------
   5. Property Details Page
----------------------------------- */
/* Key Highlights Pill Boxes */
.key-highlight-box {
    border: 1px solid #d3d9de;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}
.key-highlight-box i {
    color: #7f9799;
    font-size: 1.2rem;
}

/* -----------------------------------
   6. Mobile-Specific Layout (App Feel)
----------------------------------- */
/* Hide mobile nav and sticky action bar on desktop */
.mobile-bottom-nav,
.mobile-action-bar {
    display: none;
}

@media (max-width: 768px) {
    /* Add padding to bottom of body to prevent content from hiding behind fixed navs */
    body {
        padding-bottom: 80px; 
    }

    /* Navbar adjustment for mobile */
    .navbar-brand img {
        height: 40px;
    }

    /* Filter Bar Sticky (Search Page) */
    .sticky-filter-bar {
        position: sticky;
        top: 0;
        z-index: 1020;
        background: #fff;
        border-bottom: 1px solid var(--border-color);
        padding: 10px 0;
    }

    /* Fixed Mobile Action Bar (Chat/Call on Property Page) */
    .mobile-action-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 10px 15px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1030;
        gap: 10px;
    }
    .mobile-action-bar .btn {
        flex: 1;
        font-weight: bold;
    }

    /* OLX-Style Bottom Navigation */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--border-color);
        z-index: 1040;
        justify-content: space-around;
        align-items: center;
        height: 60px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    
    .nav-item-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #5c7a7d;
        font-size: 0.75rem;
        font-weight: 500;
        flex: 1;
    }
    .nav-item-bottom i {
        font-size: 1.4rem;
        margin-bottom: 2px;
    }
    .nav-item-bottom.active {
        color: var(--text-dark);
    }

    /* Floating "Sell" Button in Center */
    .nav-item-sell {
        position: relative;
        top: -20px;
        background: #fff;
        border-radius: 50%;
        padding: 5px;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    }
    .nav-item-sell .sell-btn-inner {
        background-color: var(--accent-color);
        color: var(--text-dark);
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border: 4px solid #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    }
    .nav-item-sell .sell-btn-inner i {
        font-size: 1.5rem;
        color: var(--primary-color);
    }
    .nav-item-sell span {
        font-size: 0.75rem;
        font-weight: bold;
        color: var(--primary-color);
        margin-top: -2px;
    }
}