/**
 * sen-auto - Styles principaux
 * Plateforme d'annonces automobiles
 */

/* =====================================================
   VARIABLES CSS
   ===================================================== */
:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #34D399;
    --secondary: #3B82F6;
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --light: #ffffff;
    --gray: #f5f5f5;
    --gray-2: #e5e5e5;
    --gray-3: #d4d4d4;
    --text: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition: all 0.3s ease;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Empêcher le scroll horizontal */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

html {
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--gray);
    min-height: 100%;
    overflow: visible;
}

header {
    max-width: 100%;
    overflow-x: visible;
    /* Important pour les dropdowns */
}

/* S'assurer que tous les conteneurs respectent la largeur */
.container-fluid,
.container,
section,
main,
footer {
    max-width: 100%;
}


a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Empêcher les débordements horizontaux */
table,
pre,
code {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

ul,
ol {
    list-style: none;
}

/* Favoris button */
.btn-favorite {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 50 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #ff4757 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    padding: 0 !important;
}

.btn-favorite:hover {
    transform: scale(1.15) !important;
    background: #ffffff !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2) !important;
}

.btn-favorite.active {
    background: #ff4757 !important;
    color: #ffffff !important;
}

.btn-favorite i {
    line-height: 1;
}

/* =====================================================
   TOP BAR
   ===================================================== */
.top-bar {
    background: var(--dark);
    color: var(--light);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-left {
    display: flex;
    gap: 25px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.top-bar-right {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-bar-right a {
    color: var(--light);
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-right a:hover {
    opacity: 1;
    color: var(--primary);
}

.btn-publish {
    background: var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.btn-publish:hover {
    background: var(--primary-dark);
}

/* =====================================================
   MAIN HEADER
   ===================================================== */
.main-header {
    background: var(--light);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100000 !important;
    overflow: visible !important;
    width: 100%;
    max-width: 100%;
}

.main-header .container-fluid {
    max-width: 100%;
}

.header-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.header-wrapper>* {
    min-width: 0;
}

/* S'assurer que le header ne déborde jamais */
.header-wrapper .logo {
    flex-shrink: 0;
}

.header-wrapper .header-search {
    flex: 1;
    min-width: 0;
}

.header-wrapper .header-actions {
    flex-shrink: 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 180px;
}

.logo-img {
    height: 60px;
    width: 100%;
    max-width: none;
    object-fit: contain;
}

/* Search */
.header-search {
    flex: 1;
    max-width: 600px;
}

.search-wrapper {
    display: flex;
    background: var(--gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-wrapper:focus-within {
    border-color: var(--primary);
    background: var(--light);
}

.search-select {
    border: none;
    background: transparent;
    padding: 12px 15px;
    font-size: 14px;
    width: 150px;
    border-right: 1px solid var(--gray-2);
    cursor: pointer;
}

.search-select:focus {
    outline: none;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 15px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background: var(--primary);
    border: none;
    padding: 12px 20px;
    color: var(--light);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 18px;
    position: relative;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary);
    color: var(--light);
}

.action-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: var(--light);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray);
    border: none;
    padding: 6px 12px 6px 6px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--gray-2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text);
}

/* =====================================================
   MAIN NAVIGATION
   ===================================================== */
.main-nav {
    background: var(--light);
    border-top: 1px solid var(--gray-2);
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-menu>li>a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 20px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active {
    color: var(--primary);
}

/* Mega Dropdown */
.has-dropdown {
    position: relative;
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--light);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 25px;
    min-width: 700px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

/* S'assurer que les dropdowns Bootstrap sont toujours au-dessus */
.dropdown-menu {
    z-index: 10101 !important;
}

.dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.font-sm-custom {
    font-size: 13.5px !important;
}

.user-dropdown,
.dropdown {
    position: relative;
    z-index: 10101 !important;
    overflow: visible !important;
}

.has-dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Désactiver le hover sur mobile */
@media (max-width: 992px) {
    .has-dropdown:hover .mega-dropdown {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: none !important;
    }
}

.mega-dropdown-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.mega-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-col ul li a {
    display: block;
    padding: 8px 0;
    color: var(--text-light);
    font-size: 14px;
}

.mega-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.mega-featured {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 20px;
    border-radius: var(--radius);
    color: var(--light);
}

.mega-featured h4 {
    color: var(--light);
}

.mega-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 15px;
    border-radius: var(--radius);
    color: var(--light);
    margin-top: 15px;
    font-weight: 500;
}

.mega-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--light);
}

/* =====================================================
   ANNONCE CARDS
   ===================================================== */
.annonces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.annonce-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.annonce-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.annonce-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.annonce-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.annonce-card:hover .annonce-image img {
    transform: scale(1.05);
}

.annonce-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-neuve {
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
    color: var(--light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-occasion {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    color: var(--light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-premium {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: var(--light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-urgent {
    background: var(--danger);
    color: var(--light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.badge-verifie {
    background: var(--success);
    color: var(--light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}



.annonce-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 50;
}

.annonce-photos-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.annonce-body {
    padding: 20px;
}

.annonce-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.annonce-title a {
    color: var(--text);
}

.annonce-title a:hover {
    color: var(--primary);
}

.annonce-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.annonce-price .negociable {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    margin-left: 5px;
}

.annonce-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.annonce-specs span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.annonce-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.annonce-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-2);
}

.annonce-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.annonce-seller img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.annonce-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* =====================================================
   FILTERS SIDEBAR
   ===================================================== */
.filters-sidebar {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-2);
}

.filters-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.filter-group .form-control,
.filter-group .form-select {
    border: 2px solid var(--gray-2);
    border-radius: var(--radius);
    padding: 10px 15px;
    transition: var(--transition);
}

.form-select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

.form-select option,
.form-select optgroup {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .form-select {
        font-size: 0.9rem;
        padding: 0.65rem 0.9rem;
        width: 100% !important;
        max-width: 100vw !important; /* Evite le débordement du dropdown natif */
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .form-control {
        width: 100% !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    /* En Bootstrap 5, sans classes col-* en xs, col-md-* peut avoir une largeur "auto".
       Sur mobile ça décale la largeur du select et donc le dropdown natif. */
    .row > [class*="col-md-"],
    .row > [class*="col-lg-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* =====================================================
       MOBILE SELECT CUSTOM (anti-débordement Chrome)
       ===================================================== */
    .mobile-select-wrapper {
        position: relative;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .mobile-select-native {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        pointer-events: none;
        margin: 0;
    }

    .mobile-select-display {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 12px 15px;
        min-height: 48px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        background: white;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
        position: relative;
        z-index: 2;
    }

    .mobile-select-display:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    }

    .mobile-select-display::after {
        content: "";
        margin-left: auto;
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 7px solid #64748b;
        flex: 0 0 auto;
    }

    .mobile-select-options {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% - 2px);
        background: white;
        border: 2px solid #e2e8f0;
        border-top: none;
        border-radius: 0 0 12px 12px;
        z-index: 10050;
        max-height: 320px;
        overflow-y: auto;
        display: none;
        box-sizing: border-box;
    }

    .mobile-select-options.open {
        display: block;
    }

    .mobile-select-display,
    .mobile-select-option {
        color: var(--text);
    }

    .mobile-select-option {
        width: 100%;
        padding: 12px 15px;
        box-sizing: border-box;
        cursor: pointer;
        background: white;
        font-size: 16px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border-top: 1px solid rgba(226, 232, 240, 0.8);
    }

    .mobile-select-option.selected {
        background: #1f6feb;
        color: white;
        border-top-color: rgba(31, 111, 235, 0.6);
    }

    .mobile-select-option.disabled,
    .mobile-select-option[aria-disabled="true"] {
        opacity: 0.6;
        cursor: not-allowed;
    }
}

.filter-group .form-control:focus,
.filter-group .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* =====================================================
   VENDEUR PROFILE
   ===================================================== */
.vendeur-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    text-align: center;
}

.vendeur-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 4px solid var(--primary);
}

.vendeur-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendeur-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.vendeur-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--success);
    color: var(--light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.vendeur-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid var(--gray-2);
    border-bottom: 1px solid var(--gray-2);
}

.vendeur-stat {
    text-align: center;
}

.vendeur-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.vendeur-stat-label {
    font-size: 12px;
    color: var(--text-light);
}

/* =====================================================
   FOOTER
   ===================================================== */
.main-footer {
    background: var(--dark);
    color: var(--light);
    margin-top: 60px;
}

.footer-top {
    padding: 60px 0;
}

.footer-widget {
    margin-bottom: 30px;
}

/* Footer logo retiré */

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-widget h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--primary);
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--primary);
}

/* Footer Warning */
.footer-warning {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    padding: 30px 0;
    border-top: 3px solid #F59E0B;
}

.warning-box {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.warning-icon {
    width: 60px;
    height: 60px;
    background: #F59E0B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
}

.warning-content h5 {
    font-size: 18px;
    font-weight: 700;
    color: #92400E;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-content ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.warning-content ul li {
    font-size: 13px;
    color: #78350F;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.warning-content ul li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    top: 0;
}

.warning-content ul li strong {
    color: #92400E;
}

@media (max-width: 992px) {
    .warning-content ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .warning-box {
        flex-direction: column;
        text-align: center;
    }

    .warning-icon {
        margin: 0 auto;
    }

    .warning-content ul li {
        text-align: left;
    }
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* =====================================================
   WHATSAPP & BACK TO TOP
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 28px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--light);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
    .mega-dropdown {
        min-width: 600px;
    }

    .mega-dropdown-inner {
        grid-template-columns: repeat(3, 1fr);
    }

    .mega-featured {
        display: none;
    }
}

@media (max-width: 992px) {
    .header-search {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--gray);
        border: none;
        font-size: 22px;
        cursor: pointer;
        color: var(--text);
        transition: var(--transition);
    }

    .mobile-menu-toggle:hover {
        background: var(--primary);
        color: white;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--light);
        border-bottom: 1px solid var(--gray-2);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .main-nav.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        padding: 0;
    }

    .nav-menu>li {
        border-bottom: 1px solid var(--gray-2);
    }

    .nav-menu>li>a {
        padding: 15px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Cacher le dropdown par défaut sur mobile */
    .has-dropdown .mega-dropdown {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Afficher le dropdown seulement quand on clique */
    .has-dropdown.active .mega-dropdown {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static;
        transform: none;
        box-shadow: none;
        min-width: 100%;
        padding: 15px 20px;
        border-top: 1px solid var(--gray-2);
        background: var(--gray);
    }

    .mega-dropdown-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }

    .top-bar {
        display: none;
    }

    /* Header style comme dashboard sur mobile */
    .main-header {
        padding: 0;
        max-width: 100vw;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: var(--light);
        border-bottom: 1px solid var(--gray-2);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        z-index: 9999 !important;
        overflow: visible !important;
    }

    .main-header .container-fluid {
        max-width: 100%;
        padding: 0 15px;
        height: 100%;
        overflow: visible !important;
    }

    .header-wrapper {
        gap: 15px;
        flex-wrap: nowrap;
        overflow: visible !important;
        z-index: 10000 !important;
        max-width: 100%;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        width: auto;
        min-width: auto;
        max-width: 120px;
        flex-shrink: 0;
        height: auto;
    }

    .logo-img {
        height: 40px;
        max-width: 100%;
    }

    .header-search {
        display: none;
    }

    .header-actions {
        gap: 10px;
        flex-shrink: 0;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .header-actions .btn {
        display: none;
    }

    .action-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        flex-shrink: 0;
        min-width: 40px;
        background: var(--gray);
        border-radius: 50%;
    }

    .action-btn:hover {
        background: var(--primary);
        color: white;
    }

    .action-btn .badge {
        font-size: 11px;
        padding: 2px 6px;
        top: -5px;
        right: -5px;
        min-width: 18px;
        text-align: center;
    }

    .user-btn {
        padding: 8px 12px 8px 8px;
        flex-shrink: 0;
        min-width: 0;
        background: var(--gray);
        border-radius: 25px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .user-btn:hover {
        background: var(--gray-2);
    }

    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
        flex-shrink: 0;
        font-weight: 700;
    }

    .user-name {
        display: none;
    }

    .user-btn .bi-chevron-down {
        font-size: 12px;
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--gray);
        border: none;
        font-size: 22px;
        cursor: pointer;
        color: var(--text);
        transition: var(--transition);
        flex-shrink: 0;
    }

    .mobile-menu-toggle:hover {
        background: var(--primary);
        color: white;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--light);
        border-bottom: 1px solid var(--gray-2);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .main-nav.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        padding: 0;
    }

    .nav-menu>li {
        border-bottom: 1px solid var(--gray-2);
    }

    .nav-menu>li>a {
        padding: 15px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Cacher le dropdown par défaut sur mobile */
    .has-dropdown .mega-dropdown {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    /* Afficher le dropdown seulement quand on clique sur le lien parent */
    .has-dropdown.active .mega-dropdown {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static;
        transform: none;
        box-shadow: none;
        padding: 15px 20px;
        border-top: 1px solid var(--gray-2);
        background: var(--gray);
        max-height: 1000px;
    }

    .has-dropdown.active>a {
        color: var(--primary);
        font-weight: 600;
    }

    .has-dropdown.active>a .bi-chevron-down {
        transform: rotate(180deg);
    }

    .main-content {
        padding-top: 70px !important;
    }

    /* Style du header identique au dashboard */
    .main-header {
        border-bottom: 1px solid var(--gray-2);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .header-wrapper {
        justify-content: space-between;
    }

    .user-btn {
        border-radius: 25px;
    }

    .action-btn {
        border-radius: 50%;
    }

    .annonces-grid {
        grid-template-columns: 1fr;
    }

    .footer-legal {
        justify-content: center;
        margin-top: 15px;
    }

    /* Boutons flottants */
    .whatsapp-float {
        bottom: 80px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    .back-to-top {
        bottom: 20px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }

    * {
        max-width: 100%;
    }

    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container-fluid>* {
        max-width: 100%;
    }

    .main-header {
        height: 70px;
        padding: 0;
    }

    .main-header .container-fluid {
        padding: 0 10px;
        overflow: visible !important;
    }

    .header-wrapper {
        gap: 10px;
        padding: 0;
        overflow: visible !important;
    }

    .logo {
        width: auto;
        min-width: auto;
        max-width: 110px;
    }

    .logo-img {
        height: 38px;
    }

    .header-actions {
        gap: 8px;
    }

    .action-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .user-btn {
        padding: 6px 10px 6px 6px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .logo-img {
        height: 40px;
    }

    .header-actions {
        gap: 4px;
    }

    .action-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .user-btn {
        padding: 3px 6px 3px 3px;
    }

    .user-avatar {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .user-name {
        display: none;
    }

    .mobile-menu-toggle {
        font-size: 22px;
        padding: 3px;
    }

    .annonce-specs {
        gap: 8px;
    }

    .vendeur-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Boutons flottants sur très petits écrans */
    .whatsapp-float {
        bottom: 70px;
        right: 12px;
        width: 48px;
        height: 48px;
        font-size: 22px;
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    .back-to-top {
        bottom: 15px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

@media (max-width: 400px) {

    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    * {
        max-width: 100%;
    }

    .logo {
        width: 90px;
        min-width: 90px;
    }

    .logo-img {
        height: 35px;
    }

    .header-actions .action-btn:not(.mobile-menu-toggle) {
        display: none;
    }

    .whatsapp-float {
        bottom: 65px;
        right: 10px;
        width: 48px;
        height: 48px;
        font-size: 22px;
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    .back-to-top {
        bottom: 12px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    /* S'assurer que les boutons flottants ne débordent pas */
    .whatsapp-float,
    .back-to-top {
        max-width: calc(100vw - 20px);
    }
}/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9)),
                url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920&q=80') center/cover;
    padding: 100px 0;
    color: var(--light);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-content > p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-search {
    background: var(--light);
    padding: 25px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.search-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.search-field {
    flex: 1;
    text-align: left;
}

.search-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.search-field .form-select {
    border: 2px solid var(--gray-2);
    padding: 12px 15px;
    border-radius: var(--radius);
}

.hero-search .btn {
    padding: 12px 30px;
    white-space: nowrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.hero-stats .stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* Vehicle Types Section */
.vehicle-types-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.vehicle-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.vehicle-type-card {
    background: white;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.vehicle-type-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    color: var(--text);
}

.vehicle-type-card:hover .type-image img {
    transform: scale(1.1);
}

.vehicle-type-card:hover .type-info {
    background: var(--primary);
}

.vehicle-type-card:hover .type-info h4,
.vehicle-type-card:hover .type-info p {
    color: white;
}

.type-image {
    height: 140px;
    overflow: hidden;
}

.type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.type-info {
    padding: 15px 20px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
}

.type-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
    transition: color 0.3s ease;
}

.type-info p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    transition: color 0.3s ease;
}

@media (max-width: 992px) {
    .vehicle-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .vehicle-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .type-image {
        height: 100px;
    }
    
    .type-info {
        padding: 12px 15px;
    }
    
    .type-info h4 {
        font-size: 14px;
    }
    
    .type-info p {
        font-size: 11px;
    }
}

/* Brands Section */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    padding: 10px 0;
}

.brands-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.brands-slider::-webkit-scrollbar {
    display: none;
}

.brand-item {
    text-align: center;
    padding: 20px 15px;
    background: var(--light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

@media (max-width: 1200px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .brand-item {
        padding: 15px 10px;
    }
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.brand-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

.brand-item span {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.brand-item small {
    font-size: 12px;
    color: var(--text-muted);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
}

.section-header p {
    color: var(--text-light);
    margin: 0;
}

/* How it works */
.how-it-works {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    display: block !important;
    visibility: visible !important;
}

.how-it-works .section-header h2 {
    color: var(--text);
}

.how-it-works .section-header p {
    color: var(--text-light);
}

.how-card {
    background: var(--light);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    height: 100%;
}

.how-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 25px;
}

.how-card.buyer .how-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary);
}

.how-card.seller .how-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.how-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
}

.how-steps {
    margin-bottom: 30px;
}

.how-steps .step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.step-num {
    width: 35px;
    height: 35px;
    background: var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.how-steps h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.how-steps p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Pricing CTA */
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 50px;
    border-radius: var(--radius-xl);
    color: var(--light);
}

.cta-box h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.cta-box p {
    opacity: 0.9;
    margin: 0;
}

/* État Section (Neuve/Occasion) */
.etat-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.etat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.etat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    transition: width 0.3s ease;
}

.neuve-card::before {
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
}

.occasion-card::before {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
}

.etat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.etat-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.etat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.neuve-card .etat-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.occasion-card .etat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.etat-card:hover .etat-icon {
    transform: scale(1.1);
}

.neuve-card:hover .etat-icon {
    background: #3B82F6;
    color: white;
}

.occasion-card:hover .etat-icon {
    background: #F59E0B;
    color: white;
}

.etat-content {
    flex: 1;
}

.etat-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.etat-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.etat-arrow {
    font-size: 24px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.etat-card:hover .etat-arrow {
    transform: translateX(5px);
    color: var(--primary);
}

@media (max-width: 768px) {
    .etat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .etat-arrow {
        display: none;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .search-row {
        flex-wrap: wrap;
    }
    
    .search-field {
        flex: 1 1 45%;
    }
    
    .hero-search .btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .hero-stats {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-field {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .hero-search .btn {
        width: 100%;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .search-field {
        flex: 1 1 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cta-box {
        text-align: center;
        padding: 30px;
    }
}

/* Mobile Dropdown Triggers */
.mobile-section-trigger {
    background: white;
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    margin-bottom: 0;
    transition: var(--transition);
    border: 1px solid var(--gray-2);
}

.mobile-section-trigger span {
    font-weight: 700;
    color: var(--text);
}

.mobile-section-trigger i {
    font-size: 20px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.mobile-section-trigger:not(.collapsed) i {
    transform: rotate(180deg);
}

.mobile-section-trigger:hover {
    background: var(--gray);
}

/* =====================================================
   AUTOCOMPLÉTION DES MARQUES
   ===================================================== */
.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-2);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.autocomplete-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.autocomplete-input.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: var(--gray-2);
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--gray-2);
    border-top: none;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.autocomplete-suggestions.show {
    display: block;
}

.autocomplete-suggestions.empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-2);
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: var(--gray);
    color: var(--primary);
}

.autocomplete-item-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: none;
}

.autocomplete-item-logo.show {
    display: block;
}

.autocomplete-item-text {
    flex: 1;
    font-weight: 500;
}

.autocomplete-item-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

/* Fix for disappearing favorite button */
.btn-favorite {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 100 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #ff4757 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    border: none !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-favorite.active {
    background: #ff4757 !important;
    color: #ffffff !important;
}

.btn-favorite:hover {
    transform: scale(1.1);
}

.btn-favorite i {
    display: block !important;
    line-height: 1;
}
