
/* =========================================================
   CARIPULSE TOUR OPERATOR
========================================================= */

.tour-partner-page {
    margin: 0;
    background: #ffffff;
    color: #081221;
    font-family: "Poppins", sans-serif;
}

/* Required field indicators */
.tour-partner-page .tour-partner-required {
    color: #dc2626;
    font-weight: 700;
}

.tour-partner-page *,
.tour-partner-page *::before,
.tour-partner-page *::after {
    box-sizing: border-box;
}

.tour-partner-page [hidden] {
    display: none !important;
}

.tour-partner-main {
    min-height: 100vh;
    background: #ffffff;
}

/* =========================================================
   HERO
========================================================= */

.tour-partner-hero {
    position: relative;
    padding: 70px 0 72px;
    background-color: #081221;
    background-image:
        linear-gradient(
            90deg,
            rgba(8, 18, 33, .94),
            rgba(8, 18, 33, .74)
        ),
        url("/assets/images/CariPulse-Tours.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tour-partner-heading {
    display: flex;
    align-items: center;
    gap: 60px;
}

.tour-partner-heading-copy {
    flex: 1;
    min-width: 0;
    max-width: 760px;
}

.tour-partner-heading h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.1;
}

.tour-partner-heading h1 span {
    background: linear-gradient(90deg, #fdb52b, #ff0f7b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tour-partner-heading p {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 18px;
    line-height: 1.75;
}

.tour-partner-heading-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 0 0 270px;
}

.tour-partner-secondary-action {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 19px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 14px;
    background: rgba(8, 18, 33, .48);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.tour-partner-secondary-action:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, .48);
    background: rgba(8, 18, 33, .68);
}

.tour-partner-secondary-action i {
    color: #fdb52b;
}

.tour-partner-secondary-action span {
    flex: 1;
}

/* =========================================================
   INTRO
========================================================= */

.tour-partner-intro-card {
    max-width: 760px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 42px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 20px;
    background: rgba(8, 18, 33, .48);
}

.tour-partner-intro-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ff0f7b;
    color: #ffffff;
    font-size: 20px;
}

.tour-partner-intro-card strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.tour-partner-intro-card p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 1.7;
}

/* =========================================================
   CONTENT
========================================================= */

.tour-partner-content {
    padding: 40px 0 70px;
    background: #ffffff;
}

.tour-partner-content > .container {
    max-width: none;
}

/* =========================================================
   LOADING
========================================================= */

.tour-partner-loading {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    border: 1px solid #e3e8f0;
    border-radius: 20px;
    background: #fafbfd;
    text-align: center;
}

.tour-partner-loading i {
    color: #ff0f7b;
    font-size: 30px;
}

.tour-partner-loading strong {
    color: #081221;
    font-size: 15px;
}

.tour-partner-loading p {
    margin: 0;
    color: #737b88;
    font-size: 12px;
}

/* =========================================================
   MESSAGES
========================================================= */

.tour-partner-message {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #dc2626;
    border-radius: 14px;
    background: #ffffff;
    color: #dc2626;
    font-size: 12px;
    line-height: 1.7;
}

.tour-partner-message.is-success {
    border-color: #15803d;
    color: #166534;
    background: #f0fdf4;
}

/* =========================================================
   CARDS
========================================================= */

.tour-partner-card {
    width: 100%;
    padding: 28px;
    border: 1px solid #e3e8f0;
    border-radius: 20px;
    background: #ffffff;
}

.tour-partner-section {
    margin-top: 22px;
}

.tour-partner-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 50%;
    background: rgba(255, 15, 123, .12);
    color: #ff0f7b;
    font-size: 22px;
}

.tour-partner-card h2 {
    margin: 0;
    color: #081221;
    font-size: 21px;
    font-weight: 700;
}

.tour-partner-card > p,
.tour-partner-section-heading p {
    margin: 10px 0 0;
    color: #737b88;
    font-size: 13px;
    line-height: 1.75;
}

.tour-partner-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.tour-partner-account-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid #bbf7d0;
    border-radius: 50px;
    color: #166534;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* =========================================================
   ACTIONS
========================================================= */

.tour-partner-primary-action {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff0f7b, #fdb52b);
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.tour-partner-primary-action:hover {
    color: #ffffff;
    text-decoration: none;
}

.tour-partner-primary-action:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.tour-partner-outline-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #00053d;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.tour-partner-outline-action:hover {
    border-color: #ff0f7b;
    color: #ff0f7b;
}



.tour-partner-close-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid #E3E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    color: #081221;
    cursor: pointer;
}

.tour-partner-close-panel:hover {
    border-color: #FF0F7B;
    color: #FF0F7B;
}

/* =========================================================
   ACCOUNT INFORMATION
========================================================= */

.tour-partner-information {
    margin-top: 22px;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.tour-partner-information-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px;
}

.tour-partner-information-row span {
    color: #737b88;
    font-size: 12px;
}


.tour-partner-information-row strong {
    color: #081221;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-align: right;
}

/* =========================================================
   TOUR OPERATOR DASHBOARD ENTRY
========================================================= */

.tour-partner-dashboard-access {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    background: #fafbfd;
}

.tour-partner-dashboard-access-copy {
    flex: 1;
    min-width: 0;
}

.tour-partner-dashboard-access-copy strong {
    display: block;
    color: #00053d;
    font-size: 15px;
    font-weight: 700;
}

.tour-partner-dashboard-access-copy p {
    margin: 7px 0 0;
    color: #737b88;
    font-size: 12px;
    line-height: 1.75;
}

.tour-partner-dashboard-action {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #fdb52b, #ff0f7b);
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.tour-partner-dashboard-action:hover,
.tour-partner-dashboard-action:focus-visible {
    color: #ffffff;
    text-decoration: none;
}

.tour-partner-dashboard-action > i:last-child {
    transition: transform 0.25s ease;
}

.tour-partner-dashboard-action:hover > i:last-child,
.tour-partner-dashboard-action:focus-visible > i:last-child {
    transform: translateX(5px);
}

@media (max-width: 800px) {
    .tour-partner-dashboard-access {
        flex-direction: column;
        align-items: stretch;
    }

    .tour-partner-dashboard-action {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tour-partner-dashboard-action > i:last-child {
        transition: none;
    }
}

.tour-partner-next-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    background: #fafbfd;
}

.tour-partner-next-step i {
    margin-top: 2px;
    color: #ff0f7b;
    font-size: 17px;
}

.tour-partner-next-step p {
    margin: 0;
    color: #737b88;
    font-size: 12px;
    line-height: 1.75;
}

/* =========================================================
   COMPANY LISTS
========================================================= */

.tour-partner-company-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.tour-partner-company-item {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e3e8f0;
    border-radius: 16px;
    background: #ffffff;
}

.tour-partner-company-item h3 {
    margin: 0;
    color: #00053d;
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tour-partner-company-item p {
    margin: 8px 0 0;
    color: #737b88;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}


.tour-partner-company-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* =========================================================
   TOUR OPERATOR DASHBOARD ACCESS
========================================================= */

.tour-partner-company-dashboard {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #fdb52b, #ff0f7b);
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.tour-partner-company-dashboard:hover,
.tour-partner-company-dashboard:focus-visible {
    color: #ffffff;
    text-decoration: none;
}

.tour-partner-company-dashboard > i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.tour-partner-company-dashboard:hover > i,
.tour-partner-company-dashboard:focus-visible > i {
    transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
    .tour-partner-company-dashboard > i {
        transition: none;
    }
}

.tour-partner-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 30px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.tour-partner-status[data-status="approved"],
.tour-partner-status[data-status="published"] {
    background: #dcfce7;
    color: #166534;
}

.tour-partner-status[data-status="pending"] {
    background: #fef3c7;
    color: #92400e;
}

.tour-partner-status[data-status="rejected"],
.tour-partner-status[data-status="changes_requested"] {
    background: #fee2e2;
    color: #991b1b;
}

.tour-partner-empty {
    margin: 20px 0 0;
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #fafbfd;
    color: #737b88;
    font-size: 12px;
    line-height: 1.75;
}

/* =========================================================
   CHOICES
========================================================= */

.tour-partner-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.tour-partner-choice {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
    border: 1px solid #e3e8f0;
    border-radius: 18px;
    background: #ffffff;
    color: #081221;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.tour-partner-choice:hover {
    border-color: #ff0f7b;
}

.tour-partner-choice-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(255, 15, 123, .10);
    color: #ff0f7b;
    font-size: 18px;
}

.tour-partner-choice strong {
    color: #00053d;
    font-size: 15px;
    font-weight: 700;
}

.tour-partner-choice > span:not(.tour-partner-choice-icon) {
    color: #737b88;
    font-size: 12px;
    line-height: 1.75;
}

.tour-partner-choice > i {
    margin-top: auto;
    color: #ff0f7b;
    transition: transform 0.25s ease;
}

.tour-partner-choice:hover > i,
.tour-partner-choice:focus-visible > i {
    transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
    .tour-partner-choice > i {
        transition: none;
    }
}

/* =========================================================
   FORMS
========================================================= */

.tour-partner-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 26px;
}

.tour-partner-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.tour-partner-field-full {
    grid-column: 1 / -1;
}

.tour-partner-field > span,
.tour-partner-field > label {
    color: #081221;
    font-size: 12px;
    font-weight: 600;
}

/* =========================================================
   TOUR PARTNER — FIELD INFORMATION INDICATORS
========================================================= */

.tour-partner-field-label {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    line-height: 1.5;
}

.tour-partner-field-tooltip {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-left: 2px;
    color: #ff0f7b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    cursor: help;
    outline-offset: 3px;
}

.tour-partner-field-tooltip > i {
    color: #ff0f7b;
}

.tour-partner-field-tooltip-text {
    position: absolute;
    z-index: 50;
    top: 50%;
    left: calc(100% + 10px);
    right: auto;
    bottom: auto;
    width: max-content;
    max-width: min(290px, 80vw);
    padding: 12px 14px;
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #485365;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.7;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.tour-partner-field-tooltip:hover .tour-partner-field-tooltip-text,
.tour-partner-field-tooltip:focus .tour-partner-field-tooltip-text,
.tour-partner-field-tooltip:focus-within .tour-partner-field-tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
}

.tour-partner-field-tooltip:focus-visible {
    outline: 2px solid #ff0f7b;
    outline-offset: 4px;
    border-radius: 50%;
}

@media (max-width: 600px) {
    .tour-partner-field-tooltip-text {
        top: calc(100% + 10px);
        left: auto;
        right: -20px;
        bottom: auto;
        max-width: min(260px, 75vw);
        transform: none;
    }

    .tour-partner-field-tooltip:hover .tour-partner-field-tooltip-text,
    .tour-partner-field-tooltip:focus .tour-partner-field-tooltip-text,
    .tour-partner-field-tooltip:focus-within .tour-partner-field-tooltip-text {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tour-partner-field-tooltip-text {
        transition: none;
    }
}

.tour-partner-field input,
.tour-partner-field select,
.tour-partner-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid #dce3ed;
    border-radius: 12px;
    outline: none;
    background: #ffffff;
    color: #081221;
    font-family: inherit;
    font-size: 13px;
}

.tour-partner-field textarea {
    min-height: 120px;
    resize: vertical;
}

.tour-partner-field input:focus,
.tour-partner-field select:focus,
.tour-partner-field textarea:focus {
    border-color: #ff0f7b;
}

.tour-partner-field input:disabled,
.tour-partner-field select:disabled {
    background: #f8fafc;
    cursor: not-allowed;
}


/* =========================================================
   CARIPULSE BRANDED DROPDOWNS
========================================================= */

.tour-partner-dropdown {
    position: relative;
    width: 100%;
    min-width: 0;
}

/* Keep the native control for form submission and validation */

.tour-partner-dropdown .tour-partner-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

/* Dropdown trigger */

.tour-partner-dropdown-trigger {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 15px;
    border: 1px solid #dce3ed;
    border-radius: 12px;
    background: #ffffff;
    color: #081221;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.tour-partner-dropdown-trigger:hover {
    border-color: #ff0f7b;
}

.tour-partner-dropdown-trigger:focus-visible,
.tour-partner-dropdown.is-open
.tour-partner-dropdown-trigger {
    outline: none;
    border-color: #ff0f7b;
}

.tour-partner-dropdown-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tour-partner-dropdown-value.is-placeholder {
    color: #737b88;
}


/* =========================================================
   DROPDOWN COUNTRY FLAGS
========================================================= */

.tour-partner-dropdown-value,
.tour-partner-dropdown-option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tour-partner-dropdown-value > span:last-child,
.tour-partner-dropdown-option-content > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.tour-partner-dropdown-flag {
    display: block;
    width: 24px;
    height: 18px;
    flex: 0 0 24px;
    object-fit: cover;
    border-radius: 3px;
}

.tour-partner-dropdown-flag[hidden] {
    display: none !important;
}


.tour-partner-dropdown-option-content {
    flex: 1;
}


.tour-partner-dropdown-trigger > i {
    flex-shrink: 0;
    color: #8A94A5;
    font-size: 12px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.tour-partner-dropdown.is-open
.tour-partner-dropdown-trigger > i {
    transform: rotate(180deg);
    color: #FF0F7B;
}
/* Dropdown menu */


.tour-partner-dropdown-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 7px);
    left: 0;
    right: 0;

    max-height: 260px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 7px 12px 7px 7px;

    border: 1px solid #e3e8f0;
    border-radius: 14px;
    background: #ffffff;

    scrollbar-width: thin;
    scrollbar-color: #ff0f7b transparent;
}

.tour-partner-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.tour-partner-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
    margin-block: 12px;
}

.tour-partner-dropdown-menu::-webkit-scrollbar-thumb {
    background: #ff0f7b;
    border-radius: 999px;
}

.tour-partner-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #e60069;
}


.tour-partner-dropdown-menu[hidden] {
    display: none !important;
}

/* Individual options */

.tour-partner-dropdown-option {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #081221;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.tour-partner-dropdown-option:hover,
.tour-partner-dropdown-option:focus-visible {
    outline: none;
    background: rgba(255, 15, 123, 0.08);
    color: #ff0f7b;
}

.tour-partner-dropdown-option.is-selected {
    background: rgba(255, 15, 123, 0.10);
    color: #ff0f7b;
    font-weight: 600;
}

.tour-partner-dropdown-option > i {
    flex-shrink: 0;
    color: #ff0f7b;
    font-size: 12px;
    opacity: 0;
}

.tour-partner-dropdown-option.is-selected > i {
    opacity: 1;
}

.tour-partner-dropdown-option:disabled {
    color: #94a3b8;
    cursor: default;
}

/* Validation and disabled states */

.tour-partner-dropdown.is-invalid
.tour-partner-dropdown-trigger {
    border-color: #dc2626;
}

.tour-partner-dropdown-trigger:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .tour-partner-dropdown-trigger,
    .tour-partner-dropdown-trigger > i,
    .tour-partner-dropdown-option {
        transition: none;
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .tour-partner-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
    }

    .tour-partner-heading p {
        font-size: 15px;
    }

    .tour-partner-hero {
        padding: 55px 0;
    }

    .tour-partner-company-list,
    .tour-partner-choice-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 520px) {

    .tour-partner-heading h1 {
        font-size: 40px;
    }

    .tour-partner-intro-card {
        align-items: flex-start;
        padding: 18px;
    }

    .tour-partner-content {
        padding: 25px 0 55px;
    }

    .tour-partner-card {
        padding: 20px;
    }

    .tour-partner-section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .tour-partner-information-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .tour-partner-information-row strong {
        text-align: left;
    }

    .tour-partner-form-grid {
        grid-template-columns: 1fr;
    }

    .tour-partner-field-full {
        grid-column: auto;
    }

    .tour-partner-choice {
        padding: 20px;
    }

}


/* =========================================================
   TOUR PARTNER - CONTACT PHONE
========================================================= */

.tour-partner-phone-row {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
}

.tour-partner-phone-code-wrap {
    position: relative;
    min-width: 0;
}

.tour-partner-phone-code-trigger {
    width: 100%;
    min-height: 50px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #dce3ed;
    border-radius: 12px;
    background: #ffffff;
    color: #081221;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    cursor: pointer;
}

.tour-partner-phone-code-trigger:hover,
.tour-partner-phone-code-trigger:focus-visible,
.tour-partner-phone-code-trigger[aria-expanded="true"] {
    border-color: #FF0F7B;
}

.tour-partner-phone-code-trigger:focus:not(:focus-visible):not(:hover):not([aria-expanded="true"]) {
    border-color: #DCE3ED;
}

#tour-partner-phone-code-display,
#tour-partner-claim-phone-code-display {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.tour-partner-phone-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.tour-partner-phone-code-trigger > i {
    color: #8a94a5;
    font-size: 11px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.tour-partner-phone-code-trigger[aria-expanded="true"] > i {
    transform: rotate(180deg);
    color: #FF0F7B;
}

.tour-partner-phone-code-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 7px);
    left: 0;
    width: max(250px, 100%);
    max-width: min(320px, 85vw);
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #dce3ed;
    border-radius: 12px;
    background: #ffffff;
}

.tour-partner-phone-code-menu[hidden] {
    display: none !important;
}

.tour-partner-phone-code-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #081221;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
}

.tour-partner-phone-code-option:hover,
.tour-partner-phone-code-option[aria-selected="true"] {
    background: #fff0f7;
    color: #ff0f7b;
}

#tour-partner-phone {
    min-width: 0;
}

/* =========================================================
   TOUR PARTNER - LOCATION SEARCH
========================================================= */

.tour-partner-location-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.tour-partner-location-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(
        90deg,
        #fdb52b 0%,
        #ff0f7b 100%
    );
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.tour-partner-location-search-button:hover {
    opacity: 0.92;
}

.tour-partner-location-search-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.tour-partner-location-results {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 270px;
    margin-top: 10px;
    padding: 7px;
    overflow-y: auto;
    border: 1px solid #dce3ed;
    border-radius: 12px;
    background: #ffffff;
}

.tour-partner-location-results[hidden],
.tour-partner-location-selected[hidden] {
    display: none !important;
}

.tour-partner-location-result {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #081221;
    text-align: left;
    cursor: pointer;
}

.tour-partner-location-result:hover,
.tour-partner-location-result:focus-visible {
    background: #fff0f7;
}

.tour-partner-location-result > i {
    margin-top: 4px;
    color: #ff0f7b;
    font-size: 14px;
}

.tour-partner-location-result > span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tour-partner-location-result strong {
    color: #081221;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.tour-partner-location-result small {
    color: #737b88;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    line-height: 1.6;
}

.tour-partner-location-empty {
    margin: 0;
    padding: 14px;
    color: #737b88;
    font-size: 12px;
    text-align: center;
}

.tour-partner-location-selected {
    margin: 10px 0 0;
    padding: 12px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    background: #f0fdf4;
    color: #166534;
    font-size: 11px;
    line-height: 1.7;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 600px) {

    .tour-partner-phone-row {
        grid-template-columns: 125px minmax(0, 1fr);
    }

    .tour-partner-location-search-row {
        grid-template-columns: 1fr;
    }

    .tour-partner-location-search-button {
        width: 100%;
    }

    .tour-partner-phone-code-menu {
        max-width: min(300px, 85vw);
    }

}

@media (prefers-reduced-motion: reduce) {

    .tour-partner-phone-code-trigger > i,
    .tour-partner-location-search-button {
        transition: none;
    }

}


/* =========================================================
   DISMISSIBLE NOTIFICATIONS
========================================================= */

.tour-partner-message,
.tour-partner-location-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tour-partner-message > span,
.tour-partner-location-selected > span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.tour-partner-notice-close {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;
    border-radius: 8px;

    background: transparent;
    color: inherit;

    font-family: inherit;
    font-size: 13px;

    cursor: pointer;
}

.tour-partner-notice-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.tour-partner-notice-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.tour-partner-page [hidden] {
    display: none !important;
}


