/* ─── BAC Beauty Map — Mockup-matched Styles ─────────────────────────────── */

.bac-map-wrapper {
    position: relative;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
}

/* ── Search Bar (top overlay on map) ────────────────────────────────────── */
.bac-search-bar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}

.bac-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    padding: 0 16px;
    height: 46px;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
    gap: 10px;
}

.bac-search-pin { font-size: 18px; }

.bac-search-input {
    border: none;
    outline: none;
    font-size: 15px;
    color: #222;
    background: transparent;
    flex: 1;
    min-width: 0;
}
.bac-search-input::placeholder { color: #999; }

.bac-search-region {
    font-size: 12px;
    font-weight: 700;
    color: #c9a84c;
    flex-shrink: 0;
}

.bac-location-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
    flex-shrink: 0;
    font-size: 20px;
    transition: background .2s;
}
.bac-location-btn:hover { background: #f5f5f5; }

/* ── Map Canvas ─────────────────────────────────────────────────────────── */
#bac-map-canvas {
    width: 100%;
    height: var(--bac-height, 420px);
    display: block;
}

/* ── Bottom Sheet ───────────────────────────────────────────────────────── */
.bac-bottom-sheet {
    background: #111;
    color: #fff;
    border-radius: 20px 20px 0 0;
    padding-bottom: 8px;
}

.bac-sheet-handle {
    width: 40px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 12px auto 0;
}

.bac-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 8px;
}

.bac-sheet-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* ── Featured Artist Card ───────────────────────────────────────────────── */
.bac-featured-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    margin: 0 12px 12px;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    transition: border-color .2s;
}
.bac-featured-card:hover { border-color: #c9a84c; }
.bac-featured-card.empty {
    justify-content: center;
    color: #555;
    font-size: 13px;
    min-height: 72px;
}

.bac-featured-photo,
.bac-featured-photo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #c9a84c;
    object-fit: cover;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.bac-featured-info { flex: 1; min-width: 0; }

.bac-featured-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    gap: 6px;
}

.bac-featured-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bac-bac-badge {
    background: #c9a84c;
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: .5px;
    flex-shrink: 0;
}

.bac-featured-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.bac-featured-offer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bac-offer-chip {
    background: rgba(201,168,76,.15);
    color: #c9a84c;
    border: 1px solid rgba(201,168,76,.4);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.bac-book-btn {
    background: #c9a84c;
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity .2s;
    letter-spacing: .3px;
}
.bac-book-btn:hover { opacity: .85; color: #000; }

/* ── Nearby Artists Scroll ──────────────────────────────────────────────── */
.bac-nearby-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 12px 10px;
    scrollbar-width: none;
}
.bac-nearby-scroll::-webkit-scrollbar { display: none; }

.bac-nearby-card {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 9px 12px;
    min-width: 160px;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color .2s;
}
.bac-nearby-card:hover { border-color: #c9a84c; }

.bac-nearby-photo,
.bac-nearby-photo-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 1.5px solid #c9a84c;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.bac-nearby-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95px;
}

.bac-nearby-sub {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95px;
}

/* ── Bottom Action Row ──────────────────────────────────────────────────── */
.bac-action-row {
    display: flex;
    gap: 8px;
    padding: 10px 12px 4px;
}

.bac-action-find {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: transparent;
    border: 1.5px solid #333;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 11px;
    border-radius: 30px;
    cursor: pointer;
    transition: border-color .2s;
}
.bac-action-find:hover { border-color: #c9a84c; color: #c9a84c; }

.bac-action-join {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c9a84c, #e8c96a);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    padding: 11px;
    border-radius: 30px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity .2s;
}
.bac-action-join:hover { opacity: .9; color: #000; }

/* ── Category Filter Bar ────────────────────────────────────────────────── */
.bac-filter-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 12px;
    scrollbar-width: none;
    background: #0d0d0d;
    border-top: 1px solid #1f1f1f;
}
.bac-filter-bar::-webkit-scrollbar { display: none; }

.bac-filter-btn {
    background: #1a1a1a;
    color: #aaa;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.bac-filter-btn:hover,
.bac-filter-btn.active {
    background: #c9a84c;
    color: #000;
    border-color: #c9a84c;
    font-weight: 700;
}

/* ── Full Profile Slide Panel ───────────────────────────────────────────── */
.bac-profile-panel {
    position: absolute;
    inset: 0;
    background: #111;
    z-index: 30;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
}
.bac-profile-panel.open { transform: translateX(0); }

.bac-profile-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid #1f1f1f;
    cursor: pointer;
    color: #c9a84c;
    font-size: 14px;
    font-weight: 600;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
}

.bac-profile-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
    border-bottom: 1px solid #1f1f1f;
}

.bac-profile-photo,
.bac-profile-photo-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px solid #c9a84c;
    object-fit: cover;
    background: #2a2a2a;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.bac-profile-title-name {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 3px;
}
.bac-profile-title-cat { font-size: 13px; color: #c9a84c; margin-bottom: 3px; }
.bac-profile-title-loc { font-size: 12px; color: #777; }

.bac-profile-body { padding: 16px; }

.bac-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    margin-bottom: 8px;
    margin-top: 16px;
}

.bac-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 4px;
}

.bac-service-tag {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #ccc;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
}

.bac-offer-banner {
    background: #1a1a1a;
    border: 1px solid #c9a84c;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
    gap: 10px;
}
.bac-offer-banner-text { font-size: 16px; font-weight: 800; color: #c9a84c; }
.bac-offer-banner-expiry { font-size: 11px; color: #777; margin-top: 2px; }

.bac-profile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.bac-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity .2s;
}
.bac-profile-btn:hover { opacity: .88; }
.bac-profile-btn-book    { background: linear-gradient(135deg,#c9a84c,#e8c96a); color:#000; }
.bac-profile-btn-website { background: #1a1a1a; color:#c9a84c; border:1.5px solid #c9a84c; }
.bac-profile-btn-phone   { background: #1a1a1a; color:#fff;    border:1.5px solid #2a2a2a; }

/* ── Loading ─────────────────────────────────────────────────────────────── */
#bac-loading {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: opacity .3s;
}
#bac-loading.hidden { opacity: 0; pointer-events: none; }

.bac-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(201,168,76,.25);
    border-top-color: #c9a84c;
    border-radius: 50%;
    animation: bac-spin .75s linear infinite;
}
@keyframes bac-spin { to { transform: rotate(360deg); } }
