/* ==========================================================
   DALALI MTANDAONI
   Modern UI Styles
   Version 2.0
========================================================== */

/* ===========================
   VARIABLES
=========================== */

:root{

    --primary:#0B3D91;
    --primary-light:#1565C0;
    --primary-dark:#072D6A;

    --accent:#FF8C00;
    --accent-dark:#E67700;

    --white:#FFFFFF;
    --background:#F4F7FC;
    --text:#212529;
    --muted:#6C757D;

    --radius:16px;
    --transition:.3s ease;

}

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

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    background:var(--background);
    color:var(--text);
    font-family:'Poppins',sans-serif;
    overflow-x:hidden;

}

/* ===========================
   NAVBAR
=========================== */

.navbar.custom-navbar{

    background:linear-gradient(135deg,#0B3D91,#1565C0) !important;

    min-height:82px;

    padding:12px 0;

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

}

.navbar.custom-navbar .container{

    flex-wrap:nowrap;

}

.navbar.custom-navbar .navbar-collapse{

    min-width:0;

}

/* Brand */

.navbar.custom-navbar .navbar-brand{

    color:#fff !important;

    font-size:1.65rem;

    font-weight:700;

    letter-spacing:.5px;

    display:flex;

    align-items:center;

    gap:8px;

    flex-shrink:0;

}

.navbar.custom-navbar .navbar-brand:hover{

    color:#fff !important;

}

.site-logo{

    width:40px;

    height:40px;

    border-radius:50%;

    object-fit:cover;

    background:#fff;

}

.brand-text{

    line-height:1;

    display:flex;

    flex-direction:column;

    gap:1px;

}

.brand-name{

    display:block;

    white-space:nowrap;

}

.brand-slogan{

    color:rgba(255,255,255,.92);

    display:block;

    font-size:.68rem;

    font-weight:600;

    letter-spacing:0;

    line-height:1;

    max-width:190px;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

}

.footer-site-logo{

    width:42px;

    height:42px;

    border-radius:50%;

    object-fit:cover;

    margin-right:10px;

    background:#fff;

}

/* Navigation */

.navbar.custom-navbar .nav-link{

    color:#ffffff !important;

    opacity:1 !important;

    font-weight:500;

    align-items:center;

    display:flex;

    font-size:15px;

    margin:0 6px;

    position:relative;

    transition:var(--transition);

    white-space:nowrap;

}

.navbar.custom-navbar .nav-link:hover{

    color:#FFD54F !important;

}

.navbar.custom-navbar .nav-link::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-6px;

    width:0;

    height:2px;

    background:#FFD54F;

    transition:var(--transition);

}

.navbar.custom-navbar .nav-link:hover::after{

    width:100%;

}

.navbar.custom-navbar .navbar-nav{

    flex-wrap:nowrap;

}

.navbar.custom-navbar .language-select{

    appearance:none;

    -webkit-appearance:none;

    -moz-appearance:none;

    background-image:none;

    background-color:rgba(255,255,255,.14);

    color:#fff;

    border:1px solid rgba(255,255,255,.28);

    padding:8px 14px;

    width:auto;

    min-width:76px;

    cursor:pointer;

    white-space:nowrap;

}

.navbar.custom-navbar form{

    flex-shrink:0;

}

.navbar.custom-navbar .btn{

    padding-left:16px !important;

    padding-right:16px !important;

    white-space:nowrap;

}

.navbar.custom-navbar .navbar-auth-actions{

    flex-shrink:0;

    flex-wrap:nowrap;

}

.navbar.custom-navbar .language-select:focus{

    border-color:rgba(255,213,79,.75);

    box-shadow:0 0 0 .15rem rgba(255,213,79,.18);

}

.navbar.custom-navbar .language-select option{

    color:var(--text);

}

/* Mobile */

.navbar-toggler{

    border:none;

}

.navbar-toggler:focus{

    box-shadow:none;

}

/* ===========================
   PROFILE BUTTON
=========================== */

.profile-btn{

    background:rgba(255,255,255,.15);

    color:#fff !important;

    border:1px solid rgba(255,255,255,.30);

    border-radius:30px;

    padding:10px 18px;

    font-weight:600;

    transition:var(--transition);

}

.profile-btn:hover{

    background:var(--accent);

    border-color:var(--accent);

    color:#fff !important;

}

.nav-profile-picture{

    width:28px;

    height:28px;

    border-radius:50%;

    object-fit:cover;

    border:2px solid rgba(255,255,255,.65);

}

.profile-picture-lg{

    width:90px;

    height:90px;

    border-radius:50%;

    object-fit:cover;

    border:4px solid #fff;

    box-shadow:0 12px 30px rgba(0,0,0,.18);

}

.profile-edit-form{

    background:#f8fafc;

    border:1px solid #e9ecef;

    border-radius:18px;

    padding:22px;

}

/* ===========================
   DROPDOWN
=========================== */

.dropdown-menu{

    border:none;

    border-radius:18px;

    min-width:260px;

    padding:10px;

    box-shadow:0 15px 40px rgba(0,0,0,.15);

}

.dropdown-item{

    border-radius:12px;

    padding:12px 15px;

    transition:var(--transition);

}

.dropdown-item:hover{

    background:#EEF4FF;

    color:var(--primary);

}

/* ===========================
   BUTTONS
=========================== */

.btn{

    border-radius:30px;

    transition:all .3s ease;

    font-weight:600;

}

.btn:hover{

    transform:translateY(-3px);

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

.btn-primary{

    background:#0B3D91;

    border:none;

    box-shadow:0 10px 30px rgba(11,61,145,.35);

}

.btn-primary:hover{

    background:#072D6A;

    transform:translateY(-3px);

}


.btn-warning{

    background:var(--accent);

    border:none;

    color:#fff;

}

.btn-warning:hover{

    background:var(--accent-dark);

    color:#fff;

}

.btn-outline-light{

    border-width:2px;

}

.btn-outline-light:hover{

    color:var(--primary);

}

/* ===========================
   HERO SECTION
=========================== */

.hero-section{

    position: relative;

    min-height: 720px;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            rgba(7,30,70,.72),
            rgba(7,30,70,.72)
        ),
        url("../images/hero.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

.hero-title{

    font-size:4rem;

    font-weight:700;

    color:white;

    line-height:1.15;

}

.hero-subtitle{

    color:rgba(255,255,255,.88);

    font-size:1.25rem;

    line-height:1.8;

    margin:30px 0;

}

/* ===========================
   CARDS
=========================== */

.card,
.category-card{

    border:none;

    border-radius:18px;

    overflow:hidden;

    transition:var(--transition);

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

}

.card:hover,
.category-card:hover,
.listing-card:hover,
.recent-card:hover,
.feature-card:hover{

    transform:translateY(-10px);

    box-shadow:0 25px 50px rgba(0,0,0,.15);

}

/* ===========================
   IMAGES
=========================== */

.listing-card-image{

    width:100%;

    height:230px;

    object-fit:cover;

}

.detail-image{

    width:100%;

    border-radius:16px;

}

/* ===========================
   FORMS
=========================== */

.form-control,
.form-select{

    border-radius:12px;

    border:1px solid #D9E2EC;

    padding:12px;

}

.form-control:focus,
.form-select:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 .15rem rgba(11,61,145,.15);

}

/* ===========================
   ALERTS
=========================== */

.alert{

    border:none;

    border-radius:14px;

}

/* ===========================
   FOOTER
=========================== */

footer{

    margin-top:80px;

    background:#071E46;

    color:#fff;

    padding:60px 0 25px;

}

footer h5{

    font-weight:600;

    margin-bottom:20px;

}

footer a{

    color:#D7E5FF;

    text-decoration:none;

    transition:var(--transition);

}

footer a:hover{

    color:#FFD54F;

}

footer hr{

    border-color:rgba(255,255,255,.12);

}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width:991px){

.navbar-nav{

    margin-top:20px;

    text-align:center;

}

.profile-btn{

    margin-top:15px;

}

}

@media (min-width:992px) and (max-width:1200px){

.navbar.custom-navbar .navbar-brand{

    font-size:1.42rem;

}

.navbar.custom-navbar .nav-link{

    font-size:14px;

    margin:0 4px;

}

.navbar.custom-navbar .btn{

    padding-left:12px !important;

    padding-right:12px !important;

}

.navbar.custom-navbar .language-select{

    min-width:70px;

    padding-left:12px;

    padding-right:12px;

}

}

@media (max-width:768px){

.hero-title{

    font-size:2.5rem;

}

.hero-section{

    padding:80px 0;

}

.navbar.custom-navbar .navbar-brand{

    font-size:1.4rem;

}

}

/* ====================================
   HERO SEARCH
==================================== */

.hero-search{

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(12px);

    border-radius:20px;

    padding:20px;

}

.hero-search .form-control{

    border:none;

    box-shadow:none;

}

/* ====================================
   HERO STATS
==================================== */

.hero-stats{

    padding-left:30px;

}

.stat-card{

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(12px);

    border-radius:20px;

    padding:30px;

}

.stat-card:hover{

    transform:translateY(-6px);

}

.stat-card h2{

    color:#0B3D91;

    font-weight:700;

    margin-bottom:8px;

}

.stat-card p{

    margin:0;

    color:#6C757D;

}

/* =====================================
   CATEGORY SECTION
===================================== */

.category-card{

    background:#fff;

    padding:40px 25px;

    border-radius:22px;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    transition:.35s;

}

.category-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 45px rgba(0,0,0,.12);

}

.category-icon{

    width:90px;

    height:90px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    margin:auto;

    color:white;

    font-size:36px;

}

.category-card .btn{

    margin-top:15px;

    border-radius:30px;

    padding:10px 28px;

}

/* =====================================
   FEATURED LISTINGS
===================================== */

.listing-card{

    background:#fff;

    border-radius:16px;

    overflow:visible;

    transition:.2s ease;

    box-shadow:0 4px 18px rgba(15,23,42,.07);

    height:100%;

}

.listing-card .listing-image-wrapper{

    overflow:hidden;

}

.listing-card:hover{

    transform:translateY(-3px);

    box-shadow:0 10px 26px rgba(15,23,42,.11);

}

.listing-image-wrapper{

    position:relative;

    width:100%;

    height:245px;

    overflow:hidden;

    border-radius:16px 16px 0 0;

}

.listing-card:hover .listing-card-image{

    transform:scale(1.03);

}

/* Featured Badge */

.featured-badge{

    position:absolute;
    top:14px;
    left:14px;
    background:#FFB000;
    color:#fff;
    padding:5px 11px;
    border-radius:30px;
    font-size:11px;
    font-weight:600;
    z-index:5;

}

/* Price Badge */

.price-badge{

    position:absolute;
    bottom:14px;
    right:14px;
    background:#0B3D91;
    color:#fff;
    padding:7px 13px;
    border-radius:25px;
    font-size:.9rem;
    font-weight:600;
    z-index:5;

}

.category-badge{

    display:none;

}

.ad-category-label{

    color:#0B3D91;
    font-size:.78rem;
    font-weight:700;
    line-height:1.2;
    margin-bottom:6px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;

}

.favorite-float{

    position:absolute;
    top:12px;
    right:12px;
    width:38px;
    height:38px;
    border-radius:50%;
    border:0;
    background:rgba(255,255,255,.92);
    color:#0B3D91;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 4px 12px rgba(15,23,42,.12);
    z-index:6;
    text-decoration:none;

}

.favorite-float:hover{

    color:#D7263D;
    background:#fff;

}

.verified-pill{

    display:inline-flex;
    align-items:center;
    gap:5px;
    border-radius:999px;
    padding:4px 9px;
    color:#0B3D91;
    background:#EAF2FF;
    font-size:.76rem;
    font-weight:600;

}

.category-chip-row{

    display:flex;
    gap:10px;
    overflow-x:auto;
    padding:4px 0 10px;
    scrollbar-width:none;

}

.category-chip-row::-webkit-scrollbar{

    display:none;

}

.category-chip{

    display:inline-flex;
    align-items:center;
    gap:7px;
    border:1px solid #E6ECF5;
    border-radius:999px;
    padding:8px 14px;
    color:#1F2937;
    background:#fff;
    font-size:.9rem;
    font-weight:600;
    text-decoration:none;
    white-space:nowrap;
    box-shadow:0 3px 10px rgba(15,23,42,.04);

}

.category-chip:hover{

    color:#0B3D91;
    border-color:#0B3D91;

}

.category-chip.active{

    color:#fff;
    border-color:#0B3D91;
    background:#0B3D91;

}

.category-chip.active i{

    color:#fff !important;

}
/* Airbnb-style compact card body */

.listing-card .card-body{

    padding:14px 14px 16px;
    overflow:visible;

}

.listing-card h5{

    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    min-height:2.7em;
    font-size:1rem;
    font-weight:700;
    line-height:1.35;
    margin-bottom:7px;
    color:#172033;

}

.listing-card p{

    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    font-size:.84rem;
    line-height:1.45;
    color:#6c757d;
    margin-bottom:6px;

}

.listing-card small{

    font-size:.82rem;

}

.listing-card .btn{

    font-size:.84rem;
    padding:7px 12px;
    border-radius:10px;

}

.ad-search-shell{

    border:1px solid #E8EEF7;
    border-radius:20px;
    box-shadow:0 8px 30px rgba(15,23,42,.07);
    background:#fff;

}

.ad-search-shell .card-body{

    padding:18px;

}

.ad-detail-gallery img,
.ad-detail-main-image{

    border-radius:18px;

}

.ad-owner-card{

    border:1px solid #E8EEF7;
    border-radius:18px;
    box-shadow:0 6px 22px rgba(15,23,42,.06);

}

/* =====================================
   RECENT LISTINGS
===================================== */

.recent-section{

    background:#F8FAFD;

}

.recent-card{

    background:#fff;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    transition:.35s;

    height:100%;

}

.recent-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 45px rgba(0,0,0,.14);

}

.recent-image{

    width:100%;

    height:100%;

    min-height:260px;

    object-fit:cover;

    transition:.5s;

}

.recent-card:hover .recent-image{

    transform:scale(1.05);

}

.recent-content{

    padding:28px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    height:100%;

}

.recent-content h4{

    margin-top:10px;

}

/* =====================================
   WHY CHOOSE US
===================================== */

.why-us-section{

    background:#ffffff;

}

.feature-card{

    background:#fff;

    border-radius:22px;

    padding:40px 25px;

    text-align:center;

    height:100%;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    transition:.35s;

}

.feature-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 45px rgba(0,0,0,.15);

}

.feature-icon{

    width:90px;

    height:90px;

    margin:auto;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    color:white;

    font-size:36px;

    margin-bottom:25px;

}

.feature-card h4{

    font-weight:700;

    margin-bottom:15px;

}

.feature-card p{

    color:#6c757d;

    margin:0;

}

/* =====================================
   CALL TO ACTION
===================================== */

.cta-section{

    padding:80px 0;

    background:#F4F7FC;

}

.cta-box{

    background:linear-gradient(
        135deg,
        #0B3D91,
        #1565C0
    );

    border-radius:28px;

    padding:60px;

    box-shadow:0 20px 45px rgba(11,61,145,.25);

}

.cta-box h2{

    font-size:2.3rem;

}

.cta-box p{

    font-size:1.1rem;

    line-height:1.8;

}

.cta-box .btn{

    min-width:210px;

    margin-bottom:10px;

}

.cta-box .btn-warning{

    font-weight:600;

}

@media(max-width:768px){

.cta-box{

    padding:40px 25px;

    text-align:center;

}

.cta-box h2{

    font-size:1.8rem;

}

}

/* =====================================
   FOOTER
===================================== */

.footer{

    background:#071E46;

    color:white;

    padding:80px 0 30px;

    margin-top:0;

}

.footer-logo{

    font-weight:700;

}

.footer-slogan{

    color:#FFD54F;

    font-size:.92rem;

    font-weight:600;

    margin:10px 0 0;

}

.footer-text{

    color:#C9D7F2;

    line-height:1.8;

}

.footer h5{

    margin-bottom:25px;

    font-weight:600;

}

.footer-links{

    list-style:none;

    padding:0;

}

.footer-links li{

    margin-bottom:14px;

}

.footer-links a{

    color:#C9D7F2;

    text-decoration:none;

    transition:.3s;

}

.footer-links a:hover{

    color:#FFD54F;

    padding-left:6px;

}

.footer-contact{

    list-style:none;

    padding:0;

}

.footer-contact li{

    margin-bottom:18px;

    color:#C9D7F2;

}

.footer-contact i{

    color:#FFD54F;

    margin-right:10px;

}

.social-links{

    display:flex;

    gap:12px;

}

.social-links a{

    width:42px;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    color:white;

    text-decoration:none;

    transition:.3s;

}

.social-links a:hover{

    background:#FF8C00;

    transform:translateY(-4px);

}

.footer-divider{

    border-color:rgba(255,255,255,.15);

    margin:40px 0 25px;

}

section{

    position:relative;

}

section:not(.hero-section){

    padding-top:60px;
    padding-bottom:60px;

}

.fade-up{

    animation:fadeUp .8s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* Scroll Indicator */

.scroll-indicator{

    position:absolute;

    left:50%;

    bottom:30px;

    transform:translateX(-50%);

    color:white;

    text-align:center;

    animation:bounce 2s infinite;

}

.scroll-indicator span{

    display:block;

    font-size:.9rem;

    margin-bottom:5px;

}

.scroll-indicator i{

    font-size:1.4rem;

}

@keyframes bounce{

    0%,20%,50%,80%,100%{

        transform:translateX(-50%) translateY(0);

    }

    40%{

        transform:translateX(-50%) translateY(-10px);

    }

    60%{

        transform:translateX(-50%) translateY(-5px);

    }

}

/* Section Titles */

.section-header{

    text-align:center;

    margin-bottom:60px;

}

.section-header .badge{

    border-radius:30px;

    padding:10px 20px;

    font-size:.8rem;

    letter-spacing:1px;

}

.section-header h2{

    margin-top:20px;

    font-weight:700;

}

.section-header p{

    color:#6c757d;

    max-width:650px;

    margin:auto;

}

.listing-card:hover img,
.recent-card:hover img{

    filter:brightness(1.05);

}

.hero-search:hover{

    box-shadow:0 20px 40px rgba(0,0,0,.18);

}
