.plano-garajes-contenedor {
    max-width: 100%;
    margin: 20px auto;
}

.plano-garajes-header {
    margin-bottom: 10px;
}

#plano-garajes-wrapper {
    width: 100%;
}

/* Contenedor con zoom y scroll (ideal móvil) */
.plano-garajes-zoom-container {
    position: relative;
    border: 1px solid #ccc;
    overflow: auto;
    max-height: 80vh;
    -webkit-overflow-scrolling: touch;
}

.plano-garajes-zoom-inner {
    transform-origin: 0 0;
}

/* Controles de zoom (lupa) */
.plano-garajes-zoom-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 4px;
}

.plano-garajes-zoom-controls button {
    border: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
}

.plano-garajes-zoom-controls button:hover {
    background: rgba(0,0,0,0.8);
}

/* Estados de plazas */
.garage-slot {
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.garage-slot.libre:hover {
    opacity: 0.7;
    /* transform removed to avoid flicker */
}

.garage-slot.ocupado {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Bloque inactivo (otro color que no es el seleccionado) */
.garage-slot.bloque-inactivo {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

/* Modal / popup */
.garaje-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
}

.garaje-modal.visible {
    display: block;
}

.garaje-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.garaje-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 420px;
    width: 90%;
    background: #fff;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.garaje-modal-close {
    border: 0;
    background: transparent;
    font-size: 24px;
    position: absolute;
    right: 10px;
    top: 5px;
    cursor: pointer;
}

#garaje-form .campo-form {
    margin-bottom: 10px;
}

#garaje-form .campo-form label {
    display: block;
    margin-bottom: 3px;
}

#garaje-form input[type="text"],
#garaje-form input[type="email"],
#garaje-form input[type="tel"],
#garaje-form select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

#garaje-form .campo-form.checkbox label {
    display: inline-block;
}

.boton-reservar {
    background: #0073aa;
    color: #fff;
    border: 0;
    padding: 8px 14px;
    border-radius: 3px;
    cursor: pointer;
}

.boton-reservar:hover {
    background: #005f8d;
}

#garaje-form-mensaje {
    margin-top: 10px;
    font-size: 14px;
}
/* Para que el texto no se “coma” el clic y lo reciba siempre el círculo */
.garage-slot text {
    pointer-events: none;
}



/* Tooltip flotante sobre el plano */
.garage-tooltip {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
}

/* Resumen del garaje seleccionado dentro del formulario */
.garaje-detalle-resumen {
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
}

.garaje-detalle-resumen p {
    margin: 2px 0;
}
