/* ID – galerie în cardurile de anunț */
.listing-card-v3 .product-thumbnail[data-idg="ready"] { position: relative; overflow: hidden; }
.listing-card-v3 .product-thumbnail[data-idg="ready"] > a { display: block; }

.idg-track {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	aspect-ratio: 3 / 2;
	outline: none;
}
.idg-track::-webkit-scrollbar { display: none; }
.idg-track:focus-visible { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px #1a73e8; }

.idg-slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	height: 100%;
}
.idg-slide img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
}

.listing-card-v3 .product-thumbnail .idg-nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 44px;
	height: 44px;
	margin: -22px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s ease;
}
/* chevron desenat în CSS: tema suprascrie background-image pe butoane */
.listing-card-v3 .product-thumbnail .idg-nav::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border: solid #222;
	border-width: 2.5px 2.5px 0 0;
}
.listing-card-v3 .product-thumbnail .idg-prev { left: 10px; }
.listing-card-v3 .product-thumbnail .idg-next { right: 10px; }
.listing-card-v3 .product-thumbnail .idg-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.listing-card-v3 .product-thumbnail .idg-next::before { transform: translate(-70%, -50%) rotate(45deg); }
.listing-card-v3 .product-thumbnail .idg-nav:disabled { opacity: 0 !important; pointer-events: none; }
.listing-card-v3 .product-thumbnail .idg-nav:focus-visible { opacity: 1; outline: 3px solid #1a73e8; outline-offset: 2px; }

.listing-card-v3 .product-thumbnail[data-idg="ready"]:hover .idg-nav { opacity: 1; }
/* pe touch săgețile rămân vizibile (nu există hover), dar mai discrete */
@media (hover: none) {
	.listing-card-v3 .product-thumbnail .idg-nav { opacity: .85; }
}

.idg-count {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 3;
	padding: 3px 9px;
	border-radius: 12px;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	font-size: 12px;
	line-height: 18px;
	font-weight: 500;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.listing-card-v3 .product-thumbnail .idg-nav { transition: none; }
}
