.mt-country-services {
    --mt-navy: #101e39;
    --mt-red: #c61129;
    color: #101d36;
    scroll-margin-top: 74px;
    margin-bottom: 38px;
}

.mt-country-services [hidden] { display: none !important; }
.mt-country-services :is(a, button):focus-visible {
    outline: 3px solid #008296;
    outline-offset: 3px;
}

@font-face {
    font-family: "Mehrdad Service Icons";
    src: url("/themes/admin/fonts/fontawesome-webfont3295.woff") format("woff");
    font-display: block;
}

.mt-country-services.tour-section .country-hero {
    display: flex;
    align-items: flex-end;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: clamp(190px, 28vw, 345px);
    margin: 28px auto 0;
    padding: 0 14px 14px;
    overflow: hidden;
    border-radius: 0;
    background: var(--mt-navy);
    box-shadow: 0 6px 16px #101e3920;
}

.mt-country-services.tour-section .country-hero > .tour-section-bg {
    background-position: center top;
}

.mt-country-scroll {
    position: absolute;
    z-index: 2;
    inset-block-start: 4px;
    left: 50%;
    width: clamp(44px, 4.2vw, 60px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(155deg, #eb0000, #a40000);
    color: #fff;
}

.mt-country-scroll::after {
    content: "";
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
}

.mt-country-scroll:hover { color: #fff; background: #a40000; }
.mt-country-scroll:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

@media (max-width: 767px) {
    .mt-country-services.tour-section .country-hero:has(> .mt-country-scroll) {
        background: linear-gradient(#f5f5f5 0 12px, var(--mt-navy) 12px);
    }
    .mt-country-services.tour-section .country-hero:has(> .mt-country-scroll) > .tour-section-bg {
        top: 12px;
    }
    .mt-country-services .country-hero:has(> .mt-country-scroll)::before {
        content: "";
        position: absolute;
        z-index: 1;
        inset-block-start: 0;
        left: 50%;
        width: 80px;
        height: 37px;
        transform: translateX(-50%);
        background: #f5f5f5;
        clip-path: ellipse(50% 100% at 50% 0);
        pointer-events: none;
    }
    .mt-country-scroll { inset-block-start: 0; }
    .mt-country-scroll,
    .mt-country-scroll:hover { background: transparent; }
    .mt-country-scroll::before {
        content: "";
        grid-area: 1 / 1;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: linear-gradient(155deg, #eb0000, #a40000);
    }
    .mt-country-scroll::after {
        grid-area: 1 / 1;
        width: 8px;
        height: 8px;
        transform: translateY(-2px) rotate(45deg);
    }
    .mt-country-scroll:focus-visible { outline-color: #a40000; outline-offset: -3px; }
}

.mt-country-services.tour-section .country-topics-container {
    position: relative;
    inset: auto !important;
    width: 100%;
    max-width: none;
    padding: 0;
    transform: none;
}

.mt-service-content { width: min(94%, 1200px); margin-inline: auto; }

.mt-service-rail {
    --mt-travel: 440ms cubic-bezier(.21, .86, .25, 1);
    display: grid;
    grid-template-columns: repeat(var(--mt-tab-count), minmax(0, 1fr));
    gap: 7px;
    position: relative;
    isolation: isolate;
    padding: 7px;
    border: 1px solid #fff;
    border-radius: 23px;
    scroll-margin-top: 90px;
    background: #eef2f7;
    box-shadow: 0 5px 14px #0f1b3290;
}

.mt-service-orb {
    display: none;
    position: absolute;
    z-index: -1;
    top: 7px;
    bottom: 7px;
    left: calc(3.5px + (100% - 7px) * var(--mt-tab-center, .9));
    width: calc((100% - 7px) / var(--mt-tab-count) - 7px);
    transform: translateX(-50%);
    border-radius: 17px;
    background: linear-gradient(165deg, #bd2530, #940a18 72%);
    box-shadow: inset 0 0 0 1px #ffffff5c, 0 3px 8px #63081752;
    pointer-events: none;
}

.mt-country-services[data-enhanced] .mt-service-orb { display: block; transition: left var(--mt-travel); }

.mt-service-tab {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 70px;
    padding: 8px 3px;
    color: var(--mt-navy);
    font-size: clamp(12px, 1.5vw, 17px);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    border-radius: 17px;
}

.mt-service-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(#fff, #e4eaf2);
    box-shadow: inset 0 0 0 1px #fff, 0 2px 5px #101e3926;
    transition: opacity 200ms ease;
}

.mt-service-tab:hover { color: #960c1b; }
.mt-service-tab[aria-selected="true"] { color: #fff; }
.mt-service-tab[aria-selected="true"]::before { opacity: 0; }
.mt-service-symbol { display: block; height: 1em; width: 1em; font: normal 27px/1 "Mehrdad Service Icons"; object-fit: contain; }
.mt-service-symbol-pin::before { content: "\f041"; }
.mt-service-symbol-microphone::before { content: "\f130"; }
.mt-service-symbol-ship::before { content: "\f21a"; }
.mt-service-symbol-plane::before { content: "\f072"; }
.mt-service-symbol-bed::before { content: "\f236"; }

@media (max-width: 575px) {
    .mt-country-services.tour-section .country-hero {
        height: clamp(154px, 49vw, 225px);
        margin-top: 20px;
        padding: 0 6px 6px;
    }
    .mt-country-services.tour-section .country-hero > .tour-section-bg {
        height: calc(100% - 48px);
        background-position: center 20%;
    }
    .mt-service-rail { gap: 3px; padding: 4px; border-radius: 13px; }
    .mt-service-tab { min-height: 55px; border-radius: 9px; font-size: 11px; }
    .mt-service-symbol { font-size: 20px; }
    .mt-service-orb {
        top: 4px;
        bottom: 4px;
        left: calc(2.5px + (100% - 5px) * var(--mt-tab-center, .9));
        width: calc((100% - 5px) / var(--mt-tab-count) - 3px);
        border-radius: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mt-service-tab::before { transition: none; }
}

.mt-service-panel { margin-top: 22px; scroll-margin-top: 85px; }
.mt-country-services[data-enhanced] .mt-service-panel:not([hidden]) { animation: mt-service-appear 250ms ease-out both; }
@keyframes mt-service-appear {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.mt-service-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.mt-service-panel-heading h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.mt-service-panel-heading h3::before {
    content: "";
    width: 4px;
    height: 18px;
    flex: none;
    border-radius: 4px;
    background: var(--mt-red);
}

.mt-service-panel-heading a, .mt-service-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: #115970;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.mt-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1.7vw, 18px);
}

.mt-service-grid-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.mt-service-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid #e0e4eb;
    border-radius: 15px;
    color: inherit;
    background: #fff;
}

.mt-service-card:hover { color: #115970; border-color: #83aeb6; }
.mt-service-card-image { grid-area: 1 / 1; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.mt-service-pin {
    grid-area: 1 / 1;
    justify-self: left;
    align-self: start;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin: 7px;
    border: 1px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #a40b22;
    pointer-events: none;
}
.mt-service-pin::before {
    content: "\f08d";
    font: normal 13px/1 "Mehrdad Service Icons";
    transform: rotate(-35deg);
}
.mt-service-card-text { display: grid; align-content: start; gap: 4px; padding: 12px 14px; }
.mt-service-card-text strong {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.mt-service-card-text span { color: #526177; font-size: 12px; }
.mt-service-card-text .mt-service-price { color: #135970; font-weight: 700; }
.mt-service-grid-links .mt-service-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mt-service-card-arrow { padding-inline-end: 14px; }
.mt-service-empty { margin-bottom: 0; }

@media (max-width: 520px) {
    .mt-service-grid { grid-template-columns: minmax(0, 1fr); }
    .mt-service-card:has(> .mt-service-card-image) {
        grid-template-columns: min(106px, 33%) minmax(0, 1fr);
        grid-template-rows: 1fr;
        min-height: 84px;
    }
    .mt-service-card-image { aspect-ratio: auto; height: 0; min-height: 100%; }
    .mt-service-card-text { align-content: center; padding: 8px 10px; }
    .mt-service-panel-heading h3 { font-size: 16px; }
    .mt-service-card-text strong {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mt-country-services[data-enhanced] .mt-service-orb { transition: none; }
    .mt-country-services[data-enhanced] .mt-service-panel:not([hidden]) { animation: none; }
}

.mt-service-carousel {
    --mt-card-gap: clamp(8px, 1.7vw, 18px);
    --mt-cards-per-page: 3;
    --mt-card-width: calc((100% - 2 * var(--mt-card-gap)) / 3);
}

.mt-service-carousel-pinned {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, calc(2 * var(--mt-card-width) + var(--mt-card-gap)));
    gap: var(--mt-card-gap);
}

.mt-country-services[data-enhanced] .mt-service-track {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: var(--mt-card-width);
    gap: var(--mt-card-gap);
    min-width: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.mt-service-track::-webkit-scrollbar { display: none; }
.mt-service-track > .mt-service-card { scroll-snap-align: start; }
.mt-service-carousel-pinned .mt-service-track, .mt-service-carousel-booking .mt-service-track {
    --mt-cards-per-page: 2;
    --mt-card-width: calc((100% - var(--mt-card-gap)) / 2);
}
.mt-service-carousel-controls:not([hidden]) {
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
    gap: 0;
    margin-block-start: 4px;
}
.mt-service-carousel-controls button {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #115970;
    cursor: pointer;
    font: inherit;
}
.mt-service-carousel-controls button::after {
    content: "";
    position: absolute;
    inset: 6px;
    z-index: -1;
    border-radius: 50%;
    background: #fff9;
}
.mt-service-carousel-controls button:hover::after,
.mt-service-carousel-controls button[aria-pressed="true"]::after { background: #e5ebf2; }
.mt-service-carousel-controls button:focus-visible { outline: 2px solid #115970; outline-offset: -4px; border-radius: 50%; }
.mt-service-carousel-controls button::before {
    content: "";
    display: block;
    box-sizing: border-box;
}
.mt-service-carousel-controls :is([data-mt-previous], [data-mt-next])::before {
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}
.mt-service-carousel-controls [data-mt-previous]::before { transform: translateX(-2px) rotate(45deg); }
.mt-service-carousel-controls [data-mt-next]::before { transform: translateX(2px) rotate(-135deg); }
.mt-service-carousel-controls [data-mt-pause]::before {
    width: 8px;
    height: 10px;
    border-inline: 2px solid currentColor;
}
.mt-service-carousel-controls [data-mt-pause][aria-pressed="true"]::before {
    width: 10px;
    border: 0;
    background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

@media (max-width: 520px) {
    .mt-country-services[data-enhanced] .mt-service-track {
        --mt-card-width: 100%;
        grid-template-rows: repeat(var(--mt-cards-per-page), auto);
    }
    .mt-service-carousel-pinned { grid-template-columns: minmax(0, 1fr); }
}
