/* Shorter catalogue cards and a centred, font-independent favourite icon. */
.catalog-page .real-tour-card .tour-card-body {
  grid-template-rows: calc(var(--card-title-size) * 3.36) calc(var(--card-copy-size) * 3) 40px auto;
}

:root body.catalog-page .real-tour-card .tour-heart {
  display: grid;
  place-items: center;
  top: 10px !important;
  right: 10px !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0 !important;
  text-shadow: none;
}

.catalog-page .tour-heart::before {
  content: '';
  width: 24px;
  height: 24px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21C10.5 19.6 3 13.1 3 8.1C3 5.3 5.1 3 7.9 3C9.55 3 11.05 3.8 12 5C12.95 3.8 14.45 3 16.1 3C18.9 3 21 5.3 21 8.1C21 13.1 13.5 19.6 12 21Z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.catalog-page .tour-heart.is-liked::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21C10.5 19.6 3 13.1 3 8.1C3 5.3 5.1 3 7.9 3C9.55 3 11.05 3.8 12 5C12.95 3.8 14.45 3 16.1 3C18.9 3 21 5.3 21 8.1C21 13.1 13.5 19.6 12 21Z'/%3E%3C/svg%3E");
}

.catalog-page .tour-heart:focus-visible { outline: 2px solid #99f85b; outline-offset: 2px; }

/* One-word badges remain fully visible beside or above the favourite. */
:root body.catalog-page .real-tour-card .tour-tag {
  box-sizing: border-box;
  max-width: calc(100% - 66px) !important;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

@media (max-width: 600px) {
  :root body.catalog-page .real-tour-card .tour-tag {
    max-width: calc(100% - 20px) !important;
    padding-inline: 6px;
    font-size: 11px;
  }
  :root body.catalog-page .real-tour-card .tour-heart {
    top: auto !important;
    bottom: 4px !important;
    right: 4px !important;
  }
}
