/* poi-menu.css - Estilos para menú de Puntos de Interés */

/* Contenedor principal del menú */
.poi-menu-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    perspective: 600px;
    font-family: 'Arial', sans-serif;
}

/* Botón principal */
.poi-menu-button {
    width: 50px;
    height: 50px;
    background-color: #F60;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.3s;
}

.poi-menu-button:hover {
    background-color: #ff751a;
    transform: scale(1.1);
}

.poi-menu-button:active {
    transform: scale(0.95);
}

.poi-menu-button.active {
    transform: scale(1.1);
    background-color: #ff751a;
}

/* Menú expandido */
.poi-menu {
    position: fixed;
    bottom: 10%;
    left: 10vw;      /* Correcto: Posición desde la izquierda */
    right: auto;   /* Corregido: 'right', no 'ri' */
    width: 25vw;   /* Puedes ajustar esto también, por ejemplo: */
    max-width: 600px;

    /* --- CORRECCIÓN: QUITAR translateX(-50%) --- */
    transform: translateY(25%) scale(0.8); /* Solo vertical y escala */
    opacity: 0;
    visibility: hidden;

    /* --- El resto de estilos se mantienen --- */
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 1010;
}

.poi-menu.show {
    transform: translateY(0) scale(1); /* Solo aplica la animación vertical y escala */
    opacity: 1;
    visibility: visible;
}

/* Título del menú */
.poi-menu-title {
    color: white;
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contenedor de lugares */
.poi-location-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Barra de desplazamiento personalizada */
.poi-location-container::-webkit-scrollbar {
    width: 6px;
}

.poi-location-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.poi-location-container::-webkit-scrollbar-thumb {
    background: #F60;
    border-radius: 3px;
}

/* Tarjeta de ubicación */
.poi-location {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80px;
    transform: translateY(20px);
    opacity: 0;
    animation: slideIn 0.3s forwards;
}

.poi-location:hover {
    background-color: rgba(255, 102, 0, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.poi-location:active {
    transform: translateY(0) scale(0.98);
}

.poi-location-icon {
    font-size: 22px;
    margin-bottom: 8px;
}

.poi-location-name {
    font-size: 13px;
    font-weight: bold;
}

.poi-location-hotkey {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 102, 0, 0.7);
    color: white;
    border-radius: 4px;
    font-size: 10px;
    padding: 2px 4px;
    font-weight: bold;
}

/* Botones de acción */
.poi-action-container {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.poi-action-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.poi-action-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.poi-action-button.save {
    background-color: rgba(255, 102, 0, 0.7);
}

.poi-action-button.save:hover {
    background-color: #F60;
}

/* Modal para guardar ubicación */
.poi-save-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.poi-save-modal.show {
    opacity: 1;
    visibility: visible;
}

.poi-save-content {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    max-width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.poi-save-modal.show .poi-save-content {
    transform: scale(1);
}

.poi-save-title {
    color: white;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.poi-save-input {
    width: 100%;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    font-size: 14px;
    margin-bottom: 15px;
}

.poi-save-input:focus {
    outline: none;
    border-color: #F60;
}

.poi-save-buttons {
    display: flex;
    justify-content: space-between;
}

/* Notificaciones */
.poi-notification {
    position: fixed;
    top: 70%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1050;
    opacity: 0;
    transition: all 0.3s;
}

.poi-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Modal de exportación */
.poi-export-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.poi-export-modal.show {
    opacity: 1;
    visibility: visible;
}

.poi-export-content {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    width: 500px;
    max-width: 90%;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.poi-export-title {
    color: white;
    margin: 0 0 15px 0;
}

.poi-export-json {
    background-color: #222;
    padding: 10px;
    border-radius: 5px;
    color: #ddd;
    font-family: monospace;
    font-size: 12px;
    overflow: auto;
    max-height: 300px;
}

/* Íconos para los puntos de interés */
.poi-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
}

/* Animaciones */
@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Estados para botones de acción */
.poi-action-button.highlight {
    animation: pulse 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}



