/* ==================== STYLE GLOBAL ==================== */
.navbar {
    border-bottom: 1px solid #eee;
}

.dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    min-width: 250px;
    padding: 10px;
}

/* Gros boutons */
.dropdown-item {
    font-size: 18px;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 5px;
}

/* Effet au toucher */
.dropdown-item:hover {
    background: #f1f3f5;
}

.btn-primary {
    border-radius: 10px;
    font-weight: 600;
}
.btn {
    font-size: 17px;
    padding: 14px 24px;
    border-radius: 12px;
    transition: 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
body {
    font-family: 'Arial', sans-serif;
    background: #f2f4f5;
}
label {
    font-size: 24px;
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #0d6efd;
}
title {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #0011fff7;
}
.card-body{
        font-family: 'Arial', sans-serif;
        font-size: 2.1rem;
        background-color: #00e1ff;
}
.card {
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.8);
    transition: 0.3s;
    font-size: 2.1rem;
    margin: 50px auto;
    max-width: 850px;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.navbar {
    border-bottom: 2px solid #0d6efd;
}

footer {
    font-size: 0.9rem;
}

/* ==================== HERO SEARCH ==================== */
.hero-search-wrapper {
    position: relative;
    padding: 0;
    background: url('../assets/img/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    min-height: 60vh;
    padding-top: 120px; /* espace pour le titre fixe */
}

.hero-search-wrapper .overlay {
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.45);
    z-index:1;
}

.hero-search {
    background: url('../assets/img/banner.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    flex-direction: column; /* pour que la carte pousse vers le bas */
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-box {
    background: linear-gradient(135deg, #cf6872, #e89aa3);
    border-radius: 12px;
    padding: 40px 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.hero-title {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    font-size: 2.5rem;
    font-weight: 700;
    color: #064d00;

    background: rgba(255,255,255,0.9);
    padding: 10px 20px;
    border-radius: 10px;
    white-space: nowrap;

}
.hero-title.sticky-active {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.hero-subtitle {
    color: #064d00;
    font-size: 1rem;
    opacity: 0.9;
}

/* ==================== SEARCH CARD ==================== */
.search-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    max-width: 950px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 2;
    min-height: auto;      /* carte minimale */
}


/* Ligne avec 2 champs côte à côte */
.row-2-cols {
    display: block; /* empile verticalement les champs */
    gap: 0; /* plus besoin de gap horizontal */
    width: 100%; /* chaque champ prend toute la largeur */
    margin-bottom: 12px; /* espace entre les champs */
}

.row-2-cols > * {
    width: 100%; /* chaque champ prend toute la largeur */
}

/* Bouton rechercher */
.btn-search {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-size: 1.1rem;
    border-radius: 12px;
    margin-top: 12px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border: none;
    transition: 0.3s;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,123,255,0.3);
}



/* ==================== TRANSACTION BUTTONS ==================== */
.transaction-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.transaction-buttons .btn {
    flex: 1; /* chaque bouton prend moitié de la ligne */
    padding: 15px 0;
    font-size: 1.1rem;
    border-radius: 12px;
}

.transaction-buttons .btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}



/* ==================== ADVANCED FILTERS ==================== */


.filter-card h5 {
    font-weight: 600;
    margin-bottom: 15px;
}

#advanced-filters .col-12,
#advanced-filters .col-md-6,
#advanced-filters .col-lg-4 {
    display: flex;
    flex-direction: column;
}
#advanced-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    font-size: 16px;
}
.search-card input:focus,
.search-card select:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 208, 255, 0.25);
    outline: none;
}
.search-card .row {
    display: flex;
    gap: 15px;
}

.search-field {
    width: 100%;
    border-radius: 14px;
    padding: 18px 16px;
    font-size: 1.4rem;
    border: 1px solid #ddd;
    background-color: #fff;
    transition: all 0.2s ease;
}

.search-field:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(4, 200, 239, 0.25);
    outline: none;
}
/* ==================== ESPACE SOUS FORMULAIRE ==================== */
#properties-results {
    margin-top: 60px;
}

canvas {
    max-width: 100%;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-control, .form-select {
        border-radius: 22px;
        padding: 28px;
        font-size: 16px;
}
/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {

    /* Carte responsive pleine largeur */
    .search-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        margin: 10px 0 !important;
        box-sizing: border-box !important;
    }


    /* Chaque ligne de champ prend toute la largeur */
    .row-2-cols {
        display: block !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    /* Champs de recherche full width + police plus grande */
    .search-field,
    .search-card input,
    .search-card select {
        width: 100% !important;
        font-size: 2.8rem !important;  /* ~2x plus grand */
        padding: 28px 18px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }

    /* Bouton rechercher plus grand */
    .btn-search {
        font-size: 3.6rem !important;
        padding: 36px 0 !important;
        width: 100% !important;
    }

    /* Boutons Louer / Vendre : 1 par ligne */
    .transaction-buttons {
        flex-direction: column !important;
        gap: 24px !important;
    }

    .transaction-buttons .btn {
        font-size: 4.8rem !important;
        padding: 48px 0 !important;
        width: 100% !important;
        border-radius: 14px !important;
    }

    .card {
        border-radius: 14px;
        border: none;
    }

    .card-header {
        font-size: 2.3rem;
        font-weight: 600;
    }

    .form-control, .form-select {
        border-radius: 18px;
        padding: 20px;
        font-size: 16px;
    }

    h5 {
        font-weight: 600;
        font-size: 16px;
    }

    .dropdown-menu {
        width: 90vw;         /* presque plein écran */
        right: 10px;
        left: auto;
    }
    

    .dropdown-item {
        font-size: 20px;
        padding: 16px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .offcanvas {
        width: 100% !important;
        height: 100% !important;
    }

    .menu-btn {
        font-size: 48px;
        padding: 24px;
    }

    .offcanvas-title {
        font-size: 24px;
    }  
    /* Corps du menu */
    .offcanvas-body {
        display: flex;
        flex-direction: column;
        justify-content: center; /* centre verticalement */
    } 
    .menu-toggle {
    font-size: 22px;
    padding: 16px 26px;
    border-radius: 14px;
    font-weight: 600;
} 
}