/*
 * Painted Syria map (see js/syria-map.js). Shared by the admin panel and the
 * public site; colours are variables so each side can theme it. The defaults
 * match the dark admin panel, and .is-site switches to the light public palette.
 */
.syria-map {
    --sm-bg: radial-gradient(ellipse at 30% 40%, #173252 0%, #0c2139 75%);
    --sm-land: #2b4d73;
    --sm-land-hover: #3a6491;
    --sm-border: #0c2139;
    --sm-pin: #C69C6D;
    --sm-pin-hover: #f0c890;
    --sm-pin-muted: #8a96a8;
    --sm-pin-active: #e8505b;
    --sm-label: #d6dee8;

    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 12px;
    border-radius: 10px;
    background: var(--sm-bg);
    user-select: none;
}

/* public site: land in the logo red, pins in the site's navy so they stand out on it */
.syria-map.is-site {
    --sm-bg: linear-gradient(160deg, #eef3f9 0%, #f6f6f6 100%);
    --sm-land: #e4140c;
    --sm-land-hover: #b4120c;
    --sm-border: #fff;
    --sm-pin: #0d2440;
    --sm-pin-hover: #004b9c;
    --sm-label: #0d2440;

    border-radius: 12px;
}

.syria-map svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.syria-map.is-editable svg {
    cursor: crosshair;
    touch-action: none;
}

.syria-map .sm-region {
    fill: var(--sm-land);
    stroke: var(--sm-border);
    stroke-width: 1.6;
    stroke-linejoin: round;
    transition: fill .15s ease;
}

.syria-map .sm-region:hover {
    fill: var(--sm-land-hover);
}

.syria-map .sm-land {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3));
}

.syria-map .sm-pin path {
    stroke: #0c2139;
    stroke-width: 1.5;
}

.syria-map.is-site .sm-pin path {
    stroke: #fff;
}

.syria-map .sm-pin-dot {
    fill: #0c2139;
}

.syria-map.is-site .sm-pin-dot {
    fill: #fff;
}

.syria-map .sm-pin.is-live path { fill: var(--sm-pin); }
.syria-map .sm-pin.is-muted path { fill: var(--sm-pin-muted); }
.syria-map .sm-pin.is-active path { fill: var(--sm-pin-active); }
.syria-map .sm-pin.is-active { pointer-events: none; }

.syria-map .sm-pin.is-live:hover path,
.syria-map .sm-pin.is-muted:hover path,
.syria-map .sm-pin.is-highlighted path {
    fill: var(--sm-pin-hover);
}

.syria-map .sm-region-label {
    position: absolute;
    top: 14px;
    inset-inline-start: 18px;
    color: var(--sm-label);
    font-size: .95rem;
    font-weight: 600;
    pointer-events: none;
}

.syria-map .sm-tip {
    position: absolute;
    transform: translate(-50%, calc(-100% - 8px));
    padding: 6px 10px;
    border-radius: 6px;
    background: #fff;
    color: #0c2139;
    font-size: .85rem;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    pointer-events: none;
    opacity: 0;
    transition: opacity .12s ease;
    z-index: 2;
}

.syria-map .sm-tip.is-visible { opacity: 1; }
.syria-map .sm-tip strong { display: block; }
.syria-map .sm-tip span { display: block; direction: ltr; opacity: .75; }
