/* ================================================================
   TooToo — Main Styles  (Bootstrap 5 + custom)
   ================================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --primary:      #0b0f14;
  --primary-dark: #000000;
  --gold:         #c9a227;
  --gold-light:   #e8c15a;
  --gold-pale:    #fdf5e0;
  --green:        #2d9e6b;
  --green-dark:   #1e7a50;
  --bg:           #0b0f14;
  --dark:         #0f1729;
  --text:         #2c3e50;
  --text-muted:   #6b7280;
  --border:       #e8ecf0;
  --radius:       14px;
  --shadow-sm:    0 2px 14px rgba(0,0,0,.10);
  --shadow:       0 6px 30px rgba(0,0,0,.14);
  --shadow-lg:    0 16px 56px rgba(0,0,0,.18);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0b0f14;
  color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.card { background: #0b0f14; }
.card.shadow-sm { box-shadow: 0 4px 20px rgba(0,0,0,.16) !important; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: #fff; }
.text-gold   { color: var(--gold) !important; }
.text-green  { color: var(--green) !important; }
.bg-gold     { background: var(--gold) !important; }
.bg-primary-dark { background: var(--primary-dark) !important; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b8911f);
  color: #fff;
  font-weight: 600;
  border: none;
  letter-spacing: .3px;
  transition: all .2s;
  box-shadow: 0 3px 12px rgba(201,162,39,.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,39,.45);
}
.btn-gold:active { transform: translateY(0); }

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  background: transparent;
  transition: all .2s;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: #fff;
}

.btn-xs { font-size: .75rem; padding: 3px 10px; border-radius: 20px; }

/* ── Navbar ─────────────────────────────────────────────────── */
#main-nav {
  background: rgba(15, 36, 64, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  z-index: 1030;
  transition: background .3s;
}
#main-nav.scrolled { background: rgba(10, 25, 47, .98); }
#main-nav .navbar-brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff !important;
}
#main-nav .navbar-brand img { filter: drop-shadow(0 0 6px rgba(201,162,39,.3)); }
#main-nav .nav-link {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .3px;
  padding: .5rem .75rem !important;
  color: rgba(255,255,255,.75) !important;
  transition: color .2s;
  position: relative;
}
#main-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: .75rem; right: .75rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s;
  border-radius: 1px;
}
#main-nav .nav-link:hover { color: #fff !important; }
#main-nav .nav-link:hover::after { transform: scaleX(1); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
  min-height: 95vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,28,50,.92) 0%,
    rgba(15,36,64,.80) 45%,
    rgba(0,0,0,.45) 100%
  );
  z-index: 1;
}
.hero-section .container { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,162,39,.2);
  border: 1px solid rgba(201,162,39,.4);
  color: var(--gold-light);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -.5px;
  margin-bottom: 1.25rem;
}
.hero-title .accent { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.82);
  max-width: 480px;
  margin-bottom: 2.25rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.hero-stat .lbl {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

/* ── AI Chat Widget ─────────────────────────────────────────── */
.ai-chat-card {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.2);
}
.ai-chat-card .card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 16px 20px;
  border: none;
}
.ai-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #b8911f);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 3px 10px rgba(201,162,39,.4);
}
.chat-messages {
  height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  scrollbar-width: thin;
  background: #fafbfc;
}

/* AI search result cards */
.ai-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.ai-venue-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0b0f14;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, border-color .15s;
}
.ai-venue-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  border-color: var(--gold);
  color: inherit;
}
.ai-venue-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.ai-venue-img-empty {
  background: linear-gradient(135deg, #f8f4e8, #f0e8cc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
}
.ai-venue-info {
  flex: 1;
  min-width: 0;
}
.ai-venue-cat {
  font-size: .68rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 2px;
}
.ai-venue-name {
  font-size: .825rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-venue-loc {
  font-size: .72rem;
  color: #64748b;
  margin-top: 1px;
}
.ai-venue-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  font-size: .72rem;
  color: #64748b;
}
.ai-venue-arrow {
  color: #fff;
  font-size: .8rem;
  flex-shrink: 0;
}
.ai-suggestions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 6px 0;
  align-self: flex-start;
}
.ai-suggestion-chip {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .8rem;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.ai-suggestion-chip:hover {
  background: var(--gold);
  color: #000;
}
.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .875rem;
  line-height: 1.55;
  max-width: 90%;
}
.assistant-bubble {
  background: #0b0f14;
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.user-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-typing {
  display: inline-flex;
  gap: 4px;
  padding: 10px 14px;
  background: #0b0f14;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.chat-typing span {
  width: 6px; height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typing 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
  0%,60%,100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--dark));
  padding: 1.25rem 0;
}
.stat-item .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-item .lbl { font-size: .78rem; color: rgba(255,255,255,.5); }

/* ── Section Titles ─────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 3rem;
}
.section-badge {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: .75rem;
}

/* ── Category Cards ─────────────────────────────────────────── */
.category-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .28s, box-shadow .28s;
  border: none;
  background: #0b0f14;
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
}
.category-img-wrap {
  height: 170px;
  overflow: hidden;
  position: relative;
}
.category-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s;
}
.category-card:hover .category-img { transform: scale(1.08); }
.category-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e8ecf5, #d0d8e8);
  display: flex; align-items: center; justify-content: center;
}
.category-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.category-card:hover .category-overlay { opacity: 1; }
.category-card .card-body {
  padding: .875rem 1rem;
  border-top: 2px solid transparent;
  transition: border-color .25s;
}
.category-card:hover .card-body { border-color: var(--gold); }
.category-card .card-title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 2px;
  transition: color .2s;
}
.category-card:hover .card-title { color: var(--gold); }

/* ── Venue Cards ────────────────────────────────────────────── */
.venue-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
  border: 1px solid rgba(0,0,0,.08);
  background: #0b0f14;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.venue-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,.28) !important;
}
.venue-card-img { height: 210px; object-fit: cover; transition: transform .4s; }
.venue-card:hover .venue-card-img { transform: scale(1.04); }
.venue-card-img-placeholder { height: 210px; background: linear-gradient(135deg, #e8ecf5, #d0d8e8); }
.venue-card .card-body { padding: 1rem 1.25rem; }

.venue-gallery-img { height: 440px; object-fit: cover; border-radius: 12px; }

/* ── Rating Stars ───────────────────────────────────────────── */
.stars { color: #f59e0b; font-size: .8rem; }
.stars .empty { color: #d1d5db; }

/* ── Feature Badges ─────────────────────────────────────────── */
.feature-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f0f4f8; color: #475569;
  padding: 4px 10px; border-radius: 8px;
  font-size: .76rem; font-weight: 500;
}

/* ── Mountain / CTA section ─────────────────────────────────── */
.bg-mountain {
  background:
    linear-gradient(135deg, rgba(26,58,92,.92), rgba(10,23,40,.95)),
    url('') center/cover no-repeat;
  position: relative;
}

/* ── Featured ribbon ────────────────────────────────────────── */
.ribbon {
  position: absolute; top: 14px; right: -4px;
  background: var(--gold);
  color: #fff; font-size: .68rem; font-weight: 700;
  padding: 3px 12px 3px 8px;
  clip-path: polygon(0 0,100% 0,100% 100%,0 100%,6% 50%);
  letter-spacing: .5px;
}

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.page-header .breadcrumb-item, .page-header .breadcrumb-item a { color: rgba(255,255,255,.6); font-size: .85rem; }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.page-header .breadcrumb-divider { color: rgba(255,255,255,.35); }

/* ── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
  background: #0b0f14;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

/* ── Sidebar Filters ────────────────────────────────────────── */
.filter-sidebar {
  background: #0b0f14;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  border: 1px solid var(--border);
  position: sticky;
  top: 80px;
}
.filter-sidebar .filter-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: .75rem;
}

/* ── Detail Page ────────────────────────────────────────────── */
.detail-gallery { border-radius: 16px; overflow: hidden; }
.detail-info-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: #0b0f14;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
}

/* ── Review Card ────────────────────────────────────────────── */
.review-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  background: #0b0f14;
  transition: box-shadow .2s;
}
.review-card:hover { box-shadow: var(--shadow-sm); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-control, .form-select {
  border-color: var(--border);
  border-radius: 10px;
  padding: .6rem .85rem;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,.15);
  outline: none;
}
.form-label { font-size: .875rem; font-weight: 600; color: #fff; margin-bottom: .4rem; }

/* ── Auth Cards ─────────────────────────────────────────────── */
.auth-card {
  border-radius: 20px;
  border: none;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.auth-card .auth-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 2rem;
  text-align: center;
  color: #fff;
}

/* ── Profile Card ───────────────────────────────────────────── */
.profile-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 16px rgba(201,162,39,.3);
}
.profile-avatar-placeholder {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.5rem;
  border: 3px solid var(--gold);
}

/* ── Admin Sidebar ──────────────────────────────────────────── */
.admin-sidebar { background: #1a2035; min-height: 100vh; }
.admin-sidebar .nav-link.active { color: var(--gold) !important; }
.admin-sidebar .nav-link:hover { color: #fff !important; }

/* ── Table Map ──────────────────────────────────────────────── */
.table-map-admin {
  position: relative; width: 100%; height: 480px;
  background: linear-gradient(145deg, #fdf8f3, #f5ede2);
  border-radius: 14px;
  border: 2px dashed #e8d5b7;
}
.table-btn {
  position: absolute; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
  border-radius: 50%; transition: all .2s;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.table-btn:hover { transform: scale(1.12); }
.table-free { background: linear-gradient(135deg, #2d9e6b, #27ae60); }
.table-booked { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.table-rect { border-radius: 8px; }
.booking-row-pending { border-left: 3px solid #f59e0b; }
.booking-row-confirmed { border-left: 3px solid var(--green); }
.booking-row-cancelled { border-left: 3px solid #ef4444; }
.stat-card { border-radius: 14px; color: #fff; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: #c8cdd6;
}
.footer .text-muted { color: #a8b0be !important; }
.footer a { color: #b8c0cc; transition: color .2s; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer-logo { font-size: 1.4rem; font-weight: 800; color: #fff; }
.footer h6 { color: #e2e8f0 !important; }

/* ── Credentials Table (dev) ─────────────────────────────────── */
.creds-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--dark));
  border-radius: 20px;
  overflow: hidden;
}
.creds-card th { background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); font-size: .72rem; letter-spacing: .8px; text-transform: uppercase; border: none; padding: .75rem 1rem; }
.creds-card td { color: rgba(255,255,255,.88); border-color: rgba(255,255,255,.07); padding: .75rem 1rem; font-size: .875rem; }
.creds-card .email-cell { font-family: 'Courier New', monospace; color: var(--gold-light); }
.creds-card .role-badge { background: rgba(201,162,39,.2); color: var(--gold-light); border: 1px solid rgba(201,162,39,.3); padding: 2px 10px; border-radius: 20px; font-size: .72rem; font-weight: 600; }

/* ── Responsive ─────────────────────────────────────────────── */

/* Tablet: 992px and below */
@media (max-width: 991px) {
  .hero-section { min-height: auto; padding: 5rem 0 3rem; }
  .hero-stats { gap: 1.25rem; }
  .filter-sidebar { position: static; }
  .detail-info-card { position: static; }
  .venue-detail-sidebar { margin-top: 2rem; }
  .table-responsive-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Venue list: filter sidebar full-width above results */
  .col-lg-3.filter-col { margin-bottom: 1.5rem; }
  .col-lg-3.filter-col .card { position: static !important; }

  /* Superadmin sidebar collapsible on tablet */
  .superadmin-sidebar { width: 220px !important; }
}

/* Mobile: 768px and below */
@media (max-width: 767px) {
  /* Layout */
  .container { padding-left: 16px; padding-right: 16px; }

  /* Typography */
  .hero-title { font-size: 1.8rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.15rem; }

  /* Navbar */
  .navbar-brand span { font-size: 1rem; }
  #navContent { padding: .75rem 0; }
  #navContent .nav-link { padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .92rem; }
  #navContent .d-flex { flex-direction: column; align-items: stretch !important; gap: .5rem !important; margin-top: .75rem; }
  #navContent .d-flex .btn { width: 100%; text-align: center; }
  #navContent .dropdown { width: 100%; }
  #navContent .dropdown-toggle { width: 100%; }

  /* Cards */
  .venue-card-img { height: 180px; }
  .category-img-wrap { height: 140px; }
  .venue-gallery-img { height: 220px !important; object-fit: cover; }
  .venue-gallery-thumb { height: 70px !important; }

  /* Page headers */
  .page-header { padding: 1.75rem 0 1.25rem; }
  .page-header h1 { font-size: 1.4rem; }
  .page-header p { font-size: .88rem; }

  /* Filters on venue list — collapsible */
  .col-lg-3 { margin-bottom: 1rem; }

  /* Booking forms — stack columns */
  .booking-form-card { padding: 16px !important; border-radius: 16px !important; }
  .row .col-md-6 { width: 100%; }

  /* Buttons — larger touch targets */
  .btn { min-height: 42px; }
  .btn-sm { min-height: 34px; }
  .card-body .btn { width: 100%; margin-bottom: .4rem; }
  .card-body .btn + .btn { margin-left: 0 !important; }

  /* Tables */
  .d-mobile-none { display: none !important; }
  .table { font-size: .85rem; }
  .table td, .table th { padding: .5rem .6rem; }

  /* Reviews section */
  .review-card { padding: 12px !important; }

  /* Modal */
  .modal-dialog { margin: 10px; }
  .modal-content { border-radius: 18px !important; }

  /* Chat */
  .chat-messages { height: 240px; }
  .ai-chat-card { margin-top: 1.5rem; }

  /* Detail page: info grid */
  .venue-info-grid .col-6 { width: 50%; }

  /* Superadmin */
  .superadmin-sidebar { display: none; }
  .superadmin-content { padding: 1rem !important; }

  /* Breadcrumbs compact */
  .breadcrumb { font-size: .82rem; flex-wrap: nowrap; overflow: hidden; }
  .breadcrumb-item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }

  /* Footer */
  .footer { padding-top: 2.5rem; padding-bottom: 2rem; }
  .footer-logo { font-size: 1.2rem; }
  .footer .col-6 { width: 50% !important; }
  .footer .col-lg-4 { width: 100% !important; }
}

/* Small phones: 576px and below */
@media (max-width: 575px) {
  /* Typography */
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: .88rem; }
  .hero-stats { gap: .75rem; }
  .hero-stat .num { font-size: 1.2rem; }
  h1 { font-size: 1.4rem; }

  /* Container tighter */
  .container { padding-left: 12px; padding-right: 12px; }
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

  /* Venue cards: single column (no override needed — Bootstrap does it) */
  .venue-card-img { height: 160px; }

  /* Navbar: tighter */
  .navbar-brand img { height: 28px !important; }

  /* Buttons  */
  .btn-lg { padding: .6rem 1.1rem; font-size: .95rem; }
  .hero-cta .btn { width: 100%; margin-bottom: .4rem; }

  /* Forms */
  .form-control, .form-select { font-size: .9rem; padding: .55rem .75rem; }
  .form-label { font-size: .85rem; }

  /* Star ratings compact */
  .bi-star, .bi-star-fill { font-size: .85rem !important; }

  /* Badges */
  .badge { font-size: .72rem; padding: .3em .6em; }

  /* Images */
  .category-img-wrap { height: 120px; }

  /* Page header */
  .page-header h1 { font-size: 1.25rem; }
  .page-header { padding: 1.4rem 0 1rem; }

  /* Booking summary card */
  .booking-summary-card .fw-bold { font-size: .9rem; }

  /* Footer: stack everything */
  .footer .col-6 { width: 100% !important; margin-bottom: .5rem; }
  .footer ul { margin-bottom: .5rem !important; }

  /* Detail page gallery */
  .venue-gallery-img { height: 180px !important; }
}

/* Very small: 400px and below */
@media (max-width: 400px) {
  .container { padding-left: 10px; padding-right: 10px; }
  h1 { font-size: 1.2rem; }
  .page-header h1 { font-size: 1.1rem; }
  .venue-card-img { height: 140px; }
  .btn { min-height: 40px; font-size: .88rem; }
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
.fade-in-up { animation: fadeInUp .55s ease both; }
.fade-in-up-2 { animation: fadeInUp .55s .15s ease both; }
.fade-in-up-3 { animation: fadeInUp .55s .3s ease both; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  border-radius: 12px;
  border-left: 4px solid;
  padding: .85rem 1.1rem;
}
.alert-success  { border-left-color: var(--green); }
.alert-danger   { border-left-color: #ef4444; }
.alert-warning  { border-left-color: var(--gold); }
.alert-info     { border-left-color: #3b82f6; }

/* Dark Theme Overrides */
.bg-white { background-color: var(--primary-dark) !important; color: #fff !important; }
.bg-light { background-color: rgba(255,255,255,0.05) !important; color: #fff !important; }
.text-dark { color: #fff !important; }
.text-muted { color: #94a3b8 !important; }
.card, .list-group-item, .dropdown-menu { background: rgba(15, 20, 30, 0.7) !important; backdrop-filter: blur(16px); color: #fff; border: 1px solid rgba(255, 255, 255, 0.1); }
.list-group-item { background: transparent !important; }
.form-control, .form-select { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.form-control:focus, .form-select:focus { background: rgba(255,255,255,0.1); color: #fff; box-shadow: none; border-color: var(--gold); }
.table { color: #fff; }
.table th, .table td { border-color: rgba(255,255,255,0.1); }
.navbar { background: rgba(15, 20, 30, 0.8) !important; backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.navbar .nav-link { color: #cbd5e1 !important; }
.navbar .nav-link:hover { color: #fff !important; }
.modal-content { background: rgba(15, 20, 30, 0.9) !important; backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); color: #fff; }
.modal-header, .modal-footer { border-color: rgba(255,255,255,0.1); }

/* Additional Dark Theme Fixes */
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }
.breadcrumb-item a { color: #94a3b8; }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: #64748b; }
.text-dark { color: #fff !important; }
.bg-dark { background-color: rgba(0,0,0,0.5) !important; }

/* Form element contrast fixes */
.form-check-label { color: rgba(255,255,255,0.88) !important; }
.form-check-input { background-color: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.form-control::placeholder, .form-select::placeholder { color: rgba(255,255,255,0.35) !important; }
select option, select optgroup { background: #1a2035 !important; color: #fff !important; }
.card .form-label, .card .fw-semibold, .card label { color: rgba(255,255,255,0.9) !important; }
.card h6 { color: #fff !important; }
.card .small:not(.btn) { color: rgba(255,255,255,0.75) !important; }
.btn-outline-secondary { color: #94a3b8 !important; border-color: rgba(255,255,255,0.2) !important; }
.btn-outline-secondary:hover { background: rgba(255,255,255,0.1) !important; color: #fff !important; }

/* ================================================================
   Dark Theme — Light Text Overrides
   ================================================================ */

/* Force dark background + light text on form controls */
.form-control, .form-select, textarea.form-control {
  background: rgba(255,255,255,.06) !important;
  color: #f0f0f0 !important;
  border-color: rgba(255,255,255,.15) !important;
}
.form-control::placeholder { color: rgba(255,255,255,.35) !important; }
.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,.09) !important;
  color: #fff !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201,162,39,.18) !important;
}
.form-select option { background: #1a2035; color: #f0f0f0; }
.form-check-input { background-color: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.form-check-label { color: rgba(255,255,255,.85) !important; }

/* Override Bootstrap bg-light / bg-white to dark */
.bg-light, .bg-white { background: #111828 !important; }
.bg-light .card, .bg-white .card { border-color: rgba(255,255,255,.1) !important; }

/* Auth / Register card */
.card.shadow-lg, .card.shadow { background: #111828 !important; border: 1px solid rgba(255,255,255,.1) !important; color: #f0f0f0; }
.card.shadow-lg .text-muted, .card.shadow .text-muted { color: rgba(255,255,255,.5) !important; }

/* Feature badges dark-themed */
.feature-badge { background: rgba(255,255,255,.08) !important; color: rgba(255,255,255,.75) !important; border: 1px solid rgba(255,255,255,.1); }

/* Bootstrap table inside dark bg */
.table { color: rgba(255,255,255,.85) !important; border-color: rgba(255,255,255,.08) !important; }
.table th { color: rgba(255,255,255,.6) !important; background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.08) !important; }
.table td { border-color: rgba(255,255,255,.06) !important; }
.table-hover tbody tr:hover { background: rgba(255,255,255,.04) !important; color: #fff !important; }

/* Bootstrap alerts dark-themed */
.alert { border-radius: 10px !important; }
.alert-success { background: rgba(45,158,107,.15) !important; border-color: rgba(45,158,107,.3) !important; color: #6ee7b7 !important; }
.alert-danger, .alert-error { background: rgba(239,68,68,.15) !important; border-color: rgba(239,68,68,.3) !important; color: #fca5a5 !important; }
.alert-warning { background: rgba(201,162,39,.12) !important; border-color: rgba(201,162,39,.3) !important; color: #fcd34d !important; }
.alert-info { background: rgba(59,130,246,.12) !important; border-color: rgba(59,130,246,.3) !important; color: #93c5fd !important; }

/* Dropdown menus */
.dropdown-menu { background: #1a2035 !important; border: 1px solid rgba(255,255,255,.1) !important; box-shadow: 0 10px 40px rgba(0,0,0,.4) !important; }
.dropdown-item { color: rgba(255,255,255,.8) !important; }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(255,255,255,.06) !important; color: #fff !important; }
.dropdown-divider { border-color: rgba(255,255,255,.1) !important; }

/* Modals */
.modal-content { background: #111828 !important; border: 1px solid rgba(255,255,255,.12) !important; color: #f0f0f0; }
.modal-header { border-color: rgba(255,255,255,.1) !important; }
.modal-footer { border-color: rgba(255,255,255,.1) !important; }
.modal-title { color: #fff !important; }
.btn-close { filter: invert(1) !important; }

/* Pagination */
.page-link { background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.1) !important; color: rgba(255,255,255,.75) !important; }
.page-link:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; }
.page-item.active .page-link { background: var(--gold) !important; border-color: var(--gold) !important; color: #000 !important; }
.page-item.disabled .page-link { color: rgba(255,255,255,.25) !important; }

/* Bootstrap nav tabs */
.nav-tabs { border-color: rgba(255,255,255,.1) !important; }
.nav-tabs .nav-link { color: rgba(255,255,255,.6) !important; }
.nav-tabs .nav-link.active { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.1) rgba(255,255,255,.1) transparent !important; color: #fff !important; }

/* Text helpers */
.text-dark { color: rgba(255,255,255,.85) !important; }
.text-body { color: rgba(255,255,255,.85) !important; }
p, span, li, td, th, label, small { color: inherit; }

/* Admin panel — light bg areas → dark */
.adm-main { background: #0d1320 !important; }
.adm-table { background: #111828 !important; }
.adm-table th { background: rgba(255,255,255,.04) !important; color: rgba(255,255,255,.5) !important; }
.adm-table td { color: rgba(255,255,255,.8) !important; border-color: rgba(255,255,255,.06) !important; }
