/**handles:cfd-k-archives**/
/**
 * Archive, search, and blog index listing views (Kadence child).
 */

body.cfd-kadence-child.cfd-listing {
  background: var(--cfd-page-bg, #f5f2ed);
}

.cfd-archive__wrap,
.cfd-category-hub__wrap {
  max-width: var(--cfd-ticket-max, var(--cfd-max, 1496px));
  margin: 0 auto;
}

.cfd-archive-layout--sidebar {
  padding: 0 var(--cfd-gutter, 24px) 40px;
  align-items: start;
}

.cfd-archive-layout--sidebar .cfd-archive__grid,
.cfd-archive-layout--sidebar .cfd-category-hub__grid {
  padding-left: 0;
  padding-right: 0;
}

.cfd-archive-layout--sidebar .cfd-category-hub__listing-head,
.cfd-archive-layout--sidebar .category-hub-filters,
.cfd-archive-layout--sidebar .filter-bar {
  padding-left: 0;
  padding-right: 0;
}

.cfd-archive-layout--sidebar .cfd-single-sidebar {
  padding-top: 20px;
}

.cfd-archive__grid,
.cfd-category-hub__grid {
  padding: 28px var(--cfd-gutter, 24px) 40px;
  overflow: visible;
}

.cfd-related-section__grid {
  overflow: visible;
}

.cfd-section-head,
.filter-bar__heading.cfd-section-head {
  font-family: var(--cfd-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--cfd-text, #1a1a1a);
}

.archive-hero__title,
.archive-header__title,
.category-hub-hero__title {
  text-transform: none;
  letter-spacing: -0.02em;
}

/* Compact title row (no stamp beside H1) */
.archive-hero__heading {
  display: block;
  margin-top: 2px;
  min-width: 0;
}

.archive-hero__heading-text {
  min-width: 0;
}

.archive-hero__heading .archive-hero__title,
.archive-hero__heading .archive-header__title {
  margin-top: 0;
}

@media (max-width: 768px) {
  .archive-hero__heading {
    margin-top: 0;
  }
}

.archive-header--listing,
.category-hub-hero--ticket {
  background: var(--cfd-k-cream, #f9f8f4);
}

/* Listing heroes (author, date, tag, blog index): match hub/search — no stub rail */
body.cfd-listing .archive-hero--no-stub .archive-hero__inner,
body.cfd-listing .archive-header--listing.archive-hero--no-stub .archive-hero__inner {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

body.cfd-listing .archive-hero--no-stub {
  padding-top: 20px;
  padding-bottom: 22px;
}

body.cfd-listing .archive-hero--no-stub .archive-hero__content {
  min-width: 0;
}

body.cfd-listing .archive-hero--no-stub .archive-hero__title {
  margin-top: 4px;
  line-height: 1.15;
  font-family: var(--cfd-serif, "Playfair Display", Georgia, serif);
}

body.cfd-listing .archive-hero--no-stub .breadcrumbs {
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  body.cfd-listing .archive-hero--no-stub .archive-hero__inner,
  body.cfd-listing .archive-header--listing.archive-hero--no-stub .archive-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/* Topic hub: single ticket band (no duplicate stub beside title) */
body.cfd-category-hub .archive-hero--no-stub .archive-hero__inner,
body.cfd-category-hub .category-hub-hero--ticket .archive-hero__inner {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

body.cfd-category-hub .archive-hero--no-stub {
  padding-top: 20px;
  padding-bottom: 22px;
}

body.cfd-category-hub .archive-hero__content {
  min-width: 0;
}

body.cfd-category-hub .archive-hero__title {
  margin-top: 4px;
  line-height: 1.15;
}

body.cfd-category-hub .breadcrumbs {
  margin-bottom: 6px;
}

body.cfd-category-hub .category-hub-filters {
  padding-top: 24px;
  padding-bottom: 24px;
}

.cfd-category-hub__listing-head {
  padding: 20px var(--cfd-gutter, 24px) 8px;
  background: var(--cfd-k-cream, #f9f8f4);
  border-top: 1px solid var(--cfd-border, #d8d2c5);
}

.cfd-category-hub__listing-head .cfd-section-head {
  margin: 0;
}

.archive-header__eyebrow {
  font-size: var(--cfd-eyebrow-size, 0.625rem);
  font-weight: 700;
  letter-spacing: var(--cfd-label-spacing, 0.14em);
  text-transform: uppercase;
  color: var(--cfd-burgundy, #a8322d);
  margin: 0 0 6px;
}

.archive-header__count {
  margin: 12px 0 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cfd-muted, #6b6558);
}

.archive-header__search {
  margin-top: 20px;
  max-width: min(640px, 100%);
}

/* Search results — hub-style hero (no stub rail; title + form share measure) */
.archive-header--search .archive-hero__rail,
.archive-header--search .archive-header__rail,
body.cfd-search .archive-header--search .archive-hero__rail,
body.cfd-search .archive-header--search .archive-header__rail {
  display: none !important;
}

.archive-hero--no-stub.archive-header--search .archive-hero__inner,
.archive-header--search .archive-hero__inner,
body.cfd-search .archive-hero--no-stub .archive-hero__inner,
body.cfd-search .archive-header--search .archive-hero__inner {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

body.cfd-search .archive-hero--no-stub,
body.cfd-search .archive-header--search {
  padding-top: 24px;
  padding-bottom: 28px;
}

body.cfd-search .archive-hero__content,
body.cfd-search .archive-header--search .archive-hero__content {
  position: relative;
  z-index: 2;
  min-width: 0;
  overflow: visible;
}

body.cfd-search .archive-hero__title,
body.cfd-search .archive-header--search .archive-hero__title {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  line-height: 1.15;
  max-width: min(640px, 100%);
  padding-right: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

body.cfd-search .archive-header--search:not(.category-hub-hero) .archive-hero__title {
  font-family: var(--cfd-serif, "Playfair Display", Georgia, serif);
}

body.cfd-search .archive-header__search {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  max-width: min(640px, 100%);
  width: 100%;
  overflow: visible;
}

body.cfd-search .archive-header__search .search-form {
  width: 100%;
  max-width: 100%;
}

body.cfd-search .archive-header__stamp,
.archive-header--search .archive-header__stamp {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  align-self: center;
  overflow: visible;
  margin-top: 0;
  padding-right: 2px;
  pointer-events: none;
  max-width: 72px;
}

body.cfd-search .breadcrumbs {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  body.cfd-search .archive-hero--no-stub .archive-hero__inner,
  body.cfd-search .archive-header--search .archive-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  body.cfd-search .archive-hero__title,
  body.cfd-search .archive-header--search .archive-hero__title {
    padding-right: 0;
    max-width: 100%;
  }

  body.cfd-search .archive-header__search {
    max-width: 100%;
  }
}

.cfd-grid--articles {
  display: grid;
  border-top: 1px solid var(--cfd-border, #d8d2c5);
}

.cfd-grid--articles.articles-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.cfd-pagination.navigation.pagination,
.navigation.pagination.cfd-pagination {
  padding: 32px var(--cfd-gutter, 24px);
  border-top: 1px solid var(--cfd-border, #d8d2c5);
  text-align: center;
  background: var(--cfd-k-cream, #f9f8f4);
}

.cfd-pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cfd-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--cfd-border, #d8d2c5);
  font-family: var(--cfd-sans);
  font-size: 12px;
  font-weight: 600;
  background: #fff;
}

.cfd-pagination .page-numbers.current {
  background: var(--cfd-burgundy, #a8322d);
  border-color: var(--cfd-burgundy, #a8322d);
  color: #fff;
}

/* Listing width: match singular ticket measure inside Kadence wrappers */
body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override #inner-wrap,
body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override #inner-wrap .site,
body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override .content-bg,
body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override .content-container,
body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override .content-container.site-container,
body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override .site-container,
body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override .entry-content-wrap {
  max-width: none !important;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override #primary.content-area,
body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override .cfd-archive {
  max-width: none;
  width: 100%;
}

@media (max-width: 768px) {
  .cfd-grid--articles.articles-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    border-top: none;
  }

  .cfd-grid--articles.articles-grid--4 .article-card {
    border-right: none;
    min-width: 0;
  }

  .cfd-archive__grid,
  .cfd-category-hub__grid {
    padding: 24px var(--cfd-gutter, 24px);
  }
}

/* ─── Search: destination country matches ─── */
.cfd-search-destinations {
  padding: 20px var(--cfd-gutter, 24px) 8px;
  background: var(--cfd-k-cream, #f9f8f4);
  border-bottom: 1px solid var(--cfd-border, #d8d2c5);
}

.cfd-search-destinations__head {
  margin: 0 0 0.85rem;
}

.cfd-search-destinations__kicker {
  margin: 0 0 6px;
  font-family: var(--cfd-sans, "DM Sans", system-ui, sans-serif);
  font-size: var(--cfd-eyebrow-size, 0.625rem);
  font-weight: 700;
  letter-spacing: var(--cfd-label-spacing, 0.14em);
  text-transform: uppercase;
  color: var(--cfd-accent, #a8322d);
}

.cfd-search-destinations__grid {
  list-style: none;
  margin: 0;
  padding: 0 0 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.cfd-search-destinations__grid > li {
  display: flex;
  min-width: 0;
}

.cfd-search-destinations__card {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 14px 14px 14px 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--cfd-text, #1a1a1a);
  background: linear-gradient(180deg, var(--cfd-cream, #f9f8f4) 0%, var(--cfd-cream-alt, #f5f2eb) 100%);
  border: 1px solid var(--cfd-border, #d8d2c5);
  border-left: 3px solid var(--cfd-accent, #a8322d);
  box-shadow: none;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.cfd-search-destinations__card--atlas {
  grid-template-columns: 28px minmax(0, 1fr) auto;
}

.cfd-search-destinations__card:hover {
  border-color: var(--cfd-accent, #a8322d);
  color: var(--cfd-accent, #a8322d);
}

.cfd-search-destinations__card:focus-visible {
  border-color: var(--cfd-accent, #a8322d);
  color: var(--cfd-accent, #a8322d);
  outline: 2px solid var(--cfd-accent, #a8322d);
  outline-offset: 2px;
}

.cfd-search-destinations__flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1.15rem;
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
}

.cfd-search-destinations__flag-icon {
  display: block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E");
}

.cfd-search-destinations__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cfd-search-destinations__name {
  font-family: var(--cfd-sans, "DM Sans", system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.cfd-search-destinations__meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cfd-muted, #6b6558);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cfd-search-destinations__arrow {
  align-self: center;
  color: var(--cfd-accent, #a8322d);
  font-size: 12px;
  line-height: 1;
}

.cfd-search-results__listing-head {
  padding: 20px var(--cfd-gutter, 24px) 8px;
  background: var(--cfd-k-cream, #f9f8f4);
}