/* ==========================================================================
   shadcn-inspired Bootstrap overrides
   Transforms default Bootstrap 5 into a clean, minimal shadcn aesthetic.
   Uses Inter font, zinc neutrals, subtle borders, refined spacing.
   ========================================================================== */

/* ---------- CSS Variables (shadcn zinc palette) ---------- */
:root {
    --background: #ffffff;
    --foreground: #09090b;
    --card: #ffffff;
    --card-foreground: #09090b;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --border: #e4e4e7;
    --input: #e4e4e7;
    --ring: #18181b;
    --primary: #18181b;
    --primary-foreground: #fafafa;
    --secondary: #f4f4f5;
    --secondary-foreground: #18181b;
    --accent: #f4f4f5;
    --accent-foreground: #18181b;
    --destructive: #ef4444;
    --destructive-foreground: #fafafa;
    --success: #22c55e;
    --warning: #f59e0b;
    --radius: 0.5rem;
}

/* ---------- Base ---------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #fafafa;
    color: var(--foreground);
    font-size: 0.875rem;
    line-height: 1.625;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.5rem; }
h3, .h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.125rem; }
h5, .h5 { font-size: 1rem; }

.display-1 { font-weight: 700; letter-spacing: -0.04em; }
.display-4 { font-size: 2.5rem; font-weight: 600; }
.lead { font-size: 1rem; color: var(--muted-foreground); font-weight: 400; }

p { color: #3f3f46; }
.text-muted { color: var(--muted-foreground) !important; }
small, .small { font-size: 0.8125rem; }

a {
    color: var(--foreground);
    text-decoration-color: var(--border);
    text-underline-offset: 4px;
    transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover {
    color: var(--foreground);
    text-decoration-color: var(--foreground);
}

/* ---------- Navbar ---------- */
.navbar {
    background-color: var(--background) !important;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    box-shadow: none;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1rem;
    color: var(--foreground) !important;
    letter-spacing: -0.025em;
}
.navbar-brand:hover { color: var(--foreground) !important; }
.navbar-brand i { opacity: 0.7; }

.navbar .nav-link {
    color: var(--muted-foreground) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem !important;
    border-radius: var(--radius);
    transition: color 0.15s, background-color 0.15s;
}
.navbar .nav-link:hover {
    color: var(--foreground) !important;
    background-color: var(--accent);
}
.navbar .nav-link i { opacity: 0.6; margin-right: 0.25rem; }

.navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.375rem 0.625rem;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2371717a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Cards ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: none;
    transition: box-shadow 0.2s;
}
.card:hover {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
}
.card-header h4,
.card-header h5 {
    font-size: 0.9375rem;
    font-weight: 600;
}

.card-body { padding: 1.25rem; }

.card-footer {
    background: var(--muted);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

/* ---------- Buttons ---------- */
.btn {
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    transition: all 0.15s ease;
    line-height: 1.25;
    letter-spacing: 0;
}

.btn-sm {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    border-radius: calc(var(--radius) - 2px);
}
.btn-lg {
    font-size: 0.9375rem;
    padding: 0.625rem 1.5rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
}
.btn-primary:hover {
    background-color: #27272a;
    border-color: #27272a;
}
.btn-primary:active, .btn-primary:focus {
    background-color: #27272a;
    border-color: #27272a;
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
    color: #fff;
}
.btn-success:hover { background-color: #16a34a; border-color: #16a34a; }

.btn-danger {
    background-color: var(--destructive);
    border-color: var(--destructive);
    color: var(--destructive-foreground);
}
.btn-danger:hover { background-color: #dc2626; border-color: #dc2626; }

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: #fff;
}
.btn-warning:hover { background-color: #d97706; border-color: #d97706; }

.btn-outline-primary {
    border-color: var(--border);
    color: var(--foreground);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--border);
    color: var(--foreground);
}

.btn-outline-secondary {
    border-color: var(--border);
    color: var(--muted-foreground);
    background: transparent;
}
.btn-outline-secondary:hover {
    background: var(--accent);
    border-color: var(--border);
    color: var(--foreground);
}

.btn-outline-info {
    border-color: var(--border);
    color: var(--foreground);
    background: transparent;
}
.btn-outline-info:hover {
    background: var(--accent);
    border-color: var(--border);
    color: var(--foreground);
}

.btn-outline-warning {
    border-color: var(--border);
    color: var(--foreground);
    background: transparent;
}
.btn-outline-warning:hover {
    background: var(--accent);
    border-color: var(--border);
    color: var(--foreground);
}

.btn-outline-danger {
    border-color: #fecaca;
    color: var(--destructive);
    background: transparent;
}
.btn-outline-danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.btn-outline-success {
    border-color: #bbf7d0;
    color: #16a34a;
    background: transparent;
}
.btn-outline-success:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

/* Focus ring for all buttons */
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

/* Button group refinement */
.btn-group .btn {
    border-color: var(--border);
}
.btn-group > .btn:not(:first-child) {
    border-left-color: var(--border);
}

/* ---------- Forms ---------- */
.form-control {
    border: 1px solid var(--input);
    border-radius: var(--radius);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    color: var(--foreground);
    background-color: var(--background);
    transition: border-color 0.15s, box-shadow 0.15s;
    line-height: 1.5;
}
.form-control:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px rgba(24, 24, 27, 0.15);
}
.form-control::placeholder {
    color: #a1a1aa;
}
.form-control-lg {
    font-size: 0.9375rem;
    padding: 0.625rem 0.875rem;
}

.form-select {
    border: 1px solid var(--input);
    border-radius: var(--radius);
    font-size: 0.875rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    color: var(--foreground);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-select:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px rgba(24, 24, 27, 0.15);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.375rem;
}

.form-text {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.form-check-input {
    border: 1px solid var(--input);
    border-radius: calc(var(--radius) - 4px);
}
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.form-check-input:focus {
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px rgba(24, 24, 27, 0.15);
}

.invalid-feedback {
    font-size: 0.8125rem;
    color: var(--destructive);
}
.form-control.is-invalid {
    border-color: var(--destructive);
}
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px rgba(239, 68, 68, 0.15);
}

/* ---------- Tables ---------- */
.table {
    font-size: 0.875rem;
    --bs-table-bg: transparent;
}
.table > thead > tr > th {
    font-weight: 500;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    background: var(--muted);
}
.table > tbody > tr > td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--foreground);
}
.table-hover > tbody > tr:hover > td {
    background-color: var(--muted);
}
.table-borderless > tbody > tr > td {
    border: none;
    padding: 0.375rem 0.75rem;
}

/* ---------- Badges ---------- */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.25em 0.625em;
    border-radius: 9999px;
    letter-spacing: 0;
}
.badge.bg-success {
    background-color: #dcfce7 !important;
    color: #15803d;
}
.badge.bg-secondary {
    background-color: var(--muted) !important;
    color: var(--muted-foreground);
}
.badge.bg-danger {
    background-color: #fef2f2 !important;
    color: #dc2626;
}
.badge.bg-warning {
    background-color: #fef9c3 !important;
    color: #a16207;
}

/* ---------- Alerts (flash messages) ---------- */
.alert {
    border-radius: var(--radius);
    font-size: 0.875rem;
    padding: 0.875rem 1rem;
    border: 1px solid;
}
.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}
.alert-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}
.alert-warning {
    background-color: #fffbeb;
    border-color: #fed7aa;
    color: #a16207;
}
.alert-info {
    background-color: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
}
.alert .btn-close { opacity: 0.4; }
.alert .btn-close:hover { opacity: 0.7; }

/* ---------- Code ---------- */
code {
    background: var(--muted);
    color: var(--foreground);
    padding: 0.125rem 0.375rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.8125rem;
}

/* ---------- Background helpers ---------- */
.bg-light {
    background-color: var(--muted) !important;
}
.bg-primary {
    background-color: var(--primary) !important;
}

/* ---------- Dividers ---------- */
hr {
    border-color: var(--border);
    opacity: 1;
}

/* ---------- Input groups ---------- */
.input-group .form-control {
    border-right: none;
}
.input-group .btn {
    border: 1px solid var(--input);
    border-left: none;
}

/* ---------- Container spacing ---------- */
main.container {
    padding-top: 0.5rem;
}

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    margin-top: 2rem;
}
footer small { font-size: 0.8125rem; }

/* ====================================================================
   GUEST LAYOUT OVERRIDES
   Clean, warm design for guest-facing pages
   ==================================================================== */

body.guest-body {
    background: linear-gradient(135deg, #18181b 0%, #27272a 50%, #3f3f46 100%);
    min-height: 100vh;
}

.guest-card {
    max-width: 580px;
    margin: 1.5rem auto;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.guest-header {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 0 !important;
}
.guest-header h2 { color: rgba(255,255,255,0.8); margin-bottom: 0.5rem; }
.guest-header h3 { color: #fff; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.025em; }
.guest-header p { color: rgba(255,255,255,0.7); font-size: 0.875rem; }

/* Guest sections */
.guest-card .card-body h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.625rem;
}
.guest-card .card-body h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
}
.guest-card .bg-light {
    border: 1px solid var(--border);
}

/* ====================================================================
   ERROR PAGE OVERRIDES
   ==================================================================== */

body.error-body {
    background: #fafafa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====================================================================
   GUEST GUIDE PAGE — beachVibeVilla design
   White background, Playfair serif headings, ocean accent, sections
   ==================================================================== */

/* Guest color vars */
body.guest-body {
    --ocean: #0077b6;
    --ocean-dark: #005f8a;
    --ocean-light: #90e0ef;
    --sand: #f4e4c1;
    --sand-light: #faf3e6;
    --g-white: #ffffff;
    --g-dark: #222222;
    --g-gray: #717171;
    --g-light-gray: #f7f7f7;
    --g-border: #ebebeb;
    --g-green: #008a05;
    --g-red: #c13515;
    --g-pink: #ff385c;

    background: var(--g-white) !important;
    color: var(--g-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    padding-bottom: 64px;
    min-height: 100vh;
}
body.guest-body h1, body.guest-body h2, body.guest-body h3 {
    font-family: 'Playfair Display', serif;
}

/* Lock screen */
.guide-lock-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 15vh;
}
.guide-lock-overlay.unlocked { display: none; }
.guide-lock-form {
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 320px;
    padding: 0 1.5rem;
}
.guide-lock-form h3 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.guide-lock-form p { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.guide-lock-form input {
    width: 100%;
    padding: 0.875rem;
    font-size: 1.5rem;
    letter-spacing: 0.75rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
    margin-bottom: 1rem;
}
.guide-lock-form input:focus { border-color: rgba(255,255,255,0.4); }
.guide-lock-form button {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: #222;
    cursor: pointer;
}
.guide-lock-form .lock-error {
    color: #ff6b6b;
    font-size: 0.8125rem;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    display: none;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}
.shake { animation: shake 0.4s ease; }

/* Top bar (sticky) */
.guide-top-bar {
    position: sticky;
    top: 0;
    background: var(--g-white);
    border-bottom: 1px solid var(--g-border);
    z-index: 999;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.guide-top-bar .top-bar-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--g-dark);
}
.guide-top-bar .desktop-nav {
    display: none;
    gap: 20px;
    align-items: center;
}
@media (min-width: 768px) {
    .guide-top-bar .desktop-nav { display: flex; }
    .guide-top-bar { padding: 14px 32px; }
}
.guide-top-bar .desktop-nav a {
    text-decoration: none;
    color: var(--g-gray);
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s;
}
.guide-top-bar .desktop-nav a:hover {
    color: var(--g-dark);
}

/* Top bar right (hamburger) */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--g-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: var(--g-dark);
    font-size: 1rem;
    transition: background 0.2s;
}
.hamburger:hover { background: var(--g-light-gray); }
@media (min-width: 768px) {
    .hamburger { display: none; }
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--g-white);
    z-index: 1001;
    flex-direction: column;
    padding: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--g-border);
}
.mobile-menu-close {
    background: none;
    border: 1px solid var(--g-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: var(--g-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-menu-links {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}
.mobile-menu-links li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--g-dark);
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid var(--g-border);
    transition: background 0.15s;
}
.mobile-menu-links li a:hover { background: var(--g-light-gray); }
.mobile-menu-links li a i {
    color: var(--ocean);
    width: 22px;
    text-align: center;
    font-size: 1rem;
}

/* Guide content wrapper */
.guide-content {
    max-width: 800px;
    margin: 0 auto;
}
.guide-content.locked { display: none; }

/* Hero */
.guide-hero {
    position: relative;
    overflow: hidden;
}
.guide-hero img {
    width: 100%;
    height: auto;
    display: block;
}
.guide-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 16px;
    color: #fff;
}
.guide-hero-overlay h1 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.guide-hero-overlay .hero-sub {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.9;
}
.guide-hero-overlay .hero-location {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 4px;
    color: #fff;
}
.guide-hero-overlay .hero-location i { margin-right: 4px; }

.guide-hero-placeholder {
    width: 100%;
    padding: 60px 24px;
    background: linear-gradient(135deg, #0077b6, #005f8a);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    color: #fff;
}
.guide-hero-placeholder h1 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}
.guide-hero-placeholder .hero-location {
    opacity: 0.75;
    font-size: 0.8rem;
    margin-top: 4px;
    color: #fff;
}

/* Sections */
.guide-section {
    padding: 32px 16px;
    border-bottom: 1px solid var(--g-border);
    scroll-margin-top: 60px;
}
.guide-section:last-of-type { border-bottom: none; }

.guide-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--g-dark);
    margin-bottom: 6px;
}
.section-icon {
    color: var(--ocean);
    margin-right: 12px;
    width: 22px;
    text-align: center;
    font-size: 1.1rem;
}
.guide-section-subtitle {
    color: var(--g-gray);
    margin-bottom: 24px;
    font-size: 0.85rem;
}

/* Welcome text */
.welcome-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--g-gray);
}

/* Guide cards */
.guide-card {
    background: var(--g-light-gray);
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 8px;
}

/* WiFi card */
.wifi-card {
    background: var(--g-light-gray);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}
.wifi-card .wifi-icon {
    width: 48px;
    height: 48px;
    background: var(--ocean);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.wifi-card .wifi-field { margin-bottom: 12px; }
.wifi-card .wifi-field label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--g-gray);
    display: block;
    margin-bottom: 2px;
}
.wifi-card .wifi-field span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--g-dark);
    letter-spacing: 0.5px;
}
.wifi-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--g-dark);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
}
.wifi-copy-btn:hover { background: var(--ocean); }
.wifi-copy-btn.copied { background: var(--g-green); }

/* Check-in/out cards */
.checkin-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.checkin-time-card {
    background: var(--g-light-gray);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
}
.checkin-time-card i {
    font-size: 1.4rem;
    color: var(--ocean);
    margin-bottom: 8px;
    display: block;
}
.checkin-time-card h3.time-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--g-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.checkin-time-card .time-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--g-dark);
}

/* Check-in instructions */
.checkin-instructions {
    background: var(--g-light-gray);
    border-radius: 12px;
    padding: 20px;
}
.checkin-instructions h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--g-dark);
    margin-bottom: 12px;
}
.checkin-instructions ul { list-style: none; padding: 0; margin: 0; }
.checkin-instructions li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.85rem;
    color: var(--g-gray);
}
.checkin-instructions li i {
    position: absolute;
    left: 0;
    top: 9px;
    color: var(--ocean);
    font-size: 0.7rem;
}

/* House rules */
.rules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 576px) {
    .rules-grid { grid-template-columns: 1fr 1fr; }
}
.rules-col h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rules-col.do h3 { color: var(--g-green); }
.rules-col.dont h3 { color: var(--g-red); }
.rules-col ul { list-style: none; padding: 0; margin: 0; }
.rules-col li {
    padding: 8px 0;
    border-bottom: 1px solid var(--g-border);
    padding-left: 28px;
    position: relative;
    font-size: 0.85rem;
    color: var(--g-dark);
}
.rules-col li:last-child { border-bottom: none; }
.rules-col.do li i {
    position: absolute;
    left: 0;
    top: 11px;
    color: var(--g-green);
    font-size: 0.8rem;
}
.rules-col.dont li i {
    position: absolute;
    left: 0;
    top: 11px;
    color: var(--g-red);
    font-size: 0.8rem;
}

/* Amenities grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.amenity-card {
    background: var(--g-light-gray);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.amenity-card i {
    font-size: 1.5rem;
    color: var(--ocean);
    margin-bottom: 8px;
    display: block;
}
.amenity-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--g-dark);
    margin-bottom: 2px;
}
.amenity-card p {
    font-size: 0.72rem;
    color: var(--g-gray);
    line-height: 1.4;
    margin-bottom: 0;
}

/* Map */
.guide-map {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: none;
}
.guide-map iframe {
    width: 100%;
    height: 240px;
    border: none;
    display: block;
}

/* Nav buttons (Maps/Waze) */
.nav-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s;
}
.nav-btn:hover { opacity: 0.85; }
.nav-btn i { font-size: 1rem; }
.nav-btn-maps { background: #4285f4; color: var(--g-white); }
.nav-btn-maps:hover { color: var(--g-white); }
.nav-btn-waze { background: #33ccff; color: var(--g-dark); }
.nav-btn-waze:hover { color: var(--g-dark); }

/* Directions */
.directions-list { display: flex; flex-direction: column; gap: 8px; }
.direction-card {
    background: var(--g-light-gray);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.dir-icon {
    width: 40px;
    height: 40px;
    background: var(--g-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ocean);
    font-size: 1rem;
}
.dir-info { flex: 1; min-width: 0; }
.dir-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--g-dark);
    margin-bottom: 0;
}
.dir-info p {
    font-size: 0.75rem;
    color: var(--g-gray);
    margin-bottom: 0;
}
.dir-ext { color: var(--g-gray); font-size: 0.7rem; flex-shrink: 0; opacity: 0.5; }
a.direction-card-link {
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
a.direction-card-link:hover { background: var(--g-border); }

/* Contact section */
.contact-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--g-dark);
    border-radius: 16px;
    color: var(--g-white);
}
.contact-card h3,
.contact-card .guide-section-title { display: none; }
.contact-card .contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--g-white);
    margin-bottom: 6px;
}
.contact-card .contact-subtitle {
    opacity: 0.7;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--g-white);
}
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.whatsapp-btn:hover { opacity: 0.9; color: #fff; }
.whatsapp-btn i { font-size: 1.2rem; }
.contact-phone {
    margin-top: 14px;
    font-size: 0.8rem;
    opacity: 0.6;
}
.contact-phone a { color: var(--g-white); text-decoration: none; }

/* Footer */
.guide-footer {
    padding: 24px 16px;
    text-align: center;
    border-top: 1px solid var(--g-border);
}
.footer-book { margin-bottom: 16px; }
.footer-book-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--g-dark);
    margin-bottom: 10px;
}
.footer-book-links { display: flex; justify-content: center; gap: 12px; }
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: opacity 0.2s;
}
.footer-link:hover { opacity: 0.85; }
.footer-link-airbnb { background: var(--g-pink); color: var(--g-white); }
.footer-link-airbnb:hover { color: var(--g-white); }
.footer-link-booking { background: #003b95; color: var(--g-white); }
.footer-link-booking:hover { color: var(--g-white); }
/* Check-in CTA card */
.checkin-cta-card {
    text-align: center;
    background: var(--g-light-gray);
    border-radius: 16px;
    padding: 2rem 1.5rem;
}
.checkin-cta-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin: 0.5rem 0 0.3rem;
    color: var(--g-dark);
}
.checkin-cta-card p {
    font-size: 0.85rem;
    color: var(--g-gray);
    margin-bottom: 1.2rem;
}
.checkin-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--ocean);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.checkin-cta-btn:hover {
    background: #005f8a;
    color: #fff;
}

.guide-footer-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--g-gray);
    padding: 1rem 0;
    margin: 0;
}

/* Bottom nav (mobile) */
.guide-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--g-white);
    border-top: 1px solid var(--g-border);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    z-index: 1000;
}
@media (min-width: 768px) {
    .guide-bottom-nav { display: none; }
}
.guide-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--g-gray);
    text-decoration: none;
    padding: 4px 8px;
    transition: color 0.2s;
}
.guide-bottom-nav a i { font-size: 1.15rem; }
.guide-bottom-nav a:hover,
.guide-bottom-nav a.active { color: var(--ocean); }

/* Info grid & cards (transport, useful info, emergency) */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.info-card {
    background: var(--g-light-gray);
    border-radius: 12px;
    padding: 20px;
}
.info-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--g-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-card h3 i { color: var(--ocean); width: 18px; text-align: center; }
.info-card ul { list-style: none; padding: 0; margin: 0; }
.info-card li {
    padding: 6px 0;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--g-border);
}
.info-card li:last-child { border-bottom: none; }
.info-card li.detail {
    flex-direction: column;
    gap: 2px;
}
.info-card li.detail .label {
    font-weight: 600;
    color: var(--g-dark);
    font-size: 0.82rem;
}
.info-card li.detail .desc {
    color: var(--g-gray);
    font-size: 0.8rem;
    line-height: 1.5;
}
.info-card li span.label { color: var(--g-gray); }
.info-card li span.value { font-weight: 600; }
.info-card li a {
    color: var(--ocean);
    text-decoration: none;
    font-weight: 600;
}

/* ===== Desktop responsive (768px+) ===== */
@media (min-width: 768px) {
    body.guest-body {
        padding-bottom: 0;
        max-width: 800px;
        margin: 0 auto;
    }
    .guide-hero { max-height: 500px; }
    .guide-hero-overlay h1 { font-size: 2.6rem; }
    .guide-section { padding: 48px 32px; }
    .guide-section-title { font-size: 1.6rem; }
    .guide-map iframe { height: 360px; }
    .directions-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .amenities-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Fade-in animation */
.guide-fade { opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s; }
.guide-fade.visible { opacity: 1; transform: translateY(0); }
