/* Trip Booking Pro - Member dashboard & login modal */

.tbp-member-dashboard-wrap,
.tbp-member-dashboard-wrap * {
    box-sizing: border-box;
}

.tbp-member-dashboard-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    margin-top: 150px;
}

/* Hide duplicate theme / Elementor page title on member account pages */
body.tbp-member-account-page .entry-header,
body.tbp-member-account-page .page-header,
body.tbp-member-account-page .ast-single-entry-header,
body.tbp-member-account-page .elementor-widget-theme-post-title,
body.tbp-member-account-page .elementor-location-header + .elementor-location-single .elementor-widget-theme-post-title {
    display: none !important;
}

.tbp-member-dashboard {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    width: 100%;
}

.tbp-member-sidebar {
    padding-top: 8px;
}

.tbp-member-nav-scroll {
    width: 100%;
}

.tbp-member-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tbp-member-nav__link {
    display: block;
    color: #333;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    padding: 8px 0;
    border: 0;
    background: transparent;
    transition: color 0.2s ease;
}

.tbp-member-nav__text--short {
    display: none;
}

.tbp-member-view-title {
    margin: 0 0 24px;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.tbp-member-content {
    min-width: 0;
    width: 100%;
}

.tbp-member-nav__link:hover {
    color: #d85a2a;
}

.tbp-member-nav__link.is-active {
    color: #d85a2a;
    font-weight: 700;
}

.tbp-member-nav__link--logout {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid #ececec;
}

.tbp-member-panel {
    width: 100%;
}

.tbp-member-heading {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    color: #111;
}

.tbp-member-lead {
    margin: 0 0 28px;
    color: #555;
    max-width: 640px;
    line-height: 1.6;
}

.tbp-member-note {
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
}

.tbp-member-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.tbp-member-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    min-width: 0;
}

.tbp-member-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.tbp-member-field label {
    font-size: 14px;
    color: #222;
}

.tbp-member-field input,
.tbp-member-field textarea,
.tbp-member-field select {
    width: 100%;
    max-width: 100%;
    border: 1px solid #111;
    border-radius: 8px;
    background: #ececec;
    padding: 14px 16px;
    font: inherit;
    color: #111;
}

.tbp-member-field input:disabled {
    opacity: 0.7;
}

.tbp-member-form--narrow {
    max-width: 520px;
}

.tbp-member-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
}

.tbp-member-btn--dark {
    background: #111;
    color: #fff;
}

.tbp-member-btn--dark:hover {
    background: #333;
    color: #fff;
}

.tbp-member-btn--full,
.tbp-login-form .tbp-member-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    min-height: 48px;
    border-radius: 8px;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.tbp-profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 28px;
}

.tbp-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tbp-member-form .tbp-member-btn {
    margin-top: 8px;
}

.tbp-member-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

.tbp-member-form-message,
.tbp-member-form-error {
    margin: 0 0 12px;
    font-size: 14px;
}

.tbp-member-form-message.is-success,
.tbp-member-form-error.is-success {
    color: #1b7f3a;
}

.tbp-member-form-message.is-error,
.tbp-member-form-error.is-error {
    color: #b42318;
}

.tbp-auth-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}

.tbp-auth-spinner > span {
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: tbp-auth-spin 0.65s linear infinite;
}

.tbp-login-form.is-auth-loading .tbp-member-btn--full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    pointer-events: none;
}

@keyframes tbp-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.tbp-member-empty {
    color: #666;
    margin: 24px 0;
}

.tbp-member-cards .tbp-card {
    margin-bottom: 24px;
}

.tbp-member-cta {
    margin-top: 48px;
    padding-top: 32px;
}

.tbp-member-cta h3 {
    margin: 0 0 8px;
    font-size: 28px;
}

.tbp-member-cta p {
    margin: 0 0 20px;
    color: #555;
}

.tbp-member-cta--center {
    text-align: center;
}

.tbp-member-guest {
    max-width: 520px;
    margin: 60px auto;
    text-align: center;
    padding: 40px 24px;
}

.tbp-member-booking-card {
    background: #ececec;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.tbp-member-booking-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 24px;
    align-items: stretch;
}

.tbp-member-booking-card__badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tbp-member-booking-card__price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #d85a2a;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.tbp-member-booking-card__price.is-pending {
    background: #666;
}

.tbp-member-booking-card__ref {
    margin: 0 0 10px;
    font-size: 13px;
    color: #666;
}

.tbp-member-booking-card__image img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: contain;
    border-radius: 8px;
}

.tbp-password-wrap {
    position: relative;
}

.tbp-password-wrap input {
    padding-right: 48px;
}

.tbp-toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #666;
    cursor: pointer;
    padding: 4px;
}

/* Login modal */
.tbp-login-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.tbp-login-modal.is-open {
    display: flex;
}

.tbp-login-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.tbp-login-modal__dialog {
    position: relative;
    width: min(100%, 416px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #ececec;
    border-radius: 16px;
    padding: 32px 28px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.tbp-login-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #111;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#tbp-login-modal .tbp-login-modal__close:hover,
#tbp-login-modal .tbp-login-modal__close:focus-visible {
    background: #111;
    color: #fff;
    outline: none;
    box-shadow: none;
}

.tbp-login-modal h2 {
    margin: 0 0 24px;
    padding-right: 44px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    color: #111;
}

.tbp-login-form .tbp-member-field input {
    background: #f5f5f5;
    border: 1px solid transparent;
}

.tbp-login-form .tbp-member-field input:focus {
    outline: none;
    border-color: #111;
    background: #fff;
}

.tbp-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: #666;
    font-size: 13px;
}

.tbp-login-divider::before,
.tbp-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #bbb;
}

.tbp-social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tbp-google-signin-wrap {
    position: relative;
    width: 100%;
    min-height: 48px;
}

.tbp-google-signin-placeholder {
    position: relative;
    z-index: 1;
}

.tbp-google-signin-mount {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 8px;
    opacity: 0.01;
}

.tbp-google-signin-mount:empty {
    display: none;
}

.tbp-google-signin-wrap.has-google-overlay .tbp-google-signin-placeholder {
    pointer-events: none;
}

.tbp-google-signin-mount > div,
.tbp-google-signin-mount iframe {
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
}

.tbp-social-btn,
.tbp-social-btn-wrap > div {
    width: 100%;
}

.tbp-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #f5f5f5;
    color: #111;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.tbp-social-btn__icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.tbp-social-btn__icon--google {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234285F4' d='M43.611 20.083H42V20H24v8h11.303C33.654 32.657 29.083 36 24 36c-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C33.64 6.053 29.082 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z'/%3E%3C/svg%3E");
}

.tbp-login-forgot {
    text-align: center;
    margin: 16px 0 0;
}

.tbp-login-forgot a,
.tbp-login-switch .tbp-link-btn {
    color: #111;
    text-decoration: underline;
}

.tbp-login-switch {
    text-align: center;
    margin: 24px 0 0;
    color: #444;
}

.tbp-link-btn {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    color: #111;
}

body.tbp-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .tbp-member-dashboard {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 0 40px;
        max-width: 100%;
    }

    .tbp-member-sidebar {
        position: sticky;
        top: 0;
        z-index: 30;
        margin: 0;
        padding: 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    }

    .tbp-member-nav-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x;
        padding: 10px 16px;
        margin: 0;
        max-width: 100%;
    }

    .tbp-member-nav-scroll::-webkit-scrollbar {
        display: none;
    }

    .tbp-member-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
        width: max-content;
        min-width: 0;
        padding: 0;
    }

    .tbp-member-nav__text--full {
        display: none;
    }

    .tbp-member-nav__text--short {
        display: inline;
    }

    .tbp-member-nav__link {
        flex: 0 0 auto;
        padding: 8px 14px;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.2;
        color: #374151;
        background: #f3f4f6;
        white-space: nowrap;
    }

    .tbp-member-nav__link:hover {
        color: #d85a2a;
        background: #eceff3;
    }

    .tbp-member-nav__link.is-active {
        color: #ffffff;
        background: #d85a2a;
        font-weight: 600;
    }

    .tbp-member-nav__link--logout {
        margin-top: 0;
        padding-top: 8px;
        border-top: 0;
        background: #ffffff;
        border: 1px solid #d1d5db;
    }

    .tbp-member-content {
        padding: 16px 16px 0;
        min-width: 0;
    }

    .tbp-member-view-title {
        display: none;
    }

    .tbp-member-heading {
        font-size: 1.35rem;
        margin-bottom: 8px;
    }

    .tbp-member-lead {
        margin-bottom: 18px;
        font-size: 0.92rem;
    }

    .tbp-member-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tbp-member-field {
        min-width: 0;
    }

    .tbp-member-booking-card__body {
        grid-template-columns: 1fr;
    }

    .tbp-profile-avatar-wrap {
        width: 120px !important;
        margin-bottom: 20px !important;
    }

    .tbp-profile-avatar {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
    }

    .tbp-member-btn {
        width: 100%;
    }
}

/* Hide duplicate in-panel headings when the shell already shows the view title */
.tbp-member-content:has(.tbp-member-view-title) .tbp-member-panel > .tbp-member-heading:first-child {
    display: none;
}

/* Hide Elementor heading placed directly above the member account shortcode */
body.tbp-member-account-page .elementor-widget-heading:has(+ .elementor-widget-shortcode .tbp-member-dashboard-wrap) {
    display: none !important;
}

/* Navbar login / signup shortcode triggers */
.tbp-nav-auth-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

a.tbp-nav-auth-btn,
a.login-btn.tbp-open-login-modal,
a.signup-btn.tbp-open-login-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a.tbp-nav-auth-btn--signup{
    background: #111111;
    color: #ffffff !important;
}

a.tbp-nav-auth-btn--signup:hover{
    background: #c9c9c9;
    color: #111111 !important;
}

a.login-btn.tbp-open-login-modal{
    background: #c9c9c9;
    color: #111111 !important;
}

a.tbp-nav-auth-btn--login,
a.tbp-nav-auth-btn--account,
a.signup-btn.tbp-open-login-modal {
    background: #111111;
    color: #ffffff !important;
}

a.tbp-nav-auth-btn--login:hover,
a.tbp-nav-auth-btn--account:hover,
a.login-btn.tbp-open-login-modal:hover,
a.signup-btn.tbp-open-login-modal:hover {
    background: #000000;
    color: #ffffff !important;
}

/* Hide signup buttons when user is logged in */
body.logged-in .tbp-nav-auth-btn--signup,
body.logged-in .tbp-open-register-modal {
    display: none !important;
}

/* Hide Elementor guest auth icons when logged in (#tbp-login / #tbp-register) */
body.logged-in .elementor-widget-icon:has(a[href="#tbp-login"]),
body.logged-in .elementor-widget-icon:has(a[href="#tbp-register"]),
body.logged-in .elementor-widget-icon:has(a[href$="#tbp-login"]),
body.logged-in .elementor-widget-icon:has(a[href$="#tbp-register"]),
body.logged-in .tbp-mobile-auth-hidden {
    display: none !important;
}

/* Mobile header — logged-in account (avatar + name, like desktop) */
.tbp-mobile-header-account {
    display: none;
    align-items: center;
    vertical-align: middle;
}

.tbp-mobile-header-account.is-mounted {
    display: inline-flex;
}

.tbp-mobile-header-account .tbp-nav-account__name,
.tbp-mobile-header-account .tbp-nav-account__chevron {
    display: inline !important;
}

.tbp-mobile-header-account .tbp-nav-account__toggle {
    padding: 2px 4px;
    gap: 8px;
}

.tbp-mobile-header-account .tbp-nav-account__avatar,
.tbp-mobile-header-account img.tbp-nav-account__avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover;
}

.tbp-mobile-header-account .tbp-nav-account__name {
    font-size: 13px;
    font-weight: 600;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbp-mobile-header-account .tbp-nav-account__menu {
    right: 0;
    left: auto;
}

@media (max-width: 380px) {
    .tbp-mobile-header-account .tbp-nav-account__name {
        max-width: 72px;
    }
}

/* Mobile icon auth trigger — place in header / behind menu icon */
.tbp-nav-auth-icon-wrap {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

button.tbp-nav-auth-icon,
button.tbp-nav-auth-icon--guest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #1a1a1a;
    cursor: pointer;
    line-height: 0;
    transition: background-color 0.2s ease;
}

button.tbp-nav-auth-icon:hover,
button.tbp-nav-auth-icon:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}

.tbp-nav-auth-icon__svg {
    display: block;
    width: 22px;
    height: 22px;
}

.tbp-nav-auth-icon-wrap--logged-in .tbp-nav-account__name,
.tbp-nav-auth-icon-wrap--logged-in .tbp-nav-account__chevron {
    display: none;
}

.tbp-nav-auth-icon-wrap--logged-in .tbp-nav-account__toggle {
    padding: 2px;
}

.tbp-nav-auth-icon-wrap--logged-in .tbp-nav-account__menu {
    right: 0;
    left: auto;
}

/* -----------------------------------------
   LOGGED-IN ACCOUNT DROPDOWN (header)
----------------------------------------- */
.tbp-nav-account {
    position: relative;
    display: inline-flex;
}

.tbp-nav-account__toggle {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 4px 6px;
    border: none !important;
    background: transparent !important;
    color: #1a1a1a !important;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
}

.tbp-nav-account__avatar,
img.tbp-nav-account__avatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    min-height: 34px;
    max-width: 34px !important;
    max-height: 34px !important;
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.tbp-nav-account__name {
    white-space: nowrap;
}

.tbp-nav-account__chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.tbp-nav-account.is-open .tbp-nav-account__chevron {
    transform: rotate(180deg);
}

.tbp-nav-account__menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 99999;
    min-width: 230px;
    padding: 18px 22px;
    background: #ECF0F1;
    border-radius: 10px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.5);
}

.tbp-nav-account.is-open .tbp-nav-account__menu {
    display: block;
}

.tbp-nav-account__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 0;
    color: #1a1a1a !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.tbp-nav-account__item:hover {
    color: #d75327 !important;
}

.tbp-nav-account__item--logout {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid #ececec;
}

@media (max-width: 600px) {
    .tbp-nav-account__menu {
        right: auto;
        left: 0;
    }
}

.tbp-pass-benefits-list {
    margin: 8px 0 14px;
    padding-left: 18px;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}

.tbp-member-pass-code {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 10px 0 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px dashed #c8c8c8;
    border-radius: 8px;
    max-width: 100%;
}

.tbp-member-pass-code__label {
    color: #666;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tbp-member-pass-code__value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #111;
    text-transform: uppercase;
    word-break: break-all;
}

.tbp-member-pass-card.is-inactive .tbp-member-booking-card__price {
    background: #f0f0f0;
    color: #666;
}