/* BookDirect guest portal — inherits tenant theme via CSS vars set by _layout.php */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
    background: var(--bg, #ffffff);
    color: var(--text, #0f172a);
    /* the site's body font (Fonts & Colours › Body Text, 5 Nov 2026): Inter unless the host picked one */
    font-family: var(--bd-font-body, 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    line-height: 1.5;
}
a { color: var(--primary, #1e3a5f); text-decoration: none; }
a:hover { text-decoration: underline; }

.gp-shell { display: flex; flex-direction: column; min-height: 100vh; }
.gp-main { flex: 1; padding: 32px var(--bd-gutter, 16px) 56px; max-width: var(--bd-content-w, 1280px); width: 100%; margin: 0 auto; }

/* Header/nav/footer chrome moved to assets/css/site-chrome.css (shared with the frontpage). */

.gp-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 28px; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06); }
.gp-card--narrow { max-width: 440px; margin: 40px auto; }

.gp-title { margin: 0 0 6px; font-size: 1.5rem; font-weight: 700; color: var(--primary, #1e3a5f); }
.gp-subtitle { margin: 0 0 20px; color: #64748b; font-size: 0.95rem; }

.gp-row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }

.gp-form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.gp-field { display: flex; flex-direction: column; gap: 6px; }
.gp-field span { font-size: 0.8rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }
.gp-field input { padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 1rem; font-family: inherit; color: var(--text, #0f172a); background: #fff; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.gp-field input:focus { border-color: var(--primary, #0d2c5e); box-shadow: 0 0 0 3px rgba(13, 44, 94, 0.12); }

.gp-btn { display: inline-block; padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; font-family: inherit; text-align: center; text-decoration: none; transition: opacity 0.15s; }
.gp-btn--primary { background: var(--btn-bg, #1e3a5f); color: var(--btn-text, #ffffff); }
.gp-btn--primary:hover { opacity: 0.9; text-decoration: none; }
.gp-btn--outline { background: #ffffff; color: var(--primary, #1e3a5f); border: 1px solid var(--primary, #1e3a5f); }
.gp-btn--ghost { background: rgba(13, 44, 94, 0.08); color: var(--primary, #1e3a5f); padding: 6px 14px; font-size: 0.85rem; }
.gp-btn--ghost:hover { background: rgba(13, 44, 94, 0.15); text-decoration: none; }

.gp-link-row { margin: 18px 0 0; text-align: center; font-size: 0.9rem; }
.gp-link-row a { color: var(--primary, #1e3a5f); }

.gp-error { padding: 12px 14px; margin: 0 0 16px; background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px; color: #991b1b; font-size: 0.9rem; }
.gp-success { padding: 12px 14px; margin: 0 0 16px; background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px; color: #166534; font-size: 0.9rem; }

.gp-empty { padding: 40px 16px; text-align: center; color: #64748b; }
.gp-empty p { margin: 0 0 16px; }

.gp-bookings { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.gp-booking { padding: 18px; border: 1px solid #e2e8f0; border-radius: 12px; background: #ffffff; }
.gp-booking__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 14px; }
.gp-booking__head h2 { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--text, #0f172a); }
.gp-booking__ref { margin: 4px 0 0; font-size: 0.78rem; color: #94a3b8; }

.gp-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; color: #ffffff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.gp-booking__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0; padding: 0; }
.gp-booking__grid div { display: flex; flex-direction: column; }
.gp-booking__grid dt { font-size: 0.7rem; font-weight: 600; color: #94a3b8; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px; }
.gp-booking__grid dd { margin: 0; font-size: 0.95rem; color: var(--text, #0f172a); font-weight: 500; }
.gp-booking__grid .gp-meta { font-weight: 400; color: #64748b; font-size: 0.85rem; }

/* Footer sits in a tinted strip stretched edge-to-edge of the card so it
   reads as a distinct "actions" row under the booking details. */
.gp-booking__footer {
    margin: 14px -18px -18px;
    padding: 14px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Success / info banner shown above the bookings list. */
.gp-notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    line-height: 1.45;
}
.gp-notice--success {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #065f46;
}

.gp-link-btn { background: none; border: none; padding: 0; color: var(--primary, #1e3a5f); cursor: pointer; font-family: inherit; font-size: 0.85rem; text-decoration: underline; }
.gp-link-btn:hover { opacity: 0.8; }
.gp-terms { width: 100%; margin-top: 10px; padding: 12px 14px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
.gp-terms pre { margin: 0; font-family: inherit; font-size: 0.85rem; color: #475569; white-space: pre-wrap; line-height: 1.55; }

@media (max-width: 540px) {
    .gp-main { padding: 20px var(--bd-gutter, 12px) 40px; }   /* the site's gutter, so a phone sees the same column as the site's own pages (9 Oct) */
    .gp-card { padding: 20px; border-radius: 12px; }
    .gp-card--narrow { margin: 16px auto; }
}
