.christmas-weather {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #f9e9da url('../images/home/christmas-weather-bg.webp') center/cover no-repeat
}

.christmas-weather__launcher {
    position: absolute;
    z-index: 3;
    right: 11%;
    top: 48%;
    display: flex;
    min-width: 300px;
    min-height: 82px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 18px 34px;
    border: 0;
    border-radius: 999px 18px 18px 999px;
    background: #fffaf0;
    color: #421b1a;
    font-size: 23px;
    font-weight: 850;
    box-shadow: 0 12px 30px rgba(104, 55, 35, .2);
    cursor: pointer;
    transition: transform .25s ease, opacity .25s ease
}

.christmas-weather__launcher::after {
    content: '';
    position: absolute;
    right: -22px;
    width: 42px;
    height: 42px;
    transform: rotate(45deg);
    border-radius: 5px;
    background: #fffaf0
}

/* .christmas-weather__launcher i {
    position: relative;
    z-index: 1;
    color: #bb1721;
    font-size: 14px
} */

.christmas-weather__launcher:hover {
    transform: translateX(-6px)
}

.christmas-weather.is-open .christmas-weather__launcher {
    opacity: 0;
    pointer-events: none;
    transform: translateX(40px)
}

.christmas-weather__panel {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    width: min(540px, calc(100% - 34px));
    padding: 28px 32px 30px;
    transform: translate(-50%, -43%) scale(.88);
    visibility: hidden;
    opacity: 0;
    border: 1px solid rgba(132, 74, 45, .1);
    border-radius: 38px;
    background: rgba(255, 250, 239, .97);
    box-shadow: 0 28px 70px rgba(94, 48, 30, .25);
    text-align: center;
    transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1), visibility .3s ease
}

.christmas-weather.is-open .christmas-weather__panel {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1)
}

.christmas-weather__close {
    position: absolute;
    top: 16px;
    right: 18px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f5e4d3;
    color: #9f1520;
    cursor: pointer
}

.christmas-weather__countdown {
    position: relative;
    z-index: 10 !important;
    display: block !important;
    width: 100%;
    margin: 0 0 9px;
    color: #421919;
    visibility: visible !important;
    opacity: 1 !important;
    isolation: isolate
}

.christmas-weather.is-open .christmas-weather__countdown,
.christmas-weather__panel[aria-hidden="false"] .christmas-weather__countdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.christmas-weather__countdown-title {
    display: block;
    margin-bottom: 5px;
    color: #b7101c;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase
}

.christmas-weather__countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    direction: ltr
}

.christmas-weather__countdown-unit {
    min-width: 0;
    perspective: 240px
}

.christmas-weather__countdown-unit strong {
    position: relative;
    display: grid;
    height: 38px;
    place-items: center;
    overflow: visible;
    border-radius: 7px;
    background: linear-gradient(#ce8e23 0 49%, #cf8f0b 50% 100%);
    color: #fffaf0;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: .02em;
    box-shadow: 0 4px 9px rgba(66, 25, 25, .2);
    transform-style: preserve-3d
}

.christmas-weather__countdown-unit strong::before {
    content: attr(data-previous);
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: inherit;
    background: linear-gradient(#3a2825 0 49%, #241816 50% 100%);
    color: #fffaf0;
    box-shadow: 0 4px 9px rgba(66, 25, 25, .2);
    transform-origin: center top;
    backface-visibility: hidden
}

/* .christmas-weather__countdown-unit strong::after {
    content: '';
    position: absolute;
    z-index: 3;
    right: 0;
    top: 50%;
    left: 0;
    height: 1px;
    background: #ce8e23;
    box-shadow: 0 1px rgba(255, 255, 255, .08);
    pointer-events: none
} */

.christmas-weather__countdown-unit strong:not(.is-flipping)::before {
    visibility: hidden
}

.christmas-weather__countdown-unit strong.is-flipping::before {
    animation: christmas-countdown-page .7s cubic-bezier(.45, 0, .25, 1) forwards
}

.christmas-weather__countdown-unit>span {
    display: block;
    margin-top: 3px;
    color: #76574c;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase
}

@keyframes christmas-countdown-page {
    0% {
        transform: rotateX(0deg) translateY(0);
        filter: brightness(1)
    }

    35% {
        box-shadow: 0 12px 15px rgba(33, 15, 13, .34);
        filter: brightness(1.12)
    }

    100% {
        transform: rotateX(-178deg) translateY(-2px);
        box-shadow: 0 -5px 8px rgba(33, 15, 13, .12);
        filter: brightness(.58)
    }
}

@media (prefers-reduced-motion: reduce) {
    .christmas-weather__countdown-unit strong.is-flipping::before {
        visibility: hidden;
        animation: none
    }
}

.christmas-weather__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #1f8a46
}

.christmas-weather__ornament span {
    width: 80px;
    height: 1px;
    background: #e8c79d
}

.christmas-weather__ornament i {
    color: #b7101c
}

.christmas-weather__eyebrow {
    color: #b7101c;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase
}

.christmas-weather__panel h2 {
    margin: 5px 0 16px;
    color: #421919;
    font-size: 34px;
    font-weight: 850
}

.christmas-weather__destination {
    display: grid;
    grid-template-columns: 1fr auto 13px;
    align-items: center;
    gap: 10px;
    margin: 0 auto 13px;
    padding: 10px 14px;
    border-radius: 15px;
    background: #f8eadb;
    color: #6a5148;
    text-align: left
}

.christmas-weather__destination>span {
    font-size: 13px;
    font-weight: 700
}

.christmas-weather__destination>span i {
    margin-right: 6px;
    color: #d68635
}

.christmas-weather__destination strong {
    min-width: 112px;
    padding: 5px 14px;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    color: #231815
}

.christmas-weather__destination>i {
    font-size: 10px;
    color: #9a6a41
}

.christmas-weather__cities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
}

.christmas-weather__city {
    display: grid;
    min-height: 135px;
    grid-template-columns: 1fr auto;
    align-content: space-between;
    gap: 4px;
    overflow: hidden;
    padding: 16px;
    border-radius: 19px;
    color: #fff;
    text-align: left
}

.christmas-weather__city--cairo {
    background: linear-gradient(145deg, #155ba1, #2f8ccc)
}

.christmas-weather__city--luxor {
    background: linear-gradient(145deg, #ffd274, #efa12a);
    color: #24170f
}

.christmas-weather__city div {
    display: flex;
    flex-direction: column
}

.christmas-weather__city span {
    font-size: 15px;
    font-weight: 800
}

.christmas-weather__city strong {
    font-size: 38px;
    line-height: 1
}

.christmas-weather__city>i {
    color: #fff0a1;
    font-size: 27px
}

.christmas-weather__city small {
    grid-column: 1/-1;
    overflow: hidden;
    opacity: .8;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap
}

.christmas-weather__choices {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 15px 0
}

.christmas-weather__choices button {
    padding: 7px 10px;
    border: 1px solid #ecd9c4;
    border-radius: 999px;
    background: #fbefe2;
    color: #6a4636;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer
}

.christmas-weather__choices button:hover,
.christmas-weather__choices button.is-active {
    border-color: #c99150;
    background: #f1d5b4;
    color: #8f1119
}

.christmas-weather__cta {
    display: flex;
    min-height: 55px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d31d27, #a90712);
    color: #fff;
    font-size: 16px;
    font-weight: 850;
    box-shadow: 0 10px 22px rgba(177, 15, 27, .2);
    transition: transform .2s ease, box-shadow .2s ease
}

.christmas-weather__cta:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 14px 28px rgba(177, 15, 27, .3)
}

@media(max-width:767.98px) {
    .christmas-weather {
        min-height: 600px;
        background-position: 52% center
    }

    .christmas-weather__launcher {
        right: 8px;
        top: 49%;
        min-width: 245px;
        min-height: 66px;
        padding: 14px 26px;
        font-size: 18px
    }

    .christmas-weather__panel {
        padding: 24px 17px 20px;
        border-radius: 28px
    }

    .christmas-weather__panel h2 {
        font-size: 27px
    }

    .christmas-weather__destination {
        grid-template-columns: 1fr auto 12px
    }

    .christmas-weather__destination>span {
        font-size: 11px
    }

    .christmas-weather__destination strong {
        min-width: 80px
    }

    .christmas-weather__city {
        min-height: 120px;
        padding: 12px
    }

    .christmas-weather__city strong {
        font-size: 31px
    }

    .christmas-weather__choices {
        gap: 5px
    }

    .christmas-weather__choices button {
        font-size: 9px;
        padding: 6px 8px
    }

    .christmas-weather__cta {
        font-size: 13px
    }
}

/* Custom governorate dropdown. */
.christmas-weather__native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.christmas-weather__destination>i {
    display: none;
}

.christmas-weather__custom-select {
    position: relative;
    width: 94px;
    min-width: 0;
}

.christmas-weather__select-trigger {
    display: flex;
    width: 100%;
    min-height: 28px;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 4px 7px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #231815;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}

.christmas-weather__select-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.christmas-weather__select-trigger i {
    flex: 0 0 auto;
    color: #9a6a41;
    font-size: 8px;
    transition: transform .2s ease;
}

.christmas-weather__custom-select.is-open .christmas-weather__select-trigger i {
    transform: rotate(180deg);
}

.christmas-weather__select-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 7px);
    right: 0;
    display: none;
    width: 175px;
    max-height: 210px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #ead3b9;
    border-radius: 12px;
    background: #fffaf2;
    box-shadow: 0 16px 35px rgba(74, 38, 25, .22);
    scrollbar-width: thin;
    scrollbar-color: #d9ad79 transparent;
}

.christmas-weather__custom-select.is-open .christmas-weather__select-menu {
    display: block;
}

.christmas-weather__select-menu button {
    display: flex;
    width: 100%;
    min-height: 31px;
    align-items: center;
    padding: 6px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #5d4034;
    font-size: 10px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.christmas-weather__select-menu button:hover {
    background: #f7e4cf;
    color: #9b111d;
}

.christmas-weather__select-menu button.is-selected {
    background: #b7101c;
    color: #fff;
}

/* Floating weather widget */
.christmas-weather {
    position: fixed;
    z-index: 1050;
    inset: 0;
    min-height: 0;
    overflow: visible;
    background: none;
    pointer-events: none
}

.christmas-weather::before {
    content: '';
    position: fixed;
    z-index: 4;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    background: rgba(40, 20, 17, .48);
    backdrop-filter: blur(4px);
    transition: opacity .25s ease, visibility .25s ease
}

.christmas-weather.is-open::before {
    visibility: visible;
    opacity: 1
}

.christmas-weather.is-open {
    pointer-events: auto
}

.christmas-weather__launcher {
    position: absolute;
    z-index: 3;
    right: 0;
    top: auto;
    bottom: 165px;
    width: 343px;
    min-width: 0;
    height: 181px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: auto;
}

.christmas-weather__launcher::after {
    display: none
}

.christmas-weather__launcher span {
    position: absolute;
    z-index: 1;
    left: 27px;
    top: 104px;
    display: grid;
    width: 261px;
    min-height: 47px;
    place-items: center;
    padding: 5px 0 5px 6px;
    border-radius: 998px;
    background: #fffaf0;
    color: #421b1a;
    font-size: 16px;
    font-weight: 850;
    box-shadow: 0 12px 30px rgba(104, 55, 35, .22);
}

.christmas-weather__launcher span::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -17px;
    width: 0;
    height: 0;
    transform: translateY(-50%);
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 18px solid #fffaf0;
}


.christmas-weather__launcher img {
    position: absolute;
    z-index: 2;
    right: -18px;
    top: 0;
    width: 155px;
    height: 195px;
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(0 12px 14px rgba(90, 42, 28, .16))
}

.christmas-weather__launcher:hover {
    transform: translateX(-5px)
}

.christmas-weather.is-open .christmas-weather__launcher {
    opacity: 0;
    transform: translateX(35px);
    pointer-events: none
}

.christmas-weather__panel {
    position: fixed;
    z-index: 5;
    pointer-events: auto
}

.christmas-weather__panel-mascot {
    position: absolute;
    z-index: 0;
    right: -135px;
    top: 70px;
    width: 190px;
    height: 260px;
    object-fit: contain;
    filter: drop-shadow(0 16px 18px rgba(90, 42, 28, .15))
}

@media(max-width:767.98px) {
    .christmas-weather {
        min-height: 0;
        background: none
    }

    .christmas-weather__launcher {
        right: 17px;
        bottom: 196px;
        width: 285px;
        height: 165px;
    }

    .christmas-weather__launcher span {
        top: 81px;
        width: 150px;
        min-height: 38px;
        padding: 0 0px 1px 0;
        font-size: 13px;
        left: 118px;
    }

    .christmas-weather__launcher>i {
        left: 166px;
        top: 79px
    }

    .christmas-weather__launcher img {
        right: -12px;
        width: 89px;
        height: 158px
    }

    .christmas-weather__panel {
        top: 50%;
        padding: 24px 17px 20px
    }

    .christmas-weather__panel-mascot {
        display: none
    }
}

/* Non-blocking side panel: the page remains scrollable and clickable. */
.christmas-weather::before {
    display: none
}

.christmas-weather.is-open {
    pointer-events: none
}

.christmas-weather__panel {
    top: auto;
    right: 24px;
    bottom: 150px;
    left: auto;
    width: min(470px, calc(100vw - 40px));
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    transform: translateX(36px) scale(.96);
    transform-origin: right bottom;
    scrollbar-width: thin
}

.christmas-weather.is-open .christmas-weather__panel {
    transform: translateX(0) scale(1)
}

.christmas-weather__panel-mascot {
    right: -52px;
    top: 72px;
    width: 120px;
    height: 210px
}

@media(max-width:767.98px) {
    .christmas-weather__panel {
        top: auto;
        right: 10px;
        bottom: 10px;
        left: auto;
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        transform: translateX(28px) scale(.97)
    }

    .christmas-weather.is-open .christmas-weather__panel {
        transform: none
    }
}

/* Compact 287px weather panel. */
.christmas-weather__panel {
    width: min(287px, calc(100vw - 40px));
    max-height: none;
    padding: 48px 12px 14px;
    overflow: visible;
    border-radius: 24px
}

.christmas-weather__panel-mascot {
    z-index: 2;
    top: -82px;
    right: auto;
    left: 50%;
    width: 165px;
    height: 112px;
    transform: translateX(-50%);
    object-fit: contain;
    filter: drop-shadow(0 9px 12px rgba(90, 42, 28, .16))
}

.christmas-weather__close {
    z-index: 3;
    top: 8px;
    right: 9px;
    width: 28px;
    height: 28px;
    font-size: 12px
}

.christmas-weather__ornament {
    gap: 6px
}

.christmas-weather__ornament span {
    width: 42px
}

.christmas-weather__eyebrow {
    font-size: 8px
}

.christmas-weather__panel h2 {
    margin: 2px 0 10px;
    font-size: 22px
}

.christmas-weather__destination {
    grid-template-columns: minmax(0, 1fr) auto 9px;
    gap: 5px;
    margin-bottom: 8px;
    padding: 7px 8px;
    border-radius: 11px
}

.christmas-weather__destination>span {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap
}

.christmas-weather__destination>span i {
    margin-right: 3px
}

.christmas-weather__destination strong {
    min-width: 62px;
    padding: 4px 7px;
    border-radius: 8px;
    font-size: 10px
}

.christmas-weather__destination select {
    width: 82px;
    min-width: 0;
    padding: 5px 18px 5px 7px;
    border: 0;
    border-radius: 8px;
    outline: 0;
    appearance: none;
    background: #fff;
    color: #231815;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer
}

.christmas-weather__destination>i {
    pointer-events: none
}

.christmas-weather__cities {
    gap: 7px
}

.christmas-weather__city {
    min-height: 83px;
    padding: 9px;
    border-radius: 13px;
    margin-bottom: 7px;
}

.christmas-weather__city span {
    font-size: 11px
}

.christmas-weather__city strong {
    font-size: 26px
}

.christmas-weather__city>i {
    font-size: 19px
}

.christmas-weather__city small {
    font-size: 8px
}

.christmas-weather__choices {
    gap: 4px;
    margin: 9px 0
}

.christmas-weather__choices button {
    padding: 4px 6px;
    font-size: 8px
}

.christmas-weather__cta {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 11px;
    gap: 7px
}

@media(max-width:767.98px) {
    .christmas-weather__panel {
        right: 15px;
        bottom: 192px;
        width: min(287px, calc(100vw - 37px));
        padding: 27px 12px 14px;
    }

    .christmas-weather__panel-mascot {
        display: block
    }
}