/* ═══════════════════════════════════════════════════════════════
   Cam-Itinerary — Tour Guides directory (freelance guides)
   Day-rate focused listing. Pairs with assets/site.css tokens.
   ═══════════════════════════════════════════════════════════════ */

.tg-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 32px 64px; }

/* ── Intro banner ── */
.tg-intro {
  display: flex; align-items: center; gap: 22px;
  background: linear-gradient(135deg, var(--color-cobalt-600), var(--color-cobalt-800));
  border-radius: var(--radius-xl); padding: 26px 30px; margin-bottom: 26px; color: white;
  position: relative; overflow: hidden;
}
.tg-intro .tg-intro-ic {
  width: 60px; height: 60px; border-radius: var(--radius-lg); flex-shrink: 0;
  background: rgba(255,255,255,0.14); display: grid; place-items: center;
}
.tg-intro .tg-intro-ic svg { width: 32px; height: 32px; stroke-width: 1.8; }
.tg-intro h1 { font-family: var(--font-display); font-weight: 800; font-size: 24px; margin: 0; letter-spacing: -0.01em; }
.tg-intro p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.88); max-width: 640px; }
.tg-intro .tg-intro-note {
  margin-left: auto; flex-shrink: 0; text-align: right; align-self: flex-start;
  font-size: 12px; color: rgba(255,255,255,0.82); display: flex; flex-direction: column; gap: 6px;
}
.tg-intro .tg-intro-note .tg-pill {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.16);
  border-radius: var(--radius-full); padding: 6px 12px; font-weight: 700; font-size: 12px;
}
.tg-intro .tg-intro-note .tg-pill svg { width: 13px; height: 13px; stroke-width: 2.2; }

/* ── Filter / sort bar ── */
.tg-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.tg-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.tg-chip {
  font-size: 13px; font-weight: 600; color: var(--fg-2); cursor: pointer;
  background: white; border: 1px solid var(--color-gray-200); border-radius: var(--radius-full);
  padding: 8px 15px; transition: all var(--dur-base) var(--ease-out); white-space: nowrap;
}
.tg-chip:hover { border-color: var(--color-cobalt-300); color: var(--fg-1); }
.tg-chip.on { background: var(--color-cobalt-500); border-color: var(--color-cobalt-500); color: white; }
.tg-count { font-size: 13.5px; color: var(--fg-2); font-weight: 600; white-space: nowrap; }
.tg-count strong { color: var(--fg-1); font-weight: 800; }

/* ── Guide grid ── */
.tg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tg-card {
  display: flex; flex-direction: column; background: white;
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.tg-card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }

.tg-cover { position: relative; height: 104px; background: var(--color-gray-100); }
.tg-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tg-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,26,23,0.28), rgba(15,26,23,0)); }
.tg-badge {
  position: absolute; top: 11px; left: 11px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.95); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--color-cobalt-700); font-size: 10.5px; font-weight: 800;
  padding: 5px 10px; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.04em;
}
.tg-badge svg { width: 12px; height: 12px; stroke-width: 2.6; }
.tg-rate-tag {
  position: absolute; top: 11px; right: 11px; z-index: 2;
  background: var(--color-cobalt-500); color: white; border-radius: var(--radius-full);
  padding: 6px 11px; font-weight: 800; font-size: 13px; box-shadow: var(--shadow-1);
}
.tg-rate-tag small { font-size: 10px; font-weight: 600; opacity: 0.85; }

.tg-head { display: flex; align-items: flex-end; gap: 12px; padding: 0 18px; margin-top: -30px; position: relative; z-index: 3; }
.tg-av {
  width: 64px; height: 64px; border-radius: 999px; border: 3px solid white; flex-shrink: 0;
  background-size: cover; background-position: center; background-color: var(--color-gray-200);
  box-shadow: var(--shadow-1); position: relative;
}
.tg-av .vchk {
  position: absolute; bottom: -1px; right: -1px; width: 22px; height: 22px; border-radius: 999px;
  background: var(--color-cobalt-500); border: 2.5px solid white; display: grid; place-items: center;
}
.tg-av .vchk svg { width: 11px; height: 11px; color: white; stroke-width: 3.5; }
.tg-head .tg-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--fg-1); padding-bottom: 4px; }
.tg-head .tg-rating svg { width: 14px; height: 14px; color: var(--color-amber-500); fill: var(--color-amber-500); }
.tg-head .tg-rating small { color: var(--fg-3); font-weight: 600; }

.tg-body { padding: 11px 18px 0; flex: 1; display: flex; flex-direction: column; }
.tg-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--fg-1); line-height: 1.15; display: flex; align-items: center; gap: 7px; }
.tg-meta { font-size: 12px; color: var(--fg-3); margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.tg-meta svg { width: 13px; height: 13px; stroke-width: 2; color: var(--fg-3); }
.tg-desc { font-size: 12.5px; color: var(--fg-2); line-height: 1.5; margin: 10px 0 0; }

.tg-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tg-spec { font-size: 11px; font-weight: 600; color: var(--color-cobalt-700); background: var(--color-cobalt-50); border-radius: var(--radius-full); padding: 4px 10px; }

.tg-langs { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--fg-3); margin-top: 11px; }
.tg-langs svg { width: 13px; height: 13px; stroke-width: 2; }

.tg-foot { display: flex; align-items: center; gap: 9px; padding: 14px 18px 18px; margin-top: 14px; border-top: 1px solid var(--color-gray-100); }
.tg-foot .tg-view {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 700; text-decoration: none; padding: 10px 0; border-radius: var(--radius-md);
  background: var(--color-gray-50); color: var(--fg-1); transition: background var(--dur-base) var(--ease-out);
}
.tg-foot .tg-view:hover { background: var(--color-gray-100); }
.tg-foot .tg-book {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 700; text-decoration: none; padding: 10px 0; border-radius: var(--radius-md);
  background: var(--color-cobalt-500); color: white; transition: background var(--dur-base) var(--ease-out);
}
.tg-foot .tg-book:hover { background: var(--color-cobalt-600); }
.tg-foot svg { width: 14px; height: 14px; stroke-width: 2.2; }

/* ── Compare strip (operator vs guide) ── */
.tg-compare {
  display: flex; align-items: center; gap: 12px; margin-top: 30px;
  background: var(--bg-sunken); border-radius: var(--radius-lg); padding: 16px 20px;
  font-size: 13px; color: var(--fg-2); line-height: 1.5;
}
.tg-compare svg { width: 18px; height: 18px; stroke-width: 2; color: var(--fg-3); flex-shrink: 0; }
.tg-compare strong { color: var(--fg-1); font-weight: 700; }
.tg-compare a { color: var(--color-forest-600); font-weight: 700; text-decoration: none; white-space: nowrap; }
.tg-compare a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .tg-grid { grid-template-columns: repeat(2, 1fr); }
  .tg-intro .tg-intro-note { display: none; }
}
@media (max-width: 680px) {
  .tg-wrap { padding: 16px 16px 48px; }
  .tg-grid { grid-template-columns: 1fr; }
  .tg-intro { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .tg-compare { flex-direction: column; align-items: flex-start; text-align: left; }
}
