/* ============================================================
   BRADEUR.FR — Feuille de styles principale
   ============================================================ */

/* Variables -------------------------------------------------- */
:root {
    --primary:       #E94560;
    --primary-dark:  #c23049;
    --secondary:     #0F3460;
    --accent:        #F4845F;
    --success:       #06D6A0;
    --warning:       #FFD166;
    --danger:        #EF233C;
    --light:         #F7F8FC;
    --dark:          #1A1A2E;
    --text:          #2d3748;
    --text-muted:    #718096;
    --border:        #e2e8f0;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
    --shadow:        0 4px 20px rgba(0,0,0,.10);
    --shadow-lg:     0 10px 40px rgba(0,0,0,.15);
    --radius:        12px;
    --radius-lg:     20px;
}

/* Base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--text);
    background: var(--light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--primary); transition: color .2s; }
a:hover { color: var(--primary-dark); }

.text-accent   { color: var(--accent) !important; }
.btn-accent    { background: var(--accent); color: #fff; border: none; }
.btn-accent:hover { background: #e07045; color: #fff; }
.fw-800        { font-weight: 800; }

/* ============================================================
   NAVBAR
   ============================================================ */
.bg-primary-custom { background: var(--secondary) !important; }

#mainNav .navbar-brand { font-size: 1.4rem; }
#mainNav .logo-icon { font-size: 1.3rem; }

.avatar-sm {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
}

/* Mobile menu button - consistent across site and dashboards */
@media (min-width: 992px) {
    #mainNav .navbar-toggler {
        display: none !important;
    }
}
@media (max-width: 991px) {
    #mainNav {
        height: 68px;
        padding: 14px 16px;
    }
}

/* Navbar links opacity */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.90) !important;
}
@media (max-width: 991px) {
    #mainNav .navbar-toggler {
        position: fixed !important;
        top: 8px !important;
        right: 8px !important;
        z-index: 1060 !important;
        background: var(--secondary) !important;
        border: none !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 8px rgba(0,0,0,.15) !important;
    }
    #mainNav .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    /* Hide desktop menu on mobile */
    #mainNav .navbar-collapse {
        display: none !important;
    }
    /* Show mobile sidebar when needed */
    .mobile-sidebar {
        display: none;
    }
    .mobile-sidebar.show {
        display: flex !important;
    }
}

/* Mobile Sidebar - Shared across site and dashboards */
.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--secondary);
    z-index: 1050;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
}
.mobile-sidebar.show {
    display: flex;
    transform: translateX(0);
}

.navbar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1040;
}
.navbar-overlay.show {
    display: block;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.mobile-sidebar-close {
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.mobile-sidebar-close:hover {
    background: rgba(255,255,255,.2);
}

.mobile-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.mobile-sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.mobile-sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.mobile-sidebar-user-name {
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
}

.mobile-sidebar-user-email {
    color: rgba(255,255,255,.6);
    font-size: .75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-sidebar-nav {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}

.mobile-nav-section {
    padding: 16px 20px 8px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.4);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: all .15s;
    border-left: 3px solid transparent;
}
.mobile-nav-link:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}
.mobile-nav-link.active {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-left-color: var(--primary);
}
.mobile-nav-link i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.mobile-nav-link.danger {
    color: #f87171;
}
.mobile-nav-link.danger:hover {
    background: rgba(248,113,113,.1);
    color: #fca5a5;
}
.mobile-nav-link.accent {
    color: var(--accent);
}
.mobile-nav-link.accent:hover {
    background: rgba(244,132,95,.1);
    color: #fba088;
}

.mobile-nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}
.mobile-nav-badge.warning {
    background: var(--warning);
    color: #000;
}

.mobile-nav-divider {
    height: 1px;
    background: rgba(255,255,255,.1);
    margin: 12px 20px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0 60px;
}

.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #1a3a6e 40%, #e94560cc 100%);
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.1rem;
    opacity: .85;
    max-width: 600px;
    margin: 0 auto;
}

/* Search box */
.hero-search-form { max-width: 860px; margin: 0 auto; }

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 60px;
    padding: 6px 6px 6px 20px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.search-icon { color: var(--text-muted); flex-shrink: 0; }

.search-input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: .95rem;
    color: var(--text);
    background: transparent;
    width: 100%;
    min-width: 0;
    padding: 8px 0;
}

.search-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
    flex-shrink: 0;
    margin: 0 8px;
}

.search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 60px;
    padding: 12px 28px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}
.search-btn:hover { background: var(--primary-dark); }

/* Hero stats */
.hero-stats {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 24px 40px;
    max-width: fit-content;
    margin: 0 auto;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.95;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-stat-sep { width: 1px; height: 40px; background: rgba(255,255,255,.3); }

/* ============================================================
   CATEGORIES PILLS
   ============================================================ */
.cat-filter-row { overflow-x: auto; padding-bottom: 4px; }

.cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 30px;
    border: 2px solid var(--border);
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
    background: #fff;
}
.cat-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}
.cat-pill.active {
    background: var(--cat-color, var(--primary));
    border-color: var(--cat-color, var(--primary));
    color: #fff !important;
}

/* ============================================================
   EVENT CARDS
   ============================================================ */
.event-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.event-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.event-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.event-card:hover .event-img { transform: scale(1.04); }

.event-img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-badge-featured, .event-badge-avail {
    position: absolute;
    border-radius: 30px;
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
}
.event-badge-featured {
    top: 12px; left: 12px;
    background: var(--warning);
    color: #333;
}
.event-badge-avail {
    bottom: 12px; right: 12px;
    background: rgba(0,0,0,.6);
    color: #fff;
    backdrop-filter: blur(4px);
}

.event-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.event-cat {
    display: inline-flex;
    align-items: center;
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.event-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .8rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 14px;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: auto;
}

/* Event detail meta */
.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.detail-meta-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.detail-meta-item .meta-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}
.detail-meta-item .meta-value {
    font-weight: 600;
    color: var(--dark);
    font-size: .92rem;
    line-height: 1.3;
}
.detail-meta-item .meta-sub {
    font-size: .78rem;
    color: var(--text-muted);
}

/* Small card (similar events) */
.event-card-sm {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.event-card-sm:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-card-sm-img { width: 100%; height: 140px; object-fit: cover; }
.event-card-sm-placeholder { height: 140px; background: var(--light); }

/* Spot type cards */
.spot-type-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
    position: relative;
}
.spot-type-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cbd5e1; }
.spot-type-card.is-full { opacity: .55; pointer-events: none; }

.spot-type-name { font-size: .95rem; font-weight: 700; line-height: 1.3; }
.spot-type-price { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1; }
.spot-type-price small { font-size: .65rem; font-weight: 500; color: var(--text-muted); display: block; margin-top: 2px; }

.spot-avail-badge {
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}
.spot-avail-badge.avail-full    { background: #fee2e2; color: #dc2626; }
.spot-avail-badge.avail-limited { background: #fef9c3; color: #ca8a04; }
.spot-avail-badge.avail-ok      { background: #dcfce7; color: #16a34a; }
.spot-avail-badge.avail-free    { background: #eff6ff; color: #2563eb; }

.spot-color-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ============================================================
   SPOTS MAP
   ============================================================ */
.spots-map-wrapper { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }

.spots-legend { font-size: .82rem; }
.legend-item  { display: flex; align-items: center; gap: 6px; }
.legend-dot   { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.legend-dot.available { background: #4CAF50; }
.legend-dot.selected  { background: var(--primary); }
.legend-dot.reserved  { background: #FF9800; }
.legend-dot.blocked   { background: #9e9e9e; }

.spots-grid-container { overflow-x: auto; }

.spots-grid {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    min-width: 100%;
}

.spots-row {
    display: flex;
    gap: 5px;
    align-items: center;
}

.spot-row-label {
    width: 28px;
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.spot-col-labels { display: flex; gap: 5px; padding-left: 33px; margin-bottom: 4px; }
.spot-col-label  { width: 40px; text-align: center; font-size: .72rem; font-weight: 700; color: var(--text-muted); }

.spot-cell {
    width: 40px; height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    user-select: none;
    position: relative;
    color: #fff;
}
.spot-cell:hover:not(.blocked):not(.reserved):not(.paid) {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    z-index: 2;
}
.spot-cell.available  { background: #4CAF50; }
.spot-cell.selected   { background: var(--primary); border-color: var(--primary-dark); transform: scale(1.1); }
.spot-cell.reserved, .spot-cell.paid { background: #FF9800; cursor: not-allowed; opacity: .7; }
.spot-cell.blocked    { background: #9e9e9e; cursor: not-allowed; opacity: .5; }

/* Tooltip spot */
.spot-cell[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%; transform: translateX(-50%);
    background: var(--dark);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: .7rem;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
}

/* Spot basket */
.spot-basket .basket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
}

/* ============================================================
   CHECKOUT / AUTH
   ============================================================ */
.auth-page { background: linear-gradient(135deg, var(--secondary) 0%, #1a3a6e 100%); }
.auth-wrapper { min-height: calc(100vh - 180px); }
.auth-card { width: 100%; max-width: 480px; border-radius: var(--radius-lg) !important; }
.auth-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto;
}

/* Role selector */
.role-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    background: #fff;
}
.role-option input[type=radio] { display: none; }
.role-option:hover, .role-option.selected {
    border-color: var(--primary);
    background: rgba(233, 69, 96, .05);
}
.role-option.selected strong { color: var(--primary); }

/* Payment methods */
.payment-method-opt {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: .78rem;
    transition: all .2s;
}
.payment-method-opt input { display: none; }
.payment-method-opt.active { border-color: var(--primary); background: rgba(233,69,96,.06); }

/* Checkout steps */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    color: var(--text-muted);
}
.step span {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
}
.step.active span { background: var(--primary); color: #fff; }
.step.active { color: var(--primary); }
.step-line { flex: 1; height: 2px; background: var(--border); min-width: 40px; max-width: 80px; }
.step-line.active { background: var(--primary); }

/* ============================================================
   CTA ORGANISATEUR
   ============================================================ */
.cta-organizer { background: transparent; }
.cta-card {
    background: linear-gradient(135deg, var(--secondary), #1a3a6e);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
}
.cta-icon { opacity: .6; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { margin-top: auto; }
.footer-top { background: var(--dark); color: #ccc; padding: 60px 0 40px; }
.footer-text { color: #bbb; }
.footer-bottom { background: #111; color: #bbb; padding: 16px 0; }
.footer-links-bottom { color: #aaa; font-size: .85rem; }
.footer-links-bottom a { color: #ccc; text-decoration: none; transition: color .2s; }
.footer-links-bottom a:hover { color: #fff; }
.footer-brand { font-size: 1.4rem; color: #fff; }
.footer-heading { color: #fff; font-weight: 600; margin-bottom: 14px; font-size: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #aaa; font-size: .85rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    text-decoration: none;
    transition: all .2s;
}
.social-btn:hover { background: var(--primary); color: #fff; }

/* ============================================================
   AVATAR
   ============================================================ */
.avatar-lg {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================================
   CARD RESERVE (sidebar)
   ============================================================ */
.card-reserve { border: 2px solid var(--primary) !important; }

/* ============================================================
   SUCCESS PAGE
   ============================================================ */
.success-checkmark { animation: pop .5s ease-out; }
@keyframes pop {
    0%   { transform: scale(0); opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { max-width: 420px; margin: 0 auto; }

/* ============================================================
   MAP
   ============================================================ */
#mapContainer .leaflet-container { border-radius: 16px; }
#eventMap { border: 1px solid var(--border); }

/* Popup carte amélioré */
#mapContainer .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    border: none;
}
#mapContainer .leaflet-popup-content {
    margin: 0;
    width: auto !important;
}
#mapContainer .leaflet-popup-tip-container { margin-top: -1px; }

/* ============================================================
   BUTTON EXTRA SIZES
   ============================================================ */
.btn-xs { padding: 3px 10px; font-size: .75rem; border-radius: 4px; }

/* ============================================================
   UTILITIES / RESPONSIVE
   ============================================================ */
@media (max-width: 576px) {
    .search-box { flex-wrap: wrap; border-radius: var(--radius); padding: 12px; }
    .search-btn { width: 100%; border-radius: var(--radius); }
    .search-divider { display: none; }
    .search-field { width: 100%; }
    .hero-title { font-size: 1.8rem; }
    .cta-card { padding: 40px 20px; }
    .checkout-steps { gap: 4px; }
    .flash-container:empty { display: none; }
    .flash-container { padding: 0; margin: 0; }
    .flash-container .alert { margin-top: 1rem; }
    .step { font-size: 0.65rem; }
    .step span { width: 26px; height: 26px; font-size: .75rem; }
}
