html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* Custom styles */
.hero-section {
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 0;
}

/* Home page banner: below hero, static (no parallax), never overlaps carousel */
.home-banner-section {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.hero-section .carousel-caption {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    padding: 2rem;
}

.hero-section .carousel-caption .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-section .carousel-caption {
        padding: 3rem;
    }
}

.trip-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.card-img-top {
    transition: transform 0.3s ease;
}

.trip-card:hover .card-img-top {
    transform: scale(1.05);
}

.badge {
    font-weight: 500;
}

/* Admin styles */
.sidebar {
    background-color: #343a40;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin: 0.25rem 0;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: #007bff;
}

.table-responsive {
    border-radius: 0.25rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Social Media Icons */
.social-media-icons a {
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.social-media-icons a:hover {
    transform: translateY(-3px);
    color: #0d6efd !important;
}

/* Hero Section Promotions */
.hero-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .social-media-icons a {
        font-size: 1.5rem !important;
    }
}

/* Public & Customer Portal: logo with white background - soften with border and shadow */
[data-theme] .navbar-logo {
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Public & Customer Portal: color schemes (only when data-theme is set) */
[data-theme="Light"] .theme-nav {
    background-color: #007bff !important;
}
[data-theme="Light"] .theme-footer {
    background-color: #212529;
    color: #f8f9fa;
}
[data-theme="Light"] .theme-footer a {
    color: #f8f9fa;
}

[data-theme="Dark"] .theme-nav {
    background-color: #1a1a2e !important;
}
[data-theme="Dark"] body {
    background-color: #0f0f1a;
    color: #e2e2e2;
}
[data-theme="Dark"] .theme-footer {
    background-color: #0d0d14;
    color: #c9c9c9;
}
[data-theme="Dark"] .theme-footer a {
    color: #b8d4ff;
}
[data-theme="Dark"] .card {
    background-color: #1e1e2e;
    border-color: #2a2a3e;
    color: #e2e2e2;
}

[data-theme="VisionImpaired"] .theme-nav {
    background-color: #000 !important;
    border-bottom: 3px solid #fff;
}
[data-theme="VisionImpaired"] .theme-nav .nav-link {
    font-weight: 600;
    text-decoration: underline;
}
[data-theme="VisionImpaired"] body {
    background-color: #fff;
    color: #000;
    font-size: 1.05rem;
}
[data-theme="VisionImpaired"] .theme-footer {
    background-color: #000;
    color: #fff;
    border-top: 3px solid #fff;
}
[data-theme="VisionImpaired"] .theme-footer a {
    color: #ffeb3b;
    font-weight: 600;
}
[data-theme="VisionImpaired"] .btn:focus,
[data-theme="VisionImpaired"] .form-control:focus {
    outline: 3px solid #000;
    outline-offset: 2px;
}

[data-theme="Warm"] .theme-nav {
    background-color: #8b6914 !important;
}
[data-theme="Warm"] body {
    background-color: #faf6ef;
    color: #2c2416;
}
[data-theme="Warm"] .theme-footer {
    background-color: #5c4a1a;
    color: #f5ecd8;
}
[data-theme="Warm"] .theme-footer a {
    color: #f5ecd8;
}

[data-theme="Ocean"] .theme-nav {
    background-color: #0d5c73 !important;
}
[data-theme="Ocean"] body {
    background-color: #f0f7f9;
    color: #1a2d33;
}
[data-theme="Ocean"] .theme-footer {
    background-color: #0a3d4d;
    color: #d4e8ec;
}
[data-theme="Ocean"] .theme-footer a {
    color: #d4e8ec;
}

/* ===== Mobile-oriented: Customer Portal & Tour Guide ===== */
@media (max-width: 767px) {
    /* Touch-friendly tap targets (min 44px) */
    .customer-portal-mobile .btn,
    .tour-guide-mobile .btn,
    .customer-portal-mobile .list-group-item-action,
    .tour-guide-mobile .list-group-item-action {
        min-height: 44px;
        padding: 0.6rem 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .customer-portal-mobile .btn-outline-primary.w-100,
    .tour-guide-mobile .btn-outline-primary.w-100 {
        min-height: 44px;
    }
    /* Stack stats/cards on small screens */
    .customer-portal-mobile .row .col-md-3,
    .tour-guide-mobile .row .col-md-3,
    .tour-guide-mobile .row .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    /* Full-width main content for Tour Guide in Admin */
    .tour-guide-mobile main {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    /* Card-style table rows: show table as stacked cards on very small screens when wrapped */
    .customer-portal-mobile .table-responsive table,
    .tour-guide-mobile .table-responsive table {
        font-size: 0.9rem;
    }
    .customer-portal-mobile .card-body .table td,
    .tour-guide-mobile .card-body .table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Body class hooks: add .customer-portal-mobile or .tour-guide-mobile to main container for mobile enhancements */
/* Customer Portal: use on container in CustomerPortal views */
/* Tour Guide: use on main content wrapper in TourGuide views */

/* =====================================================================
   Quick Search & Command Palette
   ---------------------------------------------------------------------
   Three coordinated UI surfaces:
     1. .admin-icon-rail  -- slim left rail (md+) replacing the sidebar
     2. .qs-modal          -- the Ctrl+K modal itself
     3. .qs-tile / .qs-row -- shared row primitive used for both empty-state
                              tiles AND search-result hits, so keyboard nav
                              is a single .qs-row selector
   ===================================================================== */

/* ---------- Icon rail ------------------------------------------------- */
.admin-icon-rail {
    position: fixed;
    top: 56px; /* sits below the navbar */
    left: 0;
    bottom: 0;
    width: 56px;
    background-color: #343a40;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
    gap: 0.25rem;
    z-index: 1020;
    box-shadow: 1px 0 3px rgba(0,0,0,0.1);
}
.admin-icon-rail .rail-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 1.05rem;
    transition: background-color 0.15s, color 0.15s;
}
.admin-icon-rail .rail-icon:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}
.admin-icon-rail .rail-icon.active {
    background-color: #007bff;
    color: #fff;
}
.admin-icon-rail .rail-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    font-size: 0.6rem;
    line-height: 16px;
    color: #fff;
    text-align: center;
    pointer-events: none;
}
/* Push the page content over to make room for the rail (md+ only). */
@media (min-width: 768px) {
    .admin-content-shift { padding-left: 56px; }
}

/* ---------- Top-nav search button ------------------------------------ */
.qs-launcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 0.25rem 0.65rem;
    font-size: 0.85rem;
    line-height: 1.2;
    text-decoration: none;
    min-width: 220px;
    max-width: 360px;
}
.qs-launcher:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.qs-launcher kbd {
    background: rgba(0,0,0,0.3);
    color: rgba(255,255,255,0.85);
    font-size: 0.7rem;
    padding: 1px 5px;
    border-radius: 3px;
    border: 0;
}
/* Compact icon-only launcher (mobile). Square button so it sits cleanly
   next to the navbar-toggler without consuming horizontal space. */
.qs-launcher-compact {
    min-width: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
}

/* ---------- Modal shell ---------------------------------------------- */
.qs-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
}
.qs-modal .qs-header {
    padding: 0.85rem 1rem;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}
.qs-modal .qs-input-icon {
    color: #6c757d;
}
.qs-modal .qs-input {
    flex: 1;
    border: 0;
    box-shadow: none;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
}
.qs-modal .qs-input:focus {
    box-shadow: none;
}
.qs-modal .qs-esc {
    background: #f1f3f5;
    color: #6c757d;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}

/* ---------- Chip filter row ------------------------------------------ */
.qs-modal .qs-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
}
.qs-modal .qs-chip {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.qs-modal .qs-chip:hover {
    background: #e9ecef;
}
.qs-modal .qs-chip.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* ---------- Body / sections ------------------------------------------ */
.qs-modal .qs-body {
    padding: 0.5rem 0;
}
.qs-modal .qs-section {
    padding: 0.5rem 1rem 0.75rem;
    border-bottom: 1px solid #f1f3f5;
}
.qs-modal .qs-section:last-child {
    border-bottom: 0;
}
.qs-modal .qs-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.4rem;
}

/* ---------- Tile grid (empty state) ---------------------------------- */
.qs-modal .qs-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.4rem;
}
.qs-modal .qs-tile {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    color: #212529;
    background: #fff;
    border: 1px solid #e9ecef;
    border-left: 3px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.2;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.qs-modal .qs-tile:hover,
.qs-modal .qs-tile.qs-row-active {
    border-color: #adb5bd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.qs-modal .qs-tile.qs-tile-active {
    border-left-color: #007bff;
    font-weight: 600;
    background: #f1f5ff;
}
.qs-modal .qs-tile.qs-tile-action {
    background: #f8fbff;
    border-color: #cfe2ff;
}
.qs-modal .qs-tile i {
    color: #495057;
    width: 18px;
    text-align: center;
}
.qs-modal .qs-tile.qs-tile-active i {
    color: #007bff;
}
.qs-modal .qs-tile-badge {
    margin-left: auto;
    color: #fff;
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 999px;
}

/* ---------- Search results ------------------------------------------ */
.qs-modal .qs-results {
    padding: 0.25rem 0;
}
.qs-modal .qs-state {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
}
.qs-modal .qs-state-error { color: #b02a37; }
.qs-modal .qs-results-list .qs-group {
    border-bottom: 1px solid #f1f3f5;
    padding: 0.5rem 0;
}
.qs-modal .qs-results-list .qs-group-title {
    padding: 0.25rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.qs-modal .qs-results-list .qs-row {
    display: block;
    padding: 0.45rem 1rem;
    color: #212529;
    text-decoration: none;
    border-left: 3px solid transparent;
}
.qs-modal .qs-results-list .qs-row:hover,
.qs-modal .qs-results-list .qs-row.qs-row-active {
    background: #f1f5ff;
    border-left-color: #007bff;
}
.qs-modal .qs-results-list .qs-row .qs-row-sub {
    color: #6c757d;
    font-size: 0.78rem;
}
.qs-modal .qs-results-list .qs-see-all {
    display: block;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: #007bff;
    text-decoration: none;
}
.qs-modal .qs-results-list .qs-see-all:hover {
    text-decoration: underline;
}

/* Server-backed admin form combobox (booking Create/Edit) */
.admin-lookup-combobox .admin-lookup-results {
    z-index: 1050;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 2px;
}
.admin-lookup-combobox .admin-lookup-option.active {
    background-color: #e7f1ff;
    border-left: 3px solid #0d6efd;
}

