/* KingKalli search results: compact cards and type filters. */

body.search .page-header {
  border-bottom: 1px solid rgba(132, 127, 110, 0.22);
  margin: 0 0 18px;
  padding: 52px 0 24px;
}

body.search .page-header h1 {
  color: #6f7068;
  font-family: GloberxBold, Arial, sans-serif;
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.05;
  margin: 0;
  overflow-wrap: anywhere;
}

body.search .kk-search-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 22px;
}

body.search .kk-search-filter {
  background: #fffdf8;
  border: 1px solid #ded6c5;
  border-radius: 999px;
  color: #4a463b;
  display: inline-flex;
  font-family: GloberxBold, Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  padding: 9px 14px 7px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

body.search .kk-search-filter:hover,
body.search .kk-search-filter:focus {
  border-color: rgba(185, 79, 38, 0.48);
  color: #b94f26;
  text-decoration: none;
}

body.search .kk-search-filter--active {
  background: rgba(185, 79, 38, 0.84);
  border-color: rgba(185, 79, 38, 0.18);
  color: #ffffff;
}

body.search .kk-search-filter--active:hover,
body.search .kk-search-filter--active:focus {
  color: #ffffff;
}

body.search .kk-search-results {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 34px;
}

body.search .kk-search-results.kk-search-results-masonry-ready {
  column-gap: 22px;
  grid-auto-rows: 4px;
  row-gap: 0;
}

body.search .kk-search-results.kk-search-results-masonry-ready .kk-search-card {
  grid-row: var(--kk-search-card-row-start) / span var(--kk-search-card-row-span);
}

body.search .kk-search-results.kk-search-results-masonry-ready .kk-search-card--masonry-left {
  grid-column: 1;
}

body.search .kk-search-results.kk-search-results-masonry-ready .kk-search-card--masonry-right {
  grid-column: 2;
}

body.search .kk-search-card {
  align-self: start;
  background: #f5f5f1 !important;
  border: 1px solid rgba(94, 88, 70, 0.16);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(70, 62, 42, 0.08) !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

body.search article.kk-search-card.tribe-events--is-past-event {
  display: flex !important;
}

body.search .kk-search-card:hover {
  box-shadow: 0 9px 20px rgba(58, 50, 34, 0.14) !important;
  transform: translateY(-2px);
}

body.search .kk-search-card--top {
  grid-column: 1 / -1;
}

body.search .kk-search-card__media {
  background: #e3e0d5;
  border: 0;
  display: block;
  height: 190px;
  overflow: hidden;
  text-decoration: none;
}

body.search .kk-search-card--top .kk-search-card__media {
  height: 230px;
}

body.search .kk-search-card__image {
  display: block;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 180ms ease;
  width: 100%;
}

body.search .kk-search-card__image--king {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.72), rgba(227, 224, 213, 0.88)),
    #e3e0d5;
  box-sizing: border-box;
  object-fit: contain;
  padding: 34px;
}

body.search .kk-search-card:hover .kk-search-card__image {
  transform: scale(1.035);
}

body.search .kk-search-card__content {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  padding: 15px 16px 14px;
}

body.search .kk-search-card--no-image:not(.kk-search-card--top) .kk-search-card__content {
  padding-top: 16px;
}

body.search .kk-search-card__kicker {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 6px;
}

body.search .kk-search-card__type,
body.search .kk-search-card__top-label {
  border-radius: 7px;
  display: inline-flex;
  font-family: GloberxBold, Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px 4px;
}

body.search .kk-search-card__type {
  background: #e8e2d3;
  color: #5f5b4d;
}

body.search .kk-search-card__top-label {
  background: rgba(185, 79, 38, 0.86);
  color: #ffffff;
}

body.search .kk-search-card__categories {
  margin: 0 0 7px;
}

body.search .kk-search-card__title {
  color: #39352b;
  font-family: GloberxBold, Arial, sans-serif;
  font-size: 21px;
  line-height: 1.16;
  margin: 0 0 6px;
  padding: 0;
}

body.search .kk-search-card__title a {
  color: inherit;
  text-decoration: none;
}

body.search .kk-search-card__title a:hover,
body.search .kk-search-card__title a:focus {
  color: #a5482a;
  text-decoration: none;
}

body.search .kk-search-card__meta {
  align-items: baseline;
  color: #7a766a;
  display: flex;
  flex-wrap: wrap;
  font-family: GloberxBold, Arial, sans-serif;
  font-size: 13px;
  gap: 5px;
  line-height: 1.35;
  margin: 0 0 8px;
}

body.search .kk-search-card__meta a {
  color: #cb6239;
  text-decoration: none;
}

body.search .kk-search-card__meta a:hover,
body.search .kk-search-card__meta a:focus {
  color: #cc4a00;
}

body.search .kk-search-card__separator {
  color: #aaa394;
}

body.search .kk-search-card__excerpt {
  color: #39352b;
  font-size: 15px;
  line-height: 1.43;
  margin: 0 0 8px;
}

body.search .kk-search-card__more {
  align-self: flex-end;
  color: #cc4a00;
  font-family: GloberxBold, Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  margin-top: 2px;
  padding-top: 0;
  text-decoration: none;
}

body.search .kk-search-card__more:hover,
body.search .kk-search-card__more:focus {
  color: #a5482a;
  text-decoration: none;
}

body.search .kk-search-results + .mk-pagination {
  margin-top: 8px;
}

body.search .mk-pagination {
  align-items: center;
  border-top: 1px solid rgba(132, 127, 110, 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 10px 0 38px !important;
  padding: 24px 0 0 !important;
}

body.search .mk-pagination::before,
body.search .mk-pagination::after {
  content: none;
}

body.search .mk-pagination .mk-pagination-first,
body.search .mk-pagination .mk-pagination-previous,
body.search .mk-pagination .mk-pagination-inner,
body.search .mk-pagination .mk-pagination-next,
body.search .mk-pagination .mk-pagination-last {
  align-items: center;
  display: flex;
  float: none !important;
  gap: 7px;
  margin: 0 !important;
}

body.search .mk-pagination .mk-pagination-previous:empty,
body.search .mk-pagination .mk-pagination-next:empty {
  display: none !important;
}

body.search .mk-pagination .current-page,
body.search .mk-pagination .page-number,
body.search .mk-pagination .mk-pagination-first a,
body.search .mk-pagination .mk-pagination-previous a,
body.search .mk-pagination .mk-pagination-next a,
body.search .mk-pagination .mk-pagination-last a {
  align-items: center;
  background: #fffdf8;
  border: 1px solid #ded6c5;
  border-radius: 7px;
  box-sizing: border-box;
  color: #4a463b !important;
  display: inline-flex !important;
  float: none !important;
  font-family: GloberxBold, Arial, sans-serif;
  font-size: 14px;
  height: 34px;
  justify-content: center;
  line-height: 1 !important;
  margin: 0 !important;
  min-width: 34px;
  padding: 0 12px !important;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

body.search .mk-pagination .current-page {
  background: rgba(185, 79, 38, 0.84);
  border-color: rgba(185, 79, 38, 0.18);
  color: #ffffff !important;
}

body.search .mk-pagination .page-number:hover,
body.search .mk-pagination .page-number:focus,
body.search .mk-pagination .mk-pagination-first a:hover,
body.search .mk-pagination .mk-pagination-first a:focus,
body.search .mk-pagination .mk-pagination-previous a:hover,
body.search .mk-pagination .mk-pagination-previous a:focus,
body.search .mk-pagination .mk-pagination-next a:hover,
body.search .mk-pagination .mk-pagination-next a:focus,
body.search .mk-pagination .mk-pagination-last a:hover,
body.search .mk-pagination .mk-pagination-last a:focus {
  border-color: rgba(185, 79, 38, 0.48);
  color: #b94f26 !important;
  text-decoration: none;
}

body.search .mk-pagination .mk-pagination-previous a,
body.search .mk-pagination .mk-pagination-next a {
  padding: 0 !important;
  width: 34px;
}

body.search .mk-pagination .mk-pagination-first a,
body.search .mk-pagination .mk-pagination-last a {
  font-family: GloberxBold, Arial, sans-serif !important;
  min-width: 42px;
}

body.search .kk-search-pagination .mk-pagination-previous a::before,
body.search .kk-search-pagination .mk-pagination-next a::before {
  content: none !important;
  display: none !important;
}

body.search .mk-pagination .mk-total-pages {
  display: none !important;
}

body.search .kk-search-empty {
  background: #f5f5f1;
  border: 1px solid rgba(94, 88, 70, 0.16);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(70, 62, 42, 0.08);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(150px, 0.36fr) minmax(0, 0.64fr);
  margin: 0 0 34px;
  overflow: hidden;
}

body.search .kk-search-empty__mark {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.64), rgba(214, 211, 198, 0.86)),
    #e3e0d5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
}

body.search .kk-search-empty__mark::before {
  color: rgba(95, 91, 77, 0.2);
  content: "0";
  font-family: GloberxBold, Arial, sans-serif;
  font-size: clamp(88px, 10vw, 140px);
  line-height: 0.8;
}

body.search .kk-search-empty__mark::after {
  color: rgba(95, 91, 77, 0.48);
  content: "Treffer";
  font-family: GloberxBold, Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 1;
}

body.search .kk-search-empty__content {
  align-self: center;
  padding: 30px 30px 28px 0;
}

body.search .kk-search-empty__eyebrow {
  background: rgba(185, 79, 38, 0.86);
  border-radius: 7px;
  color: #ffffff;
  display: inline-flex;
  font-family: GloberxBold, Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  margin: 0 0 12px;
  padding: 6px 8px 4px;
}

body.search .kk-search-empty h2 {
  color: #39352b;
  font-family: GloberxBold, Arial, sans-serif;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.12;
  margin: 0 0 12px;
  padding: 0;
}

body.search .kk-search-empty p {
  color: #39352b;
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 18px;
}

body.search .kk-search-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

body.search .kk-search-empty__button,
body.search .kk-search-empty__form button {
  background: rgba(185, 79, 38, 0.84);
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  display: inline-flex;
  font-family: GloberxBold, Arial, sans-serif;
  font-size: 15px;
  justify-content: center;
  line-height: 1;
  padding: 12px 17px 10px;
  text-decoration: none;
}

body.search .kk-search-empty__button:hover,
body.search .kk-search-empty__button:focus,
body.search .kk-search-empty__form button:hover,
body.search .kk-search-empty__form button:focus {
  background: #a5482a;
  color: #ffffff;
  text-decoration: none;
}

body.search .kk-search-empty__form label {
  color: #5f5b4d;
  display: block;
  font-family: GloberxBold, Arial, sans-serif;
  font-size: 14px;
  margin: 0 0 8px;
}

body.search .kk-search-empty__form-row {
  display: flex;
  gap: 8px;
  max-width: 480px;
}

body.search .kk-search-empty__form input[type="search"] {
  background: #fffdf8;
  border: 1px solid #ded6c5;
  border-radius: 7px;
  color: #39352b;
  flex: 1 1 auto;
  font-size: 16px;
  min-width: 0;
  padding: 10px 12px 8px;
}

@media (min-width: 900px) {
  body.search .kk-search-card--top {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  }

  body.search article.kk-search-card--top.tribe-events--is-past-event {
    display: grid !important;
  }

  body.search .kk-search-card--top .kk-search-card__media {
    height: 250px;
  }

  body.search .kk-search-card--top .kk-search-card__content {
    align-self: start;
    padding: 20px 22px 18px;
  }
}

@media (max-width: 767px) {
  body.search .wrap.container,
  body.search .content,
  body.search .main.row {
    box-sizing: border-box;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.search .wrap.container {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: none !important;
    overflow-x: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.search .content {
    display: block;
  }

  body.search .main.row {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-width: 0;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.search .page-header {
    margin-left: 0;
    margin-right: 0;
    padding: 34px 0 20px;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.search .page-header h1 {
    font-size: clamp(29px, 8.7vw, 36px);
    max-width: 100%;
    overflow-wrap: break-word;
    white-space: normal !important;
    word-break: normal;
  }

  body.search .kk-search-filters {
    gap: 7px;
    margin-bottom: 18px;
    max-width: 100% !important;
    min-width: 0;
    width: 100% !important;
  }

  body.search .kk-search-filter {
    font-size: 13px;
    padding: 8px 11px 6px;
  }

  body.search .kk-search-results {
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
    max-width: 100% !important;
    min-width: 0;
    width: 100% !important;
  }

  body.search .kk-search-results.kk-search-results-masonry-ready {
    display: grid;
    gap: 18px;
    grid-auto-rows: auto;
  }

  body.search .kk-search-results.kk-search-results-masonry-ready .kk-search-card {
    grid-column: auto;
    grid-row: auto;
  }

  body.search .kk-search-card--top {
    grid-column: auto;
  }

  body.search .kk-search-card {
    max-width: 100% !important;
    min-width: 0;
    width: 100% !important;
  }

  body.search aside.sidebar {
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: none !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
  }

  body.search aside.sidebar .widget {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.search .kk-search-card__content,
  body.search .kk-search-card__excerpt,
  body.search .kk-search-card__meta,
  body.search .kk-search-card__title {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body.search .kk-search-card__media,
  body.search .kk-search-card--top .kk-search-card__media {
    height: 178px;
  }

  body.search .kk-search-card__content {
    padding: 14px;
  }

  body.search .kk-search-card__title {
    font-size: 20px;
  }

  body.search .kk-search-empty {
    display: block;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.search .kk-search-empty__mark {
    min-height: 128px;
  }

  body.search .kk-search-empty__content {
    padding: 18px 16px 20px;
  }

  body.search .kk-search-empty__form-row {
    display: block;
  }

  body.search .kk-search-empty__form input[type="search"] {
    margin: 0 0 8px;
    width: 100%;
  }

  body.search .kk-search-empty__form button {
    width: 100%;
  }

  body.search .mk-pagination {
    gap: 7px;
    margin-bottom: 30px !important;
    padding-top: 18px !important;
  }

  body.search .mk-pagination .mk-pagination-inner {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }

  body.search .mk-pagination .current-page,
  body.search .mk-pagination .page-number,
  body.search .mk-pagination .mk-pagination-first a,
  body.search .mk-pagination .mk-pagination-previous a,
  body.search .mk-pagination .mk-pagination-next a,
  body.search .mk-pagination .mk-pagination-last a {
    font-size: 13px;
    height: 32px;
    min-width: 32px;
    padding: 0 10px !important;
  }

  body.search .mk-pagination .mk-pagination-previous a,
  body.search .mk-pagination .mk-pagination-next a {
    width: 32px;
  }

  body.search .mk-pagination .mk-pagination-first a,
  body.search .mk-pagination .mk-pagination-last a {
    min-width: 40px;
  }
}
