/* Rajasthan Tour Services - Country Selector */

.rts-country-switcher {
    position: relative;
    display: inline-flex;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    z-index: 1000;
}

.rts-country-switcher__details {
    position: relative;
}

.rts-country-switcher__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 14px;
    min-height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #243047;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    transition:
        border-color .2s ease,
        background-color .2s ease;
}

.rts-country-switcher__trigger::-webkit-details-marker {
    display: none;
}

.rts-country-switcher__trigger::marker {
    content: "";
}

.rts-country-switcher__trigger:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.rts-country-switcher__trigger:focus-visible,
.rts-country-switcher__link:focus-visible {
    outline: 2px solid #a35e32;
    outline-offset: 3px;
}

.rts-country-switcher__flag {
    font-size: 19px;
    line-height: 1;
}

.rts-country-switcher__trigger svg {
    flex-shrink: 0;
    transition: transform .2s ease;
}

.rts-country-switcher__details[open]
.rts-country-switcher__trigger svg {
    transform: rotate(180deg);
}

/* Dropdown */
.rts-country-switcher__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 230px;
    padding: 9px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgb(0 0 0 / 12%);
    z-index: 9999;
}

.rts-country-switcher__heading {
    display: block;
    padding: 8px 10px 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.rts-country-switcher__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    transition: background-color .2s ease;
}

.rts-country-switcher__link:hover,
.rts-country-switcher__link:focus-visible {
    background: #f1f5f9;
    color: #111827;
}

.rts-country-switcher__link.is-active {
    background: #fdf4eb;
    color: #874c27;
    font-weight: 600;
}

.rts-country-switcher__label {
    flex: 1;
}

.rts-country-switcher__currency {
    color: #64748b;
    font-size: 12px;
}

.rts-country-switcher__check {
    color: #15803d;
    font-weight: 700;
}

/* Mobile */
@media (max-width: 767px) {
    .rts-country-switcher__trigger {
        gap: 7px;
        padding: 9px 11px;
    }

    .rts-country-switcher__menu {
        min-width: 210px;
        max-width: calc(100vw - 24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rts-country-switcher *,
    .rts-country-switcher *::before,
    .rts-country-switcher *::after {
        transition: none !important;
    }
}
