/* ============================================================
   Guest Book CSS — Multi-page Welcome Book Layout
   Based on _LayoutDestinito.cshtml design patterns
   ============================================================ */

:root {
    --gb-primary: #20B2AA;
    --gb-primary-dark: #1a9690;
    --gb-primary-rgb: 32, 178, 170;
    --gb-accent: #FF6B6B;
    --gb-bg: #f8fffe;
    --gb-surface: #ffffff;
    --gb-text: #2c3e50;
    --gb-text-muted: #7f8c8d;
    --gb-border: #e8f4f3;
    --gb-success: #27ae60;
    --gb-warning: #f39c12;
    --gb-danger: #e74c3c;
    --gb-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --gb-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --gb-radius: 16px;
    --gb-radius-sm: 10px;
    --gb-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gb-font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--gb-font-body);
    background: var(--gb-bg);
    color: var(--gb-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 56px;
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gb-font-heading);
}

/* ============================================================
   Header
   ============================================================ */
.gb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--gb-surface);
    border-bottom: 1px solid var(--gb-border);
    z-index: 900;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
}

.gb-header-inner {
    max-width: 640px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.gb-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.gb-header-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.gb-header-title {
    font-family: var(--gb-font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--gb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gb-menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gb-text);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.gb-menu-toggle:hover {
    background: var(--gb-border);
}

/* ============================================================
   Hero Slider
   ============================================================ */
.gb-hero-slider {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    overflow: hidden;
    background: #e0e0e0;
    aspect-ratio: 16 / 9;
}

.gb-hero-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}

.gb-hero-track .gb-hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.gb-hero-track .gb-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gb-hero-slide .gb-hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: white;
    font-size: 14px;
    font-family: var(--gb-font-body);
}

.gb-hero-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
    z-index: 5;
}

.gb-hero-controls button:hover {
    background: white;
}

.gb-hero-prev {
    left: 12px;
}

.gb-hero-next {
    right: 12px;
}

.gb-hero-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.gb-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.gb-hero-dot.active {
    background: white;
    transform: scale(1.3);
}

/* ============================================================
   Main Content
   ============================================================ */
.gb-main {
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
}

.gb-container {
    padding: 0 20px;
}

/* ============================================================
   Page Content Sections
   ============================================================ */
.gb-page {
    display: none;
    animation: gbFadeIn 0.3s ease;
}

.gb-page.active {
    display: block;
}

@keyframes gbFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Cards */
.gb-card {
    background: var(--gb-surface);
    border-radius: var(--gb-radius);
    padding: 20px;
    margin: 16px 20px;
    box-shadow: var(--gb-shadow);
}

.gb-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.gb-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gb-primary), var(--gb-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.gb-card-title {
    font-family: var(--gb-font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--gb-text);
}

/* Rich content area */
.gb-rich-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gb-text);
}

.gb-rich-content h2 {
    font-size: 20px;
    margin: 20px 0 10px;
}

.gb-rich-content h3 {
    font-size: 17px;
    margin: 16px 0 8px;
}

.gb-rich-content p {
    margin-bottom: 12px;
}

.gb-rich-content img {
    max-width: 100%;
    border-radius: var(--gb-radius-sm);
    margin: 12px 0;
}

.gb-rich-content ul, .gb-rich-content ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.gb-rich-content a {
    color: var(--gb-primary);
}

/* ============================================================
   Cover Page
   ============================================================ */
.gb-cover-welcome {
    text-align: center;
    padding: 32px 20px 20px;
}

.gb-cover-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 16px;
    box-shadow: var(--gb-shadow-lg);
}

.gb-cover-name {
    font-family: var(--gb-font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.gb-cover-tagline {
    color: var(--gb-text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.gb-cover-guest {
    background: linear-gradient(135deg, var(--gb-primary), var(--gb-primary-dark));
    color: white;
    border-radius: var(--gb-radius);
    padding: 16px 20px;
    margin: 0 20px 20px;
    text-align: center;
}

.gb-cover-guest-name {
    font-family: var(--gb-font-heading);
    font-size: 20px;
    font-weight: 600;
}

.gb-cover-dates {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}

/* Quick Actions Row (3 horizontal buttons) */
.gb-quick-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 16px;
}

.gb-quick-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--gb-surface);
    border: 1.5px solid var(--gb-border);
    border-radius: var(--gb-radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--gb-text);
    font-family: var(--gb-font-body);
    font-size: inherit;
}
.gb-quick-action:hover, .gb-quick-action:active {
    border-color: var(--gb-primary);
    box-shadow: var(--gb-shadow);
}
.gb-quick-action i {
    font-size: 20px;
    color: var(--gb-primary);
}
.gb-quick-action span {
    font-size: 11px;
    font-weight: 600;
}
.gb-quick-action-reveal {
    width: 100%;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--gb-border);
    font-size: 11px;
}
.gb-quick-action-ssid {
    color: var(--gb-text-muted);
    margin-bottom: 2px;
}
.gb-quick-action-pwd {
    font-weight: 700;
    color: var(--gb-primary);
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Featured Service Card */
.gb-featured-service {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    margin: 0 20px 16px;
    background: linear-gradient(135deg, var(--gb-primary-dark), var(--gb-primary));
    border-radius: var(--gb-radius);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.gb-featured-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.gb-featured-service-content { flex: 1; min-width: 0; }
.gb-featured-service-title {
    font-family: var(--gb-font-heading);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}
.gb-featured-service-subtitle {
    font-size: 12px;
    opacity: 0.9;
}
.gb-featured-service-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.gb-featured-service-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Stay Summary Card */
.gb-stay-summary {
    background: var(--gb-surface);
    border-radius: var(--gb-radius);
    padding: 20px;
    margin: 0 20px 16px;
    box-shadow: var(--gb-shadow);
}
.gb-stay-summary-title {
    font-family: var(--gb-font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--gb-text);
    margin-bottom: 14px;
}
.gb-stay-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}
.gb-stay-summary-item {
    padding: 10px 12px;
    background: var(--gb-bg);
    border-radius: var(--gb-radius-sm);
}
.gb-stay-summary-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gb-text-muted);
    margin-bottom: 4px;
}
.gb-stay-summary-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--gb-text);
}
.gb-stay-summary-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--gb-border);
}
.gb-stay-summary-links a {
    padding: 6px 12px;
    border-radius: 16px;
    background: var(--gb-bg);
    color: var(--gb-primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.gb-stay-summary-links a:hover {
    background: rgba(var(--gb-primary-rgb), 0.12);
}
.gb-stay-summary-links a i {
    margin-right: 4px;
    font-size: 11px;
}

/* ============================================================
   Structured Page Styles (WiFi, Check-in, Rules, etc.)
   ============================================================ */

/* WiFi Card */
.gb-wifi-card {
    background: var(--gb-surface);
    border-radius: var(--gb-radius);
    padding: 20px;
    margin: 16px 20px;
    text-align: center;
    box-shadow: var(--gb-shadow);
}

.gb-wifi-qr {
    margin: 16px auto;
    width: 180px;
    height: 180px;
}

.gb-wifi-qr img {
    width: 100%;
    border-radius: var(--gb-radius-sm);
}

.gb-wifi-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gb-bg);
    border-radius: var(--gb-radius-sm);
    margin-bottom: 8px;
}

.gb-wifi-field-label {
    font-size: 12px;
    color: var(--gb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gb-wifi-field-value {
    font-weight: 600;
    font-size: 15px;
    font-family: monospace;
}

.gb-wifi-copy {
    background: none;
    border: none;
    color: var(--gb-primary);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
}

/* Steps List */
.gb-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gb-steps li {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gb-border);
}

.gb-steps li:last-child {
    border-bottom: none;
}

.gb-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gb-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.gb-step-text {
    font-size: 15px;
    line-height: 1.5;
    padding-top: 3px;
}

/* House Rules */
.gb-rule-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gb-border);
}

.gb-rule-card:last-child {
    border-bottom: none;
}

.gb-rule-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(var(--gb-primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gb-primary);
    font-size: 16px;
    flex-shrink: 0;
}

.gb-rule-text {
    font-weight: 600;
    font-size: 15px;
}

.gb-rule-details {
    font-size: 13px;
    color: var(--gb-text-muted);
    margin-top: 2px;
}

/* Emergency Contacts */
.gb-contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gb-border);
}

.gb-contact-card:last-child {
    border-bottom: none;
}

.gb-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.gb-contact-icon.emergency {
    background: #e74c3c;
}

.gb-contact-icon.medical {
    background: #e74c3c;
}

.gb-contact-icon.property {
    background: var(--gb-primary);
}

.gb-contact-icon.utility {
    background: #f39c12;
}

.gb-contact-info {
    flex: 1;
    min-width: 0;
}

.gb-contact-name {
    font-weight: 600;
    font-size: 15px;
}

.gb-contact-type {
    font-size: 12px;
    color: var(--gb-text-muted);
    text-transform: capitalize;
}

.gb-contact-call {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gb-success);
    color: white;
    text-decoration: none;
    font-size: 16px;
    flex-shrink: 0;
}

/* Quick Reference */
.gb-quick-ref {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gb-quick-ref-item {
    background: var(--gb-bg);
    border-radius: var(--gb-radius-sm);
    padding: 14px;
    text-align: center;
}

.gb-quick-ref-label {
    font-size: 11px;
    color: var(--gb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.gb-quick-ref-value {
    font-weight: 700;
    font-size: 16px;
    font-family: monospace;
}

/* Property Amenities Grid */
.gb-amenities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 20px 20px;
}

.gb-amenity {
    text-align: center;
    padding: 12px 8px;
    background: var(--gb-surface);
    border-radius: var(--gb-radius-sm);
    border: 1px solid var(--gb-border);
}

.gb-amenity i {
    font-size: 20px;
    color: var(--gb-primary);
    margin-bottom: 4px;
    display: block;
}

.gb-amenity span {
    font-size: 11px;
    font-weight: 500;
    color: var(--gb-text-muted);
}

/* Table of Contents */
.gb-toc-list {
    list-style: none;
    padding: 0;
}

.gb-toc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gb-border);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--gb-text);
}

.gb-toc-item:last-child {
    border-bottom: none;
}

.gb-toc-item:hover {
    color: var(--gb-primary);
}

.gb-toc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gb-primary), var(--gb-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.gb-toc-title {
    font-weight: 500;
    font-size: 15px;
    flex: 1;
}

.gb-toc-arrow {
    color: var(--gb-text-muted);
    font-size: 12px;
}

/* ============================================================
   Bottom Navigation
   ============================================================ */
.gb-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--gb-border);
    padding: 6px 16px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    z-index: 900;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gb-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    max-width: 400px;
    margin: 0 auto;
}

.gb-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--gb-text-muted);
    text-decoration: none;
    font-size: 10px;
    font-family: var(--gb-font-body);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.gb-nav-item i {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.gb-nav-item.active,
.gb-nav-item:hover {
    color: var(--gb-primary);
}

.gb-nav-item.active i {
    transform: scale(1.1);
}

/* ============================================================
   Category Navigation (Two-Level)
   ============================================================ */
.gb-cat-nav {
    background: var(--gb-surface);
    border-bottom: 1px solid var(--gb-border);
    position: sticky;
    top: 56px;
    z-index: 800;
}

/* Primary row: scrollable group pills */
.gb-cat-primary {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.gb-cat-primary::-webkit-scrollbar { display: none; }

.gb-cat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    background: var(--gb-bg);
    border: 1.5px solid var(--gb-border);
    color: var(--gb-text-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: var(--gb-font-body);
}
.gb-cat-pill:hover {
    border-color: var(--gb-primary);
    color: var(--gb-primary);
}
.gb-cat-pill.active {
    background: var(--gb-primary);
    border-color: var(--gb-primary);
    color: white;
}
.gb-cat-pill i { font-size: 12px; }

/* Secondary row: page items for selected group */
.gb-cat-secondary {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--gb-bg);
    border-top: 1px solid var(--gb-border);
}
.gb-cat-secondary::-webkit-scrollbar { display: none; }

.gb-cat-page {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 16px;
    background: var(--gb-surface);
    border: 1px solid var(--gb-border);
    color: var(--gb-text);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: var(--gb-font-body);
}
.gb-cat-page:hover {
    border-color: var(--gb-primary);
}
.gb-cat-page.active {
    background: rgba(var(--gb-primary-rgb), 0.12);
    border-color: var(--gb-primary);
    color: var(--gb-primary);
    font-weight: 600;
}
.gb-cat-page i { font-size: 11px; opacity: 0.7; }

/* ============================================================
   Side Menu
   ============================================================ */
.gb-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gb-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.gb-side-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--gb-surface);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.gb-side-menu.open {
    right: 0;
}

.gb-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gb-border);
}

.gb-menu-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gb-menu-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.gb-menu-brand span {
    font-family: var(--gb-font-heading);
    font-weight: 600;
    font-size: 15px;
}

.gb-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gb-text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.gb-menu-close:hover {
    background: var(--gb-border);
}

.gb-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.gb-menu-group {
    border-bottom: 1px solid var(--gb-border);
}

.gb-menu-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}
.gb-menu-group-header:hover {
    background: var(--gb-bg);
}

.gb-menu-group-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gb-text);
}
.gb-menu-group-label i {
    width: 20px;
    text-align: center;
    color: var(--gb-primary);
    font-size: 15px;
}

.gb-menu-group-arrow {
    font-size: 12px;
    color: var(--gb-text-muted);
    transition: transform 0.2s;
}
.gb-menu-group.open .gb-menu-group-arrow {
    transform: rotate(180deg);
}

.gb-menu-group-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 20px;
}
.gb-menu-group.open .gb-menu-group-items {
    max-height: 500px;
}

.gb-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 10px;
    color: var(--gb-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.gb-menu-link:last-child {
    border-bottom: none;
}

.gb-menu-link:hover,
.gb-menu-link.active {
    color: var(--gb-primary);
}

.gb-menu-link i {
    width: 18px;
    text-align: center;
    color: var(--gb-primary);
    font-size: 13px;
    opacity: 0.7;
}

.gb-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gb-border);
    text-align: center;
    font-size: 12px;
    color: var(--gb-text-muted);
}

.gb-menu-footer a {
    text-decoration: none;
}

/* ============================================================
   Template Overrides
   ============================================================ */

/* Island Breeze (default) — no overrides needed */

/* Modern Minimal */
body.template-modern-minimal {
    --gb-primary: #4f46e5;
    --gb-primary-dark: #4338ca;
    --gb-primary-rgb: 79, 70, 229;
    --gb-accent: #818cf8;
    --gb-bg: #fafafa;
    --gb-border: #e5e5e5;
    --gb-font-heading: 'DM Sans', -apple-system, sans-serif;
    --gb-font-body: 'DM Sans', -apple-system, sans-serif;
}

body.template-modern-minimal .gb-card {
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--gb-border);
}

body.template-modern-minimal .gb-card-icon {
    border-radius: 4px;
    background: var(--gb-primary);
}

body.template-modern-minimal .gb-quick-btn {
    border-radius: 4px;
}

/* Welcome Book (caribbean-vibrant) */
body.template-caribbean-vibrant {
    --gb-primary: #6b7c5e;
    --gb-primary-dark: #556349;
    --gb-primary-rgb: 107, 124, 94;
    --gb-accent: #c8956c;
    --gb-bg: #faf7f2;
    --gb-surface: #fffdf9;
    --gb-border: #ebe5d9;
    --gb-font-heading: 'Playfair Display', Georgia, serif;
    --gb-font-body: 'Cormorant Garamond', Georgia, serif;
}

body.template-caribbean-vibrant .gb-header-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}

body.template-caribbean-vibrant .gb-card {
    border: 1px solid var(--gb-border);
    box-shadow: 0 2px 8px rgba(107, 124, 94, 0.06);
}

body.template-caribbean-vibrant .gb-card-icon {
    background: linear-gradient(135deg, #6b7c5e, #7d8f6f);
    border-radius: 50%;
}

body.template-caribbean-vibrant .gb-cover-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
}

body.template-caribbean-vibrant .gb-quick-btn {
    border-color: var(--gb-border);
}

body.template-caribbean-vibrant .gb-menu-brand span {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 380px) {
    .gb-container {
        padding: 0 16px;
    }

    .gb-card {
        margin: 12px 16px;
        padding: 16px;
    }

    .gb-quick-access {
        padding: 0 16px 16px;
        gap: 8px;
    }

    .gb-amenities {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   Desktop Centering
   ============================================================ */
@media (min-width: 768px) {
    body {
        background: #eef2f5;
    }

    /* Center the sticky category nav within content column */
    .gb-cat-nav {
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Give content area a white background card effect */
    .gb-main {
        background: var(--gb-bg);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
    }

    /* Center the hero slider background */
    .gb-hero-slider {
        border-radius: 0;
    }
}

/* Gated view (requires code) */
.gb-gated {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 40px 20px;
    text-align: center;
}

.gb-gated-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 24px;
    box-shadow: var(--gb-shadow-lg);
}

.gb-gated-title {
    font-family: var(--gb-font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.gb-gated-text {
    color: var(--gb-text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.gb-gated-input {
    width: 200px;
    padding: 12px 16px;
    border: 2px solid var(--gb-border);
    border-radius: var(--gb-radius-sm);
    font-size: 18px;
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
}

.gb-gated-input:focus {
    outline: none;
    border-color: var(--gb-primary);
}

.gb-gated-btn {
    background: var(--gb-primary);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: var(--gb-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.gb-gated-btn:hover {
    background: var(--gb-primary-dark);
}

/* Loading state */
.gb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    flex-direction: column;
    gap: 16px;
}

.gb-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gb-border);
    border-top-color: var(--gb-primary);
    border-radius: 50%;
    animation: gbSpin 0.8s linear infinite;
}

@keyframes gbSpin {
    to { transform: rotate(360deg); }
}
