/* ==========================================
   Dynasty 8 - Modales
   ========================================== */

/* Modal Carte des zones */
.map-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.map-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-modal img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
}

.map-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.map-modal-close:hover {
    color: #bbb;
}

/* Modal Estimation */
.estimation-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.estimation-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.estimation-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease-out;
}

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

.estimation-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--primary-green);
    color: white;
    border-bottom: 3px solid var(--primary-dark);
}

.estimation-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.estimation-modal-close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    padding: 0 0.5rem;
}

.estimation-modal-close:hover {
    color: #ddd;
    transform: scale(1.1);
}

.estimation-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.estimation-modal-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Modal de succès - Effets hover CSS */
.success-modal-overlay [data-action="close-success-modal"]:hover {
    color: #333 !important;
}

.success-modal-overlay button[data-action="close-success-modal"]:last-of-type:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(24, 113, 60, 0.4) !important;
}
