.idokep-terkep-box {
    position: relative;
    overflow: hidden;
    background: #13623b;
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* a régi háttérkép arányában */
.idokep-map {
    width: 100%;
    aspect-ratio: 970 / 693;
    background: #13623b;
}

@media (max-width: 575.98px) {
    .idokep-map {
        aspect-ratio: 10 / 11;
    }
}

.idokep-terkep-box:fullscreen {
    display: flex;
    flex-direction: column;
}

.idokep-terkep-box:fullscreen .idokep-map {
    flex: 1;
    aspect-ratio: auto;
}

.idokep-map .maplibregl-ctrl-top-left .maplibregl-ctrl {
    margin: 10px 0 0 10px;
}

/* címdoboz a többi térkép stílusában: kék sáv fehér Oswald felirattal, alatta az állapot */
.idokep-cim {
    position: absolute;
    top: 10px;
    left: 50px;
    z-index: 2;
    max-width: calc(100% - 270px);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    pointer-events: none;
}

.idokep-cim-fo {
    padding: 4px 12px 3px;
    background: #1e8fdb;
    color: #fff;
    font-family: "Oswald", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.idokep-cim-al {
    padding: 4px 12px 4px;
    background: rgba(255, 255, 255, .94);
    color: #182c3d;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

.idokep-cim-al:empty::before,
.idokep-allapot:empty::before {
    content: "\00a0";
}

/* jobb felső sarok: észlelés és saját hely, a régi térkép gombjai (btn btn-light btn-sm) egymás alatt */
.idokep-gombok {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.idokep-gombok .btn {
    min-width: 125px;
}

/* Időkép logó a jobb alsó sarokban, a forrásmegjelölés gombja mellett; csak desktopon (d-lg-block) */
.idokep-vizjel {
    position: absolute;
    right: 44px;
    bottom: 8px;
    z-index: 2;
    opacity: .9;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
    pointer-events: none;
}

.idokep-map .maplibregl-ctrl-attrib.maplibregl-compact {
    background: rgba(255, 255, 255, .8);
}

/* az újonnan érkező észlelés beúszik, mint a régi térképen */
.idokep-beuszik {
    overflow: hidden;
    pointer-events: none;
    animation: idokep-beuszik 1s ease-out both;
}

.idokep-beuszik img {
    display: block;
    max-width: none;
}

.idokep-beuszik-anim {
    animation: idokep-csik 1s steps(15, start) infinite;
}

@keyframes idokep-beuszik {
    from {
        translate: 0 -400px;
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    to {
        translate: 0 0;
    }
}

@keyframes idokep-csik {
    from {
        transform: translateX(var(--csik));
    }
    to {
        transform: translateX(0);
    }
}

.idokep-sajat {
    width: 34px;
    height: 34px;
    background: no-repeat center / contain url(/images/marker.png);
}

/* idősáv a térkép alatt: lejátszás és a visszajátszás csúszkája */
.idokep-idosav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #0b1f16;
    color: rgba(255, 255, 255, .9);
    font: 600 13px/1 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.idokep-lejatszas {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #1e8fdb;
    color: #fff;
    cursor: pointer;
}

.idokep-lejatszas svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.idokep-lejatszas .ikon-szunet,
.idokep-lejatszas[aria-pressed="true"] .ikon-indit {
    display: none;
}

.idokep-lejatszas[aria-pressed="true"] .ikon-szunet {
    display: block;
}

.idokep-lejatszas:focus-visible,
.idokep-csuszka:focus-visible {
    outline: 2px solid #52ffb8;
    outline-offset: 2px;
}

.idokep-csuszka {
    flex: 1;
    min-width: 0;
    accent-color: #1e8fdb;
    cursor: pointer;
}

.idokep-csuszka-ido {
    flex: none;
    min-width: 42px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* buborék: a szerver szövege (égkép, hely, idő, felhasználó) és a webkamerakép */
.idokep-tip {
    position: fixed;
    z-index: 1080;
    max-width: min(360px, calc(100vw - 8px));
    box-sizing: border-box;
    padding: 9px 12px 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(10, 20, 50, .28), 0 1px 3px rgba(10, 20, 50, .2);
    color: #182c3d;
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

/* a hazai buborék első sora az égkép */
.idokep-tip::first-line {
    font-weight: 700;
}

.idokep-tip img {
    display: block;
    max-width: 100%;
    max-height: 250px;
    margin-top: 6px;
    border-radius: 6px;
}

.idokep-tip-forras {
    color: rgba(24, 44, 61, .62);
    font-size: 12px;
}

.idokep-tip-link {
    margin-top: 6px;
    color: #1e8fdb;
    font-weight: 600;
    font-size: 12px;
}

@media (hover: hover) {
    .idokep-tip {
        pointer-events: none;
    }
}

@media (hover: none) {
    .idokep-tip {
        cursor: pointer;
    }
}

@media (max-width: 575.98px) {
    .idokep-cim {
        left: 48px;
        max-width: calc(100% - 58px);
    }

    .idokep-cim-fo {
        padding: 3px 8px 2px;
        font-size: 15px;
    }

    .idokep-cim-al {
        padding: 3px 8px;
        font-size: 11px;
    }

    /* a címdoboz alá nem fér, ezért a bal alsó sarokba */
    .idokep-gombok {
        top: auto;
        right: auto;
        bottom: 8px;
        left: 8px;
    }

    .idokep-gombok .btn {
        min-width: 110px;
    }
}
