/* The same card presentation for native Ghost feeds and the filter archive. */
.cd-deal-card{position:relative;isolation:isolate;border:1px solid #e4e9ef;border-radius:var(--cd-radius-card,12px);overflow:hidden;background:#fff;box-shadow:0 2px 8px #132b4010;display:flex;flex-direction:column;min-width:0}
.gh-card.cd-deal-card .gh-card-link{display:flex;flex-direction:column;height:100%;gap:0}
.cd-deal-card .cd-archive-cover,.gh-card.cd-deal-card .gh-card-image{display:block;margin:0;float:none;width:100%;aspect-ratio:8/5;border-radius:0!important;overflow:hidden;background:#f3f6f8;flex:none;position:relative}
.gh-card.cd-deal-card .gh-card-image>a{display:block;width:100%;height:100%}
/* The site's Ghost code injection rounds native images with !important. The
   shared card clips only its outer corners, so the image's lower edge stays flat. */
.cd-deal-card .cd-archive-cover img,.gh-card.cd-deal-card .gh-card-image img{display:block;width:100%;height:100%;position:static;inset:auto;object-fit:cover;border-radius:0!important;background:#f3f6f8}
.gh-card.cd-deal-card .gh-card-wrapper,.cd-deal-card .cd-archive-card-content{padding:16px 20px 20px;min-width:0;flex:1;display:flex;flex-direction:column}
/* Reserve two title lines even for short names, so location and facts align.
   lh also follows the smaller type used by the compact map cards. */
.gh-card.cd-deal-card .gh-card-title,.cd-deal-card h3{font-size:20px;line-height:1.4;font-weight:700;font-family:var(--gh-font-heading,var(--font-sans));letter-spacing:0;margin:4px 0 10px;height:2.8em;height:2lh;flex-shrink:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.cd-deal-card a,.cd-deal-card a:hover{color:inherit;text-decoration:none!important;opacity:1!important;transition:none!important}
.cd-deal-card .cd-deal-card-link::after{position:absolute;inset:0;z-index:2;content:"";border-radius:var(--cd-radius-card,12px)}
.cd-deal-card .cd-deal-card-link:focus-visible{outline:none}
.cd-deal-card .cd-deal-card-link:focus-visible::after{outline:3px solid var(--ghost-accent-color,#e86100);outline-offset:-3px}
/* Match Ghost's original instant title fade, across the whole post link.
   The separate bookmark button does not trigger the title's hover state. */
.gh-card.cd-deal-card .gh-card-title,.cd-deal-card h3{opacity:1!important;transition:none!important}
.cd-deal-card:has(.cd-deal-card-link:hover) h3{opacity:.8!important}
.cd-deal-card .cd-deal-card-location{position:static;z-index:auto;pointer-events:none;opacity:1!important;transition:none!important;text-decoration:none!important}
.cd-deal-card .cd-deal-card-price,.cd-deal-card .cd-archive-price{display:block;flex:none;font-family:inherit;font-size:16px;font-weight:700;line-height:1.5;color:var(--ghost-accent-color,#e86100);margin:0;white-space:nowrap}
.gh-card.cd-deal-card .gh-card-tag,.cd-deal-card-location{display:block!important;opacity:1;visibility:visible;font-family:inherit;font-size:14px;font-weight:400;line-height:1.5;color:#627184;margin:0;letter-spacing:0;text-transform:none}
.gh-card.cd-deal-card .gh-card-excerpt,.gh-card.cd-deal-card .gh-card-author{display:none}
.cd-deal-card .cd-archive-facts,.cd-deal-card .cd-deal-highlights{font-size:14px;color:#506570;line-height:1.5;margin:10px 0 0}
.cd-deal-card .cd-archive-facts{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-width:0}
.cd-deal-card .cd-deal-card-measures{display:block;min-width:0;margin-left:auto;text-align:right;white-space:nowrap}
.cd-deal-card .cd-deal-highlights{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.cd-deal-highlight{display:inline-flex;align-items:center;padding:4px 9px;border:1px solid #e4e9ef;border-radius:var(--cd-radius-control,12px);background:#f4f7fa;font-size:12px;font-weight:500;line-height:1.5;color:#506570}
.cd-deal-card .cd-archive-meta,.gh-card.cd-deal-card .gh-card-meta{display:flex!important;opacity:1!important;visibility:visible!important;align-items:center;justify-content:space-between;gap:10px;margin-top:auto!important;padding-top:16px;min-height:50px;font-size:13px;line-height:1.5;color:#627184}
.cd-deal-card .cd-card-meta-left{display:inline-flex;align-items:center;min-width:0;gap:8px;flex-wrap:wrap}
.cd-deal-card .cd-deal-card-date{display:inline-flex!important;align-items:center;white-space:nowrap;font-family:inherit;font-size:13px;line-height:1.5;margin:0}
/* Ghost's historic lock rule targets every footer SVG. Keep it on native locks,
   while bookmark icons inherit their own button state color. */
.cd-deal-card .cd-bookmark-icon,.cd-deal-card .cd-bookmark-icon path{stroke:currentColor!important}
.cd-deal-card .cd-deal-card-lock{position:static;display:block!important;width:15px;height:15px;margin:0;flex:none}
.cd-deal-card .cd-bookmark-button{position:relative;z-index:4;transform:none;margin:0;flex-shrink:0}
.cd-deal-card .cd-sold-badge,.cd-deal-card .cd-archive-sold{position:absolute;left:12px;top:12px;z-index:2;pointer-events:none;padding:5px 9px;border-radius:6px;background:#dc2626;color:#fff;font-family:inherit;font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap;box-shadow:none;text-transform:none;letter-spacing:0}
.cd-deal-card.is-sold .cd-archive-cover img,.cd-deal-card:has(>.cd-archive-sold) .cd-archive-cover img{filter:grayscale(70%);opacity:.78}
.cd-compact-deals .gh-feed,.gh-feed.cd-deal-feed{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important}.cd-compact-deals .gh-card,.cd-deal-feed .gh-card{margin:0!important;width:auto!important}
.cd-compact-deals>.gh-container-inner,.gh-container.cd-deal-list>.gh-container-inner{width:100%;max-width:1200px!important}
.gh-container.cd-deal-list>.gh-container-inner>.gh-main{grid-column:1/-1!important}.gh-container.cd-deal-list>.gh-container-inner>.gh-main::after{display:none}.gh-container.cd-deal-list>.gh-container-inner>.gh-sidebar{grid-column:1/-1!important}
.gh-container:not(.has-sidebar):has(.cd-deal-feed) .gh-main,.cd-compact-deals:not(.has-sidebar) .gh-main{grid-column:1/-1!important}.cd-compact-deals .gh-container-title,.cd-compact-deals .gh-container-subtitle{grid-column:1/-1!important}
.cd-compact-deals .gh-container-subtitle{width:100%;max-width:560px;margin:10px auto 30px;text-align:center;font-size:17px;line-height:1.5}
@media(max-width:900px){.cd-compact-deals .gh-feed,.gh-feed.cd-deal-feed{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){.cd-compact-deals .gh-feed,.gh-feed.cd-deal-feed{grid-template-columns:1fr!important}}
@media(max-width:360px){.cd-deal-card .cd-archive-facts{gap:6px}.cd-deal-card .cd-deal-card-measures{font-size:11px}}

/* Stable geometry before JS and while canonical details/images are loaded. */
.cd-compact-deals .gh-card{border:1px solid #e4e9ef;border-radius:12px;overflow:hidden;min-width:0}
.cd-compact-deals .gh-card-image{aspect-ratio:8/5;width:100%;margin:0;float:none}
.cd-compact-deals .gh-card-image img{display:block;width:100%;height:100%;object-fit:cover}
.cd-deal-card .cd-archive-facts{min-height:24px}
.cd-deal-card .cd-deal-highlights{min-height:28px;align-content:flex-start}
html[data-cd-feeds-pending] .gh-feed[data-casadeals-sort="likes"] .gh-card,
html[data-cd-feeds-pending] .gh-feed[data-casadeals-sort="likes"] .gh-card *{visibility:hidden!important}
html[data-cd-feeds-pending] .locked-archive-container .gh-feed[data-casadeals-sort="likes"] .gh-card,
html[data-cd-feeds-pending] .locked-archive-container .gh-feed[data-casadeals-sort="likes"] .gh-card *{visibility:visible!important}

/* Prices use natural spacing and proportional numerals. */
.cd-deal-card .cd-deal-card-price,.cd-deal-card .cd-archive-price{letter-spacing:normal!important;font-variant-numeric:normal;font-feature-settings:normal}
