/* KavkazTour — избранное */

/* ---------- Кнопка-сердечко на карточках ---------- */
.listar-themepost.kav-has-fav {
  position: relative;
}

.kav-fav-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 6;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: #7a7a7a;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
  transition: background .18s ease, color .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.kav-fav-btn i {
  pointer-events: none;
}

.kav-fav-btn:hover,
.kav-fav-btn:focus {
  background: #fff;
  color: #6fbf17;
  transform: scale(1.06);
  outline: none;
}

.kav-fav-btn.is-active {
  background: #6fbf17;
  color: #fff;
}

.kav-fav-btn.is-active:hover,
.kav-fav-btn.is-active:focus {
      background: #6fbf17;
  color: #fff;
}

/* ---------- Кнопка «Избранное» в шапке ---------- */
.kav-fav-header-btn {
  position: absolute;
}

.kav-fav-header-btn.is-active,
.kav-fav-header-btn:hover {
  background: #e23a3a !important;
  color: #fff !important;
}

.kav-fav-count[hidden] {
  display: none !important;
}

.kav-fav-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e23a3a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  pointer-events: none;
}

.kav-fav-header-btn.is-active .kav-fav-count {
  background: #fff;
  color: #e23a3a;
}

/* ---------- Страница «Избранное» ---------- */
.kav-fav-hero {
  width: 100%;
  float: left;
  background: #f4f8fc;
  padding: 26px 0 18px;
  border-bottom: 1px solid #e6eef6;
}

.kav-fav-hero .container {
  position: relative;
}

.kav-fav-hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
  color: #22303f;
}

.kav-fav-hero p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #5b6b7a;
}

.kav-fav-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 6px;
  padding: 4px 0 12px;
}

.kav-fav-toolbar h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #33414f;
}

.kav-fav-clear {
  border: 0;
  background: none;
  padding: 0;
  color: #e23a3a;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

.kav-fav-clear:hover {
  color: #b82727;
}

.kav-fav-loading {
  padding: 18px 0;
  color: #5b6b7a;
  font-size: 15px;
}

.kav-fav-note {
  padding: 10px 0 0;
  color: #9a6a00;
  font-size: 14px;
}

.kav-fav-empty {
  padding: 40px 20px 50px;
  text-align: center;
}

.kav-fav-empty > i {
  display: block;
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1;
  color: #c3d2e0;
}

.kav-fav-empty p {
  margin: 0 0 20px;
  font-size: 17px;
  color: #5b6b7a;
}

.kav-fav-empty .listar-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

.kav-fav-page .listar-placesposts {
  background: #fafafa;
}

#kav-fav-results::after {
  content: '';
  display: block;
  clear: both;
}

.listar-themepost.kav-fav-removing {
  opacity: 0;
  transform: scale(.97);
  transition: opacity .2s ease, transform .2s ease;
}

/* Карточки на странице избранного: те же акценты, что в листинге */
.kav-fav-page .listar-themepostfoot {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #4a4a4a;
}

.kav-fav-page .listar-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0077cc;
  text-decoration: none;
  border-radius: 6px;
  padding: 4px 10px;
  transition: background .3s, color .3s;
  font-weight: 600;
}

.kav-fav-page .listar-location i {
  font-size: 16px;
  color: #0077cc;
  transition: color .3s;
}

.kav-fav-page .listar-location em {
  font-style: normal;
}

.kav-fav-page .listar-location:hover,
.kav-fav-page .listar-location:hover i {
  color: #005fa3;
}



.kav-fav-page .listar-postcontent h3 a:hover {
  color: #0077cc;
  text-decoration: underline;
}

.kav-fav-page .listar-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f4f9ff;
  border: 1px solid #cce5ff;
  border-radius: 8px;
  padding: 6px 12px;
  color: #0077cc;
  font-weight: bold;
  text-decoration: none;
  transition: background .3s;
}

.kav-fav-page .listar-category:hover {
  background: #e1f0ff;
  color: #005fa3;
}

.kav-fav-page .listar-category span {
  font-size: 16px;
}

@media (max-width: 991px) {
  .kav-fav-hero h1 { font-size: 26px; }
}

@media (max-width: 767px) {
  .kav-fav-hero { padding: 20px 0 14px; }
  .kav-fav-hero h1 { font-size: 22px; }
  .kav-fav-hero p { font-size: 14px; }
  .kav-fav-btn {
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .kav-fav-toolbar h4 { font-size: 15px; }
}

@media (max-width: 359px) {
  .kav-fav-count {
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    line-height: 16px;
  }
}

/* ---------- Избранное на базе шаблона 36 (карточки + карта) ---------- */
.kav-fav-hero {
  position: relative;
  z-index: 2;
}

.kav-fav-hero::after {
  content: '';
  display: block;
  clear: both;
}

.kav-fav-hero .kav-fav-toolbar {
  padding-bottom: 8px;
}

.kav-fav-hero .kav-fav-empty {
  padding: 26px 20px 20px;
}

.kav-fav-page .listar-innerpagesearch {
  display: none !important;
}

.kav-fav-page .listar-searchstatus {
  display: none !important;
}

.kav-fav-page.kav-fav-is-empty .listar-listingvone > .col-xs-12,
.kav-fav-page.kav-fav-is-empty #listar-mapclustring {
  display: none !important;
}

.kav-fav-page .listar-themeposts {
  background: #fafafa;
}

.kav-fav-page #mse2_total {
  font-weight: 700;
}

@media (max-width: 767px) {
  .kav-fav-page .kav-fav-hero {
    padding: 18px 0 12px;
  }
}

