/* GB.ABH Guidebook Styles
   All colors and fonts use CSS custom properties set server-side in base.html.
   This prevents FOUC — variables are defined inline before this stylesheet loads. */

/* ── CSS Custom Property Defaults ──────────────────────────── */
/* These are overridden by inline :root in base.html (server-side theme values). */
:root {
    --primary-color: #1a1a2e;
    --accent-color: #e91e8c;
    --font-family: Inter, sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    /* Semantic surface tokens (overridden by dark/light mode) */
    --bg: #f8f8fc;
    --bg-card: #ffffff;
    --bg-surface: #f0f0f8;
    --text: #1a1a2e;
    --text-muted: #666680;
    --border: #e0e0f0;
}

/* ── Dark mode ──────────────────────────────────────────────── */
html.dark {
    --bg: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-surface: #252540;
    --text: #e8e8f0;
    --text-muted: #9090b0;
    --border: #333360;
}

html:not(.dark) {
    --bg: #f8f8fc;
    --bg-card: #ffffff;
    --bg-surface: #f0f0f8;
    --text: #1a1a2e;
    --text-muted: #666680;
    --border: #e0e0f0;
}

/* ── Border radius variants ─────────────────────────────────── */
body.radius-sharp   { --radius-sm: 0;    --radius-md: 2px;  --radius-lg: 4px;  }
body.radius-soft    { --radius-sm: 4px;  --radius-md: 8px;  --radius-lg: 16px; }
body.radius-rounded { --radius-sm: 8px;  --radius-md: 16px; --radius-lg: 24px; }

/* ── Nav layout variants ────────────────────────────────────── */
body.nav-top .layout-wrapper {
    flex-direction: column;
}
body.nav-sidebar-left .layout-wrapper {
    flex-direction: row;
}
body.nav-sidebar-right .layout-wrapper {
    flex-direction: row-reverse;
}

/* ── Section display variants ───────────────────────────────── */
.sections-grid .section-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.sections-list .section-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-family, Inter, sans-serif);
}

a { color: var(--accent-color); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

[x-cloak] { display: none !important; }

/* ── App Container ─────────────────────────────────────────── */
.gb-app {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 72px; /* space for bottom nav */
}

/* ── Offline Banner ────────────────────────────────────────── */
.gb-offline-banner {
    background: #f59e0b;
    color: #1a1a2e;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ── Header & Hero ─────────────────────────────────────────── */
.gb-header { position: relative; }

.gb-hero {
    height: 280px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.gb-hero-overlay {
    width: 100%;
    padding: 24px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.gb-hero-no-image {
    background: var(--primary-color);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.gb-property-name {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.gb-property-location {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 4px;
}

/* ── Navigation ────────────────────────────────────────────── */
.gb-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.gb-nav-list {
    display: flex;
    gap: 4px;
    list-style: none;
    white-space: nowrap;
}

.gb-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
    text-decoration: none;
}

.gb-nav-link:hover { background: var(--border); color: var(--primary-color); text-decoration: none; }
.gb-nav-link.active { background: var(--primary-color); color: #fff; }

.gb-nav-icon { font-size: 1rem; }
.gb-nav-label { font-size: 0.8rem; }

/* ── Main Content ──────────────────────────────────────────── */
.gb-main { padding: 0 16px; }

/* ── Section Cards ─────────────────────────────────────────── */
.gb-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.gb-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
}

.gb-section p { margin-bottom: 12px; }

.gb-section ul, .gb-section ol {
    margin: 8px 0 16px 20px;
}

.gb-section li { margin-bottom: 6px; }

/* ── WiFi Section ──────────────────────────────────────────── */
.gb-wifi-card {
    background: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.gb-wifi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.gb-wifi-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-bottom: 16px;
    word-break: break-all;
}

.gb-wifi-copy-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.gb-wifi-copy-btn:hover { background: rgba(255,255,255,0.3); }

/* ── Arrival Section ───────────────────────────────────────── */
.gb-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.gb-info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.gb-info-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 4px;
}

.gb-info-card-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ── Useful Numbers ────────────────────────────────────────── */
.gb-number-list { list-style: none; margin: 0; padding: 0; }

.gb-number-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.gb-number-item:last-child { border-bottom: none; }

.gb-number-label { font-weight: 500; }

.gb-number-value {
    color: var(--accent-color);
    font-weight: 600;
}

/* ── Local Area ────────────────────────────────────────────── */
.gb-map-container {
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0;
    height: 300px;
}

.gb-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.gb-recommendation {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.gb-recommendation:last-child { border-bottom: none; }

.gb-recommendation-name {
    font-weight: 600;
    color: var(--primary-color);
}

.gb-recommendation-category {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Products ──────────────────────────────────────────────── */
.gb-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.gb-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gb-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gb-product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.gb-product-image-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.gb-product-body { padding: 16px; }

.gb-product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.gb-product-description {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gb-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gb-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.gb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.gb-btn:hover { text-decoration: none; }

.gb-btn-primary {
    background: var(--accent-color);
    color: #fff;
}

.gb-btn-primary:hover { opacity: 0.9; }

.gb-btn-secondary {
    background: #f1f5f9;
    color: var(--primary-color);
}

.gb-btn-secondary:hover { background: #e2e8f0; }

.gb-btn-outline {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

/* ── Upsell Banner ─────────────────────────────────────────── */
.gb-upsell-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    margin: 16px 0;
}

.gb-upsell-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.gb-upsell-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 12px;
}

.gb-upsell-price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.gb-upsell-btn {
    background: #fff;
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gb-upsell-btn:hover { opacity: 0.9; }

/* ── Bottom Navigation ─────────────────────────────────────── */
.gb-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 200;
}

.gb-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding: 4px 12px;
    transition: color 0.2s;
}

.gb-bottom-nav-item:hover { color: var(--primary-color); text-decoration: none; }

.gb-bottom-icon { font-size: 1.25rem; }

.gb-cart-badge {
    position: absolute;
    top: 0;
    right: 4px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Chat Widget ───────────────────────────────────────────── */
.gb-chat-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.gb-chat-btn:hover { transform: scale(1.05); }

.gb-chat-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: #fff;
    z-index: 300;
    display: flex;
    flex-direction: column;
}

.gb-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: var(--primary-color);
    color: #fff;
}

.gb-chat-header h3 { font-size: 1rem; font-weight: 600; }

.gb-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gb-chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.gb-chat-message-user {
    align-self: flex-end;
    background: var(--accent-color);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.gb-chat-message-assistant {
    align-self: flex-start;
    background: #f1f5f9;
    color: #1a1a2e;
    border-bottom-left-radius: 4px;
}

.gb-chat-typing {
    align-self: flex-start;
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #64748b;
}

.gb-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.gb-chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    font-family: var(--font-family);
}

.gb-chat-input:focus { border-color: var(--accent-color); }

.gb-chat-send {
    padding: 10px 20px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gb-chat-send:hover { opacity: 0.9; }
.gb-chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Search Overlay ────────────────────────────────────────── */
.gb-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}

.gb-search-panel {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 60vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.gb-search-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.gb-search-input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    font-size: 1rem;
    outline: none;
    font-family: var(--font-family);
}

.gb-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 4px 8px;
}

.gb-search-results {
    overflow-y: auto;
    padding: 8px;
}

.gb-search-result {
    display: block;
    padding: 12px;
    border-radius: 8px;
    color: #1a1a2e;
    text-decoration: none;
    transition: background 0.15s;
}

.gb-search-result:hover { background: #f1f5f9; text-decoration: none; }

.gb-search-result-title { font-weight: 500; }

.gb-search-empty {
    text-align: center;
    color: #64748b;
    padding: 20px;
}

/* ── Cart Drawer ───────────────────────────────────────────── */
.gb-cart-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 250;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.gb-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.gb-cart-header h3 { font-size: 1rem; font-weight: 600; }

.gb-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.gb-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.gb-cart-item:last-child { border-bottom: none; }

.gb-cart-item-name { font-weight: 500; }

.gb-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gb-cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.gb-cart-item-price { font-weight: 600; color: var(--primary-color); }

.gb-cart-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.gb-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.gb-cart-checkout {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gb-cart-checkout:hover { opacity: 0.9; }

.gb-cart-empty {
    text-align: center;
    color: #64748b;
    padding: 40px 20px;
}

/* ── Images ────────────────────────────────────────────────── */
.gb-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin: 16px 0;
}

.gb-image-grid img {
    border-radius: 8px;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* ── Checklist ─────────────────────────────────────────────── */
.gb-checklist { list-style: none; padding: 0; margin: 0; }

.gb-checklist li {
    padding: 8px 0 8px 28px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.gb-checklist li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.gb-dont-worry { list-style: none; padding: 0; margin: 8px 0; }

.gb-dont-worry li {
    padding: 6px 0 6px 28px;
    position: relative;
    color: #64748b;
}

.gb-dont-worry li::before {
    content: '\2717';
    position: absolute;
    left: 0;
    color: #94a3b8;
}

/* ── Book Again CTA ────────────────────────────────────────── */
.gb-cta-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    color: #fff;
}

.gb-cta-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.gb-cta-card p {
    opacity: 0.9;
    margin-bottom: 16px;
}

.gb-cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--primary-color);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.gb-cta-btn:hover { opacity: 0.9; text-decoration: none; }

/* ── Amenities ─────────────────────────────────────────────── */
.gb-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.gb-amenity-tag {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* ── Order Pages ───────────────────────────────────────────── */
.gb-order-page {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 16px;
    text-align: center;
}

.gb-order-page h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.gb-order-items {
    margin: 24px 0;
    text-align: left;
}

.gb-order-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.gb-order-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 2px solid #e5e7eb;
}

/* ── Admin Styles ──────────────────────────────────────────── */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
}

.admin-sidebar-brand {
    padding: 0 20px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 12px;
}

.admin-sidebar-nav { list-style: none; padding: 0; margin: 0; }

.admin-sidebar-link {
    display: block;
    padding: 10px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.admin-sidebar-link:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.admin-sidebar-link.active { background: rgba(255,255,255,0.15); color: #fff; }

.admin-main {
    flex: 1;
    padding: 24px 32px;
    background: var(--bg);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header h1 {
    font-size: 1.5rem;
    color: var(--text);
}

.admin-card {
    background: var(--bg-card, #fff);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border-bottom: 2px solid #e5e7eb;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.admin-form-group { margin-bottom: 16px; }

.admin-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #374151;
}

.admin-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font-family);
}

.admin-input:focus { outline: none; border-color: var(--accent-color); }

.admin-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font-family);
    min-height: 100px;
    resize: vertical;
}

/* ── Auth Pages ────────────────────────────────────────────── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f8f9fa;
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.auth-card h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 24px;
}

/* ── Utility Classes (.u-*) ────────────────────────────────── */

/* Splash page */
.u-splash-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d2d5e 100%);
    color: #fff;
    text-align: center;
    padding: 24px;
}

.u-splash-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.u-splash-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 480px;
}

.u-splash-btn-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.u-splash-btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.u-splash-btn-primary:hover { text-decoration: none; opacity: 0.9; color: var(--primary-color); }

.u-splash-btn-ghost {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.u-splash-btn-ghost:hover { text-decoration: none; background: rgba(255,255,255,0.25); color: #fff; }

.u-splash-footer-note {
    margin-top: 48px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Alert banners */
.u-alert-error {
    background: #fecaca;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* Button modifiers */
.u-btn-full {
    width: 100%;
    justify-content: center;
    padding: 12px;
}

/* Google SSO wrapper */
.u-sso-center {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

/* Auth divider */
.u-divider-or {
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 16px 0;
}

/* Auth card subtitle */
.u-auth-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 24px;
}

/* Light-coloured close button (on dark backgrounds) */
.u-close-light { color: #fff; }

/* ── Public Guidebook Message ──────────────────────────────── */
.gb-public-notice {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #92400e;
    margin: 16px 0;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (min-width: 768px) {
    .gb-app {
        display: grid;
        grid-template-columns: 220px 1fr;
        grid-template-rows: auto 1fr;
        max-width: 1200px;
        padding-bottom: 0;
    }

    .gb-header { grid-column: 1 / -1; }

    .gb-nav {
        position: sticky;
        top: 0;
        height: calc(100vh - 280px);
        overflow-y: auto;
        border-bottom: none;
        border-right: 1px solid #e5e7eb;
        padding: 16px;
    }

    .gb-nav-list { flex-direction: column; }
    .gb-nav-link { border-radius: 8px; }

    .gb-main { padding: 0 24px; }

    .gb-bottom-nav { display: none; }

    .gb-chat-btn { bottom: 24px; right: 24px; }
}

@media (min-width: 1024px) {
    .gb-app { grid-template-columns: 240px 1fr; }
}

/* ── Guidebook nav logo ── */
.gb-nav-logo-wrap {
    padding: 12px 16px 8px;
    display: flex;
    align-items: center;
}
.gb-nav-logo {
    max-height: 48px;
    width: auto;
    display: block;
}
