/* assets/css/pages/doctors-map.css - Doctors Map (doctors-map.php, assets/js/pages/doctors-map.js) */

.map-section {
    padding: 10px 0 60px;
}

.map-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.map-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: #0b1e33;
}

.map-toggles label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.map-toggles label[hidden] { display: none; }

.map-box {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(13, 110, 253, 0.12);
    background: #eef3fb;
}

.doctors-map {
    width: 100%;
    height: 520px;
}

.doctors-map[hidden] { display: none; }

.map-failed {
    padding: 40px 20px;
    text-align: center;
    color: #4a5c72;
}

.map-failed[hidden] { display: none; }

.map-note {
    font-size: 0.85rem;
    color: #64748b;
    margin: 12px 0 28px;
}

.map-note i { color: #10b981; margin-right: 6px; }

.map-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.map-columns h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0b1e33;
    margin: 0 0 14px;
}

.map-doctors {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.map-doctors li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid rgba(13, 110, 253, 0.08);
    border-radius: 14px;
}

.map-doctors .doctor-avatar,
.map-doctors img {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    object-fit: cover;
    font-size: 1rem;
    margin: 0;
}

.map-doctor-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.86rem;
    color: #4a5c72;
}

.map-doctor-name {
    font-weight: 700;
    font-size: 0.98rem;
    color: #0b1e33;
    text-decoration: none;
}

.map-doctor-name:hover { color: #0d6efd; }

.map-doctor-text .doctor-distance { margin: 0; }

.map-regions {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    font-size: 0.9rem;
}

.map-regions th,
.map-regions td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
    color: #0b1e33;
}

.map-regions th {
    background: #f4f8ff;
    font-weight: 600;
    font-size: 0.82rem;
    color: #4a5c72;
}

.map-empty { color: #64748b; }

/* on the map */
.map-region {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-size: 0.72rem;
    color: #334155;
    line-height: 1.35;
    text-align: center;
}

.map-region b { color: #047857; font-size: 0.78rem; }

.map-you {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10b981;
    border: 3px solid #fff;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.3);
}

.map-card {
    display: flex;
    gap: 10px;
    max-width: 260px;
    font-size: 0.85rem;
    color: #334155;
}

.map-card img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.map-card p { margin: 0 0 2px; }
.map-card-name { font-weight: 700; color: #0b1e33; }
.map-card-distance { color: #047857; font-weight: 600; }

.map-card-links {
    display: flex;
    gap: 12px;
    margin-top: 6px !important;
}

.map-card-links a { color: #0d6efd; font-weight: 600; text-decoration: none; }

body.dark .map-doctors li,
body.dark .map-regions { background: #1e293b; border-color: #334155; }
body.dark .map-regions th { background: #0f172a; color: #94a3b8; }
body.dark .map-regions td,
body.dark .map-columns h2,
body.dark .map-doctor-name,
body.dark .map-toggles { color: #e2e8f0; }
body.dark .map-regions td { border-color: #334155; }
body.dark .map-doctor-text,
body.dark .map-note { color: #94a3b8; }

@media (max-width: 900px) {
    .map-columns { grid-template-columns: minmax(0, 1fr); }
    .doctors-map { height: 420px; }
}

@media (max-width: 480px) {
    .doctors-map { height: 360px; }
    .map-doctors li { flex-wrap: wrap; }
    .map-doctors li .btn { margin-left: 62px; }
}
