/* BISMALLAH ETHIOBIZ FULL-SCREEN GOOGLE MAPS-STYLE PORTAL CSS */
:root {
    --map-primary: #0d9488;
    --map-primary-hover: #0f766e;
    --map-bg-blur: rgba(255, 255, 255, 0.95);
    --map-border: rgba(0, 0, 0, 0.12);
    --map-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.map-portal-wrapper {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 60px);
    overflow: hidden;
    display: flex;
    z-index: 10;
}

/* FLOATING / DOCKED COLLAPSIBLE SIDEBAR */
.map-sidebar {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 380px;
    height: calc(100% - 32px);
    background: var(--map-bg-blur);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--map-border);
    border-radius: 20px;
    box-shadow: var(--map-shadow);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-collapse-map-sidebar:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    transform: scale(1.05);
}

.btn-floating-map-expand:hover {
    background: #0f766e !important;
    color: #ffffff !important;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.25);
}

.ethiobiz-map-pin, .magala-shop-pin {
    background: transparent;
    border: none;
}


@media (max-width: 768px) {
    .map-portal-wrapper {
        top: 56px;
        height: calc(100vh - 56px);
    }
    .map-sidebar {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 55vh;
        border-radius: 20px 20px 0 0;
    }
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--map-border);
    background: rgba(255, 255, 255, 0.6);
}

.sidebar-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--map-border);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 12px;
}
.sidebar-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
}
.btn-search-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.sidebar-cat-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.sidebar-cat-chips::-webkit-scrollbar { display: none; }

.map-cat-chip {
    white-space: nowrap;
    border: 1px solid var(--map-border);
    background: #fff;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.map-cat-chip.active {
    background: var(--map-primary);
    color: #fff;
    border-color: var(--map-primary);
}

.sidebar-geo-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.85rem;
}
.btn-geo-action {
    background: rgba(31, 182, 174, 0.15);
    color: var(--map-primary);
    border: 1px solid var(--map-primary);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.radius-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* FEED */
.sidebar-feed {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.feed-status-bar {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 500;
}

.company-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.company-map-card {
    background: #fff;
    border: 1px solid var(--map-border);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 12px;
}
.company-map-card:hover, .company-map-card.active {
    border-color: var(--map-primary);
    box-shadow: 0 4px 16px rgba(31, 182, 174, 0.2);
    transform: translateY(-2px);
}
.comp-card-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
}
.comp-card-info {
    flex: 1;
}
.comp-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.comp-card-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 4px;
}
.comp-card-badge {
    font-size: 0.75rem;
    background: #ecfdf5;
    color: #059669;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
}

/* DOSSIER PANEL */
.dossier-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.btn-back-dossier {
    background: #f1f5f9;
    border: none;
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.dossier-content {
    padding: 16px;
}

/* MAP CANVAS */
.map-canvas-container {
    flex: 1;
    height: 100%;
}
.map-canvas {
    width: 100%;
    height: 100%;
}
