/* ═══════════════════════════════════════════════════════
   TERMINPOOL — Global Stylesheet
   Accent: #74B815  |  Base: gray  |  Font: Inter | Radius: 0
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --accent:        #74B815;
  --accent-dark:   #5d9310;
  --accent-light:  #eef6d6;
  --accent-mid:    #c8e88a;
  --gray-50:       #f8f9fa;
  --gray-100:      #f1f3f5;
  --gray-200:      #e9ecef;
  --gray-300:      #dee2e6;
  --gray-400:      #ced4da;
  --gray-500:      #adb5bd;
  --gray-600:      #868e96;
  --gray-700:      #495057;
  --gray-800:      #343a40;
  --gray-900:      #212529;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.1);
  --navbar-height: 60px;
  --content-width: 1200px;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; }

body {
  background: #f0f2f5;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: .875rem;
  color: var(--gray-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ── Tabler icon size fix ───────────────────────────── */
[class^="ti-"], [class*=" ti-"],
.ti { font-size: 1rem !important; line-height: 1; vertical-align: middle; }

/* ── NAVBAR OVERLAP ──────────────────────────────────── */
.navbar-overlap::after { background: #1e293b; }
.navbar { border-bottom: none; }
.navbar .navbar-brand-image { height: 28px; }
.navbar .nav-link { font-size: .88rem; font-weight: 500; }
.navbar .nav-link.active { font-weight: 600; }
.navbar .nav-link-icon .ti { font-size: .95rem !important; font-weight: 400; vertical-align: -1px; }
.navbar .navbar-nav .nav-link-title { font-size: .88rem; }
.navbar .navbar-nav.flex-row .nav-link .ti { font-size: .95rem !important; font-weight: 400; vertical-align: -1px; }

/* Page header (sits inside the dark overlap zone) */
.page-header { color: #fff; }
.page-header .page-title { color: #fff; }
.page-header .page-pretitle { color: rgba(255,255,255,.4); font-size: .72rem; letter-spacing: .02em; }
.page-header .page-pretitle a { color: rgba(255,255,255,.35); text-decoration: none; }
.page-header .page-pretitle a:hover { color: rgba(255,255,255,.7); }

/* Overlap header buttons */
.page-header .btn-overlap {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.1);
  font-size: .75rem;
  font-weight: 600;
}
.page-header .btn-overlap:hover { background: rgba(255,255,255,.15); color: #fff; }
.page-header .btn-overlap-primary {
  background: #74B815;
  color: #fff;
  border: none;
  font-size: .75rem;
  font-weight: 600;
}
.page-header .btn-overlap-primary:hover { background: #5d9310; }

/* ── MOBILE BOTTOM NAV ─────────────────────────────── */
.mob-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: #1e293b;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: .3rem 0 env(safe-area-inset-bottom, .3rem);
  box-shadow: 0 -2px 12px rgba(0,0,0,.2);
}
.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .1rem;
  flex: 1;
  padding: .35rem 0;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  font-size: .6rem;
  font-weight: 600;
  transition: color .12s;
  position: relative;
}
.mob-nav-item .ti { font-size: 1.15rem !important; line-height: 1; }
.mob-nav-item.active { color: #74B815; }
.mob-nav-item:hover { color: rgba(255,255,255,.7); }
.mob-nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 16px);
  background: #74B815;
  color: #fff;
  font-size: .5rem;
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .2rem;
  border-radius: 99px !important;
}
@media (max-width: 767.98px) {
  body { padding-bottom: 60px; }
}

/* ── PAGE WRAPPER ───────────────────────────────────── */
.page-wrapper {
  padding: 1.5rem 0;
}
.page-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── CARD ───────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 1rem; }

.card-header {
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}
.card-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.card-title .ti { color: var(--accent); font-size: 1rem !important; }
.card-badge {
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: .69rem;
  font-weight: 700;
  padding: .15rem .5rem;
}
.card-body { padding: 1.25rem; }

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .46rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid var(--gray-400);
  background: #fff;
  color: var(--gray-800);
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.4;
}
.btn:hover { background: var(--gray-50); border-color: var(--gray-500); color: var(--gray-900); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-danger  { color: #c92a2a; border-color: #ffc9c9; }
.btn-danger:hover  { background: #fff5f5; border-color: #c92a2a; }
.btn-ghost   { border-color: transparent; background: transparent; color: var(--gray-600); }
.btn-ghost:hover   { background: var(--gray-100); color: var(--gray-900); border-color: transparent; }
.btn-sm { padding: .3rem .7rem; font-size: .77rem; }
.btn-lg { padding: .6rem 1.25rem; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── FORMS ──────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: .3rem;
}
.form-control {
  display: block;
  width: 100%;
  padding: .5rem .8rem;
  font-size: .875rem;
  color: var(--gray-900);
  background: #fff;
  border: 1px solid var(--gray-400);
  outline: none;
  transition: border-color .12s, box-shadow .12s;
  font-family: inherit;
  line-height: 1.5;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(116,184,21,.12);
}
.form-control::placeholder { color: var(--gray-400); }
.form-hint { font-size: .72rem; color: var(--gray-500); margin-top: .25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }

/* ── ALERTI ─────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .75rem 1rem;
  font-size: .82rem;
  font-weight: 500;
  border: 1px solid transparent;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.alert-success { background: var(--accent-light); border-color: var(--accent-mid); color: var(--accent-dark); }
.alert-error   { background: #fff5f5; border-color: #ffc9c9; color: #c92a2a; }
.alert-info    { background: #e7f5ff; border-color: #bac8ff; color: #1971c2; }
.alert-warning { background: #fff3bf; border-color: #ffe066; color: #b45309; }

/* ── TABELA ──────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table thead th {
  padding: .6rem 1rem;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.data-table thead th:hover { color: var(--accent); }
.data-table thead th.tc { text-align: center; }
.sort-arrow { font-size: .6rem; opacity: .3; margin-left: .2rem; }
.sort-arrow.on { opacity: 1; color: var(--accent); }
.data-table tbody tr { border-bottom: 1px solid var(--gray-100); transition: background .08s; }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--accent-light); }
.data-table td { padding: .72rem 1rem; vertical-align: middle; }
.data-table td.tc { text-align: center; }

/* ── TABELA CELLS ──────────────────────────────── */
.t-id {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: monospace; font-size: .78rem; font-weight: 700;
  background: var(--gray-100); border: 1px solid var(--gray-300);
  padding: .18rem .45rem; color: var(--gray-800);
}
.sms-dot {
  width: 6px; height: 6px; background: var(--accent);
  display: inline-block; flex-shrink: 0;
  border-radius: 50% !important;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.15} }
.t-loc strong { font-weight: 700; color: var(--gray-900); display: block; line-height: 1.3; }
.t-loc small  { font-size: .71rem; color: var(--gray-500); }
.t-kt {
  font-size: .7rem; font-weight: 700; color: var(--gray-700);
  background: var(--gray-100); border: 1px solid var(--gray-300);
  padding: .12rem .45rem; display: inline-block;
}
.t-date strong { font-weight: 700; color: var(--gray-900); display: block; }
.t-date small  { font-size: .7rem; color: var(--gray-500); }
.t-time {
  font-size: .75rem; font-weight: 700; font-family: monospace;
  background: var(--accent-light); color: var(--accent-dark);
  border: 1px solid var(--accent-mid); padding: .18rem .5rem;
  display: inline-block;
}

/* KUPI BUTTON */
.btn-buy {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .32rem .72rem; font-size: .77rem; font-weight: 600;
  border: 1px solid var(--gray-400); background: #fff; color: var(--gray-800);
  cursor: pointer; transition: all .12s; white-space: nowrap; font-family: inherit;
}
.btn-buy:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }
.btn-buy.in-cart { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }
.btn-buy.guest:hover { background: var(--gray-50); border-color: var(--accent); color: var(--accent); }

/* ── PAGINATION ─────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1.25rem; border-top: 1px solid var(--gray-200);
  flex-wrap: wrap; gap: .5rem;
}
.pagination-info { font-size: .74rem; color: var(--gray-500); }
.pagination-info strong { color: var(--gray-900); }
.pagination-pages { display: flex; gap: .25rem; }
.pg-btn {
  height: 28px; min-width: 28px; padding: 0 .4rem;
  border: 1px solid var(--gray-300); background: #fff;
  font-size: .75rem; color: var(--gray-700);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .1s; font-family: inherit;
}
.pg-btn:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }
.pg-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.pg-btn:disabled { opacity: .3; cursor: not-allowed; }

/* ── PRETRAGA ─────────────────────────────────────────── */
.search-box {
  display: flex; align-items: center; gap: .4rem;
  border: 1px solid var(--gray-300); background: #fff;
  padding: .38rem .75rem; min-width: 220px;
  transition: border-color .12s;
}
.search-box:focus-within { border-color: var(--accent); }
.search-box .ti { color: var(--gray-400); flex-shrink: 0; font-size: .9rem !important; }
.search-box input {
  border: none; background: transparent; outline: none;
  font-size: .82rem; color: var(--gray-900); width: 100%; font-family: inherit;
}
.search-box input::placeholder { color: var(--gray-400); }

/* FILTERI */
.chip-group { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.chip {
  padding: .2rem .55rem; font-size: .72rem; font-weight: 700;
  border: 1px solid var(--gray-300); background: #fff;
  color: var(--gray-600); cursor: pointer; transition: all .1s; font-family: inherit;
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── SKELETON ───────────────────────────────────────── */
.skel {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  height: 13px; display: inline-block;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── EMPTY STATE ────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 3.5rem 1rem;
}
.empty-state .ti { font-size: 2.5rem !important; display: block; margin-bottom: .75rem; color: var(--gray-300); }
.empty-state h3 { font-size: .95rem; font-weight: 700; color: var(--gray-700); margin-bottom: .3rem; }
.empty-state p  { font-size: .82rem; color: var(--gray-500); }

/* ── STATS ROW ──────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--gray-300);
  border: 1px solid var(--gray-300); margin-bottom: 1.25rem;
}
.stat-card {
  background: #fff; padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: .85rem;
}
.stat-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.stat-icon .ti { font-size: 1.15rem !important; }
.si-green { background: var(--accent-light); color: var(--accent-dark); }
.si-blue  { background: #dbe4ff; color: #1971c2; }
.si-amber { background: #fff3bf; color: #e67700; }
.si-slate { background: var(--gray-100); color: var(--gray-600); }
.stat-label { font-size: .67rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); font-weight: 700; }
.stat-value { font-size: 1.45rem; font-weight: 700; color: var(--gray-900); line-height: 1.1; margin-top: .1rem; }

/* ── NOTIFIKACIJE ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .67rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .15rem .5rem;
}
.badge-upcoming { background: #dbe4ff; color: #1971c2; }
.badge-done     { background: var(--accent-light); color: var(--accent-dark); }
.badge-pending  { background: #fff3bf; color: #b45309; }

/* ── CALENDAR ───────────────────────────────────────── */
.cal-nav-btn {
  width: 28px; height: 28px; border: 1px solid var(--gray-300); background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gray-600); transition: all .1s;
}
.cal-nav-btn:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }
.cal-month-label { font-size: .88rem; font-weight: 700; color: var(--gray-900); min-width: 130px; text-align: center; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7,1fr); border-bottom: 1px solid var(--gray-200); }
.cal-wd {
  padding: .45rem 0; text-align: center;
  font-size: .66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--gray-400);
  border-right: 1px solid var(--gray-100);
}
.cal-wd:last-child { border-right: none; }
.cal-wd.weekend { color: #c92a2a; }
.cal-days { display: grid; grid-template-columns: repeat(7,1fr); }
.cal-day {
  min-height: 86px; padding: .35rem; cursor: pointer;
  border-right: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100);
  transition: background .1s;
}
.cal-day:hover { background: var(--accent-light); }
.cal-day.other-month { background: #fafbfc; }
.cal-day.other-month .cal-day-num { color: var(--gray-300); }
.cal-day.today { background: #fffde7; }
.cal-day.today .cal-day-num {
  background: var(--accent); color: #fff;
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .73rem;
}
.cal-day.weekend .cal-day-num { color: #c92a2a; }
.cal-day:nth-child(7n) { border-right: none; }
.cal-day-num { font-size: .75rem; font-weight: 600; color: var(--gray-700); margin-bottom: .22rem; display: inline-block; }
.cal-event {
  display: flex; align-items: center; gap: .2rem;
  border-left: 3px solid; padding: .14rem .3rem; margin-bottom: .15rem;
  font-size: .64rem; font-weight: 600; cursor: pointer; overflow: hidden;
  transition: opacity .1s;
}
.cal-event:hover { opacity: .8; }
.cal-event .ev-time { flex-shrink: 0; }
.cal-event .ev-city { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event.status-upcoming { background: #dbe4ff; border-color: #1971c2; color: #1971c2; }
.cal-event.status-done     { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }
.cal-event.status-pending  { background: #fff3bf; border-color: #e67700; color: #b45309; }
.cal-legend {
  display: flex; gap: 1rem; padding: .6rem 1.25rem;
  border-top: 1px solid var(--gray-200); flex-wrap: wrap;
}
.leg { display: flex; align-items: center; gap: .35rem; font-size: .72rem; color: var(--gray-500); }
.leg-dot { width: 10px; height: 10px; flex-shrink: 0; }
.leg-dot.upcoming { background: #1971c2; }
.leg-dot.done     { background: var(--accent); }

/* ── SIDEBAR ────────────────────────────────────────── */
.sidebar-card { background: #fff; border: 1px solid var(--gray-300); box-shadow: var(--shadow-sm); }
.sidebar-header {
  padding: .75rem 1rem; border-bottom: 1px solid var(--gray-200);
  font-size: .84rem; font-weight: 700; color: var(--gray-900);
  display: flex; align-items: center; gap: .4rem;
}
.sidebar-header .ti { color: var(--accent); }
.termin-detail-item { border: 1px solid var(--gray-200); margin-bottom: .5rem; }
.tdi-header {
  background: var(--accent-light); padding: .38rem .7rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--accent-mid);
}
.tdi-id { font-family: monospace; font-size: .74rem; font-weight: 700; color: var(--accent-dark); display: flex; align-items: center; gap: .25rem; }
.tdi-time { font-size: .74rem; font-weight: 700; color: var(--accent-dark); font-family: monospace; }
.tdi-body { padding: .5rem .7rem; }
.tdi-city { font-size: .85rem; font-weight: 700; color: var(--gray-900); }
.tdi-plz  { font-size: .71rem; color: var(--gray-500); margin-top: .1rem; }
.ul-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem 1rem; border-bottom: 1px solid var(--gray-100);
  cursor: pointer; transition: background .1s;
}
.ul-item:last-child { border-bottom: none; }
.ul-item:hover { background: var(--accent-light); }
.ul-date-block {
  flex-shrink: 0; width: 36px; text-align: center;
  background: var(--gray-50); border: 1px solid var(--gray-200); padding: .2rem 0;
}
.ul-day-num { font-size: .9rem; font-weight: 700; color: var(--gray-900); line-height: 1; }
.ul-month   { font-size: .6rem; font-weight: 700; text-transform: uppercase; color: var(--gray-400); letter-spacing: .04em; }
.ul-info { flex: 1; min-width: 0; }
.ul-city { font-size: .82rem; font-weight: 700; color: var(--gray-900); }
.ul-meta { font-size: .69rem; color: var(--gray-500); margin-top: .08rem; }
.ul-time { font-family: monospace; font-size: .73rem; font-weight: 700; color: var(--accent-dark); background: var(--accent-light); border: 1px solid var(--accent-mid); padding: .1rem .38rem; flex-shrink: 0; }

/* ── TERMINI U CARTU ─────────────────────────────────────── */
.cart-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: .9rem 1.25rem; border-bottom: 1px solid var(--gray-100);
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: var(--gray-50); }
.cart-item-date {
  flex-shrink: 0; width: 48px; text-align: center;
  background: var(--accent-light); border: 1px solid var(--accent-mid); padding: .4rem .3rem;
}
.cart-item-date .day   { font-size: 1.1rem; font-weight: 700; color: var(--accent-dark); line-height: 1; }
.cart-item-date .month { font-size: .62rem; font-weight: 700; text-transform: uppercase; color: var(--accent-dark); letter-spacing: .04em; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: .88rem; font-weight: 700; color: var(--gray-900); }
.cart-item-meta  { font-size: .74rem; color: var(--gray-500); margin-top: .2rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.cart-item-ins   { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: .35rem; }
.ins-tag { font-size: .65rem; font-weight: 700; background: var(--gray-100); border: 1px solid var(--gray-200); color: var(--gray-600); padding: .08rem .38rem; }
.cart-item-action { flex-shrink: 0; display: flex; align-items: flex-start; padding-top: .1rem; }

/* ── CHECKOUT KORACI ─────────────────────────────────── */
.steps {
  display: flex; border: 1px solid var(--gray-300); background: #fff;
  margin-bottom: 1.25rem;
}
.step {
  flex: 1; display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1.25rem; font-size: .8rem; font-weight: 600;
  color: var(--gray-400); border-right: 1px solid var(--gray-200);
}
.step:last-child { border-right: none; }
.step.active { color: var(--accent-dark); background: var(--accent-light); }
.step.done   { color: var(--gray-600); }
.step-num {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--gray-200); color: var(--gray-600);
  font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step.active .step-num { background: var(--accent); color: #fff; }
.step.done   .step-num { background: var(--gray-500); color: #fff; }

/* ── AUTH STRANICE ─────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - var(--navbar-height));
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem; background: #f0f2f5;
}
.auth-card {
  width: 100%; max-width: 480px;
  background: #fff; border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-md);
}
.auth-card-top {
  padding: 2rem 2rem 0;
  text-align: center;
}
.auth-card-top h1 { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: .25rem; }
.auth-card-top p  { font-size: .82rem; color: var(--gray-500); margin-bottom: 0; }
.auth-card-body { padding: 1.75rem 2rem 2rem; }
.auth-divider {
  display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0;
  font-size: .75rem; color: var(--gray-400); font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}
.auth-footer {
  text-align: center; padding: 1rem 2rem 1.5rem;
  font-size: .82rem; color: var(--gray-500);
  border-top: 1px solid var(--gray-100);
}
.auth-footer a { color: var(--accent); font-weight: 700; }

/* ── MODAL PROZOR ──────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 9000;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; width: 100%; max-width: 420px;
  border-top: 3px solid var(--accent);
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  position: relative;
}
.modal-close {
  position: absolute; top: .75rem; right: .75rem;
  background: none; border: none; font-size: 1.1rem;
  color: var(--gray-400); cursor: pointer; line-height: 1; padding: .2rem;
}
.modal-close:hover { color: var(--gray-900); }
.modal-tabs { display: flex; border-bottom: 1px solid var(--gray-200); }
.modal-tab {
  flex: 1; padding: .85rem; text-align: center;
  font-size: .85rem; font-weight: 700; cursor: pointer;
  color: var(--gray-500); background: var(--gray-50);
  border: none; transition: all .12s; font-family: inherit;
}
.modal-tab.active { background: #fff; color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.modal-body { padding: 1.5rem; }

/* ── STRANICA ACCOUNT ───────────────────────────────────── */
.account-grid {
  display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; align-items: start;
}
.account-nav { background: #fff; border: 1px solid var(--gray-300); box-shadow: var(--shadow-sm); }

/* ── SHARED PANEL NAV (Admin + Client sidebar) ──────────── */
.panel-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid #f1f3f5;
  text-decoration: none;
  color: #495057;
  transition: background .1s, color .1s;
}
.panel-nav-item:last-child { border-bottom: none; }
.panel-nav-item:hover { background: #eef6d6; color: #5d9310; text-decoration: none; }
.panel-nav-item .ti { font-size: 1rem !important; color: #74B815; flex-shrink: 0; }
.panel-nav-label { font-weight: 600; font-size: .85rem; }
.panel-nav-sub { font-size: .7rem; color: #868e96; font-weight: 400; }

/* ── SPIN ───────────────────────────────────────────── */
.spin { animation: spin360 .75s linear infinite; display: inline-block; }
@keyframes spin360 { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-main { display: none; }
  .page-container { padding: 0 .85rem; }
  .form-row { grid-template-columns: 1fr; }
  .card-header { flex-direction: column; align-items: flex-start; }
  .search-box { min-width: unset; width: 100%; }
  .steps { flex-direction: column; }
  .step { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .auth-card-top { padding: 1.5rem 1.5rem 0; }
  .auth-card-body { padding: 1.25rem 1.5rem 1.5rem; }
  .auth-footer { padding: 1rem 1.5rem 1.25rem; }
}
@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr; }
  .navbar-inner { padding: 0 1rem; }
}

/* EXTRA POPRAVKE */
.chip {
    padding: .3rem .7rem;
}

/* ── CHECKOUT STEP PILLS (in page-header) ───────────── */
.co-pills {
  display: flex;
  align-items: center;
  gap: 4px;
}
.co-pills .chevron {
  font-size: .55rem;
  color: rgba(255,255,255,.15);
  margin: 0 2px;
}
.co-pill {
  font-size: .68rem;
  font-weight: 600;
  padding: .3rem 0;
  width: 100px;
  text-align: center;
  color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
}
.co-pill.active {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
}
.co-pill.done {
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
}



/* ── NOTIFICATION DROPDOWN ──────────────────────────── */
.notif-dropdown {
  width: 380px !important;
  padding: 0 !important;
  max-height: 480px;
  overflow: hidden;
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
}
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid #e9ecef;
  font-size: .88rem;
  font-weight: 700;
  color: #1e293b;
}
.notif-mark-all {
  font-size: .72rem;
  font-weight: 600;
  color: #74B815;
  text-decoration: none;
}
.notif-mark-all:hover { text-decoration: underline; }
.notif-list {
  max-height: 360px;
  overflow-y: auto;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .7rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid #f1f3f5;
  transition: background .1s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #f8f9fa; text-decoration: none !important; }
.notif-item:focus { text-decoration: none !important; }
.notif-item.notif-unread { background: #f0f7ff; }
.notif-item.notif-unread:hover { background: #e7f0fb; }
.notif-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  margin-top: 5px;
  border-radius: 50% !important;
}
.notif-dot-green  { background: #74B815; }
.notif-dot-yellow { background: #f59f00; }
.notif-dot-red    { background: #e03131; }
.notif-content { flex: 1; min-width: 0; }
.notif-title {
  font-size: .84rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}
.notif-body {
  font-size: .78rem;
  color: #868e96;
  line-height: 1.35;
  margin-top: .1rem;
}
.notif-time {
  font-size: .68rem;
  color: #adb5bd;
  margin-top: .2rem;
}
.notif-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #adb5bd;
  font-size: .84rem;
}
.notif-footer {
  border-top: 1px solid #e9ecef;
  padding: .6rem 1rem;
  text-align: center;
}
.notif-footer a {
  font-size: .78rem;
  font-weight: 600;
  color: #74B815;
  text-decoration: none;
}
.notif-footer a:hover { text-decoration: underline; }

/* ── CHAT PAGE ──────────────────────────────────────── */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 400px;
  background: #fff;
  border: 1px solid #dee2e6;
}
.chat-header {
  padding: .75rem 1.25rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.chat-header-title { font-size: .9rem; font-weight: 700; color: #1e293b; }
.chat-header-sub { font-size: .72rem; color: #868e96; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.chat-msg {
  max-width: 75%;
  padding: .6rem .85rem;
  font-size: .84rem;
  line-height: 1.45;
  position: relative;
}
.chat-msg-user {
  align-self: flex-end;
  background: #1e293b;
  color: #fff;
}
.chat-msg-admin {
  align-self: flex-start;
  background: #f1f3f5;
  color: #1e293b;
}
.chat-msg-time {
  font-size: .6rem;
  color: rgba(255,255,255,.4);
  margin-top: .25rem;
  text-align: right;
}
.chat-msg-admin .chat-msg-time { color: #adb5bd; text-align: left; }
.chat-msg-sender {
  font-size: .65rem;
  font-weight: 700;
  color: #74B815;
  margin-bottom: .15rem;
}
.chat-broadcast {
  align-self: center;
  background: #fff9db;
  border: 1px solid #ffe066;
  color: #b45309;
  max-width: 85%;
  text-align: center;
}
.chat-broadcast .chat-broadcast-title {
  font-weight: 700;
  font-size: .84rem;
  margin-bottom: .15rem;
}
.chat-broadcast .chat-broadcast-body {
  font-size: .78rem;
}
.chat-input-wrap {
  border-top: 1px solid #e9ecef;
  padding: .75rem 1.25rem;
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  border: 1px solid #dee2e6;
  padding: .5rem .75rem;
  font-size: .84rem;
  font-family: inherit;
  outline: none;
  resize: none;
  min-height: 40px;
  max-height: 100px;
}
.chat-input:focus { border-color: #74B815; }
.chat-send-btn {
  flex-shrink: 0;
  background: #74B815;
  color: #fff;
  border: none;
  padding: .5rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .3rem;
  font-family: inherit;
}
.chat-send-btn:hover { background: #5d9310; }
.chat-send-btn:disabled { opacity: .5; cursor: not-allowed; }
.chat-date-divider {
  text-align: center;
  font-size: .65rem;
  font-weight: 700;
  color: #adb5bd;
  padding: .5rem 0;
}

/* ── ADMIN CHAT ─────────────────────────────────────── */
.admin-chat-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: calc(100vh - 200px);
  min-height: 400px;
  border: 1px solid #dee2e6;
  background: #fff;
}
.admin-chat-sidebar {
  border-right: 1px solid #e9ecef;
  overflow-y: auto;
}
.admin-chat-sidebar-header {
  padding: .75rem 1rem;
  border-bottom: 1px solid #e9ecef;
  font-size: .85rem;
  font-weight: 700;
  color: #1e293b;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.admin-conv-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f3f5;
  transition: background .1s;
}
.admin-conv-item:hover { background: #f8f9fa; }
.admin-conv-item.active { background: #eef6d6; border-left: 3px solid #74B815; }
.admin-conv-avatar {
  width: 32px; height: 32px;
  background: #1e293b; color: #fff;
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border-radius: 50% !important;
}
.admin-conv-info { flex: 1; min-width: 0; }
.admin-conv-name { font-size: .82rem; font-weight: 600; color: #1e293b; }
.admin-conv-last { font-size: .7rem; color: #868e96; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-conv-badge {
  background: #e03131; color: #fff;
  font-size: .55rem; font-weight: 700;
  min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 .25rem;
  border-radius: 99px !important;
}
.admin-chat-main {
  display: flex;
  flex-direction: column;
}
.admin-chat-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: .88rem;
}
@media (max-width: 768px) {
  .admin-chat-grid { grid-template-columns: 1fr; }
  .admin-chat-sidebar { max-height: 200px; }
  .notif-dropdown { width: 300px !important; }
}

/* ── TOAST NOTIFICATIONS ────────────────────────────── */
.toast-container {
  position: fixed;
  top: 70px;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
  max-width: 380px;
}
.tp-toast {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .75rem 1rem;
  background: #fff;
  border: 1px solid #e9ecef;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  font-size: .84rem;
  color: #1e293b;
  pointer-events: auto;
  animation: toastIn .3s ease;
  position: relative;
  min-width: 280px;
}
.tp-toast.removing { animation: toastOut .25s ease forwards; }
.tp-toast-icon {
  flex-shrink: 0; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
}
.tp-toast-success .tp-toast-icon { color: #74B815; }
.tp-toast-error .tp-toast-icon { color: #e03131; }
.tp-toast-warning .tp-toast-icon { color: #f59f00; }
.tp-toast-info .tp-toast-icon { color: #1971c2; }
.tp-toast-success { border-left: 3px solid #74B815; }
.tp-toast-error { border-left: 3px solid #e03131; }
.tp-toast-warning { border-left: 3px solid #f59f00; }
.tp-toast-info { border-left: 3px solid #1971c2; }
.tp-toast-body { flex: 1; line-height: 1.4; }
.tp-toast-title { font-weight: 700; font-size: .84rem; margin-bottom: .1rem; }
.tp-toast-msg { font-size: .78rem; color: #868e96; }
.tp-toast-close {
  flex-shrink: 0; background: none; border: none;
  color: #adb5bd; font-size: .8rem; cursor: pointer; padding: 0; line-height: 1;
}
.tp-toast-close:hover { color: #495057; }
.tp-toast-progress {
  position: absolute; bottom: 0; left: 0; height: 2px;
  animation: toastProgress linear forwards;
}
.tp-toast-success .tp-toast-progress { background: #74B815; }
.tp-toast-error .tp-toast-progress { background: #e03131; }
.tp-toast-warning .tp-toast-progress { background: #f59f00; }
.tp-toast-info .tp-toast-progress { background: #1971c2; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(40px); } }
@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }
@media (max-width: 600px) {
  .toast-container { left: .5rem; right: .5rem; max-width: none; top: 60px; }
}

/* ═══════════════════════════════════════════════════════
   SMOOTH TRANSITIONS — Global polish
═══════════════════════════════════════════════════════ */

/* Page fade-in */
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-body { animation: fadeIn .25s ease-out; }

/* Cards — hover lift */
.card {
  transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

/* Links — color transition */
a { transition: color .15s ease; }

/* Buttons — smooth all states */
.btn, .btn-buy, .btn-primary, .btn-danger, .btn-ghost,
.footer-btn, .chat-send-btn, .cal-nav-btn, .pg-btn, .chip {
  transition: all .15s ease;
}

/* Form inputs — focus glow */
.form-control, .chat-input, .search-box, select.form-select {
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* Table rows */
.data-table tbody tr { transition: background .15s ease; }

/* Nav items */
.panel-nav-item { transition: background .15s ease, color .15s ease, border-color .15s ease; }
.mob-nav-item { transition: color .15s ease; }
.navbar .nav-link { transition: color .15s ease, opacity .15s ease; }

/* Badges & chips */
.badge, .chip, .ag-chip, .filter-chip, .t-kt, .ins-tag {
  transition: all .15s ease;
}

/* Modals — fade in */
.modal.fade .modal-dialog { transition: transform .2s ease-out, opacity .2s ease-out; }

/* Sidebar items */
.ul-item, .admin-conv-item, .notif-item, .cart-item {
  transition: background .15s ease;
}

/* Calendar days */
.cal-day { transition: background .15s ease; }

/* Dropdown menus */
.dropdown-menu { transition: opacity .15s ease; }

/* ═══════════════════════════════════════════════════════
   POOL PAGE REDESIGN
═══════════════════════════════════════════════════════ */

/* ── Hero enhancements ─────────────────────────────── */
.pool-hero-sub {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  margin-top: .3rem;
  font-weight: 400;
}
.live-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  display: inline-block;
  animation: livePulse 2s infinite;
  margin-right: .35rem;
  vertical-align: middle;
}
@keyframes livePulse {
  0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(116,184,21,.4); }
  50% { opacity:.6; box-shadow:0 0 0 4px rgba(116,184,21,0); }
}
.page-header .hero-actions {
  display: flex; gap: .5rem; flex-shrink: 0;
}

/* ── Info strip ────────────────────────────────────── */
.pool-info-strip {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--gray-200);
  padding: .55rem 1rem;
  margin-top: 20px;
  margin-bottom: 1rem;
  font-size: .78rem;
  color: var(--gray-600);
  box-shadow: var(--shadow-sm);
}
.pool-info-item {
  display: flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
.pool-info-item .ti { font-size: .85rem !important; color: var(--gray-400); }
.pool-info-item strong { color: var(--gray-900); font-weight: 700; }
.pool-info-dot {
  width: 3px;
  height: 3px;
  background: var(--gray-400);
  flex-shrink: 0;
}
.pool-info-live { color: var(--accent-dark); font-weight: 600; }

/* ── Pool toolbar ──────────────────────────────────── */
.pool-toolbar {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}
.pool-search {
  display: flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--gray-300);
  padding: .45rem .75rem; flex: 1;
  min-width: 200px; max-width: 340px;
  transition: border-color .15s, box-shadow .15s;
}
.pool-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(116,184,21,.1);
}
.pool-search .ti { color: var(--gray-400); font-size: .9rem !important; flex-shrink: 0; }
.pool-search input {
  border: none; background: none; outline: none;
  font-size: .82rem; color: var(--gray-900); width: 100%;
  font-family: inherit;
}
.pool-search input::placeholder { color: var(--gray-400); }

.view-toggle {
  display: flex;
  border: 1px solid var(--gray-300);
  background: #fff;
  overflow: hidden;
}
.view-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  color: var(--gray-500); cursor: pointer;
  transition: all .12s; font-family: inherit;
}
.view-btn:not(:last-child) { border-right: 1px solid var(--gray-200); }
.view-btn:hover { color: var(--gray-700); background: var(--gray-50); }
.view-btn.active { background: var(--accent); color: #fff; }

.pool-toolbar-right {
  display: flex; align-items: center; gap: .5rem; margin-left: auto;
}
.sort-select {
  padding: .4rem .7rem; font-size: .77rem; font-weight: 600;
  border: 1px solid var(--gray-300); background: #fff;
  color: var(--gray-700); cursor: pointer; font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23868e96' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .5rem center;
  padding-right: 1.8rem;
}

/* ── Filter bar (chip counts) ──────────────────────── */
/* ── Termin-Art segmented toggle (prominent) ───────── */
.art-toggle {
  display: inline-flex; margin-bottom: 1rem;
  border: 1px solid var(--gray-300); background: #fff;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.art-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.15rem; font-size: .85rem; font-weight: 700;
  background: none; border: none; cursor: pointer;
  color: var(--gray-600); font-family: inherit; transition: all .12s;
}
.art-btn:not(:last-child) { border-right: 1px solid var(--gray-200); }
.art-btn .ti { font-size: 1.05rem; }
.art-btn:hover { background: var(--gray-50); color: var(--gray-900); }
.art-btn.active { background: var(--accent); color: #fff; }
.art-btn.art-remote.active { background: #1971c2; color: #fff; }

@media (max-width: 575px) {
  .art-toggle { display: flex; width: 100%; }
  .art-btn { flex: 1; justify-content: center; padding: .55rem .4rem; }
}

.pool-filters {
  display: flex; gap: .3rem; flex-wrap: wrap;
  margin-bottom: .85rem; align-items: center;
}
.pool-filters .filter-label {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--gray-500); margin-right: .25rem;
}
.chip .chip-count {
  font-size: .58rem; background: rgba(0,0,0,.07);
  padding: .02rem .28rem; margin-left: .2rem; font-weight: 700;
}
.chip.active .chip-count { background: rgba(255,255,255,.2); }

/* ── View panels ───────────────────────────────────── */
.pool-view { display: none; }
.pool-view.active { display: block; }
.pool-view.active.is-grid { display: grid; }

/* ── Termin card grid ──────────────────────────────── */
.termin-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: .75rem;
}
.termin-card {
  background: #fff; border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all .2s;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.termin-card:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tc-header {
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--gray-100);
}
.tc-date {
  flex-shrink: 0; width: 46px; text-align: center;
  background: #1e293b; color: #fff; padding: .35rem .25rem;
}
.tc-day { font-size: 1.1rem; font-weight: 800; line-height: 1; }
.tc-mon { font-size: .52rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .7; margin-top: .12rem; }
.tc-headline { flex: 1; min-width: 0; }
.tc-city { font-size: .9rem; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
.tc-plz  { font-size: .71rem; color: var(--gray-500); margin-top: .08rem; }
.tc-canton-img { width: 26px; height: auto; flex-shrink: 0; opacity: .8; }
.tc-body {
  padding: .7rem 1rem; flex: 1;
  display: flex; flex-direction: column; gap: .5rem;
}
.tc-meta {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.tc-meta-item {
  display: flex; align-items: center; gap: .25rem;
  font-size: .73rem; color: var(--gray-600);
}
.tc-meta-item .ti { font-size: .82rem !important; color: var(--gray-400); }
.tc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1rem;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.tc-price { font-size: 1rem; font-weight: 800; color: var(--accent-dark); letter-spacing: -.02em; }
.tc-price-sub { font-size: .58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); }
.tc-verified {
  display: inline-flex; align-items: center; gap: .2rem;
  font-size: .63rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; background: #d3f9d8; color: #2b8a3e;
  border: 1px solid #b2f2bb; padding: .1rem .4rem;
}
.tc-verified .ti { font-size: .7rem !important; }

.tc-remote {
  display: inline-flex; align-items: center; gap: .2rem;
  font-size: .63rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; background: #dbeafe; color: #1971c2;
  border: 1px solid #a5d8ff; padding: .1rem .4rem;
}
.tc-remote .ti { font-size: .7rem !important; }
.tc-local {
  display: inline-flex; align-items: center; gap: .2rem;
  font-size: .63rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  background: #f1f3f5; color: #495057;
  border: 1px solid #dee2e6; padding: .1rem .4rem;
}
.tc-local .ti { font-size: .7rem !important; }

/* ── Map view ──────────────────────────────────────── */
.pool-map-wrap {
  position: relative;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
#poolMap { height: 520px; width: 100%; z-index: 1; }

.leaflet-popup-content-wrapper { border-radius: 0 !important; box-shadow: var(--shadow-md) !important; padding: 0 !important; }
.leaflet-popup-content { margin: 0 !important; min-width: 200px; font-family: 'Inter', sans-serif; }
.leaflet-popup-tip { display: none; }
.leaflet-container a.leaflet-popup-close-button {
  top: 6px !important; right: 6px !important;
  width: 20px !important; height: 20px !important;
  font-size: 14px !important; line-height: 20px !important;
  color: var(--gray-500) !important;
}

.popup-canton-hdr { background: #1e293b; color: #fff; padding: .55rem .8rem; display: flex; align-items: center; gap: .5rem; }
.popup-canton-abbr { font-size: 1rem; font-weight: 800; }
.popup-canton-name { font-size: .82rem; font-weight: 600; }
.popup-canton-body { padding: .55rem .8rem; }
.popup-canton-row { display: flex; align-items: center; gap: .45rem; font-size: .76rem; color: var(--gray-700); padding: .15rem 0; }
.popup-canton-row .ti { font-size: .82rem !important; color: var(--gray-400); }
.popup-canton-row strong { color: var(--gray-900); }
.popup-canton-ft { padding: .45rem .8rem; background: var(--gray-50); border-top: 1px solid var(--gray-100); }
.popup-filter-btn {
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  width: 100%; padding: .38rem .7rem; font-size: .73rem; font-weight: 600;
  border: 2px solid var(--accent); background: #fff; color: var(--accent-dark);
  cursor: pointer; transition: all .12s; font-family: inherit;
}
.popup-filter-btn:hover { background: var(--accent); color: #fff; }

.canton-marker {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: transform .15s;
}
.canton-marker:hover { transform: scale(1.15); z-index: 1000 !important; }
.canton-marker-circle {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800;
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.canton-marker-label {
  font-size: .58rem; font-weight: 700; color: #1e293b;
  text-align: center; margin-top: 2px;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
  letter-spacing: .03em;
}
.canton-marker-empty .canton-marker-circle {
  background: var(--gray-400) !important;
  border-color: rgba(255,255,255,.6); opacity: .5;
}

.map-sidebar {
  position: absolute; top: 10px; right: 10px;
  width: 300px; max-height: calc(100% - 20px);
  background: #fff; border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md); z-index: 500;
  display: flex; flex-direction: column; overflow: hidden;
}
.map-sidebar-hdr {
  padding: .65rem .85rem; border-bottom: 1px solid var(--gray-200);
  font-size: .8rem; font-weight: 700; color: var(--gray-900);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gray-50); flex-shrink: 0;
}
.map-sidebar-hdr .count { font-size: .68rem; font-weight: 700; background: var(--accent); color: #fff; padding: .08rem .4rem; }
.map-sidebar-list { overflow-y: auto; flex: 1; }
.map-sb-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .85rem; border-bottom: 1px solid var(--gray-100);
  cursor: pointer; transition: background .1s;
}
.map-sb-item:last-child { border-bottom: none; }
.map-sb-item:hover { background: #f8fdf0; }
.map-sb-item.active { background: var(--accent-light); border-left: 3px solid var(--accent); }
.map-sb-kt {
  flex-shrink: 0; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; color: #fff; background: #1e293b;
}
.map-sb-kt.hot { background: var(--accent-dark); }
.map-sb-kt.warm { background: #e67700; }
.map-sb-info { flex: 1; min-width: 0; }
.map-sb-name { font-size: .8rem; font-weight: 700; color: var(--gray-900); }
.map-sb-meta { font-size: .68rem; color: var(--gray-500); margin-top: .1rem; display: flex; gap: .5rem; align-items: center; }
.map-sb-count { font-size: .68rem; font-weight: 700; color: var(--accent-dark); background: var(--accent-light); border: 1px solid var(--accent-mid); padding: .06rem .4rem; flex-shrink: 0; }

.map-legend {
  position: absolute; bottom: 10px; left: 10px;
  background: #fff; border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm); padding: .5rem .75rem; z-index: 500;
  font-size: .68rem;
}
.map-legend-title { font-weight: 700; color: var(--gray-700); margin-bottom: .3rem; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; }
.map-legend-row { display: flex; align-items: center; gap: .35rem; padding: .1rem 0; color: var(--gray-600); }
.map-legend-dot { width: 10px; height: 10px; flex-shrink: 0; }

/* ── Mobile drawer (map) ───────────────────────────── */
.map-drawer { display: none; }
@media (max-width: 768px) {
  .map-drawer {
    display: block; position: fixed; bottom: 60px;
    left: 0; right: 0; z-index: 600;
    background: #fff; border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 20px rgba(0,0,0,.15);
    transition: transform .3s cubic-bezier(.25,.8,.25,1);
    max-height: 60vh; will-change: transform;
  }
  .map-drawer.collapsed { transform: translateY(calc(100% - 48px)); }
  .map-drawer.peek { transform: translateY(calc(100% - 180px)); }
  .map-drawer.expanded { transform: translateY(0); }
  .drawer-handle {
    display: flex; align-items: center; justify-content: center;
    padding: .4rem 0; cursor: grab; touch-action: none; user-select: none;
  }
  .drawer-handle:active { cursor: grabbing; }
  .drawer-handle-bar { width: 32px; height: 4px; background: var(--gray-300); }
  .drawer-hdr {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 .85rem .5rem; font-size: .8rem; font-weight: 700;
    color: var(--gray-900);
  }
  .drawer-hdr .ti { color: var(--accent); }
  .drawer-hdr .count { font-size: .65rem; font-weight: 700; background: var(--accent); color: #fff; padding: .08rem .35rem; }
  .drawer-list { overflow-y: auto; max-height: calc(60vh - 70px); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
}

/* ── Pool responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .pool-toolbar { flex-direction: column; align-items: stretch; }
  .pool-search { max-width: none; }
  .pool-toolbar-right { margin-left: 0; justify-content: space-between; }
  .termin-grid { grid-template-columns: 1fr; }
  .pool-filters {
    overflow-x: auto; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 2px;
  }
  .pool-filters::-webkit-scrollbar { display: none; }
  .pool-filters .chip { flex-shrink: 0; }
  .pool-hero-sub { font-size: .74rem; }
  #poolMap { height: 350px; }
  .map-sidebar { display: none; }
  .map-legend { display: none; }
  .page-header .hero-actions { display: none; }
  /* Keep table readable on mobile */
  .pool-view .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pool-view .table th, .pool-view .table td { white-space: nowrap; }
}
@media (max-width: 480px) {
  .pool-info-strip { font-size: .72rem; padding: .45rem .75rem; gap: .4rem; }
}