/* Shared listing card (PT.unitCard). Same look as the unit page "Similar units" cards.
   Everything is scoped under .ucd so it does not touch other card styles. */
.ucd{--ucd-navy:#12407E;--ucd-line:#dce3ec;--ucd-muted:#516376;position:relative;display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--ucd-line);border-radius:12px;overflow:hidden;cursor:pointer;color:var(--ucd-navy);text-align:start;transition:box-shadow .18s,transform .18s}
.ucd:hover{box-shadow:0 8px 22px #0a1f4a1f;transform:translateY(-2px)}
.ucd *{box-sizing:border-box}
.ucd.is-highlighted{outline:3px solid var(--ucd-navy);outline-offset:2px}

/* photo */
.ucd-photo{position:relative;aspect-ratio:16/9;background:#e9eef3;overflow:hidden;flex:none}
.ucd-track{position:absolute;inset:0;display:flex;direction:inherit;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.ucd-track::-webkit-scrollbar{display:none}
.ucd-slide{flex:0 0 100%;height:100%;scroll-snap-align:start;scroll-snap-stop:always}
.ucd-slide img{width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none;user-select:none}
.ucd-verified{position:absolute;top:10px;inset-inline-start:10px;z-index:3;display:inline-flex;align-items:center;gap:5px;background:#fff;color:var(--ucd-navy);font-size:12px;font-weight:600;line-height:1;padding:6px 10px 6px 9px;border-radius:999px;box-shadow:0 1px 6px #0a1f4a2e;pointer-events:none}
.ucd .ucd-verified svg.icon{width:14px;height:14px;color:#0b781a}
.ucd-featured{position:absolute;top:10px;inset-inline-start:10px;z-index:3;display:inline-flex;align-items:center;gap:4px;background:#fff6dd;color:#6b4300;font-size:12px;font-weight:700;line-height:1;padding:6px 10px 6px 9px;border-radius:999px;box-shadow:0 1px 6px #0a1f4a2e;pointer-events:none}
.ucd .ucd-featured svg.icon{width:14px;height:14px;color:#e0a100}
.ucd-verified+.ucd-featured{top:44px}
.ucd-acts{position:absolute;top:10px;inset-inline-end:10px;z-index:4;display:flex;gap:8px}
.ucd button.ucd-act{width:34px;height:34px;padding:0;margin:0;border:0;border-radius:50%;background:#ffffffeb;color:var(--ucd-navy);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 1px 6px #0a1f4a38;transition:transform .12s,background .15s,color .15s}
.ucd button.ucd-act:hover{background:#fff;transform:scale(1.07)}
.ucd button.ucd-act:focus-visible,.ucd .ucd-arrow:focus-visible{outline:2px solid var(--ucd-navy);outline-offset:2px}
.ucd svg.icon{width:18px;height:18px;flex-shrink:0;vertical-align:middle}
.ucd .ucd-act .ucd-heart{fill:none;color:inherit}
.ucd .ucd-act.is-saved{color:#d6334a}
.ucd .ucd-act.is-saved .ucd-heart{fill:currentColor}
.ucd .ucd-act.on{background:var(--ucd-navy);color:#fff}
.ucd-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.ucd-dots{position:absolute;bottom:9px;left:0;right:0;z-index:3;display:flex;justify-content:center;gap:5px;direction:inherit}
.ucd-dots i{width:7px;height:7px;border-radius:50%;background:#ffffff99;box-shadow:0 0 0 1px #0a1f4a24;cursor:pointer;padding:0;display:block;transition:background .15s,transform .15s}
.ucd-dots i.on{background:#fff;transform:scale(1.15)}
.ucd .ucd-arrow{position:absolute;top:50%;z-index:3;width:30px;height:30px;margin:-15px 0 0;padding:0;border:0;border-radius:50%;background:#ffffffeb;color:var(--ucd-navy);display:none;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 1px 6px #0a1f4a38}
.ucd .ucd-arrow svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* prev sits on the START side, next on the END side (Arabic: next = left arrow); chevrons mirror in RTL */
.ucd .ucd-prev{inset-inline-start:8px}.ucd .ucd-next{inset-inline-end:8px}
[dir="rtl"] .ucd .ucd-arrow svg{transform:scaleX(-1)}
@media(hover:hover){.ucd-photo:hover .ucd-arrow{display:flex}}

/* body */
.ucd-body{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1}
.ucd .ucd-body h3{margin:0;font-family:"Open Sans",sans-serif;font-size:19px;font-weight:700;line-height:1.3;letter-spacing:0;color:var(--ucd-navy)}
[dir="rtl"] .ucd .ucd-body h3{text-align:right}
.ucd .ucd-body h3 a{color:inherit;text-decoration:none}
.ucd .ucd-body h3 a:hover{text-decoration:underline}
.ucd-sub{margin:5px 0 0;font-size:13.5px;line-height:1.5;color:var(--ucd-muted)}
.ucd-feat{display:flex;gap:14px;margin:8px 0 0;font-size:13.5px;line-height:1.5;color:var(--ucd-muted)}
.ucd-price{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin-top:14px}
.ucd-price small,.ucd-inst small{font-size:12.5px;font-weight:400;color:var(--ucd-muted)}
.ucd-price b{font-family:"Open Sans",sans-serif;font-size:24px;font-weight:700;line-height:1.15;color:var(--ucd-navy)}
.ucd-cur{font-size:13px;color:var(--ucd-muted)}
.ucd-due{margin-top:4px;font-size:12px;line-height:1.5;color:var(--ucd-muted)}
.ucd-due b{font-family:"Open Sans",sans-serif;font-size:12.5px;font-weight:600;color:var(--ucd-navy)}
.ucd-inst{margin-top:6px;font-size:13px;color:var(--ucd-muted)}
.ucd-inst b{font-family:"Open Sans",sans-serif;font-size:14.5px;font-weight:700;color:var(--ucd-navy)}
.ucd-body .uc-why{margin-top:12px}

@media(max-width:600px){
  .ucd-body{padding:14px 15px 16px}
  .ucd .ucd-body h3{font-size:18px}
  .ucd-price b{font-size:22px}
  .ucd button.ucd-act{width:36px;height:36px}
}
@media(prefers-reduced-motion:reduce){.ucd,.ucd button.ucd-act{transition:none}.ucd:hover{transform:none}}

/* page containers */
#opportunities .cards>.ucd{flex:0 0 84%;scroll-snap-align:start;scroll-snap-stop:always}
@media(min-width:701px){#opportunities .cards>.ucd{flex:initial}}
#cards-list>.ucd{margin:0}
