/**
 * Dubai Travel Club – Country Taxonomy Page
 * Scoped under .dtc-tc-wrap — extends archive-modern.css card & pagination classes.
 */

/* ── Reset & Wrapper ─────────────────────────────────────────────────────── */
.dtc-tc-wrap,
.dtc-tc-wrap * {
  box-sizing: border-box;
}
.dtc-tc-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #f5f6f8;
  line-height: 1.5;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.dtc-tc-hero {
  position: relative;
  min-height: 360px;
  background: linear-gradient(135deg, #003d99 0%, #0066cc 50%, #0099cc 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-bottom: 0;
}
.dtc-tc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.65) 100%);
}
.dtc-tc-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

/* Breadcrumb */
.dtc-tc-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  margin-bottom: 16px;
}
.dtc-tc-breadcrumb a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
}
.dtc-tc-breadcrumb a:hover { color: #fff; }
.dtc-tc-breadcrumb span[aria-current] { color: #fff; }

.dtc-tc-hero__title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.12;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.dtc-tc-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,.9);
  margin: 0 0 28px;
}

/* Integrated search bar */
.dtc-tc-search {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  max-width: 760px;
}
.dtc-tc-search__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
}
.dtc-tc-search__field svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #888;
}
.dtc-tc-search__field input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #1a1a1a;
  background: transparent;
  padding: 16px 0;
}
.dtc-tc-search__field input::placeholder { color: #aaa; }
.dtc-tc-search__btn {
  background: #038ed1;
  color: #fff;
  border: none;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.dtc-tc-search__btn:hover { background: #0051aa; }

/* ── Section common ──────────────────────────────────────────────────────── */
.dtc-tc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.dtc-tc-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}
.dtc-tc-view-all {
  font-size: 14px;
  font-weight: 600;
  color: #038ed1;
  text-decoration: none;
}
.dtc-tc-view-all:hover { text-decoration: underline; }

/* ── Explore by City ─────────────────────────────────────────────────────── */
.dtc-tc-cities-section {
  background: #fff;
  padding: 36px 0 40px;
  border-bottom: 1px solid #eef0f4;
}
.dtc-tc-cities {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 20px 24px 8px;
  max-width: 1200px;
  margin: 0 auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.dtc-tc-cities::-webkit-scrollbar { display: none; }

.dtc-tc-city {
  position: relative;
  flex: 0 0 200px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  background: linear-gradient(135deg, #1a3a5c 0%, #2563a8 100%);
  transition: transform .22s, box-shadow .22s;
}
.dtc-tc-city:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,.18);
}
.dtc-tc-city img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.dtc-tc-city:hover img { transform: scale(1.06); }
.dtc-tc-city__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 60%);
}
.dtc-tc-city__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
}
.dtc-tc-city__name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.dtc-tc-city__count {
  font-size: 12px;
  color: rgba(255,255,255,.8);
}
.dtc-tc-city--nophoto .dtc-tc-city__overlay {
  background: transparent;
}

/* ── Browse by Experience ────────────────────────────────────────────────── */
.dtc-tc-cats-section {
  background: #f5f6f8;
  padding: 36px 0 40px;
}
.dtc-tc-cats {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 20px 24px 8px;
  max-width: 1200px;
  margin: 0 auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.dtc-tc-cats::-webkit-scrollbar { display: none; }

.dtc-tc-cat {
  flex: 0 0 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px 16px;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  color: #1a1a1a;
  border: 2px solid transparent;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  text-align: center;
}
.dtc-tc-cat:hover {
  border-color: #038ed1;
  box-shadow: 0 4px 18px rgba(3,142,209,.12);
  transform: translateY(-3px);
}
.dtc-tc-cat.active {
  border-color: #038ed1;
  background: #eef4ff;
}
.dtc-tc-cat__icon {
  width: 52px;
  height: 52px;
  background: #f0f5ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.dtc-tc-cat.active .dtc-tc-cat__icon,
.dtc-tc-cat:hover .dtc-tc-cat__icon {
  background: #038ed1;
}
.dtc-tc-cat__icon svg {
  width: 28px;
  height: 28px;
  stroke: #038ed1;
  transition: stroke .2s;
}
.dtc-tc-cat.active .dtc-tc-cat__icon svg,
.dtc-tc-cat:hover .dtc-tc-cat__icon svg {
  stroke: #fff;
}
.dtc-tc-cat__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
}
.dtc-tc-cat__count {
  font-size: 11px;
  color: #888;
}

/* ── Mobile bar ──────────────────────────────────────────────────────────── */
.dtc-tc-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e2e5ea;
}
.dtc-tc-mobile-filter-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1.5px solid #d0d5dd;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #1a1a1a;
}
.dtc-tc-mobile-filter-btn svg { width: 16px; height: 16px; }
.dtc-tc-mobile-count { font-size: 13px; color: #666; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.dtc-tc-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.dtc-tc-sidebar {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e6e9ef;
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.dtc-tc-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid #eef0f4;
}
.dtc-tc-sidebar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
.dtc-tc-sidebar__title svg { width: 16px; height: 16px; color: #555; }
.dtc-tc-sidebar__reset {
  font-size: 13px;
  font-weight: 500;
  color: #038ed1;
  text-decoration: none;
}
.dtc-tc-sidebar__reset:hover { text-decoration: underline; }

/* Filter blocks */
.dtc-tc-filter {
  padding: 16px 20px;
  border-bottom: 1px solid #eef0f4;
}
.dtc-tc-filter:last-child { border-bottom: none; }

.dtc-tc-filter__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}

/* Collapsible toggle */
.dtc-tc-filter--collapsible .dtc-tc-filter__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  margin-bottom: 12px;
}
.dtc-tc-filter--collapsible .dtc-tc-filter__toggle svg {
  width: 14px;
  height: 14px;
  transition: transform .2s;
}
.dtc-tc-filter--collapsible .dtc-tc-filter__toggle[aria-expanded="false"] svg {
  transform: rotate(-90deg);
}
.dtc-tc-filter--collapsible .dtc-tc-filter__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Select dropdown */
.dtc-tc-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #d0d5dd;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
  cursor: pointer;
  appearance: auto;
  transition: border-color .2s;
}
.dtc-tc-select:focus {
  outline: none;
  border-color: #038ed1;
  box-shadow: 0 0 0 3px rgba(3,142,209,.1);
}

/* Checkboxes */
.dtc-tc-check {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  padding: 3px 0;
}
.dtc-tc-check input[type="checkbox"],
.dtc-tc-check input[type="radio"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #038ed1;
  cursor: pointer;
}
.dtc-tc-check span em {
  font-style: normal;
  color: #aaa;
  font-size: 12px;
  margin-left: 3px;
}
.dtc-tc-check--stars { align-items: center; }
.dtc-tc-stars-row {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: #666;
}
.dtc-tc-stars-row svg { width: 14px; height: 14px; }

/* Show more (reuses archive-modern class) */
.dtc-tc-filter__body .dtc-mfilter__show-more {
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 600;
  color: #038ed1;
  cursor: pointer;
  margin-top: 4px;
}

/* Price Range */
.dtc-tc-price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dtc-tc-price-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dtc-tc-price-input-wrap label {
  font-size: 11px;
  color: #888;
  font-weight: 500;
}
.dtc-tc-price-input {
  width: 100%;
  padding: 7px 10px;
  border: 1.5px solid #d0d5dd;
  border-radius: 7px;
  font-size: 13px;
  color: #1a1a1a;
  background: #fff;
}
.dtc-tc-price-input:focus {
  outline: none;
  border-color: #038ed1;
}
.dtc-tc-price-dash {
  font-size: 16px;
  color: #aaa;
  padding-top: 20px;
}

/* ── Main Content ────────────────────────────────────────────────────────── */
.dtc-tc-main { min-width: 0; }

/* Top bar */
.dtc-tc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.dtc-tc-topbar__count {
  font-size: 14px;
  color: #555;
}
.dtc-tc-topbar__count strong { color: #1a1a1a; }
.dtc-tc-topbar__sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #555;
}
.dtc-tc-topbar__sort .dtc-tc-select { width: auto; min-width: 160px; }

/* Fuzzy notice (reuses .dtc-fuzzy-notice from archive-modern.css) */
.dtc-tc-topbar__count .dtc-fuzzy-notice {
  margin-bottom: 8px;
}

/* Empty state (reuses .dtc-mempty) */
.dtc-mempty { text-align: center; padding: 60px 20px; }
.dtc-mempty svg { width: 56px; height: 56px; color: #ccc; margin-bottom: 16px; }
.dtc-mempty h3 { font-size: 20px; color: #333; margin: 0 0 8px; }
.dtc-mempty p { color: #888; font-size: 14px; margin: 0 0 24px; }

.dtc-tc-btn-primary {
  display: inline-block;
  background: #038ed1;
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s;
}
.dtc-tc-btn-primary:hover { background: #0051aa; }

/* ── Trust Badges ────────────────────────────────────────────────────────── */
.dtc-tc-trust {
  background: #fff;
  border-top: 1px solid #e6e9ef;
  padding: 36px 24px;
}
.dtc-tc-trust__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.dtc-tc-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.dtc-tc-trust__icon {
  width: 56px;
  height: 56px;
  background: #eef4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dtc-tc-trust__icon svg {
  width: 28px;
  height: 28px;
  stroke: #038ed1;
}
.dtc-tc-trust__item strong {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}
.dtc-tc-trust__item span {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

/* ── Mobile overlay ──────────────────────────────────────────────────────── */
.dtc-tc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
}
.dtc-tc-overlay.active { display: block; }

/* ── Reuse grid and card styles from archive-modern ──────────────────────── */
.dtc-tc-wrap .dtc-mgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dtc-tc-wrap .dtc-mpagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  padding-bottom: 8px;
}
.dtc-tc-wrap .dtc-mpage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #333;
  background: #fff;
  border: 1.5px solid #d8dce5;
  transition: background .18s, color .18s, border-color .18s;
}
.dtc-tc-wrap .dtc-mpage:hover,
.dtc-tc-wrap .dtc-mpage.active {
  background: #038ed1;
  color: #fff;
  border-color: #038ed1;
}
.dtc-tc-wrap .dtc-mpage--dots {
  background: none;
  border-color: transparent;
  cursor: default;
  color: #aaa;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .dtc-tc-layout { grid-template-columns: 240px 1fr; gap: 20px; }
  .dtc-tc-wrap .dtc-mgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .dtc-tc-trust__inner { grid-template-columns: repeat(2, 1fr); }
  .dtc-tc-cats { flex-wrap: nowrap; }
}

@media (max-width: 768px) {
  .dtc-tc-layout { display: block; padding: 0 0 40px; }
  .dtc-tc-main { padding: 16px; }
  .dtc-tc-mobile-bar { display: flex; }

  .dtc-tc-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 0;
    transition: left .28s ease;
  }
  .dtc-tc-sidebar.open { left: 0; }

  .dtc-tc-hero { min-height: 280px; }
  .dtc-tc-search { border-radius: 10px; }
  .dtc-tc-hero__inner { padding: 32px 16px 24px; }

  .dtc-tc-section-head { padding: 0 16px; }
  .dtc-tc-cities { padding: 16px; }
  .dtc-tc-city { flex: 0 0 160px; height: 120px; }
  .dtc-tc-cats { padding: 16px; }

  .dtc-tc-wrap .dtc-mgrid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .dtc-tc-trust__inner { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 16px; }
}

@media (max-width: 480px) {
  .dtc-tc-wrap .dtc-mgrid { grid-template-columns: 1fr; }
  .dtc-tc-trust__inner { grid-template-columns: 1fr; }
  .dtc-tc-city { flex: 0 0 140px; height: 110px; }
  .dtc-tc-cat { flex: 0 0 110px; }
  .dtc-tc-topbar { flex-direction: column; align-items: flex-start; }
}
