/* =========================================================
   tours.css — зөвхөн Tours хуудсанд
   ========================================================= */

/* ===== Hero: том зураг, дээр нь гарчиг ===== */
.tours-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 66vh, 640px);
  padding: 64px 0 120px;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.tours-hero picture,
.tours-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.tours-hero::after {
  content: "";
  position: absolute; inset: 0;
  /* Текст тод харагдахаар: голдоо илүү бараан + доош бараан */
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(12, 20, 16, 0.55), rgba(12, 20, 16, 0) 75%),
    linear-gradient(to bottom, rgba(12, 20, 16, 0.45), rgba(12, 20, 16, 0.6));
}
.tours-hero-text { position: relative; z-index: 1; }
.tours-eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.tours-hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: 1.05;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 4px 32px rgba(0, 0, 0, 0.45);
}
.tours-hero h1 em { font-style: italic; font-weight: 700; color: #F0C58A; }
.tours-hero p { margin-top: 18px; font-size: clamp(1rem, 1.6vw, 1.2rem); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }

/* ===== Хайлтын хайрцаг (hero дээр хагас давхцана) ===== */
.tour-finder {
  position: relative;
  z-index: 2;
  margin-top: -72px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e6e8df;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(31, 35, 35, 0.1);
}
.finder-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 4px 4px 16px;
  border-bottom: 1px solid #eceee6;
}
.finder-tab {
  padding: 10px 20px;
  border: 0; border-radius: 999px;
  background: transparent;
  font: inherit; font-size: 1rem;
  color: #5b6060;
  cursor: pointer;
}
.finder-tab:hover { color: var(--altai-forest); }
.finder-tab.is-active { background: var(--altai-forest); color: var(--ivory); font-weight: 700; }

.finder-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  padding-top: 12px;
}
.finder-field {
  display: grid; gap: 4px;
  padding: 6px 20px;
  border-right: 1px solid #eceee6;
}
.finder-field span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a8080;
}
.finder-field select {
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font: inherit; font-size: 1.05rem;
  color: var(--charcoal);
  cursor: pointer;
}
.finder-field select:focus-visible { outline: 2px solid var(--sand-gold); outline-offset: 2px; }
.finder-submit { margin-left: 16px; padding: 16px 26px; white-space: nowrap; }

.finder-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.chip {
  padding: 8px 18px;
  border: 1px solid #dcdfd5; border-radius: 999px;
  background: #fff;
  font: inherit; font-size: 0.92rem;
  color: #3e4343;
  cursor: pointer;
}
.chip:hover { border-color: var(--altai-forest); color: var(--altai-forest); }
.chip.is-active { background: var(--altai-forest); border-color: var(--altai-forest); color: var(--ivory); }

/* ===== Аяллын жагсаалт ===== */
.journeys { padding: 48px 0 88px; }
.journeys-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
.journeys-head h2 { color: var(--charcoal); margin-bottom: 4px; }
.journeys-count { color: #7a8080; font-size: 0.95rem; }
.journeys-sort {
  padding: 12px 16px;
  border: 1px solid #dcdfd5; border-radius: 10px;
  background: #fff;
  font: inherit; color: var(--charcoal);
}

.journeys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.journey-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e6e8df;
  border-radius: 18px;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 16px);
  transition: transform 0.25s, box-shadow 0.25s;
}
.journey-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(31, 35, 35, 0.1); }
.journey-card[hidden] { display: none; }
/* Дэлгэрэнгүй хуудастай аялал: карт бүхэлдээ дарагдана */
.journey-card { position: relative; }
.journey-link { color: inherit; text-decoration: none; }
.journey-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.journey-card:has(.journey-link) { cursor: pointer; }
.journey-media { position: relative; }
.journey-media img {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.journey-badge {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  font-size: 0.8rem;
  color: var(--charcoal);
}
.journey-body { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 22px; }
.journey-country {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a8080;
}
.journey-body h3 { margin: 10px 0 8px; font-size: 1.3rem; color: var(--charcoal); }
.journey-meta { color: #6b7070; font-size: 0.95rem; }
.journey-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #eceee6;
  margin-top: 20px;
  font-size: 0.95rem;
}
.journey-arrow { font-size: 1.3rem; color: var(--altai-forest); }

.journeys-empty { text-align: center; padding: 48px 0; color: #5b6060; }
.journeys-empty p { margin-bottom: 16px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .journeys-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .finder-fields { grid-template-columns: 1fr 1fr 1fr; }
  .finder-submit { grid-column: 1 / -1; margin: 14px 0 0; justify-content: center; }
  .finder-field:nth-child(3) { border-right: 0; }
}
@media (max-width: 700px) {
  .tours-hero { min-height: 70vh; padding-bottom: 110px; }
  .finder-fields { grid-template-columns: 1fr; }
  .finder-field { border-right: 0; border-bottom: 1px solid #eceee6; padding: 10px 8px; }
  .finder-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .finder-tab { flex: none; padding: 8px 14px; font-size: 0.92rem; }
  .journeys-head { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .journeys-grid { grid-template-columns: 1fr; }
}
