/* Loyalty portal — brand-driven digital card + shell
   Brand colors come from travelstore styling.php (--main-color etc).
   Layout utilities live in Tailwind classes in the markup; this file
   covers wave/card chrome that utilities cannot express cleanly. */

[v-cloak] { display: none; }

.lp-body {
    min-height: 100vh;
    background:
        radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--main-color, #0f3d2e) 12%, transparent), transparent),
        linear-gradient(180deg, #f7f5ef 0%, #f3f1ea 40%, #eef2f0 100%);
}

.lp-shell {
    width: min(960px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

.lp-input {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    background: #fff;
    outline: none;
}
.lp-input:focus {
    border-color: var(--main-color, #0f3d2e);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--main-color, #0f3d2e) 18%, transparent);
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    padding: 0.7rem 1rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.lp-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.lp-btn-primary {
    background: var(--main-color, #0f3d2e);
    color: #fff;
}
.lp-btn-primary:hover:not(:disabled) {
    background: var(--maindark-color, #0a2a1a);
}
.lp-btn-ghost {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
}
.lp-btn-ghost:hover:not(:disabled) {
    border-color: #d1d5db;
    background: #f9fafb;
}
.lp-btn-sm {
    padding: 0.35rem 0.7rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
}

.lp-tab {
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.lp-tab.active {
    color: var(--main-color, #0f3d2e);
    border-bottom-color: var(--main-color, #0f3d2e);
}

.lp-stat {
    border-radius: 1rem;
    border: 1px solid #e8e6de;
    background: #fff;
    padding: 1rem 1.15rem;
}
.lp-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
}
.lp-stat-value {
    margin-top: 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--maindark-color, #0a2a1a);
}

.lp-empty {
    border: 1px dashed #d1d5db;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    background: rgba(255,255,255,0.6);
}

.lp-activity,
.lp-offer {
    border-radius: 1rem;
    border: 1px solid #ebe8df;
    background: #fff;
    padding: 1rem 1.1rem;
}
.lp-offer {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.lp-offer-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--main-color, #0f3d2e) 12%, #fff);
    color: var(--main-color, #0f3d2e);
    flex-shrink: 0;
}

/* ---- Digital loyalty card ---- */
.lp-card {
    max-width: 720px;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow:
        0 18px 40px rgba(15, 40, 30, 0.18),
        0 2px 6px rgba(0,0,0,0.06);
    background: #f6f3e8;
}

.lp-card-top {
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--maindark-color, #0a2a1a) 88%, #000) 0%, var(--main-color, #0f3d2e) 55%, color-mix(in srgb, var(--main-color, #0f3d2e) 70%, #1a5c45) 100%);
    color: #f3ead0;
    padding: 1.35rem 1.4rem 0.5rem;
    position: relative;
}

.lp-card-top-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.lp-card-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.lp-card-logo {
    height: 2.5rem;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
    background: rgba(255,255,255,0.08);
    border-radius: 0.4rem;
    padding: 0.2rem;
}
.lp-card-brand-name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
}
.lp-card-brand-tag {
    margin-top: 0.15rem;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(243, 234, 208, 0.75);
}

.lp-card-title-block { text-align: right; }
.lp-card-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.6rem, 4vw, 2.15rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d4b56a;
    line-height: 1;
}
.lp-card-subtitle {
    margin-top: 0.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(243, 234, 208, 0.7);
}

.lp-card-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
    .lp-card-benefits {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.lp-card-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(243, 234, 208, 0.9);
    line-height: 1.25;
}
.lp-card-benefit-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 181, 106, 0.55);
    color: #d4b56a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.lp-card-wave {
    display: block;
    width: 100%;
    height: 2.25rem;
    margin-top: -1px;
}
.lp-card-wave path {
    fill: #f6f3e8;
}

.lp-card-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0.25rem 1.4rem 0.5rem;
    background:
        radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--main-color, #0f3d2e) 6%, transparent), transparent 40%),
        #f6f3e8;
}
@media (min-width: 640px) {
    .lp-card-bottom {
        grid-template-columns: 1.4fr 0.8fr;
        align-items: center;
    }
}

.lp-card-row {
    display: grid;
    grid-template-columns: 1.6rem 4.5rem 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(15, 61, 46, 0.08);
    font-size: 0.9rem;
}
.lp-card-row:last-child { border-bottom: 0; }
.lp-card-row-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: var(--main-color, #0f3d2e);
    color: #f3ead0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}
.lp-card-row-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
}
.lp-card-row-value {
    font-weight: 600;
    color: #1f2937;
    word-break: break-word;
}

.lp-card-seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
}
.lp-card-seal-circle {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--main-color, #0f3d2e) 45%, #d4b56a);
    background:
        radial-gradient(circle at 35% 30%, #fff 0%, color-mix(in srgb, var(--mainlight-color, #f5f3e7) 70%, #fff) 55%, color-mix(in srgb, var(--main-color, #0f3d2e) 12%, #fff) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 6px rgba(255,255,255,0.55);
}
.lp-card-seal-tier {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--maindark-color, #0a2a1a);
    padding: 0 0.5rem;
    line-height: 1.15;
}
.lp-card-seal-script {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    color: #6b7280;
}

.lp-card-footer {
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: #9ca3af;
    padding: 0.35rem 1.25rem 1rem;
}

/* Profile / Book a stay panels */
.lp-panel {
    border-radius: 1.25rem;
    border: 1px solid #ebe8df;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 40, 30, 0.06);
}
.lp-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid #f0ece3;
    background: linear-gradient(180deg, #fbfaf6 0%, #fff 100%);
}
.lp-panel-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--main-color, #0f3d2e) 12%, #fff);
    color: var(--main-color, #0f3d2e);
    flex-shrink: 0;
}
.lp-panel-body {
    padding: 1.25rem 1.35rem 1.4rem;
}
.lp-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.45rem;
}
.lp-input-locked {
    border: 1px solid #ececec;
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    background: #f7f7f5;
    color: #6b7280;
    font-size: 0.95rem;
    word-break: break-word;
}

.lp-property-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}
@media (min-width: 640px) {
    .lp-property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.lp-property-card {
    position: relative;
    text-align: left;
    border: 1px solid #e7e3d8;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem 0.9rem 1rem;
    background: #fbfaf7;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.lp-property-card:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--main-color, #0f3d2e) 35%, #e7e3d8);
}
.lp-property-card.selected {
    border-color: var(--main-color, #0f3d2e);
    background: color-mix(in srgb, var(--main-color, #0f3d2e) 8%, #fff);
    box-shadow: 0 0 0 1px var(--main-color, #0f3d2e);
}
.lp-property-card:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.lp-property-name {
    display: block;
    font-weight: 650;
    color: #1f2937;
    font-size: 0.95rem;
    padding-right: 1.5rem;
}
.lp-property-meta {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: #9ca3af;
}
.lp-property-check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    border: 1px solid #d6d3c8;
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    background: #fff;
}
.lp-property-card.selected .lp-property-check {
    background: var(--main-color, #0f3d2e);
    border-color: var(--main-color, #0f3d2e);
    color: #fff;
}

.lp-date-summary {
    display: flex;
    align-items: center;
    border-radius: 0.85rem;
    border: 1px solid #ebe8df;
    background: #fbfaf7;
    padding: 0.75rem 0.9rem;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 600;
}
input[type="date"].lp-input {
    min-height: 2.75rem;
}

/* Login / Join tabs */
.lp-auth-tabs {
    background: #f6f5f0;
    border-bottom: 1px solid #ebe8df;
}
.lp-auth-tab {
    padding: 0.9rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.lp-auth-tab:hover {
    color: var(--maindark-color, #0a2a1a);
    background: rgba(255, 255, 255, 0.55);
}
.lp-auth-tab.is-active {
    color: var(--main-color, #0f3d2e);
    background: #fff;
    border-bottom-color: var(--main-color, #0f3d2e);
}

/* intl-tel-input inside loyalty portal card */
.lp-phone.iti {
    width: 100%;
    display: block;
}
#loyalty-portal .iti {
    width: 100%;
}
#loyalty-portal .iti input.lp-input,
#loyalty-portal .iti input.lp-phone {
    width: 100%;
    padding-left: 90px;
}
#loyalty-portal .iti__flag-container {
    border-radius: 0.75rem 0 0 0.75rem;
}
#loyalty-portal .iti__selected-flag {
    border-radius: 0.75rem 0 0 0.75rem;
    background: #fafaf8;
}
#loyalty-portal .iti--separate-dial-code .iti__selected-flag {
    background: #fafaf8;
}

/* PMS book engine — step rail + rate cards (layout utilities alone can't express selected/hover chrome) */
.lp-book-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.lp-book-steps span.active {
    color: var(--main-color, #0f3d2e);
}
.lp-rate-card {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid #e8e6de;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lp-rate-card:hover {
    border-color: var(--main-color, #0f3d2e);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--main-color, #0f3d2e) 12%, transparent);
}

