/* ═══════════════════════════════════════════════════
   NAVBAR  –  Ticket Cket
   ═══════════════════════════════════════════════════ */

/* ── Wrapper ──────────────────────────────────────── */
.tc-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1040;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  transition: box-shadow .25s;
}
.tc-navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.10); }

.tc-navbar-inner {
  display: flex; align-items: center; gap: 20px;
  height: 70px; padding: 0 24px;
  max-width: 1300px; margin: 0 auto;
}

/* ── Logo ─────────────────────────────────────────── */
.tc-logo { flex-shrink: 0; display: flex; align-items: center; }
.tc-logo img { height: 36px; width: auto; }

/* ── Search bar (unified pill) ────────────────────── */
.tc-search {
  flex: 1; max-width: 720px; margin: 0 auto;
  display: flex; align-items: center;
  background: #f4f6f9; border-radius: 50px;
  border: 1.5px solid transparent;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
}
.tc-search:focus-within {
  border-color: #00c461;
  box-shadow: 0 0 0 3px rgba(0,196,97,.12);
  background: #fff;
}
.tc-search-field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 0 20px; min-width: 0;
}
.tc-search-field i { color: #999; font-size: 1rem; flex-shrink: 0; }
.tc-search-field input {
  border: none; background: transparent; outline: none;
  font-size: 1.05rem; color: #1a1a2e; width: 100%;
  padding: 16px 0;
}
.tc-search-field input::placeholder { color: #aaa; }
.tc-search-divider {
  width: 1px; height: 28px; background: #dde1e7; flex-shrink: 0;
}
.tc-search-btn {
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: #006d36; color: #fff; margin: 4px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s; flex-shrink: 0;
  font-size: 1rem;
}
.tc-search-btn:hover { background: #005229; }

/* Search dropdowns */
.tc-search-wrap { position: relative; flex: 1; min-width: 0; }
.tc-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  border: 1px solid #eee;
  z-index: 1050; display: none;
  max-height: 280px; overflow-y: auto;
}
.tc-dropdown.show { display: block; }
.tc-dropdown .list-group-item {
  border: none; padding: 10px 16px; font-size: .88rem;
  cursor: pointer; color: #333;
  border-bottom: 1px solid #f4f4f4;
}
.tc-dropdown .list-group-item:last-child { border-bottom: none; }
.tc-dropdown .list-group-item:hover { background: #f8f9fb; color: #006d36; }

/* ── Right section ────────────────────────────────── */
.tc-nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Profile chip */
.tc-profile {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 50px;
  background: #f4f6f9; border: 1.5px solid #eee;
  text-decoration: none; color: #1a1a2e;
  font-size: .88rem; font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.tc-profile:hover { border-color: #00c461; box-shadow: 0 0 0 3px rgba(0,196,97,.10); color: #1a1a2e; }
.tc-profile img {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(0,196,97,.3);
}

/* Login button */
.tc-login-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 50px;
  background: #006d36; color: #fff !important;
  font-size: .88rem; font-weight: 700;
  text-decoration: none; border: none;
  transition: background .2s, box-shadow .2s;
  white-space: nowrap;
}
.tc-login-btn:hover { background: #005229; box-shadow: 0 4px 16px rgba(0,109,54,.3); }

/* Login role dropdown */
.tc-login-dropdown a:hover { background: #f5f5f5; }
.tc-login-dropdown-wrap .tc-login-btn { border-radius: 50px; }

/* ── Mobile toggle ────────────────────────────────── */
.tc-toggler {
  display: none; width: 40px; height: 40px;
  border-radius: 10px; border: 1.5px solid #e5e7eb;
  background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
  flex-shrink: 0; color: #333;
  transition: border-color .2s;
}
.tc-toggler:hover { border-color: #00c461; }

/* ── Mobile drawer ────────────────────────────────── */
.tc-mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 1041;
  background: rgba(0,0,0,.4); backdrop-filter: blur(2px);
}
.tc-mobile-overlay.open { display: block; }

.tc-mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1042;
  width: min(320px, 90vw);
  background: #fff;
  box-shadow: -8px 0 40px rgba(0,0,0,.14);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.tc-mobile-drawer.open { transform: translateX(0); }

.tc-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.tc-drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid #e5e7eb; background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #555; transition: background .2s;
}
.tc-drawer-close:hover { background: #f4f4f4; }

.tc-drawer-body { padding: 20px; flex: 1; }

/* Mobile search inputs */
.tc-mobile-search-group { margin-bottom: 16px; }
.tc-mobile-search-group label { font-size: .75rem; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; display: block; }
.tc-mobile-input-wrap { position: relative; }
.tc-mobile-input-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #aaa; font-size: .85rem; }
.tc-mobile-input {
  width: 100%; padding: 11px 14px 11px 38px;
  border: 1.5px solid #e5e7eb; border-radius: 12px;
  font-size: .9rem; outline: none; color: #1a1a2e;
  transition: border-color .2s;
}
.tc-mobile-input:focus { border-color: #00c461; }
.tc-mobile-search-btn {
  width: 100%; padding: 12px; border-radius: 12px; border: none;
  background: #006d36; color: #fff; font-weight: 700; font-size: .95rem;
  cursor: pointer; margin-top: 4px; transition: background .2s;
}
.tc-mobile-search-btn:hover { background: #005229; }

.tc-drawer-divider { height: 1px; background: #f0f0f0; margin: 20px 0; }

/* Mobile user section */
.tc-mobile-user .tc-profile { width: 100%; border-radius: 14px; padding: 10px 14px; }
.tc-mobile-user .tc-login-btn { width: 100%; justify-content: center; padding: 12px; border-radius: 12px; }

/* Mobile dropdown results */
.tc-mobile-dropdown {
  border-radius: 10px; border: 1px solid #eee;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  margin-top: 4px; display: none; background: #fff;
  max-height: 200px; overflow-y: auto;
}
.tc-mobile-dropdown.show { display: block; }
.tc-mobile-dropdown .list-group-item {
  border: none; padding: 9px 14px; font-size: .88rem;
  cursor: pointer; color: #333; border-bottom: 1px solid #f4f4f4;
}
.tc-mobile-dropdown .list-group-item:last-child { border-bottom: none; }
.tc-mobile-dropdown .list-group-item:hover { background: #f8f9fb; color: #006d36; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 991px) {
  .tc-search { display: none; }
  .tc-toggler { display: flex; }
}
@media (max-width: 575px) {
  .tc-navbar-inner { padding: 0 16px; gap: 12px; }
  .tc-nav-right { gap: 8px; }
  /* Show compact login icon only on very small screens */
  .tc-login-btn .tc-login-label { display: none; }
  .tc-login-btn { padding: 9px 14px; }
}

