/* Wrapper */
.deka-map-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    font-family: 'Inter', sans-serif;
    border-radius: 16px;
    overflow: hidden;
}

/* The actual Google Map */
.deka-map-container {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* The Floating Card */
.deka-map-card {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 10;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Card Content Styling */
.deka-map-title {
    margin: 0 0 10px !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #111827 !important;
}

.deka-map-subtitle {
    margin: 0 0 24px !important;
    font-size: 14px !important;
    color: #4b5563 !important;
}

.deka-map-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    margin-bottom: 32px;
    transition: all 0.2s ease;
}

.deka-map-phone:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.deka-map-phone svg {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.deka-map-schedule {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deka-map-schedule-line {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.deka-map-close-btn {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .deka-map-wrapper {
        min-height: 450px;
        display: block; /* Nu mai folosim flex, pentru a tine harta absolulta in spate */
        border-radius: 16px;
    }
    .deka-map-container {
        position: absolute !important;
        height: 100%;
        border-radius: 16px;
    }
    .deka-map-card {
        position: absolute;
        top: auto;
        bottom: 20px;
        left: 5%;
        width: 90%;
        transform: translateY(120%); /* Ascuns jos in afara hartii */
        opacity: 0;
        visibility: hidden;
        margin: 0;
        padding: 30px 20px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 20;
    }
    
    .deka-map-card.is-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .deka-map-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        background: #f3f4f6;
        border-radius: 50%;
        cursor: pointer;
        color: #4b5563;
        transition: background 0.2s;
    }

    .deka-map-close-btn:active {
        background: #e5e7eb;
    }

    .deka-map-close-btn svg {
        width: 18px;
        height: 18px;
    }
}
