/* Tifli Radar v3.3.0 — local interactive Iraq map and official-source health cards. */

.tr-v330-map-wrap {
    background:
        radial-gradient(circle at 18% 16%, rgba(239, 51, 79, .09), transparent 22rem),
        radial-gradient(circle at 82% 74%, rgba(38, 49, 88, .10), transparent 28rem),
        linear-gradient(145deg, #f8f9fd, #eef2f7);
}

.tr-v330-iraq-map {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 570px;
    overflow: hidden;
    isolation: isolate;
}

.tr-v330-iraq-outline {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.tr-v330-map-pins {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.tr-v330-pin {
    position: absolute;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 10%;
    transform: translate(-50%, -50%) rotate(-45deg);
    color: #fff;
    background: #263158;
    box-shadow: 0 8px 20px rgba(38, 49, 88, .28);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, z-index .16s ease;
}

[dir="rtl"] .tr-v330-pin { transform: translate(50%, -50%) rotate(-45deg); }
.tr-v330-pin span { transform: rotate(45deg); font-size: 15px; font-weight: 900; line-height: 1; }
.tr-v330-pin:hover,
.tr-v330-pin:focus-visible,
.tr-v330-pin.is-active {
    z-index: 12;
    box-shadow: 0 12px 28px rgba(38, 49, 88, .42);
}
.tr-v330-pin:hover,
.tr-v330-pin:focus-visible { transform: translate(-50%, -50%) rotate(-45deg) scale(1.12); }
[dir="rtl"] .tr-v330-pin:hover,
[dir="rtl"] .tr-v330-pin:focus-visible { transform: translate(50%, -50%) rotate(-45deg) scale(1.12); }
.tr-v330-pin.is-active { outline: 4px solid rgba(239, 51, 79, .22); }
.tr-v330-pin-entertainment { background: #ef334f; }
.tr-v330-pin-health { background: #1f7a5c; }
.tr-v330-pin-education { background: #4f5fbf; }
.tr-v330-pin-toys { background: #d97706; }
.tr-v330-pin-clothing { background: #9b4d96; }
.tr-v330-pin-other { background: #475569; }

.tr-v330-map-location {
    position: absolute;
    z-index: 10;
    width: 22px;
    height: 22px;
    border: 4px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: #1677ff;
    box-shadow: 0 0 0 7px rgba(22, 119, 255, .18), 0 8px 18px rgba(22, 119, 255, .30);
}
[dir="rtl"] .tr-v330-map-location { transform: translate(50%, -50%); }
.tr-v330-map-location::after {
    content: "موقعك";
    position: absolute;
    inset-inline-start: 50%;
    top: 24px;
    transform: translateX(-50%);
    padding: 3px 7px;
    border-radius: 999px;
    color: #fff;
    background: #1677ff;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.tr-v330-map-panel {
    position: absolute;
    inset-inline: 22px;
    bottom: 20px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 20px 48px rgba(38, 49, 88, .20);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.tr-v330-map-panel[hidden] { display: none; }
.tr-v330-map-panel-close {
    position: absolute;
    top: 8px;
    inset-inline-end: 9px;
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #263158;
    background: #f0f2f7;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.tr-v330-map-panel-copy { min-width: 0; padding-inline-end: 28px; }
.tr-v330-map-panel-copy > span { color: #ef334f; font-size: 11px; font-weight: 900; }
.tr-v330-map-panel-copy strong { display: block; margin-top: 3px; color: #263158; font-size: 20px; }
.tr-v330-map-panel-copy em { display: block; margin-top: 4px; color: #1f7a5c; font-style: normal; font-size: 13px; font-weight: 800; }
.tr-v330-map-panel-copy p { margin: 6px 0 0; color: #59647a; font-size: 13px; }
.tr-v330-map-panel-copy small { display: inline-block; margin-top: 5px; color: #1677ff; font-weight: 900; }
.tr-v330-map-panel-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.tr-v330-map-panel-actions a {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid #dfe4ee;
    border-radius: 10px;
    color: #263158 !important;
    background: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none !important;
}
.tr-v330-map-panel-actions a.is-primary { color: #fff !important; border-color: #263158; background: #263158; }
.tr-v330-map-help {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 8;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 999px;
    color: #59647a;
    background: rgba(255,255,255,.86);
    box-shadow: 0 8px 20px rgba(38,49,88,.08);
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.tr-v320-place-badges .tr-v330-official {
    color: #145c45;
    background: #e8f7f1;
}
.tr-v330-specialty { display: grid; gap: 3px; margin: 7px 0 10px !important; }
.tr-v330-specialty strong { color: #1f7a5c; font-size: 13px; }
.tr-v330-specialty span { color: #69758b; font-size: 12px; }
.tr-v330-focus-map {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid #dfe4ee;
    border-radius: 10px;
    color: #263158;
    background: #f6f7fa;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}
.tr-v320-place-card.is-map-active {
    border-color: rgba(239, 51, 79, .55);
    box-shadow: 0 0 0 3px rgba(239, 51, 79, .10), 0 20px 42px rgba(38,49,88,.12);
}

@media (max-width: 980px) {
    .tr-v330-map-panel { grid-template-columns: 1fr; }
    .tr-v330-map-panel-actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
    .tr-v330-iraq-map { min-height: 500px; }
    .tr-v330-pin { width: 34px; height: 34px; }
    .tr-v330-map-panel { inset-inline: 10px; bottom: 10px; padding: 14px; border-radius: 16px; }
    .tr-v330-map-panel-copy strong { font-size: 17px; }
    .tr-v330-map-panel-actions a { flex: 1 1 auto; }
    .tr-v330-map-help { top: 9px; inset-inline-start: 9px; }
}

@media (max-width: 480px) {
    .tr-v330-iraq-map { min-height: 440px; }
    .tr-v330-pin { width: 31px; height: 31px; border-width: 2px; }
    .tr-v330-pin span { font-size: 13px; }
    .tr-v330-map-panel-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .tr-v330-map-panel-actions a.is-primary { grid-column: 1 / -1; }
}

/* v3.5.2 — real pan and zoom controls for the local Iraq map. */
.tr-v330-iraq-map {
    --tr-map-inverse-scale: 1;
    outline: none;
    touch-action: pan-y;
}

.tr-v330-iraq-map:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(22, 119, 255, .38);
}

.tr-v330-map-stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: 0 0;
    will-change: transform;
}

.tr-v330-map-stage.is-animating {
    transition: transform .22s cubic-bezier(.2, .72, .24, 1);
}

.tr-v330-iraq-map.is-zoomed {
    cursor: grab;
    touch-action: none;
}

.tr-v330-iraq-map.is-panning {
    cursor: grabbing;
    user-select: none;
}

.tr-v330-pin,
.tr-v330-map-location {
    scale: var(--tr-map-inverse-scale, 1);
    transform-origin: center;
}

.tr-v330-map-controls {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    z-index: 34;
    display: grid;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .84);
    border-radius: 16px;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 12px 30px rgba(38, 49, 88, .16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tr-v330-map-controls button {
    display: grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid #dfe4ee;
    border-radius: 11px;
    color: #263158;
    background: #fff;
    box-shadow: none;
    font: inherit;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.tr-v330-map-controls button:hover,
.tr-v330-map-controls button:focus-visible {
    border-color: rgba(239, 51, 79, .48);
    background: #fff6f7;
    transform: translateY(-1px);
    outline: none;
}

.tr-v330-map-controls button:disabled {
    opacity: .42;
    cursor: not-allowed;
    transform: none;
}

.tr-v330-map-controls .tr-v330-map-reset {
    width: 58px;
    min-width: 58px;
    padding-inline: 5px;
    color: #fff;
    border-color: #263158;
    background: #263158;
    font-size: 11px;
    letter-spacing: 0;
}

.tr-v330-map-controls .tr-v330-map-reset:hover,
.tr-v330-map-controls .tr-v330-map-reset:focus-visible {
    color: #fff;
    border-color: #ef334f;
    background: #ef334f;
}

.tr-v330-map-zoom-status {
    position: absolute;
    top: 176px;
    inset-inline-end: 19px;
    z-index: 33;
    min-width: 48px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 999px;
    color: #263158;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 7px 18px rgba(38, 49, 88, .11);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    pointer-events: none;
}

.tr-v330-map-help {
    max-width: min(520px, calc(100% - 110px));
}

@media (max-width: 760px) {
    .tr-v330-map-controls {
        top: 9px;
        inset-inline-end: 9px;
        gap: 5px;
        padding: 5px;
        border-radius: 14px;
    }

    .tr-v330-map-controls button {
        width: 40px;
        min-width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 22px;
    }

    .tr-v330-map-controls .tr-v330-map-reset {
        width: 52px;
        min-width: 52px;
        font-size: 10px;
    }

    .tr-v330-map-zoom-status {
        top: 158px;
        inset-inline-end: 13px;
    }

    .tr-v330-map-help {
        max-width: calc(100% - 92px);
        padding: 6px 9px;
        font-size: 10px;
    }
}
