/* =========================================================
   CARIPULSE MY TOURS
========================================================= */

.my-tours-page [hidden],
.my-tours-modal[hidden] {
    display: none !important;
}

.my-tours-page {
    width: 100%;
    min-height: 70vh;
    background: #ffffff;
    color: #081221;
    font-family: "Poppins", sans-serif;
}

.my-tours-content {
    width: 100%;
}

/* STATES */

.my-tours-state {
    min-height: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 70px 24px;
    text-align: center;
}

.my-tours-state > i {
    color: #ff0f7b;
    font-size: 34px;
}

.my-tours-state strong {
    color: #081221;
    font-size: 21px;
    font-weight: 700;
}

.my-tours-state span {
    max-width: 520px;
    color: #687280;
    font-size: 13px;
    line-height: 1.7;
}

/* TOP BAR */

.my-tours-topbar {
    padding: 28px 0 18px;
}

.my-tours-topbar .container {
    display: flex;
    justify-content: flex-end;
}

.my-tours-explore-link,
.my-tours-empty-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid #dfe4ec;
    border-radius: 999px;
    background: #ffffff;
    color: #081221;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}

.my-tours-explore-link:hover,
.my-tours-empty-button:hover {
    border-color: #ff0f7b;
    background: #fff7fb;
}

.my-tours-explore-link i {
    color: #ff0f7b;
}

/* HEADING */

.my-tours-heading-section {
    padding: 10px 0 31px;
}

.my-tours-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 31px;
    border-bottom: 1px solid #e8ecf2;
}

.my-tours-heading-row h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 800;
}

.my-tours-heading-row p {
    margin: 8px 0 0;
    color: #687280;
    font-size: 14px;
    line-height: 1.7;
}

.my-tours-count {
    flex-shrink: 0;
    color: #687280;
    font-size: 12px;
    font-weight: 600;
}

/* BOOKINGS */

.my-tours-section {
    padding: 0 0 110px;
}

.my-tours-section-heading {
    margin-bottom: 19px;
}

.my-tours-section-heading h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.my-tours-list {
    display: grid;
    gap: 16px;
}

/* CARD */

.my-tour-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    border: 1px solid #e6eaf0;
    border-radius: 18px;
    background: #ffffff;
}

.my-tour-image {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00053d, #163280);
    color: #fdb52b;
    font-size: 48px;
}

.my-tour-image {
    overflow: hidden;
}

.my-tour-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .my-tour-image img {
        height: 200px;
        min-height: 200px;
    }
}

.my-tour-body {
    min-width: 0;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
}

.my-tour-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.my-tour-title {
    min-width: 0;
}

.my-tour-title h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}

.my-tour-company {
    margin-top: 7px;
    color: #687280;
    font-size: 12px;
}

.my-tour-company i {
    margin-right: 5px;
    color: #ff0f7b;
}

.my-tour-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 7px;
    background: #edf7f1;
    color: #187447;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-transform: capitalize;
}

.my-tour-status.is-cancelled {
    background: #fff0f1;
    color: #c62828;
}

.my-tour-status.is-pending {
    background: #fff6e5;
    color: #a76200;
}

.my-tour-status.is-completed {
    background: #eef3ff;
    color: #2455c6;
}

/* DETAILS */

.my-tour-details {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.my-tour-detail {
    min-width: 0;
    padding: 14px 13px;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
}

.my-tour-detail span {
    display: block;
    margin-bottom: 5px;
    color: #7a8391;
    font-size: 10px;
    font-weight: 600;
}

.my-tour-detail strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* FOOTER */

.my-tour-footer {
    margin-top: auto;
    padding-top: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.my-tour-payment span {
    display: block;
    color: #7a8391;
    font-size: 10px;
}

.my-tour-payment strong {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

.my-tour-actions {
    display: flex;
    gap: 10px;
}

.my-tour-view-button {
    min-height: 43px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(120deg, #fdb52b, #ff0f7b);
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* EMPTY */

.my-tours-empty {
    padding: 70px 24px;
    border: 1px solid #e6eaf0;
    border-radius: 18px;
    text-align: center;
}

.my-tours-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff0f6;
    color: #ff0f7b;
    font-size: 24px;
}

.my-tours-empty h2 {
    margin: 0;
    font-size: 22px;
}

.my-tours-empty p {
    max-width: 520px;
    margin: 8px auto 22px;
    color: #687280;
    font-size: 13px;
    line-height: 1.7;
}

/* RESERVATION DETAILS MODAL */

.my-tours-modal {
    position: fixed;
    inset: 0;
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.my-tours-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 33, .68);
}

.my-tours-dialog {
    position: relative;
    width: 100%;
    max-width: 650px;
    max-height: min(760px, 90dvh);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    background: #ffffff;
    color: #081221;
    font-family: "Poppins", sans-serif;
}

.my-tours-dialog-header {
    flex-shrink: 0;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e8ecf2;
}

.my-tours-dialog-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.my-tours-dialog-close {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid #e3e8ef;
    border-radius: 50%;
    background: #ffffff;
    color: #081221;
    cursor: pointer;
}

.my-tours-dialog-content {
    min-height: 0;
    overflow-y: auto;
    padding: 12px 28px 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.my-tours-dialog-content::-webkit-scrollbar {
    display: none;
}

.my-tours-dialog-row {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    border-bottom: 1px solid #e8ecf2;
}

.my-tours-dialog-row span {
    flex-shrink: 0;
    color: #687280;
    font-size: 12px;
}

.my-tours-dialog-row strong {
    min-width: 0;
    text-align: right;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.my-tours-dialog-footer {
    flex-shrink: 0;
    padding: 20px 28px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #e8ecf2;
}

.my-tours-dialog-done {
    min-height: 43px;
    padding: 0 22px;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    background: #ffffff;
    color: #081221;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

body.my-tours-modal-open {
    overflow: hidden;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .my-tour-card {
        grid-template-columns: 1fr;
    }

    .my-tour-image {
        min-height: 150px;
    }

}

@media (max-width: 600px) {

    .my-tours-heading-row,
    .my-tour-top,
    .my-tour-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .my-tours-count {
        flex-shrink: 1;
    }

    .my-tour-body {
        padding: 20px;
    }

    .my-tour-details {
        grid-template-columns: 1fr;
    }

    .my-tour-actions,
    .my-tour-view-button {
        width: 100%;
    }

    .my-tours-dialog-header,
    .my-tours-dialog-footer {
        padding: 18px;
    }

    .my-tours-dialog-content {
        padding: 8px 18px 20px;
    }

    .my-tours-dialog-row {
        flex-direction: column;
        gap: 5px;
    }

    .my-tours-dialog-row strong {
        text-align: left;
    }

}


/* =========================================================
   CARIPULSE MY TOURS — CANCELLATION
========================================================= */

.my-tours-dialog-footer {
    gap: 12px;
    flex-wrap: wrap;
}

.my-tours-dialog-footer [hidden] {
    display: none !important;
}

.my-tours-cancel-action,
.my-tours-confirm-cancellation {
    min-height: 43px;
    padding: 0 20px;
    border-radius: 12px;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.my-tours-cancel-action {
    margin-right: auto;
    border: 1px solid #f1b7c4;
    background: #fff2f5;
    color: #c62828;
}

.my-tours-confirm-cancellation {
    border: 0;
    background: linear-gradient(
        120deg,
        #fdb52b,
        #ff0f7b
    );
    color: #ffffff;
}

.my-tours-confirm-cancellation:disabled,
.my-tours-cancel-action:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.my-tours-cancellation-dialog {
    max-width: 540px;
    max-height: min(760px, 90dvh);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.my-tours-cancellation-dialog::-webkit-scrollbar {
    display: none;
}

.my-tours-cancellation-content {
    padding: 24px 28px;
}

.my-tours-cancellation-content p {
    margin: 0 0 22px;
    color: #687280;
    font-size: 13px;
    line-height: 1.8;
}

.my-tours-cancellation-content label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
}

.my-tours-cancellation-content textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 110px;
    padding: 14px;
    border: 1px solid #dfe4ec;
    border-radius: 12px;
    background: #ffffff;
    color: #081221;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.my-tours-cancellation-content textarea:focus {
    border-color: #ff0f7b;
}

.my-tours-cancellation-content
.my-tours-cancellation-error {
    margin: 12px 0 0;
    color: #c62828;
    font-size: 12px;
}

.my-tours-cancellation-error[hidden] {
    display: none !important;
}

.my-tour-converted-amount {
    display: block;
    margin-top: 5px;
    color: #687280;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.6;
}

@media (max-width: 600px) {

    .my-tours-cancellation-dialog {
        max-height: 90dvh;
        border-radius: 18px;
    }

    .my-tours-cancellation-content {
        padding: 20px 18px;
    }

    .my-tours-cancellation-content textarea {
        min-height: 100px;
    }

    .my-tours-dialog-footer {
        flex-direction: column;
    }

    .my-tours-dialog-footer button {
        width: 100%;
        margin-right: 0;
    }
}


.my-tour-status-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.my-tour-payment-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-transform: capitalize;
    white-space: nowrap;
}

.my-tour-payment-status.is-paid {
    background: #edf7f1;
    border-color: #d9eee2;
    color: #187447;
}

.my-tour-payment-status.is-unpaid {
    background: #fff8ec;
    border-color: #f5e8d0;
    color: #98600e;
}

@media (max-width: 600px) {
    .my-tour-status-group {
        justify-content: flex-start;
    }
}


/* =========================================================
   CARIPULSE TOUR REVIEWS
========================================================= */

.my-tours-review-open {
    overflow: hidden;
}

.my-tour-review-button,
.my-tour-reviewed-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 999px;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.my-tour-review-button {
    border: 1px solid #FF0F7B;
    background: #FF0F7B;
    color: #FFFFFF;
    cursor: pointer;
}

.my-tour-review-button:hover {
    background: #00053D;
    border-color: #00053D;
}

.my-tour-reviewed-label {
    color: #16803C;
    background: #EAF8EF;
}

.my-tours-review-modal[hidden] {
    display: none !important;
}

.my-tours-review-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: "Poppins", sans-serif;
}

.my-tours-review-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 5, 61, .72);
}

.my-tours-review-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    border-radius: 20px;
    background: #FFFFFF;
}

.my-tours-review-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: 1px solid #DFE4EC;
    border-radius: 50%;
    background: #FFFFFF;
    cursor: pointer;
}

.my-tours-review-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 30px;
    margin-bottom: 28px;
}

.my-tours-review-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 15px;
    background: #FFF0F7;
    color: #FF0F7B;
    font-size: 22px;
}

.my-tours-review-heading h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 700;
    color: #00053D;
}

.my-tours-review-heading p {
    margin: 5px 0 0;
    color: #687280;
    font-size: 13px;
}

.my-tours-review-field {
    margin-bottom: 22px;
}

.my-tours-review-field label {
    display: block;
    margin-bottom: 10px;
    color: #081221;
    font-size: 13px;
    font-weight: 600;
}

.my-tours-review-stars {
    display: flex;
    align-items: center;
    gap: 9px;
}

.my-tours-review-star {
    border: none;
    padding: 4px;
    background: transparent;
    color: #CBD1DB;
    font-size: 29px;
    cursor: pointer;
}

.my-tours-review-star.is-selected {
    color: #FDB52B;
}

#my-tours-review-comment {
    width: 100%;
    min-height: 140px;
    padding: 14px;
    border: 1px solid #DFE4EC;
    border-radius: 12px;
    outline: none;
    resize: vertical;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.7;
}

#my-tours-review-comment:focus {
    border-color: #FF0F7B;
}

.my-tours-review-message {
    margin-bottom: 15px;
    color: #C62828;
    font-size: 12px;
}

.my-tours-review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.my-tours-review-cancel,
.my-tours-review-submit {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.my-tours-review-cancel {
    border: 1px solid #DFE4EC;
    background: #FFFFFF;
    color: #081221;
}

.my-tours-review-submit {
    border: 1px solid #FF0F7B;
    background: #FF0F7B;
    color: #FFFFFF;
}

.my-tours-review-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .my-tours-review-dialog {
        padding: 25px 20px;
    }

    .my-tours-review-actions {
        flex-direction: column-reverse;
    }

    .my-tours-review-actions button {
        width: 100%;
    }
}


