/**
 * Dubai Travel Club – Modern Archive (Viator-style)
 * Scoped under .dtc-modern-archive to avoid theme conflicts.
 */

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

/* ── Hero ────────────────────────────────────────────────────────────────── */
.dtc-mhero {
  position: relative;
  min-height: 300px;
  background: linear-gradient(135deg, #0c1e3d 0%, #143d7a 45%, #0e70a8 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 64px 24px 48px;
}
.dtc-mhero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.65) 30%, rgba(0,0,0,.25) 100%);
}
.dtc-mhero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}
.dtc-mhero__title {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.dtc-mhero__sub {
  font-size: 16px;
  opacity: .88;
  margin: 0 0 28px;
  line-height: 1.6;
}
.dtc-mhero__badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 32px;
  font-size: 13px;
  font-weight: 500;
}
.dtc-mhero__badges span {
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: .95;
}
.dtc-mhero__badges svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Search Bar ──────────────────────────────────────────────────────────── */
.dtc-msearch-wrap {
  background: #fff;
  border-bottom: 1px solid #e2e5ea;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.dtc-msearch {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: #f7f8fa;
  border: 1.5px solid #d8dde5;
  border-radius: 50px;
  padding: 5px 5px 5px 8px;
  gap: 0;
}
/* Simplified single-field search */
.dtc-msearch--simple {
  max-width: 820px;
}
.dtc-msearch__field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 0 14px;
}
.dtc-msearch__field svg {
  width: 16px;
  height: 16px;
  color: #8c96a2;
  flex-shrink: 0;
}
.dtc-msearch__field input,
.dtc-msearch__field select {
  border: none;
  background: transparent;
  font-size: 14px;
  color: #1a1a1a;
  width: 100%;
  outline: none;
  padding: 9px 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.dtc-msearch__field input::placeholder { color: #8c96a2; }
.dtc-msearch__sep {
  width: 1px;
  height: 28px;
  background: #d8dde5;
  flex-shrink: 0;
}
.dtc-msearch__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #038ed1;
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}
.dtc-msearch__btn svg { width: 15px; height: 15px; }
.dtc-msearch__btn:hover { background: #0052aa; }

/* ── Category Tabs ───────────────────────────────────────────────────────── */
.dtc-mcats-wrap {
  background: #fff;
  border-bottom: 1.5px solid #e2e5ea;
  padding: 0 24px;
}
.dtc-mcats {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.dtc-mcats::-webkit-scrollbar { display: none; }

.dtc-mcat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 18px 10px;
  color: #5c6575;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: color .18s, border-color .18s;
  position: relative;
  cursor: pointer;
}
.dtc-mcat:hover { color: #038ed1; }
.dtc-mcat.active {
  color: #038ed1;
  border-bottom-color: #038ed1;
  font-weight: 600;
}
.dtc-mcat__icon { display: flex; align-items: center; }
.dtc-mcat__icon svg { width: 22px; height: 22px; }

.dtc-mcat--more { cursor: pointer; }
.dtc-mcat__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: #fff;
  border: 1px solid #e2e5ea;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
  min-width: 190px;
  z-index: 300;
  padding: 6px 0;
}
.dtc-mcat--more:hover .dtc-mcat__dropdown,
.dtc-mcat--more:focus-within .dtc-mcat__dropdown,
.dtc-mcat--more.dtc-mcat--open .dtc-mcat__dropdown { display: block; }
.dtc-mcat__dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: #1a1a1a;
  text-decoration: none;
  transition: background .15s;
}
.dtc-mcat__dropdown a:hover { background: #f0f5ff; color: #038ed1; }

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

/* ── Archive layout ──────────────────────────────────────────────────────── */
.dtc-marchive-wrap {
  max-width: 1280px;
  margin: 28px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 24px;
  align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.dtc-msidebar {
  background: #fff;
  border: 1px solid #e2e5ea;
  border-radius: 14px;
  padding: 20px;
  position: sticky;
  top: 130px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.dtc-msidebar__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
}
.dtc-msidebar__reset {
  font-size: 13px;
  color: #038ed1;
  text-decoration: none;
  font-weight: 500;
}
.dtc-msidebar__reset:hover { text-decoration: underline; }

/* Filter sections */
.dtc-mfilter {
  border-top: 1px solid #f0f2f5;
  padding-top: 2px;
  margin-top: 2px;
}
.dtc-mfilter__toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 14px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  text-align: left;
}
.dtc-mfilter__toggle svg {
  width: 15px;
  height: 15px;
  color: #8c96a2;
  transition: transform .2s;
  flex-shrink: 0;
}
.dtc-mfilter__toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.dtc-mfilter__body { padding-bottom: 4px; }

/* Checkboxes */
.dtc-mcheck {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 2px;
  cursor: pointer;
  font-size: 13px;
  color: #3c3c3c;
  line-height: 1.4;
}
.dtc-mcheck input[type="checkbox"],
.dtc-mcheck input[type="radio"] {
  accent-color: #038ed1;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}
.dtc-mcheck span em {
  color: #8c96a2;
  font-style: normal;
  font-size: 11px;
  margin-left: 2px;
}

/* Show more */
.dtc-mfilter__more { margin-top: 2px; }
.dtc-mfilter__show-more {
  background: none;
  border: none;
  color: #038ed1;
  font-size: 12px;
  cursor: pointer;
  padding: 6px 0 2px;
  font-weight: 500;
}
.dtc-mfilter__show-more:hover { text-decoration: underline; }

/* Rating stars in filter */
.dtc-mcheck--stars { align-items: center; }
.dtc-mstars-row {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: #6c757d;
}
.dtc-mstars-row svg { width: 13px; height: 13px; }
.dtc-mstars-row span { margin-left: 4px; }

/* Price range */
.dtc-price-range { padding: 4px 0 8px; }
.dtc-price-range__slider {
  width: 100%;
  accent-color: #038ed1;
  cursor: pointer;
  margin: 8px 0 4px;
}
.dtc-price-range__labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
}
.dtc-price-range__labels strong { color: #1a1a1a; font-size: 13px; }

/* Apply button */
.dtc-mfilter__apply {
  display: block;
  width: 100%;
  background: #038ed1;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 18px;
  transition: background .2s;
  text-align: center;
  text-decoration: none;
}
.dtc-mfilter__apply:hover { background: #0052aa; color: #fff; }

/* ── Main content ────────────────────────────────────────────────────────── */
.dtc-mmain { min-width: 0; }

.dtc-mmain__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.dtc-mmain__count {
  font-size: 14px;
  color: #5c6575;
}
.dtc-mmain__count strong { color: #1a1a1a; }
.dtc-mmain__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5c6575;
}
.dtc-sort-select {
  border: 1.5px solid #d8dde5;
  border-radius: 8px;
  padding: 7px 30px 7px 10px;
  font-size: 13px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236c757d' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") right 8px center / 14px no-repeat;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  color: #1a1a1a;
  outline: none;
}

/* ── Activity Grid ───────────────────────────────────────────────────────── */
.dtc-mgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ── Modern Card ─────────────────────────────────────────────────────────── */
.dtc-mc {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.dtc-mc:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,.14);
}

.dtc-mc__img-link { display: block; flex-shrink: 0; }
.dtc-mc__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8eaed;
}
.dtc-mc__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.dtc-mc:hover .dtc-mc__img { transform: scale(1.06); }
.dtc-mc__img--placeholder {
  background: linear-gradient(135deg, #dde2ea 0%, #c8cdd6 100%);
  width: 100%;
  height: 100%;
}

/* Badge */
.dtc-mc__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  line-height: 1.4;
}
.dtc-mc__badge--best-seller { background: #1565c0; }
.dtc-mc__badge--popular     { background: #e67e22; }
.dtc-mc__badge--new         { background: #27ae60; }

/* Wishlist */
.dtc-mc__wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s, transform .18s;
  backdrop-filter: blur(4px);
}
.dtc-mc__wishlist:hover {
  background: #fff;
  transform: scale(1.12);
}
.dtc-mc__wishlist svg {
  width: 16px;
  height: 16px;
  color: #5c6575;
}
.dtc-mc__wishlist.saved svg {
  fill: #e8345b;
  stroke: #e8345b;
  color: #e8345b;
}

/* Card body */
.dtc-mc__body {
  padding: 13px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.dtc-mc__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dtc-mc__title a {
  color: #1a1a1a;
  text-decoration: none;
}
.dtc-mc__title a:hover { color: #038ed1; }

/* Rating */
.dtc-mc__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}
.dtc-mc__stars {
  display: flex;
  gap: 1px;
}
.dtc-mc__stars svg { width: 13px; height: 13px; }
.dtc-mc__rating-val { font-weight: 700; color: #1a1a1a; font-size: 13px; }
.dtc-mc__review-count { color: #8c96a2; font-size: 12px; }

/* Meta tags */
.dtc-mc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.dtc-mc__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #5c6575;
  background: #f4f6f8;
  border-radius: 5px;
  padding: 4px 8px;
  white-space: nowrap;
}
.dtc-mc__tag svg { width: 11px; height: 11px; flex-shrink: 0; }

/* Footer / price */
.dtc-mc__footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dtc-mc__footer-top { display: flex; align-items: baseline; }
.dtc-mc__price { font-size: 13px; color: #5c6575; }
.dtc-mc__price-from { font-size: 11px; margin-right: 1px; }
.dtc-mc__price strong {
  font-size: 18px;
  font-weight: 700;
  color: #038ed1;
}
.dtc-mc__price--request {
  font-size: 13px;
  color: #8c96a2;
  font-style: italic;
}
.dtc-modern-archive .dtc-mc__book-btn,
.dtc-modern-archive .dtc-mc__book-btn:visited {
  display: block !important;
  width: 100% !important;
  background: #038ed1 !important;
  color: #fff !important;
  text-align: center !important;
  border-radius: 8px !important;
  padding: 10px 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(3,142,209,.25) !important;
  transition: background .18s, box-shadow .18s !important;
  line-height: 1.5 !important;
}
.dtc-modern-archive .dtc-mc__book-btn:hover,
.dtc-modern-archive .dtc-mc__book-btn:focus {
  background: #004fb3 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(3,142,209,.35) !important;
  text-decoration: none !important;
}

/* ── Fuzzy search notice ─────────────────────────────────────────────────── */
.dtc-fuzzy-notice {
  font-size: 13px;
  color: #6c757d;
  background: #fff8e1;
  border-left: 3px solid #f5a623;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.dtc-fuzzy-notice strong { color: #1a1a1a; }

/* ── Live search states ──────────────────────────────────────────────────── */
.dtc-mgrid--loading {
  opacity: .5;
  pointer-events: none;
  transition: opacity .2s;
}
.dtc-live-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: #6c757d;
  font-size: 15px;
}
.dtc-live-searching {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8c96a2;
  padding: 4px 0 0 4px;
}
.dtc-live-searching::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid #d0d5df;
  border-top-color: #038ed1;
  border-radius: 50%;
  animation: dtc-spin .7s linear infinite;
  display: inline-block;
}
@keyframes dtc-spin {
  to { transform: rotate(360deg); }
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.dtc-mpagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
  padding-bottom: 8px;
}
.dtc-mpage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid #d8dde5;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: #3c3c3c;
  text-decoration: none;
  background: #fff;
  transition: all .18s;
}
.dtc-mpage:hover {
  border-color: #038ed1;
  color: #038ed1;
  background: #f0f6ff;
}
.dtc-mpage.active {
  background: #038ed1;
  border-color: #038ed1;
  color: #fff;
  font-weight: 700;
}
.dtc-mpage--dots {
  border-color: transparent;
  background: transparent;
  cursor: default;
}
.dtc-mpage--prev,
.dtc-mpage--next { font-size: 17px; font-weight: 400; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.dtc-mempty {
  text-align: center;
  padding: 72px 24px;
  color: #6c757d;
}
.dtc-mempty svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: block;
  opacity: .35;
}
.dtc-mempty h3 {
  font-size: 22px;
  color: #1a1a1a;
  margin: 0 0 10px;
}
.dtc-mempty p { margin: 0 0 24px; font-size: 15px; }

/* ── Trust badges ────────────────────────────────────────────────────────── */
.dtc-mtrust {
  background: #fff;
  border-top: 1px solid #e2e5ea;
  padding: 36px 24px;
  margin-top: 40px;
}
.dtc-mtrust__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.dtc-mtrust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.dtc-mtrust__item svg {
  width: 44px;
  height: 44px;
  color: #038ed1;
}
.dtc-mtrust__item strong {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 600;
}
.dtc-mtrust__item span {
  font-size: 12px;
  color: #6c757d;
  max-width: 190px;
  line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1150px) {
  .dtc-mgrid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
  .dtc-marchive-wrap {
    grid-template-columns: 1fr;
    margin: 0 auto;
    gap: 0;
  }
  .dtc-msidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    max-height: 100%;
    z-index: 9999;
    border-radius: 0;
    border: none;
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
    transform: translateX(-110%);
    transition: transform .28s ease;
    overflow-y: auto;
    padding-top: 56px;
  }
  .dtc-msidebar.open {
    transform: translateX(0);
  }
  .dtc-msidebar-close {
    display: flex;
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #5c6575;
    line-height: 1;
    padding: 4px;
  }
  .dtc-mmobile-bar { display: flex; }
  .dtc-mmain { padding: 16px; }
  .dtc-mmain__topbar { display: none; }
  .dtc-mgrid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .dtc-msearch-wrap { position: static; }
  .dtc-msearch {
    flex-wrap: wrap;
    border-radius: 14px;
    padding: 10px;
    gap: 4px;
  }
  .dtc-msearch__field { border-right: none; border-bottom: 1px solid #e2e5ea; padding: 8px 4px; }
  .dtc-msearch__sep { display: none; }
  .dtc-msearch__field:last-of-type { border-bottom: none; }
  .dtc-msearch__btn { width: 100%; justify-content: center; border-radius: 10px; margin-top: 4px; }
  .dtc-mtrust__inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .dtc-mcats-wrap { position: static; }
}

@media (max-width: 560px) {
  .dtc-mgrid { gap: 12px; }
  .dtc-mc__title { font-size: 13px; }
  .dtc-mc__price strong { font-size: 16px; }
  .dtc-mhero { min-height: 240px; padding: 40px 16px 32px; }
  .dtc-marchive-wrap { padding: 0 12px; }
  .dtc-mtrust__inner { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 380px) {
  .dtc-mgrid { grid-template-columns: 1fr; }
}
