/* Shortlist — hearts on project cards, header badge, toast (every page) + the /shortlist page.
   Behaviour: public/js/shortlist.js */
:root { --sl-pink: #c4447d; --sl-blue: #4561b2; --sl-navy: #17145f; }

/* heart added on top of a card image (bottom-right, clear of the badges at the top) */
.ra-sl-heart { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--sl-pink); box-shadow: 0 4px 12px rgba(23, 20, 95, .18); cursor: pointer; transition: transform .2s; }
.ra-sl-heart:hover { transform: scale(1.1); }
.ra-sl-heart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.ra-sl-heart.is-saved svg, .ra-heart.is-saved svg { fill: currentColor; }
.ra-heart.is-saved { border-color: var(--sl-pink); background: #fdf0f6; }
.ra-sl-heart.is-saved svg, .ra-heart.is-saved svg, .ra-sl-save.is-saved svg { animation: sl-pop .3s ease; }
@keyframes sl-pop { 50% { transform: scale(1.3); } }

/* header heart -> /shortlist with count */
.ra-sl-link { position: relative; text-decoration: none; }
.ra-sl-badge { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--sl-pink); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.ra-sl-badge[hidden] { display: none; }

/* "Shortlist" pill on the project detail page */
.ra-sl-save { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; padding: 7px 14px; border: 1px solid #e4dcef; border-radius: 999px; background: #fff; color: var(--sl-navy); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; }
.ra-sl-save svg { width: 16px; height: 16px; fill: none; stroke: var(--sl-pink); stroke-width: 1.9; stroke-linejoin: round; }
.ra-sl-save:hover { border-color: var(--sl-pink); }
.ra-sl-save.is-saved { border-color: var(--sl-pink); background: #fdf0f6; color: var(--sl-pink); }
.ra-sl-save.is-saved svg { fill: var(--sl-pink); }

/* toast */
.ra-sl-toast { position: fixed; left: 50%; bottom: 24px; z-index: 2000; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 10px; background: var(--sl-navy); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .25s, transform .25s; }
.ra-sl-toast.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.ra-sl-toast a { color: #f9a8cd; font-weight: 600; text-decoration: underline; }
@media (max-width: 991.98px) { .ra-sl-toast { bottom: 106px; } } /* above the mobile bottom nav + its + button */

/* ---------- /shortlist page ---------- */
.sl-page { padding: 110px 0 40px; background: #f9f9fd; }
.sl-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.sl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.sl-head h1 { margin: 0 0 6px; color: var(--sl-navy); font-size: 28px; font-weight: 700; }
.sl-head h1 span { color: var(--sl-pink); }
.sl-head p { margin: 0; color: #6b7280; font-size: 14px; }
.sl-clear { padding: 8px 14px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #6b7280; font-size: 13px; }
.sl-clear:hover { border-color: #dc2626; color: #dc2626; }
.sl-loading { padding: 60px 0; color: #6b7280; text-align: center; }

.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.sl-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ece9f7; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(23, 20, 95, .05); transition: border-color .2s, box-shadow .2s; }
.sl-card.is-picked { border-color: var(--sl-pink); box-shadow: 0 0 0 2px rgba(196, 68, 125, .2); }
.sl-card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: #eee; }
.sl-card-media img { width: 100%; height: 100%; object-fit: cover; }
.sl-card > .ra-sl-heart { top: 10px; bottom: auto; }
.sl-card-status { position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(23, 20, 95, .88); color: #fff; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.sl-card-body { display: flex; flex: 1; flex-direction: column; padding: 14px 16px 16px; }
.sl-card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.sl-card h3 a { color: var(--sl-navy); text-decoration: none; }
.sl-card-loc { margin: 0 0 12px; color: #6b7280; font-size: 13px; line-height: 1.45; }
.sl-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding: 10px 0; border-top: 1px solid #f0eef7; }
.sl-card-meta small { display: block; color: #9ca3af; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.sl-card-meta strong { display: block; color: var(--sl-navy); font-size: 14px; font-weight: 600; }
.sl-card-meta em { display: block; color: #6b7280; font-size: 11px; font-style: normal; }
.sl-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #f0eef7; }
.sl-lux-tag { padding: 4px 10px; border-radius: 4px; background: linear-gradient(135deg, #d6b07c, #b8895a); color: #1b1640; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.sl-pick { display: flex; align-items: center; gap: 8px; margin: 0; color: #374151; font-size: 13px; font-weight: 500; cursor: pointer; }
.sl-card-btn { padding: 8px 14px; border: 1.5px solid #d98fb0; border-radius: 8px; color: var(--sl-navy); font-size: 13px; font-weight: 600; text-decoration: none; transition: all .2s; }
.sl-card-btn:hover { border-color: transparent; background: linear-gradient(90deg, var(--sl-blue), var(--sl-pink)); color: #fff; }

.sl-empty { max-width: 460px; margin: 20px auto; padding: 48px 24px; border: 1px dashed #e4dcef; border-radius: 16px; background: #fff; text-align: center; }
.sl-empty-ico { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #fdf0f6; color: var(--sl-pink); }
.sl-empty-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.sl-empty h2 { margin: 0 0 8px; color: var(--sl-navy); font-size: 20px; font-weight: 700; }
.sl-empty p { margin: 0 0 20px; color: #6b7280; font-size: 14px; }
.sl-empty .btn-brand { display: inline-block; padding: 10px 22px; text-decoration: none; }

/* sticky compare bar */
.sl-bar { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 12px 12px 12px 18px; border-radius: 14px; background: var(--sl-navy); color: #fff; box-shadow: 0 12px 30px rgba(23, 20, 95, .25); }
.sl-bar[hidden] { display: none; }
.sl-bar-text { font-size: 14px; }
.sl-bar-btn { padding: 10px 20px; border-radius: 10px; background: linear-gradient(90deg, var(--sl-blue), var(--sl-pink)); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sl-bar-btn:hover { color: #fff; }
.sl-bar-btn.disabled { opacity: .45; pointer-events: none; }
@media (max-width: 575.98px) { .sl-page { padding-top: 90px; } .sl-head h1 { font-size: 22px; } }
