/* ==========================================================
   Mango Resorts & Spa - Country & phone pickers
   Matches the form fields (52px, #d9d2ca border, square)
========================================================== */
.mcp-phone,
.mcp-country {
    position: relative;
    width: 100%;
}

/* ---------- Phone ---------- */
.mcp-phone {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #d9d2ca;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mcp-phone:focus-within,
.mcp-phone.is-open {
    border-color: var(--hotelux-base, #b99c87);
    box-shadow: 0 0 0 3px rgba(185, 156, 135, .18);
}

.mcp-phone__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 0 16px;
    min-height: 50px;
    background: #f6f3ef;
    border: 0;
    border-right: 1px solid #d9d2ca;
    color: #3d281c;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.mcp-phone__btn:hover,
.mcp-phone__btn:focus-visible {
    background: #efe9e2;
    outline: none;
}

.mcp-phone__flag,
.mcp-country__flag {
    display: inline-flex;
    align-items: center;
}

.mcp-country__flag:empty {
    display: none;
}

/* the real input sits inside the box: remove its own border */
.contact-one__input-box .mcp-phone input.mcp-phone__input,
.mcp-phone input.mcp-phone__input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 50px;
    line-height: normal;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent;
    padding: 0 16px;
    margin: 0;
    font-size: 16px;
    color: #000;
    outline: none;
}

/* ---------- Country ---------- */
.mcp-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    left: 0;
    bottom: 0;
}

.mcp-country + .nice-select,
.mcp-country .nice-select {
    display: none !important;
}

.mcp-country__btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 0 44px 0 20px;
    background: #fff;
    border: 1px solid #d9d2ca;
    border-radius: 0;
    color: #000;
    font-family: inherit;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mcp-country__btn:focus-visible,
.mcp-country.is-open .mcp-country__btn {
    outline: none;
    border-color: var(--hotelux-base, #b99c87);
    box-shadow: 0 0 0 3px rgba(185, 156, 135, .18);
}

.mcp-country__text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcp-country__text.is-placeholder {
    color: #aaa;
}

.mcp-country__btn .mcp-caret {
    position: absolute;
    right: 18px;
    top: 50%;
    margin-top: -2px;
}

/* ---------- Shared ---------- */
.mcp-caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #6b5a4e;
    transition: transform .2s ease;
}

.is-open .mcp-caret {
    transform: rotate(180deg);
}

.mcp-flag {
    display: inline-block;
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    flex: 0 0 auto;
    background: #eee;
}

.mcp-flag--text {
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    color: #555;
}

.mcp-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 1000;
    background: #fff;
    border: 1px solid #e6e0d9;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(25, 22, 40, .14);
    overflow: hidden;
    text-align: left;
}

.mcp-dropdown[hidden] {
    display: none;
}

.mcp-search {
    padding: 12px;
    border-bottom: 1px solid #eee7df;
}

.contact-one__input-box .mcp-search input.mcp-search__input,
.mcp-search__input {
    width: 100%;
    height: 44px;
    line-height: normal;
    padding: 0 14px;
    border: 1px solid #e3dcd4 !important;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    color: #222;
    outline: none;
}

.mcp-search__input:focus {
    border-color: var(--hotelux-base, #b99c87) !important;
}

.mcp-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mcp-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    color: #222;
    cursor: pointer;
}

.mcp-item[hidden],
.mcp-empty[hidden],
.mcp-divider[hidden] {
    display: none;
}

.mcp-item:hover,
.mcp-item.is-active {
    background: #f6f1eb;
}

.mcp-item__name {
    flex: 1 1 auto;
    min-width: 0;
}

.mcp-item__dial {
    flex: 0 0 auto;
    color: #8a7a6e;
    font-size: 14px;
}

.mcp-divider {
    height: 1px;
    margin: 6px 0;
    background: #eee7df;
}

.mcp-empty {
    padding: 14px 18px;
    color: #999;
    font-size: 14px;
}

/* phone dropdown is wider than the dial button: anchor to whole field */
.mcp-phone .mcp-dropdown {
    min-width: 280px;
}

@media (max-width: 575px) {
    .mcp-phone .mcp-dropdown {
        min-width: 0;
    }

    .mcp-phone__btn {
        padding: 0 10px 0 12px;
        gap: 6px;
        font-size: 14px;
    }

    .mcp-list {
        max-height: 220px;
    }
}
