/* ========================================
   MENÚ FAB FLOTANTE - DESACTIVADO
   Los botones ahora están en el modal de perfil
   ======================================== */

.fab-container {
    display: none !important; /* FAB desactivado - Botones movidos al modal de perfil */
    position: fixed;
    bottom: 180px; /* Por encima del botón de instalación */
    right: 20px;
    z-index: 9997;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 12px;
}

/* Botón principal FAB */
.fab-main-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5),
                0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: fab-bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.fab-main-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6),
                0 6px 16px rgba(0, 0, 0, 0.3);
}

.fab-main-button.active {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

@keyframes fab-bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Opciones del menú FAB */
.fab-options {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.fab-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fab-option-button {
    background: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    flex-shrink: 0;
    padding: 6px;
}

.fab-option-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.fab-option-button.poi {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.fab-option-button.contact {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.fab-option-button.bug {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

.fab-option-label {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.fab-option:hover .fab-option-label {
    opacity: 1;
    transform: translateX(0);
}

/* Animación escalonada para las opciones */
.fab-options.active .fab-option:nth-child(1) {
    animation: fab-option-in 0.3s ease-out 0.05s both;
}

.fab-options.active .fab-option:nth-child(2) {
    animation: fab-option-in 0.3s ease-out 0.1s both;
}

.fab-options.active .fab-option:nth-child(3) {
    animation: fab-option-in 0.3s ease-out 0.15s both;
}

@keyframes fab-option-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal de sugerencia de POI */
.suggest-poi-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100001; /* Mayor que modal-content (100000) para superponerse */
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fade-in 0.3s ease-out;
}

.suggest-poi-modal.active {
    display: flex;
}

.suggest-poi-content {
    background: white;
    border-radius: 24px;
    padding: 32px 28px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slide-up 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggest-poi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.suggest-poi-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggest-poi-header h2::before {
    content: '📍';
    font-size: 32px;
}

.suggest-poi-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.suggest-poi-close:hover {
    background: #f0f0f0;
    color: #333;
}

.suggest-poi-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label .required {
    color: #dc3545;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #28a745;
    background: white;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    color: #666;
    font-size: 13px;
}

.location-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Contenedor del mapa */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Info de ubicación */
.location-info {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: center;
}

#locationDisplay {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    display: block;
}

/* Botón de ubicación */
.location-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    margin-top: 8px;
}

.location-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.location-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.image-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.image-preview {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    display: none;
}

.image-preview.show {
    display: block;
}

.submit-poi-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    margin-top: 8px;
}

.submit-poi-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

.submit-poi-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-poi-button.loading {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    pointer-events: none;
}

/* Spinner para botón de carga */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
    padding: 24px;
    border-radius: 16px;
    display: none;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.success-message.show {
    display: block;
    animation: slide-down 0.4s ease-out;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    color: #721c24;
    padding: 24px;
    border-radius: 16px;
    display: none;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Responsive */
@media (max-width: 768px) {
    .fab-container {
        bottom: 160px;
        right: 16px;
    }

    .fab-main-button {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }

    .fab-option-button {
        width: 56px;
        height: 56px;
    }

    .fab-option-label {
        font-size: 13px;
        padding: 6px 12px;
    }

    .suggest-poi-content {
        padding: 24px 20px;
        max-height: 85vh;
    }

    .suggest-poi-header h2 {
        font-size: 22px;
    }

    .location-inputs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fab-main-button {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .fab-option-button {
        width: 52px;
        height: 52px;
    }
}
