/* ═══════════════════════════════════════════════════════════
   Maps — Leaflet map styling for Terex Residence
   ═══════════════════════════════════════════════════════════ */

.leaflet-map {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

/* Projects map — inside the Карта tab */
.projects-map-section {
    padding: 0 0 40px;
}

.projects-map-section .leaflet-map {
    height: 550px;
}

.projects-map-empty {
    text-align: center;
    padding: 80px 20px;
    font-family: var(--font-ui, 'Poppins', sans-serif);
    font-size: 1.1rem;
    color: #888;
}

/* Contact map — full width, no border-radius */
.contact-map-section {
    width: 100%;
}

.leaflet-map--contact {
    border-radius: 0;
    height: 450px;
    box-shadow: none;
}

/* ── Custom popup styling ─────────────────────────────────── */
.terex-popup {
    font-family: var(--font-ui, 'Poppins', sans-serif);
    min-width: 200px;
}

.terex-popup__title {
    font-family: var(--font-display, 'Montserrat', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-text-dark, #242527);
    margin: 0 0 4px;
}

.terex-popup__subtitle {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 8px;
}

.terex-popup__status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    color: #fff;
    margin-bottom: 8px;
}

.terex-popup__status--current {
    background: var(--c-primary-start, #C4161C);
}

.terex-popup__status--completed {
    background: #22c55e;
}

.terex-popup__link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-primary-start, #C4161C);
    text-decoration: none;
    margin-top: 4px;
}

.terex-popup__link:hover {
    text-decoration: underline;
}

/* ── Custom marker (removes Leaflet default icon styles) ──── */
.terex-marker {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .leaflet-map {
        height: 350px;
    }

    .projects-map-section .leaflet-map {
        height: 400px;
        border-radius: 8px;
    }

    .leaflet-map--contact {
        height: 300px;
    }
}
