/* #8379 Seznam želja (wishlist) — srček na karticah, header badge, /seznam-zelja stran */

/* --- srček na kartici (prikaže se ob hoverju kartice, kot na search.msg.si prototipu) --- */
.offer-image { position: relative; }
.wishlist-heart {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 20;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #E50000;
    font-size: 20px;
    line-height: 34px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.offer_preview:hover .wishlist-heart,
.wishlist-heart.active,
.wishlist-heart--detail { opacity: 1; }
/* touch naprave nimajo hoverja -> srček vedno viden */
@media (hover: none) { .wishlist-heart { opacity: 1; } }
.wishlist-heart:hover { background: #fff; transform: scale(1.08); }
.wishlist-heart.active { color: #E50000; }

/* --- srček na strani ponudbe: gumb z napisom v akcijski vrstici (Deli z drugimi) --- */
/* .share_like je sicer float+fiksnih 360px → neaktiven (širši) gumb pade v novo vrsto.
   Flex postavitev poravna FB gumb + naš gumb v isto vrsto ne glede na širino besedila.
   Specifičnost mora ujeti `.content .wrap .right_container .share_like` (style-2014.css);
   wishlist.css se naloži kasneje → ob enaki specifičnosti zmaga. */
.content .wrap .right_container .share_like {
    width: auto;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 12px;
}
/* naš gumb je prvi (levo, poravnan z vsebino); FB gumb sledi */
.wishlist-heart--label { order: 0; }
.wishlist-heart--label {
    position: static;
    width: auto;
    height: 28px;
    border: 1px solid #E50000;
    border-radius: 4px;
    background: #fff;
    color: #E50000;
    font-size: 13px;
    line-height: 26px;
    padding: 0 12px;
    float: none;
    margin: 0;
    vertical-align: middle;
    opacity: 1;
    box-shadow: none;
    white-space: nowrap;
}
.wishlist-heart--label .icon-heart,
.wishlist-heart--label .icon-heart-o { font-size: 15px; margin-right: 6px; vertical-align: -1px; }
.wishlist-heart--label:hover { background: #fdeaea; transform: none; }
.wishlist-heart--label.active { background: #E50000; color: #fff; }
.wishlist-heart--label.active:hover { background: #c00000; }

/* --- header srček ---
   Oba variant sta privzeto skrita; vidnost odloča html.has-wishlist-items (wishlist.js, ko je seznam neprazen)
   v kombinaciji z responsive razredom (scripts.js: html.desktop_menu nad 980px, html.mobile_menu do 980px).
   Desktop = tekstovni link poravnan DESNO (ob Obveščaj me / prijavi, ne ob iskalniku).
   Mobile  = samo srček-ikona v top baru, poravnana kot ostali top-bar gumbi (iskanje / MENI). */
.wishlist-header-link,
.wishlist-header-icon { display: none; }

/* desktop: tekstovni link, float desno → najbolj levi v desni skupini akcij */
html.desktop_menu.has-wishlist-items .wishlist-header-link { display: inline-block; }
.wishlist-header-link {
    float: right;
    color: #fff;
    font-size: 14px;
    font-family: 'Roboto Condensed', sans-serif;
    /* header vrstica je 56px → line-height centrira */
    line-height: 56px;
    text-decoration: none;
    margin: 0 18px 0 0;
    white-space: nowrap;
}
.wishlist-header-link:hover { color: #fff; opacity: 0.85; }
.wishlist-header-link .icon-heart {
    font-size: 17px;
    margin-right: 6px;
    vertical-align: -1px;
}
.wishlist-badge {
    color: #fff;
    font-weight: bold;
    margin-left: 4px;
}

/* mobile: samo srček, enaka 50×56 tarča kot iskalna ikona, float desno (sedi levo od iskanja) */
html.mobile_menu.has-wishlist-items .wishlist-header-icon { display: block; }
.wishlist-header-icon {
    float: right;
    position: relative;
    width: 44px;
    height: 56px;
    text-align: center;
    text-decoration: none;
    color: #fff;
}
.wishlist-header-icon .icon-heart { font-size: 26px; line-height: 56px; }
.wishlist-header-icon:hover { color: #fff; }
.wishlist-badge-mobile {
    position: absolute;
    top: 8px;
    right: 0;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    padding: 0 3px;
    box-sizing: border-box;
    background: #fff;
    color: #AA090F;
    font-size: 11px;
    font-weight: bold;
    border-radius: 9px;
    text-align: center;
}

/* --- /seznam-zelja stran (breadcrumbs + h1 podeduje site stil kot na /ponudbe/{kategorija}) --- */
#wishlistPage { min-height: 400px; }
.wishlist-actions { display: flex; gap: 10px; justify-content: flex-start; margin: 6px 0 14px; }
/* gumba nista več črna (#1d1d1d site default): primarni "Deli" = blagovno rdeč, "Počisti" = svetel ghost.
   id-selektorji premagajo site .button brez !important. */
.wishlist-actions .button {
    cursor: pointer;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 14px;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
#wishlistShareBtn { background: #E50000; color: #fff; }
#wishlistShareBtn:hover { background: #c00000; }
/* site .button sili color:#fff !important → za svetel ghost gumb potrebujemo !important na temnem tekstu */
#wishlistClearBtn { background: #fff; color: #666 !important; border-color: #ccc; }
#wishlistClearBtn:hover { background: #f5f5f5; color: #333 !important; border-color: #bbb; }

/* --- #8379 deli seznam: razkrivna plošča (svetla tema, vzorec referral kartice iz igre) --- */
.wishlist-share {
    max-width: 560px;
    margin: 0 0 18px;
    padding: 16px 18px;
    background: #FFF9E5;
    border: 1px solid #f0e6c0;
    border-radius: 10px;
}
.wishlist-share-title { font-size: 15px; font-weight: bold; color: #222; margin-bottom: 12px; }
.wishlist-share-link { display: flex; margin-bottom: 12px; }
.wishlist-share-link input {
    flex: 1; min-width: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 6px 0 0 6px;
    color: #333;
    padding: 9px 11px;
    font-size: 13px;
    font-family: inherit;
}
.wishlist-share-link button {
    flex: none;
    background: #E50000;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 9px 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}
.wishlist-share-link button:hover { background: #c00000; }
.wishlist-share-link button.ok { background: #1CA642; }
.wishlist-share-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wishlist-shbtn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    cursor: pointer; text-align: center; text-decoration: none;
    font-weight: bold; font-size: 13px;
    padding: 10px 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    color: #333;
    background: #fff;
    transition: transform 0.12s ease, background-color 0.15s ease;
}
.wishlist-shbtn:hover { transform: translateY(-2px); }
.wishlist-shbtn.wa { background: #e9faf0; border-color: #25D366; color: #0b7a39; }
.wishlist-shbtn.fb { background: #eaf1fe; border-color: #1877F2; color: #0d5ec9; }
.wishlist-shbtn.mail { background: #fff6e0; border-color: #FFB714; color: #8a5a00; }
.wishlist-shbtn.native { background: #f3f3f3; border-color: #ccc; color: #444; }
@media (max-width: 480px) { .wishlist-share-buttons { grid-template-columns: 1fr; } }

#wishlistSharedNotice {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

/* #8379 — grid kot unified iskalnik (.us-grid, #8354). Kartice .offer_preview imajo v
   style-2014.css ODSTOTNE širine na responsive breakpointih (≤1024 = 31%, ≤768 = 46%,
   ≤480 = 100%). V prejšnji flex postavitvi so se ti odstotki računali proti
   .wishlist-card-wrap flex-itemu (shrink-to-fit) namesto proti kontejnerju → kartice se
   niso raztegnile (ragged, preozke, hugale levo). CSS grid + width:auto !important pomeni,
   da širino kartice določa grid celica, ne odstotek .offer_preview. Geometrija na desktopu
   (3×250 + 20 gap v 810px .right_container) je enaka staremu float listingu. */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 250px);
    gap: 20px;
    align-items: start;
}
@media (max-width: 1024px) { .wishlist-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .wishlist-grid { grid-template-columns: 1fr; } }
.wishlist-card-wrap .offer_preview { float: none !important; width: auto !important; margin: 0 !important; }
/* jQuery rollover (scripts.js) se ne veže na dinamično vstavljene kartice →
   CSS hover kot na search.msg.si prototipu: rahlo sivo ozadje + senca */
.wishlist-card-wrap .offer_preview { transition: box-shadow 0.15s ease, background-color 0.15s ease; }
.wishlist-card-wrap .offer_preview:hover {
    background: #f5f6f7;
    box-shadow: 0 0 20px #cccccc;
}
.wishlist-loading { padding: 30px; color: #777; }

.wishlist-gone {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 4px;
    padding: 10px 14px;
    color: #888;
}
.wishlist-gone-remove { border: none; background: none; color: #c00; cursor: pointer; text-decoration: underline; }

.wishlist-compare-check { display: block; margin-top: 8px; cursor: pointer; font-size: 13px; text-align: center; }

/* margin-right: 20px = site konvencija desnega žleba (.right_container h1..p, kartice).
   Brez tega width:100% tabela sega do roba 810px kontejnerja (1132px), 20px dlje od
   kartic (1112px) → "ni belega roba na desni". #8379 */
#wishlistCompare { margin-top: 28px; margin-right: 20px; overflow-x: auto; }
.wishlist-compare-title { font-size: 20px; font-weight: bold; margin-bottom: 10px; }
.wishlist-compare-table { border-collapse: collapse; width: 100%; background: #fff; }
.wishlist-compare-table th, .wishlist-compare-table td { border: 1px solid #ddd; padding: 8px 12px; text-align: left; vertical-align: top; }
.wishlist-compare-table thead th { background: #f0f2f5; }

#wishlistEmpty { text-align: center; padding: 60px 20px; color: #666; }
#wishlistEmpty .empty-heart { color: #E50000; font-size: 18px; vertical-align: -2px; }
#wishlistEmpty .button { background: #E50000; color: #fff; border: none; border-radius: 6px; padding: 9px 18px; }
#wishlistEmpty .button:hover { background: #c00000; }

.wishlist-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 18px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}
.wishlist-toast.show { opacity: 1; }
