/* Favourite (heart) buttons and the "My favourites" page */
.rp-fav-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .95); color: #475569; cursor: pointer; padding: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .18); transition: transform .15s, color .15s, background .15s;
}
.rp-fav-btn:hover { transform: scale(1.08); color: #e11d48; }
.rp-fav-btn:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; }
.rp-fav-btn.is-active { color: #e11d48; }
.rp-fav-btn.is-active .rp-fav-ico path { fill: currentColor; }
.rp-fav-btn.is-loading { cursor: progress; }
.rp-fav-btn.is-pop { animation: rpFavPop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes rpFavPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .rp-fav-btn.is-pop { animation: none; } .rp-fav-btn { transition: none; } }

/* on a card: top-right over the image */
.rp-result-card { position: relative; }
.rp-result-card > .rp-fav-btn, .rp-fav-media > .rp-fav-btn { position: absolute; top: 10px; right: 10px; z-index: 3; }
.rp-fav-inline { margin-left: 8px; vertical-align: middle; box-shadow: 0 0 0 1.5px var(--rp-border, #e2e8f0); }

/* My favourites page */
.rp-fav-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.rp-fav-head h3 { margin: 0 0 2px; font-size: 20px; }
.rp-fav-sub { margin: 0; color: var(--rp-muted, #64748b); font-size: 13px; }
.rp-fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.rp-fav-card { background: #fff; border: 1.5px solid var(--rp-border, #e2e8f0); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: opacity .25s, transform .25s, box-shadow .15s; }
.rp-fav-card:hover { box-shadow: 0 8px 24px rgba(15, 23, 42, .10); }
.rp-fav-card.is-leaving { opacity: 0; transform: scale(.96); }
.rp-fav-media { position: relative; height: 180px; background: #f1f5f9; overflow: hidden; }
.rp-fav-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-fav-media a { display: block; height: 100%; }
.rp-fav-noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: #94a3b8; }
.rp-fav-tag { position: absolute; left: 10px; top: 10px; background: rgba(15, 23, 42, .78); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.rp-fav-card.is-unavailable .rp-fav-media img { filter: grayscale(1); opacity: .55; }
.rp-fav-card.is-unavailable .rp-fav-tag { background: #b45309; }
.rp-fav-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.rp-fav-title { font-weight: 700; font-size: 15px; color: var(--rp-text, #0f172a); text-decoration: none; line-height: 1.3; }
a.rp-fav-title:hover { color: var(--rp-primary, #2563eb); }
.rp-fav-card.is-unavailable .rp-fav-title { color: var(--rp-muted, #64748b); }
.rp-fav-loc, .rp-fav-facts { font-size: 12.5px; color: var(--rp-muted, #64748b); }
.rp-fav-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rp-fav-price { font-size: 16px; }
.rp-fav-foot small { color: var(--rp-muted, #64748b); font-size: 11.5px; }
.rp-fav-empty { text-align: center; padding: 48px 16px; color: var(--rp-muted, #64748b); }
.rp-fav-empty h3 { color: var(--rp-text, #0f172a); margin: 8px 0 4px; }
.rp-fav-empty-ico { color: #fda4af; }
.rp-fav-pager { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.rp-fav-page { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--rp-border, #e2e8f0); border-radius: 10px; text-decoration: none; color: inherit; font-size: 13px; }
.rp-fav-page.is-current { background: var(--rp-primary, #2563eb); border-color: var(--rp-primary, #2563eb); color: #fff; }
@media (max-width: 520px) { .rp-fav-grid { grid-template-columns: 1fr; } }

/* Dynamic price filter (Shared\PriceFilter::render) */
.rp-price-pill small { opacity: .65; font-weight: 500; }
.rp-price-custom { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.rp-price-custom input { flex: 1 1 0; min-width: 0; height: 34px; border: 1px solid var(--rp-border, #e2e8f0); border-radius: 10px; padding: 0 10px; font-size: 12.5px; background: #fff; }
.rp-price-custom span { color: var(--rp-muted, #64748b); }
.rp-price-hint { margin-top: 6px; font-size: 11.5px; color: var(--rp-muted, #64748b); }
