/**
 * Modeka Stock Manager — Frontend styles
 * Green/gray markers for stock availability
 */

/* ── In-stock marker (green) ─────────────────────────────── */
.map-marker--in-stock {
    width: 40px;
    height: 40px;
    background: #2e7d32;
    color: #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(46, 125, 50, .45);
    border: 2.5px solid #fff;
    transition: transform .25s ease, background .25s ease;
    animation: msm-pulse 2s ease-in-out 1;
}
.map-marker--in-stock i {
    transform: rotate(45deg);
    font-size: .85rem;
}
.map-marker--in-stock:hover {
    transform: rotate(-45deg) scale(1.15);
}

/* ── Out-of-stock marker (gray, smaller) ─────────────────── */
.map-marker--out-of-stock {
    width: 28px;
    height: 28px;
    background: #9e9e9e;
    color: #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    border: 2px solid #fff;
    opacity: .7;
    transition: transform .25s ease, opacity .25s ease;
}
.map-marker--out-of-stock i {
    transform: rotate(45deg);
    font-size: .6rem;
}
.map-marker--out-of-stock:hover {
    opacity: 1;
    transform: rotate(-45deg) scale(1.1);
}

/* ── Stock info in popup ─────────────────────────────────── */
.map-popup__stock {
    margin: 4px 0 8px;
    font-size: .85rem;
    line-height: 1.3;
}
.map-popup__stock i {
    margin-right: 3px;
}

/* ── Pulse animation for green markers ───────────────────── */
@keyframes msm-pulse {
    0%   { box-shadow: 0 3px 12px rgba(46, 125, 50, .45); }
    50%  { box-shadow: 0 3px 24px rgba(46, 125, 50, .7); }
    100% { box-shadow: 0 3px 12px rgba(46, 125, 50, .45); }
}
