/* === filter-chips.css === */
/* GolfBelek.com — Filter Chips Component v2.0 */
/* 2x3 chip grid, split-tap, date picker, dropdowns, drawer */

/* ── CSS Custom Properties ── */
:root {
  --fc-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --fc-radius: 10px;
  --fc-chip-h: 42px;
  --fc-gap: 6px;
  --fc-border: 1.5px;

  /* Colors */
  --fc-grey: #e0ddd8;
  --fc-grey-bg: #fafafa;
  --fc-grey-icon: #999;
  --fc-grey-text: #777;
  --fc-green: #2d8a55;
  --fc-green-dark: #1a3a1a;
  --fc-green-bg: #e8f5ee;
  --fc-green-border: #1a3a1a;
  --fc-orange-bg: #fef0e6;
  --fc-text: #1a3a1a;
  --fc-text-sub: #555;
  --fc-white: #fff;
  --fc-bg: #f8fafc;
  --fc-overlay: rgba(0,0,0,0.35);
  --fc-drawer-w: 280px;
  --fc-shadow: 0 2px 12px rgba(0,0,0,0.10);
  --fc-drop-shadow: 0 4px 20px rgba(0,0,0,0.14);
  --fc-transition: 0.18s ease;

  /* Date picker */
  --fc-blue: #378ADD;
  --fc-blue-bg: #E6F1FB;
  --fc-blue-text: #0C447C;
  --fc-red: #E24B4A;
  --fc-red-bg: rgba(226,75,74,0.08);
  --fc-red-text: #A32D2D;
}

/* ── Wrap ── */
.fc-wrap {
  font-family: var(--fc-font);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ── Logo Bar ── */
.fc-logo-bar {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 12px;
  background: var(--fc-white);
  border-bottom: 0.5px solid var(--fc-grey);
}
.fc-logo-bar__brand { display: flex; align-items: center; }
.fc-logo-bar__logo { height: 28px; width: auto; }
.fc-logo-bar__nav {
  display: none;
  margin-left: auto;
  gap: 16px;
}
.fc-logo-bar__nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--fc-text-sub);
  text-decoration: none;
  transition: color var(--fc-transition);
}
.fc-logo-bar__nav a:hover { color: var(--fc-green); }
.fc-logo-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.fc-logo-bar__signin {
  font-size: 13px;
  font-weight: 500;
  color: var(--fc-text-sub);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background var(--fc-transition);
}
.fc-logo-bar__signin:hover { background: var(--fc-grey-bg); }
.fc-logo-bar__burger {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
  transition: background var(--fc-transition);
}
.fc-logo-bar__burger:hover { background: var(--fc-grey-bg); }
.fc-logo-bar__burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fc-text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ── Chip Grid — 2x3 ── */
.fc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--fc-gap);
  padding: 8px 10px;
  background: var(--fc-bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ── Individual Chip ── */
.fc-chip {
  display: flex;
  align-items: center;
  height: var(--fc-chip-h);
  border: var(--fc-border) solid var(--fc-grey);
  border-radius: var(--fc-radius);
  background: var(--fc-white);
  overflow: visible;
  cursor: pointer;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--fc-transition), background var(--fc-transition), box-shadow var(--fc-transition);
}
.fc-chip:active { transform: scale(0.97); }

/* Active state */
.fc-chip.fc-active {
  border-color: var(--fc-green-dark);
  background: var(--fc-green-bg);
}
.fc-chip.fc-active .fc-chip__icon { color: var(--fc-green); }
.fc-chip.fc-active .fc-chip__val { color: var(--fc-green-dark); font-weight: 600; }

/* Zero state */
.fc-chip.fc-zero {
  border-color: var(--fc-grey);
  background: var(--fc-grey-bg);
}
.fc-chip.fc-zero .fc-chip__icon { color: var(--fc-grey-icon); }
.fc-chip.fc-zero .fc-chip__val { color: var(--fc-grey-text); }
.fc-chip.fc-zero .fc-chip__dec { color: #ccc; }

/* ── Split Tap Zones ── */
.fc-chip__dec {
  width: 20%;
  min-width: 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--fc-text-sub);
  border-right: 0.5px solid var(--fc-grey);
  flex-shrink: 0;
  transition: background 0.12s;
}
.fc-chip__dec:active { background: var(--fc-orange-bg); }

.fc-chip__main {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 6px;
  min-width: 0;
  transition: background 0.12s;
}
.fc-chip__main:active { background: var(--fc-green-bg); }

/* Full tap chip (no split) */
.fc-chip--full .fc-chip__main { width: 100%; }

/* ── Chip content ── */
.fc-chip__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--fc-text-sub);
  transition: color var(--fc-transition);
}
.fc-chip__icon svg { width: 100%; height: 100%; display: block; }
/* Cart icon is wider */
.fc-chip__icon--wide { width: 24px; }

.fc-chip__val {
  font-size: 12px;
  font-weight: 500;
  color: var(--fc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.fc-chip__caret {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  color: var(--fc-grey-icon);
  transition: transform 0.2s ease;
}
.fc-chip__caret svg { width: 100%; height: 100%; display: block; }
.fc-chip.fc-drop-open .fc-chip__caret { transform: rotate(180deg); }

/* ── Flash animations ── */
@keyframes fc-flash-dec {
  0% { background: transparent; }
  30% { background: var(--fc-orange-bg); }
  100% { background: transparent; }
}
@keyframes fc-flash-inc {
  0% { background: transparent; }
  30% { background: var(--fc-green-bg); }
  100% { background: transparent; }
}
.fc-flash-minus { animation: fc-flash-dec 0.4s ease; }
.fc-flash-plus  { animation: fc-flash-inc 0.4s ease; }

/* Max badge */
.fc-chip__max {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 9px;
  font-weight: 600;
  background: var(--fc-red);
  color: #fff;
  padding: 1px 4px;
  border-radius: 8px;
  line-height: 1.2;
  pointer-events: none;
}

/* ── Date Picker (calendar panel) ── */
.fc-dp {
  grid-column: 1 / -1;
  width: 100%;
  z-index: 60;
  background: var(--fc-white);
  border: 0.5px solid var(--fc-grey);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-drop-shadow);
  overflow: hidden;
  display: none;
}

.fc-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 0.5px solid var(--fc-grey);
}
.fc-cal__nav {
  width: 36px; height: 36px;
  border: none; background: var(--fc-grey-bg); cursor: pointer;
  border-radius: 8px; font-size: 16px;
  color: var(--fc-text-sub);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.fc-cal__nav:hover:not(:disabled) { background: var(--fc-grey-bg); }
.fc-cal__nav:disabled { opacity: 0.25; cursor: default; }
.fc-cal__title { font-size: 13px; font-weight: 500; color: var(--fc-text); }

.fc-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 6px;
  gap: 2px;
}
.fc-cal__dow {
  font-size: 10px;
  color: var(--fc-grey-icon);
  text-align: center;
  padding: 2px 0;
  font-weight: 500;
}
.fc-cal__day {
  height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--fc-text);
  transition: background 0.12s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.fc-cal__day:hover:not(.fc-cal__day--dis):not(.fc-cal__day--sel) { background: var(--fc-grey-bg); }
.fc-cal__day--dis { color: var(--fc-grey-icon); cursor: default; opacity: 0.35; }
.fc-cal__day--today { font-weight: 600; color: var(--fc-blue-text); }
.fc-cal__day--sel { background: var(--fc-green); color: #fff; font-weight: 500; }

.fc-cal__foot {
  padding: 6px 10px 8px;
  border-top: 0.5px solid var(--fc-grey);
  display: flex; justify-content: space-between; align-items: center;
}
.fc-cal__hint { font-size: 10px; color: var(--fc-grey-icon); }
.fc-cal__jump {
  font-size: 11px; color: var(--fc-blue);
  background: none; border: none; cursor: pointer;
}
.fc-cal__jump:hover { text-decoration: underline; }

/* ── Dropdown (Courses / Shuttle) ── */
.fc-drop {
  grid-column: 1 / -1;
  width: 100%;
  z-index: 60;
  background: var(--fc-white);
  border: 0.5px solid var(--fc-grey);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-drop-shadow);
  display: none;
  max-height: 60vh;
  overflow: hidden;
  flex-direction: column;
}
.fc-drop--open { display: flex; }

.fc-drop__list {
  overflow-y: auto;
  padding: 4px 0;
  flex: 1;
}
.fc-drop__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--fc-text);
  cursor: pointer;
  transition: background 0.1s;
}
.fc-drop__item:hover { background: var(--fc-grey-bg); }
.fc-drop__item--sel { background: var(--fc-green-bg); font-weight: 500; }
.fc-drop__item--sel:hover { background: var(--fc-green-bg); }

.fc-drop__check {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 1.5px solid var(--fc-grey);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}
.fc-drop__item--sel .fc-drop__check {
  border-color: var(--fc-green);
  background: var(--fc-green);
  color: #fff;
}

.fc-drop__radio {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 1.5px solid var(--fc-grey);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s;
}
.fc-drop__item--sel .fc-drop__radio {
  border-color: var(--fc-green);
  border-width: 5px;
}

.fc-drop__price {
  margin-left: auto;
  font-size: 12px;
  color: var(--fc-grey-icon);
  font-weight: 400;
}

.fc-drop__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-top: 0.5px solid var(--fc-grey);
}
.fc-drop__clear {
  font-size: 12px;
  color: var(--fc-text-sub);
  background: none; border: none; cursor: pointer;
}
.fc-drop__clear:hover { color: var(--fc-red); }
.fc-drop__done {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: var(--fc-green);
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.fc-drop__done:hover { opacity: 0.85; }

/* ── Courses: vertical list (desktop-style) ── */
.fc-drop--courses {
  max-height: 60vh;
}
.fc-drop__head {
  display: none;
}

.fc-drop__course-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 6px;
  padding: 10px 14px 12px;
  overflow-y: auto;
  flex: 1;
}
.fc-drop__course-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.03);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.fc-drop__course-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(15,23,42,0.06);
  color: rgba(15,23,42,0.42);
  flex-shrink: 0;
  line-height: 1;
}
.fc-drop__course-row[aria-checked="true"] .fc-drop__course-rank {
  background: rgba(5,150,105,0.14);
  color: #047857;
}
.fc-drop__course-row:hover {
  background: rgba(16,185,129,0.06);
  border-color: rgba(16,185,129,0.25);
}
.fc-drop__course-row[aria-checked="true"] {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.4);
  color: #047857;
  box-shadow: 0 0 0 1px rgba(16,185,129,0.15);
}

/* Checkbox mark — hidden in pill mode */
.fc-drop__course-mark { display: none; }

/* Label */
.fc-drop__course-label {
  font-size: 12px;
  font-weight: 500;
  color: inherit;
  line-height: 1.3;
  white-space: nowrap;
}
.fc-drop__course-suffix {
  color: rgba(0,0,0,0.35);
  margin-left: 0.2em;
  font-weight: 400;
}
.fc-drop__course-row[aria-checked="true"] .fc-drop__course-suffix {
  color: rgba(4,120,87,0.5);
}

/* ── Drawer ── */
.fc-overlay {
  position: fixed;
  inset: 0;
  background: var(--fc-overlay);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.fc-overlay--open {
  opacity: 1;
  visibility: visible;
}

.fc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--fc-drawer-w);
  max-width: 85vw;
  background: var(--fc-white);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.fc-drawer--open { transform: translateX(0); }

.fc-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 0.5px solid var(--fc-grey);
}
.fc-drawer__logo { height: 24px; }
.fc-drawer__close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--fc-text-sub);
  border-radius: 6px;
  transition: background 0.12s;
}
.fc-drawer__close:hover { background: var(--fc-grey-bg); }

.fc-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.fc-drawer__section {
  padding: 8px 16px 4px;
}
.fc-drawer__section-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--fc-grey-icon);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.fc-drawer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--fc-text);
  border-radius: 8px;
  transition: background 0.12s;
}
.fc-drawer__link:hover { background: var(--fc-grey-bg); }
.fc-drawer__link-icon {
  width: 18px; height: 18px; flex-shrink: 0; color: var(--fc-text-sub);
}
.fc-drawer__link-icon svg { width: 100%; height: 100%; display: block; }
.fc-drawer__link-text { font-size: 14px; font-weight: 500; }
.fc-drawer__link-sub { font-size: 11px; color: var(--fc-grey-icon); margin-left: auto; }

.fc-drawer__foot {
  padding: 12px 16px;
  border-top: 0.5px solid var(--fc-grey);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fc-drawer__btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.12s;
  border: none;
  cursor: pointer;
}
.fc-drawer__btn--primary {
  background: var(--fc-green);
  color: #fff;
}
.fc-drawer__btn--secondary {
  background: var(--fc-grey-bg);
  color: var(--fc-text);
  border: 1px solid var(--fc-grey);
}
.fc-drawer__langs {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 8px;
}
.fc-drawer__lang {
  font-size: 12px;
  font-weight: 500;
  color: var(--fc-text-sub);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.12s;
}
.fc-drawer__lang:hover { background: var(--fc-grey-bg); }
.fc-drawer__lang--active { color: var(--fc-green); font-weight: 600; }

/* ── Responsive ── */

/* ── Responsive — chip grid is mobile only, hidden at 1024px+ via inline style ── */

/* ── Scrollbar ── */
.fc-drop__list::-webkit-scrollbar { width: 4px; }
.fc-drop__list::-webkit-scrollbar-track { background: transparent; }
.fc-drop__list::-webkit-scrollbar-thumb { background: var(--fc-grey); border-radius: 2px; }

/* ── Utility ── */
.fc-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
