.tt-seat-map-root {
	max-width: 900px;
	margin: 0 auto;
}

.tt-sm-canvas-wrap {
	/* contenedor de tamaño fijo que recorta el mapa cuando se acerca (scale);
	   touch-action: none le da control total a JS sobre gestos de pellizco/
	   arrastre dentro del mapa, en vez de dejar que el navegador intente
	   hacer zoom nativo de toda la pagina con 2 dedos aqui. */
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #f0f0f1;
	border-radius: 8px;
	overflow: hidden;
	touch-action: none;
}

.tt-sm-canvas {
	position: absolute;
	inset: 0;
	transform-origin: center center;
	overflow: hidden;
}

.tt-sm-canvas-wrap.is-zoomed .tt-sm-canvas {
	cursor: grab;
}

.tt-sm-zoom-controls {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 4;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tt-sm-zoom-btn {
	width: 32px;
	height: 32px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.2 );
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.tt-sm-zoom-btn:active {
	background: #f0f0f1;
}

.tt-sm-canvas img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
}

.tt-sm-seat {
	/* el tamaño (width) se calcula en JS segun la densidad real del mapa,
	   para que nunca se encimen asientos vecinos aunque haya filas de
	   20+ butacas; el centrado usa transform (no margin) para que escalar
	   el tamaño no requiera recalcular tambien el margen. Cuadrados (no
	   circulos) para aprovechar mejor el espacio en mapas muy densos. */
	position: absolute;
	aspect-ratio: 1 / 1;
	transform: translate( -50%, -50% );
	border-radius: 2px;
	border: 1px solid #fff;
	box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.35 );
	cursor: pointer;
	transition: transform 0.1s ease;
}

.tt-sm-row-label {
	position: absolute;
	transform: translate( -100%, -50% );
	font-size: 0.75rem;
	font-weight: 600;
	color: #3c434a;
}

.tt-sm-seat:hover {
	transform: translate( -50%, -50% ) scale( 1.3 );
	z-index: 2;
}

.tt-sm-seat.is-selected {
	/* mas delgado que antes (era 3px): con filas de 20+ asientos un borde
	   grueso se encima mucho con el asiento de al lado, sobre todo en movil. */
	box-shadow: 0 0 0 1.5px #000;
	transform: translate( -50%, -50% ) scale( 1.15 );
	z-index: 3;
}

.tt-sm-seat.is-sold,
.tt-sm-seat.is-blocked,
.tt-sm-seat.is-held-by-other {
	cursor: not-allowed;
	opacity: 0.45;
	filter: grayscale( 60% );
}

.tt-sm-seat.is-sold:hover,
.tt-sm-seat.is-blocked:hover,
.tt-sm-seat.is-held-by-other:hover {
	transform: translate( -50%, -50% );
}

.tt-sm-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 12px 0;
	font-size: 0.85rem;
}

.tt-sm-legend__item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.tt-sm-legend__swatch {
	width: 14px;
	height: 14px;
	border-radius: 2px;
	display: inline-block;
}

.tt-sm-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
	padding: 14px;
	background: #f6f6f7;
	border-radius: 8px;
}

.tt-sm-summary__list {
	margin: 0;
	font-size: 0.9rem;
}

.tt-sm-summary__total {
	font-size: 1.1rem;
	font-weight: 700;
}

.tt-sm-status {
	margin-top: 8px;
	font-style: italic;
}

.tt-sm-status.is-error {
	color: #b32d2e;
}

.tt-sm-status.is-success {
	color: #007017;
	font-style: normal;
	font-weight: 600;
}

.tt-sm-status.is-success a {
	text-decoration: underline;
}
