/* GuideStore — Filter Redesign */
.gs-filter-section {
  --orange: #F99400;
  --orange-dark: #d97f00;
  --orange-bg: #FFF4E0;
  --ink: #1E2233;
  --ink-soft: #6B7280;
  --line: #E4E6EB;
  --line-soft: #EEF0F3;
  --bg: #F5F6F8;
  --white: #FFFFFF;
  --radius: 14px;
  font-family: 'Nunito', sans-serif;
}

/* top search row */
.gs-filter-section .top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.gs-filter-section .top-search {
  flex: 1;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 15px;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 10px;
}
.gs-filter-section .top-search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 15px;
  background: transparent;
  color: var(--ink);
}
.gs-filter-section .top-search .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  flex-shrink: 0;
}
.gs-filter-section .tagline {
  font-style: italic;
  color: var(--orange);
  font-size: 15px;
  white-space: nowrap;
}

/* date row */
.gs-filter-section .date-row {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.gs-filter-section .date-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
}
.gs-filter-section .date-field:focus-within {
  border-color: var(--orange);
}
.gs-filter-section .date-field span {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 2px;
}
.gs-filter-section .date-field input {
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--ink);
  width: 100%;
  background: transparent;
  cursor: pointer;
}

/* filter card */
.gs-filter-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 1px 2px rgba(20, 20, 43, .04), 0 8px 24px rgba(20, 20, 43, .05);
  padding: 28px 28px 24px;
}
.gs-filter-card .card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.gs-filter-card .card-head h2 {
  font-size: 19px;
  margin: 0 0 4px;
}
.gs-filter-card .card-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}
.gs-filter-card .clear-all {
  background: none;
  border: none;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
}
.gs-filter-card .clear-all:hover {
  text-decoration: underline;
}

/* filter trigger bar */
.gs-filter-section .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  margin-bottom: 6px;
}
.gs-filter-section .filter-trigger {
  position: relative;
}
.gs-filter-section .filter-trigger > button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
  outline: none;
}
.gs-filter-section .filter-trigger > button:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242,153,74,.2);
}
.gs-filter-section .filter-trigger > button .label-main {
  color: var(--ink);
}
.gs-filter-section .filter-trigger > button .label-sub {
  color: var(--ink-soft);
  font-weight: 500;
}
.gs-filter-section .filter-trigger > button:hover {
  border-color: #C9CDD6;
}
.gs-filter-section .filter-trigger.active > button {
  border-color: var(--orange);
  background: var(--orange-bg);
  color: var(--orange-dark);
}
.gs-filter-section .filter-trigger.has-selection > button {
  border-color: var(--orange);
}
.gs-filter-section .filter-trigger.has-selection > button .label-main {
  color: var(--orange-dark);
}
.gs-filter-section .chevron {
  transition: transform .15s;
  color: var(--ink-soft);
  font-size: 11px;
}
.gs-filter-section .filter-trigger.active .chevron {
  transform: rotate(180deg);
  color: var(--orange-dark);
}

/* dropdown panel */
.gs-filter-section .panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20, 20, 43, .14);
  padding: 16px;
  min-width: 280px;
  z-index: 200;
  display: none;
}
.gs-filter-section .panel.wide {
  min-width: 340px;
}
.gs-filter-section .filter-trigger.active .panel {
  display: block;
  animation: gsFilterDrop .12s ease-out;
}
@keyframes gsFilterDrop {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gsFilterDropWide {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.gs-filter-section .panel-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.gs-filter-section .chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.gs-filter-section .chip {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  user-select: none;
  transition: all .12s;
}
.gs-filter-section .chip:hover {
  border-color: #C9CDD6;
}
.gs-filter-section .chip.selected {
  border-color: var(--orange);
  background: var(--orange-bg);
  color: var(--orange-dark);
}
.gs-filter-section .panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.gs-filter-section .panel-footer button {
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.gs-filter-section .reset-btn {
  color: var(--ink-soft);
}
.gs-filter-section .reset-btn:hover {
  color: var(--ink);
}
.gs-filter-section .apply-btn {
  background: var(--orange);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
}
.gs-filter-section .apply-btn:hover {
  background: var(--orange-dark);
}

/* selected summary chips */
.gs-filter-section .selected-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  min-height: 0;
}
.gs-filter-section .selected-summary .schip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-bg);
  color: var(--orange-dark);
  border: 1px solid #F6CBA0;
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  font-size: 13px;
  font-weight: 600;
}
.gs-filter-section .selected-summary .schip button {
  border: none;
  background: rgba(226, 127, 38, .15);
  color: var(--orange-dark);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gs-filter-section .selected-summary .schip button:hover {
  background: rgba(226, 127, 38, .3);
}
.gs-filter-section .empty-hint {
  color: var(--ink-soft);
  font-size: 13px;
  margin-top: 16px;
}

/* search row */
.gs-filter-section .search-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.gs-filter-section .price-note {
  font-size: 13px;
  color: var(--orange-dark);
  text-decoration: underline;
  cursor: pointer;
  margin-right: auto;
  text-decoration-skip-ink: auto;
}
.gs-filter-section .search-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 40px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(242, 153, 74, .35);
}
.gs-filter-section .search-btn:hover {
  background: var(--orange-dark);
}

/* responsive */
@media (max-width: 600px) {
  .gs-filter-section .tagline { display: none; }
  .gs-filter-card { padding: 20px 16px 18px; }
  .gs-filter-section .panel { min-width: 260px; }
  .gs-filter-section .search-btn { padding: 12px 24px; font-size: 15px; }

  /* wide panels: centered horizontally, top set by JS */
  .gs-filter-section .panel.wide {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 32px);
    min-width: unset;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1050;
  }
  .gs-filter-section .filter-trigger.active .panel.wide {
    animation: gsFilterDropWide .12s ease-out forwards;
  }
}
