/**
 * Tourism module styles for the CPT templates (single place + places archive).
 *
 * Mirrors the place-card styles from front-page.css (the front page loads its
 * own copy) and adds the single-place and archive layouts. Loaded only on
 * is_singular('aksy_tourism') and the post-type archive.
 *
 * @package aksy-portal
 * @since 1.0.0
 */

/* ===== Archive layout ===== */
.tourism-archive { padding: 56px 0 72px; }
.tarch-head { max-width: 720px; margin-bottom: 36px; }
.tarch-label {
  font-family: 'Noto Sans', sans-serif;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--apricot);
  font-weight: 600;
  margin-bottom: 10px;
}
.tarch-head h1 { font-family: 'Raleway', sans-serif; font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; margin-bottom: 10px; }
.tarch-head p { color: var(--muted); font-size: 16px; }

/* ===== Filters ===== */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  border: 1.5px solid var(--mist);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--muted);
  transition: .2s;
  cursor: pointer;
}
.chip:hover { border-color: var(--pine); color: var(--pine); }
.chip.active { background: var(--pine); border-color: var(--pine); color: #fff; }

/* ===== Cards ===== */
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcard { background: var(--card); border: 1px solid var(--mist); border-radius: 18px; overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
a.tcard { text-decoration: none; color: inherit; }
.tcard:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(10, 51, 44, .12); }
.tcard.hide { display: none; }
.tphoto { height: 150px; display: flex; align-items: flex-end; padding: 14px; background: linear-gradient(135deg, var(--pine-soft), var(--deep)); position: relative; }
.tphoto--photo { background-size: cover; background-position: center; }
.tphoto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 150" preserveAspectRatio="none"><path d="M0,150 L70,70 L130,120 L200,40 L270,110 L330,65 L400,130 L400,150 Z" fill="rgba(255,255,255,0.10)"/></svg>') bottom/cover no-repeat;
}
.tbadge {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, .92);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--deep);
  letter-spacing: .05em;
}
.tbody { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.tbody h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.tbody p { font-size: 14px; color: var(--muted); flex: 1; }
.tmeta { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--mist); font-size: 12.5px; color: var(--pine); font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }

/* Gradient variants - shared by cards and the single-place hero. */
.tphoto.lake,   .ts-hero.lake   { background: linear-gradient(135deg, #1D8A77, #0E4D55); }
.tphoto.forest, .ts-hero.forest { background: linear-gradient(135deg, #3E7C3A, #1C4525); }
.tphoto.sacred, .ts-hero.sacred { background: linear-gradient(135deg, #A06B2C, #5C3A14); }
.tphoto.jailoo, .ts-hero.jailoo { background: linear-gradient(135deg, #6CA24A, #2E5E2C); }
.tphoto.town,   .ts-hero.town   { background: linear-gradient(135deg, #C77B33, #7A4318); }
.tphoto.rest,   .ts-hero.rest   { background: linear-gradient(135deg, #2E8C6E, #C9A445); }

/* ===== Single place ===== */
.ts-hero { position: relative; color: #fff; }
.ts-hero.tphoto--photo { background-size: cover; background-position: center; }
.ts-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 51, 44, .25), rgba(10, 51, 44, .80));
}
.ts-hero-inner { position: relative; z-index: 2; padding: 46px 24px 42px; }
.ts-back { display: inline-block; color: rgba(255, 255, 255, .9); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 20px; }
.ts-back:hover { color: #fff; }
.ts-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ts-cats span {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
}
.ts-title { font-family: 'Raleway', sans-serif; font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 14px; max-width: 820px; }
.ts-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14.5px; color: rgba(255, 255, 255, .92); font-weight: 600; }

.ts-body { padding: 44px 24px 70px; max-width: 820px; }
.ts-content { font-size: 16px; line-height: 1.8; color: var(--ink); }
.ts-content p { margin-bottom: 16px; }
.ts-content h2, .ts-content h3 { font-family: 'Raleway', sans-serif; font-weight: 700; margin: 28px 0 12px; }
.ts-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 16px 0; }
.ts-content ul, .ts-content ol { margin: 0 0 16px 22px; }
.ts-content li { margin-bottom: 8px; }

/* Placeholder photos inside the article */
.ts-content figure.ts-photo { margin: 26px 0; }
.ts-content figure.ts-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(10, 51, 44, 0.12);
  margin: 0;
}
.ts-content figure.ts-photo figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.ts-link {
  display: inline-block;
  margin-top: 24px;
  background: var(--apricot);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 14.5px;
  transition: .2s;
}
.ts-link:hover { background: #D27424; transform: translateY(-2px); }

.ts-nav { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--mist); }
.ts-alllink { color: var(--pine); font-weight: 700; text-decoration: none; }
.ts-alllink:hover { color: var(--apricot); }

/* ===== Responsive ===== */
@media (max-width: 920px) { .tour-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tour-grid { grid-template-columns: 1fr; } }
