/**
 * Mapplic.css - Stiluri Personalizate pentru Hărți Interactive v1.0
 * Creat pentru MethodFeeder.ro
 */

.mapplic-container {
    position: relative;
    overflow: hidden;
    background-color: #f1f5f9; /* Gri mai deschis */
    color: #334155;
    font-family: 'Inter', sans-serif;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.mapplic-error {
    text-align: center;
    padding: 4rem;
    color: #ef4444;
}

.mapplic-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Ascunde ce depășește containerul */
    cursor: grab;
}

.mapplic-layer {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
}

.mapplic-map-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Asigură că imaginea se încadrează complet */
}

/* Stiluri pentru Pin-uri (locații) */
.mapplic-pin {
    position: absolute;
    width: 16px;
    height: 16px;
    margin-left: -8px; /* Centrează pin-ul orizontal */
    margin-top: -8px;  /* Centrează pin-ul vertical */
    transform: translate(-50%, -100%); /* Mută punctul de ancorare la baza pin-ului */
    cursor: pointer;
}

.mapplic-pin::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #3b82f6; /* Albastru implicit */
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

/* Animație subtilă pentru pin-uri */
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Statusuri specifice pentru pin-uri */
.mapplic-pin-disponibil::before {
    background-color: #10b981; /* Verde */
}
.mapplic-pin-ocupat::before {
    background-color: #ef4444; /* Roșu */
    animation: none; /* Fără puls pentru standurile ocupate */
    cursor: not-allowed;
}

/* Tooltip (fereastra care apare la click) */
.mapplic-tooltip {
    position: absolute;
    display: block;
    width: 240px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    z-index: 1001;
    overflow: hidden;
}
.mapplic-tooltip h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.mapplic-tooltip p {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    line-height: 1.5;
}
.mapplic-tooltip-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-size: 1.25rem;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s ease;
}
.mapplic-tooltip-close:hover {
    color: #334155;
}

/* Butoane de Zoom */
.mapplic-zoom-button {
    position: absolute;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000;
}
.mapplic-zoom-button:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}
.mapplic-zoom-in {
    top: 10px;
}
.mapplic-zoom-out {
    top: 50px;
}

