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

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

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

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

.tbp-member-nav__link {
    color: #111;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

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

.tbp-member-nav__link--logout {
    margin-top: 12px;
}

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

.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-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.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%;
    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-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: cover;
    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 {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 24px;
    }

    .tbp-member-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

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

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

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

a.tbp-nav-auth-btn {
    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: #ececec;
    color: #111;
}

a.tbp-nav-auth-btn--signup:hover {
    background: #e0e0e0;
    color: #111;
}

a.tbp-nav-auth-btn--login,
a.tbp-nav-auth-btn--account {
    background: #111;
    color: #fff;
}

a.tbp-nav-auth-btn--login:hover,
a.tbp-nav-auth-btn--account:hover {
    background: #000;
    color: #fff;
}

/* 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;
}
