/* =======================================
   GUIDES – TAGS & FILTER UI
   ======================================= */

/* Generic tag container (detail + index) */
.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
  list-style: none;
  padding: 0;
}

/* Base tag chip – neutral rounded rectangle, mirrors CTA radius */
.guide-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--rounded-cta, 999px);
  font-size: 0.78rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  border: 1px solid #e5e7eb;     /* gray-200 */
  background-color: #f3f4f6;      /* gray-100 */
  color: #374151;                 /* gray-700 */
  white-space: nowrap;
  font-weight: 500;
}

/* Make sure long tag strings wrap gracefully on very small screens */
.guide-tag span {
  white-space: nowrap;
}

/* Primary taxonomy tags (category / experience)
   → slightly stronger border, same neutral palette */
.guide-tag--primary {
  border-color: #d1d5db;          /* gray-300 */
  background-color: #e5e7eb;      /* gray-200 */
  color: #111827;                 /* gray-900 */
  font-weight: 100;
}

/* Secondary taxonomy tags (food type, occasions, diet, etc.)
   → very close to base, just a touch more depth */
.guide-tag--secondary {
  border-color: #e5e7eb;          /* gray-200 */
  background-color: #f3f4f6;      /* gray-100 */
  color: #374151;                 /* gray-700 */
}

/* Tertiary tags (local areas, hyper-specific topics, brands)
   → same family, kept light so they recede nicely */
.guide-tag--tertiary {
  border-color: #e5e7eb;          /* gray-200 */
  background-color: #fafafa;      /* very light gray */
  color: #4b5563;                 /* gray-600 */
}

/* Clickable / filterable tags (used on index filter bar & cards) */
.guide-tag--clickable {
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.guide-tag--clickable:hover,
.guide-tag--clickable:focus-visible {
  background-color: #e5e7eb;      /* gray-200 */
  border-color: #d1d5db;          /* gray-300 */
  color: #111827;                 /* gray-900 */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03);
  outline: none;
}

/* Active filter state (keeps brand pop, but only when selected) */
.guide-tag--active {
  background-color: #ba3100;
  border-color: #ba3100;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Disabled / no-results state */
.guide-tag--disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

/* Small icon inside tags (e.g. checkmark) */
.guide-tag__icon {
  display: inline-block;
  margin-right: 0.3rem;
  font-size: 0.8em;
}

/* =======================================
   GUIDES INDEX – FILTER BAR & SEARCH
   (re-uses menu search visual language)
   ======================================= */

/* Outer filter bar wrapper */
.guides-filter-bar {
  margin-bottom: 1.25rem;
}

/* Search + filters card */
.guides-filter-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-color: #f8f8f8;
  padding: 0.85rem 0.9rem;
}

@media (min-width: 768px) {
  .guides-filter-card {
    padding: 1rem 1.1rem;
  }
}

/* Search input row */
.guides-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.guides-filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #777;
}

/* Search input styling */
.guides-filter-search {
  flex: 1 1 180px;
  position: relative;
}

.guides-filter-search input[type="search"] {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.45rem 0.9rem;
  padding-left: 2rem;
  font-size: 0.86rem;
  line-height: 1.3;
  background-color: #ffffff;
}

.guides-filter-search input[type="search"]:focus-visible {
  outline: none;
  border-color: rgba(186, 49, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(186, 49, 0, 0.18);
}

/* Optional search icon inside field */
.guides-filter-search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  pointer-events: none;
  opacity: 0.55;
}

/* Row of filter chips under search */
.guides-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Make filter chips a bit chunkier than inline tags */
.guides-filter-tags .guide-tag {
  font-size: 0.8rem;
  padding: 0.24rem 0.8rem;
}

/* =======================================
   GUIDES DETAIL – TAG STRIP
   (under the article)
   ======================================= */

.guide-meta-tags {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.guide-meta-tags .guide-tags {
  margin-top: 0;
}

/* Optional: subtle divider above related-articles block */
.guide-related {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 2.25rem;
  padding-top: 1.5rem;
}

.guide-related__heading {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.75rem;
  color: #555;
}


/* Topics toggle: divider control with + / - key */
.guide-topics__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;

  background: transparent;
  border: 0;
  padding: 0.4rem 0;
  cursor: pointer;

  color: #6b7280; /* gray-500 */
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 500;
}

/* Divider lines */
.guide-topics__toggle::before,
.guide-topics__toggle::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(0, 0, 0, 0.10);
}

/* Label + symbol */
.guide-topics__toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

/* Default state: + */
.guide-topics__toggle-label::after {
  content: "+";
  font-weight: 600;
  line-height: 1;
  transform: translateY(-0.5px);
}

/* Expanded state: – */
.guide-topics__toggle[aria-expanded="true"] .guide-topics__toggle-label::after {
  content: "–";
}

.guide-topics__toggle:hover {
  color: #374151; /* gray-700 */
}

.guide-topics__toggle:hover::before,
.guide-topics__toggle:hover::after {
  background: rgba(0, 0, 0, 0.18);
}

.guide-topics__toggle:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Share button (guide detail) */
.guide-share-btn {
  width: 100%;
  justify-content: center;
  padding: 0.6rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 600;
}
@media (min-width: 640px) {
  .guide-share-btn {
    width: auto;
  }
}


/* =======================================
   GUIDES DETAIL – TITLE & SUBTITLE
   ======================================= */

.guide-title {
  margin-bottom: 0.15rem;
}

/* Subtitle should clearly read as supporting text */
.guide-subtitle {
  font-size: 1.25rem;   /* bigger than body on mobile */
  line-height: 1.5;
  font-weight: 500;
  color: #4b5563;
  max-width: 40rem;
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .guide-subtitle {
    font-size: 1.3rem;  /* scales up on tablet/desktop */
  }
}

