/* Tecnotron - Mapa de Máquinas */

.mm-finder {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	max-width: 100%;
}

.mm-finder .mm-error {
	padding: 12px 16px;
	background: #fff3cd;
	border: 1px solid #ffe69c;
	border-radius: 6px;
	color: #664d03;
}

/* Captcha */
.mm-captcha-container {
	display: flex;
	justify-content: center;
	margin: 20px 0;
}

/* Búsqueda */
.mm-search-container {
	margin: 0 auto 15px;
}

.mm-search-row {
	display: flex;
	align-items: stretch;
	max-width: 600px;
	margin: 0 auto 15px;
	position: relative;
}

.mm-finder .mm-address {
	flex: 1;
	padding: 10px 15px;
	padding-right: 50px;
	border: 1px solid #ddd;
	border-radius: 4px 0 0 4px;
	border-right: none;
	font-size: 14px;
	height: 42px;
	box-sizing: border-box;
	min-width: 0;
	line-height: 1.5;
}

.mm-finder .mm-location-btn {
	position: absolute;
	right: 100px;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border: none;
	background-color: transparent;
	cursor: pointer;
	color: #5f6368;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.mm-finder .mm-location-btn:hover {
	color: #1a73e8;
	background-color: #f0f0f0;
}

.mm-finder .mm-search-btn {
	flex: 0 0 90px;
	padding: 0 10px;
	background-image: linear-gradient(75deg, rgb(158, 120, 238), rgb(96, 124, 253));
	color: #fff;
	border: none;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
	font-size: 14px;
	height: 42px;
	white-space: nowrap;
}

.mm-finder .mm-search-btn:hover {
	opacity: 0.95;
}

/* Mapa */
.mm-map {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
}

.mm-loading {
	text-align: center;
	margin-top: 15px;
}

.mm-spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #607cfd;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	animation: mm-spin 1s linear infinite;
	margin: 0 auto;
}

@keyframes mm-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Tarjeta InfoWindow */
.mm-card {
	width: 280px;
	max-width: 82vw;
}

.mm-card-header {
	padding: 14px 40px 14px 16px;
	background: linear-gradient(135deg, #9e78ee 0%, #607cfd 100%);
}

.mm-card-header h3 {
	margin: 0;
	color: #fff;
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
}

.mm-card-content {
	padding: 14px 16px;
}

.mm-card-models {
	margin-bottom: 10px;
}

.mm-card-models strong {
	display: block;
	color: #333;
	font-size: 0.9em;
	margin-bottom: 4px;
}

.mm-card-models ul {
	margin: 0;
	padding-left: 18px;
}

.mm-card-models li {
	font-size: 0.85em;
	color: #333;
	line-height: 1.5;
}

.mm-card-address {
	font-size: 0.95em;
	font-weight: 600;
	color: #333;
	margin-bottom: 4px;
}

.mm-card-city {
	font-size: 0.85em;
	color: #666;
	margin-bottom: 6px;
}

.mm-card-distance {
	font-size: 0.9em;
	color: #5f6368;
	margin-top: 6px;
}

.mm-card-btn {
	display: block;
	text-align: center;
	margin-top: 12px;
	padding: 10px;
	background: linear-gradient(135deg, #9e78ee 0%, #607cfd 100%);
	color: #fff !important;
	border-radius: 5px;
	font-size: 0.85em;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(96, 124, 253, 0.3);
}

.mm-card-btn:hover {
	opacity: 0.95;
	color: #fff;
}

/* Modal */
.mm-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10000;
	justify-content: center;
	align-items: center;
}

.mm-modal-box {
	background: #f5f5f5;
	padding: 25px;
	border-radius: 8px;
	max-width: 500px;
	width: 90%;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mm-modal-box h4 {
	margin: 0 0 15px;
}

.mm-modal-box p {
	color: #333;
	margin-bottom: 15px;
	line-height: 1.5;
}

.mm-modal-close {
	margin-top: 10px;
	padding: 10px 20px;
	background-image: linear-gradient(75deg, rgb(158, 120, 238), rgb(96, 124, 253));
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	width: 100%;
}

/* Toasts */
.mm-toast-container {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 10001;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mm-toast {
	color: #fff;
	padding: 12px 20px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	min-width: 220px;
	max-width: 360px;
	font-size: 14px;
	line-height: 1.4;
	animation: mm-slide-in 0.3s ease-out;
}

.mm-toast-out {
	animation: mm-slide-out 0.3s ease-out;
}

.mm-toast-info { background: #2196f3; }
.mm-toast-success { background: #4caf50; }
.mm-toast-error { background: #f44336; }
.mm-toast-warning { background: #ff9800; }

@keyframes mm-slide-in {
	from { transform: translateX(400px); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

@keyframes mm-slide-out {
	from { transform: translateX(0); opacity: 1; }
	to { transform: translateX(400px); opacity: 0; }
}

/* Ajustes del InfoWindow de Google: sin padding ni hueco, bordes redondeados */
.gm-style .gm-style-iw-c {
	padding: 0 !important;
	border-radius: 10px !important;
	overflow: hidden !important;
}

.gm-style .gm-style-iw-d {
	padding: 0 !important;
	overflow: hidden !important;
	max-width: none !important;
	max-height: none !important;
}

/* Botón de cerrar del InfoWindow, visible sobre la cabecera */
.gm-style .gm-ui-hover-effect {
	top: 6px !important;
	right: 6px !important;
	background: rgba(255, 255, 255, 0.85) !important;
	border-radius: 50% !important;
	width: 26px !important;
	height: 26px !important;
}

.gm-style .gm-ui-hover-effect > span {
	margin: 6px !important;
}

/* Filtro de modelos */
.mm-filter {
	max-width: 600px;
	margin: 0 auto 15px;
	padding: 10px 12px;
	background: #f7f7fb;
	border: 1px solid #e6e6f0;
	border-radius: 6px;
	font-size: 13px;
	max-height: 140px;
	overflow-y: auto;
}

.mm-filter-label {
	display: block;
	font-weight: 600;
	color: #444;
	margin-bottom: 6px;
}

.mm-filter-items {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.mm-filter-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
	color: #333;
}

.mm-filter-item input {
	margin: 0;
}

@media (max-width: 768px) {
	.mm-search-row {
		max-width: 100%;
	}

	.mm-toast-container {
		bottom: 10px;
		right: 10px;
		left: 10px;
	}

	.mm-toast {
		max-width: 100%;
	}
}
