/**
 * Estilos del mapa de doctores.
 *
 * @package Mapa
 */

.mapa-doctores {
	--mapa-relleno: #9a9a9a;
	--mapa-borde: #000;
	--mapa-activo: #1d4ed8;

	display: grid;
	grid-template-columns: minmax(10rem, 14rem) 1fr;
	gap: 1.5rem;
	align-items: start;
}

@media ( max-width: 700px ) {
	.mapa-doctores {
		grid-template-columns: 1fr;
	}
}

.mapa-lista {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.95rem;
	line-height: 1.6;
}

.mapa-lista li {
	margin: 0;
}

.mapa-estado-link {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	padding: 0.1rem 0.35rem;
	cursor: pointer;
	font: inherit;
	border-radius: 4px;
}

.mapa-estado-link:hover,
.mapa-estado-link:focus-visible {
	background: #eef2ff;
	color: var(--mapa-activo);
	outline: none;
}

.mapa-contenedor {
	width: 100%;
}

.mapa-contenedor svg {
	width: 100%;
	height: auto;
	display: block;
}

.mapa-estado {
	fill: var(--mapa-relleno);
	stroke: var(--mapa-borde);
	stroke-width: 1px;
	vector-effect: non-scaling-stroke;
	cursor: pointer;
	transition: fill 0.15s ease;
}

.mapa-estado:hover,
.mapa-estado:focus-visible,
.mapa-estado.is-activo {
	fill: var(--mapa-activo);
	outline: none;
}

.mapa-dialog {
	max-width: min(640px, 92vw);
	width: 100%;
	max-height: 85vh;
	border: none;
	border-radius: 8px;
	padding: 1.5rem;
}

.mapa-dialog[open] {
	display: flex;
	flex-direction: column;
}

.mapa-dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

.mapa-dialog-titulo {
	margin-top: 0;
}

.mapa-dialog-doctores {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: auto;
}

.mapa-dialog-doctores li {
	margin: 0 0 0.75rem;
}

.mapa-doctor {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: inherit;
}

.mapa-doctor img,
.mapa-doctor-iniciales {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.mapa-doctor-iniciales {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mapa-relleno);
	color: #fff;
	font-weight: bold;
	font-size: 1.5rem;
}

.mapa-doctor-datos {
	display: flex;
	flex-direction: column;
}

.mapa-doctor-nombre {
	font-weight: bold;
}

.mapa-sin-doctores {
	color: #555;
}

.mapa-dialog-cerrar {
	margin-top: 1rem;
}

.mapa-doctor-contacto {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #ddd;
}

.mapa-doctor-telefono {
	font-weight: bold;
	font-size: 1.15rem;
	margin: 0 0 0.35rem;
}

.mapa-doctor-email {
	font-style: italic;
	color: #666;
	margin: 0;
}

.mapa-doctor-cuerpo {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
}

@media ( max-width: 700px ) {
	.mapa-doctor-cuerpo {
		flex-direction: column;
	}

	.mapa-doctor-foto {
		flex: 0 0 auto;
		width: 100%;
		max-width: 320px;
	}
}

.mapa-doctor-foto {
	flex: 0 0 320px;
	display: block;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 4px;
	background: #fafafa;
}

.mapa-doctor-foto img {
	display: block;
	width: 100%;
	height: auto;
}

.mapa-doctor-texto {
	flex: 1 1 auto;
	min-width: 0;
}

.mapa-lightbox {
	position: relative;
	margin-top: 3rem !important;
	border: none;
	padding: 12px;
	border-radius: 4px;
	background: #fff;
	max-width: 90vw;
	overflow: visible;
}

.mapa-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.75);
}

.mapa-lightbox-titulo {
	position: absolute;
	top: -1.75rem;
	left: 0;
	margin: 0;
	color: #fff;
	font-size: 1.1rem;
}

.mapa-lightbox img {
	display: block;
	max-height: calc(100vh - 10rem);
	max-width: calc(90vw - 24px);
}

.mapa-lightbox-pie {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
	gap: 1rem;
}

.mapa-lightbox-pie strong {
	font-weight: bold;
}

.mapa-lightbox-cerrar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid #ccc;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
