/* ===========================================================================
   DETAIL GRID — Product grid, modals, card gallery hover, filters
   Petz.gr

   !important: kept on .col-product (overrides Modesy grid),
   .modal z-index (overrides Bootstrap), .row-product .product-item,
   .filter-list (overrides Modesy filter styles)
   =========================================================================== */

/* ── Product grid columns ────────────────────────────────── */
/* !important needed — overrides Modesy .col-product (L2811) */

.row-product .col-product,
.row-product .col-product-5,
.row-product .col-product-6 {
	flex: 0 0 33.333% !important;
	max-width: 33.333% !important;
}

/* !important needed — overrides Modesy .product-item */
.row-product .product-item {
	background: white !important;
	opacity: 1 !important;
}

/* ── Modals ──────────────────────────────────────────────── */
/* !important needed — overrides Bootstrap modal z-index */

#reviewModal,
#reportReviewModal,
.modal {
	z-index: 1050 !important;
}

.modal-backdrop {
	z-index: 1040 !important;
}

.modal-dialog {
	z-index: 1055 !important;
}

#pet-reviews .modal,
.reviews-container .modal {
	position: fixed !important;
}

/* ── Card gallery hover (listing cards) ──────────────────── */

.card-blur-bg {
	position: absolute;
	inset: -30px;
	background-size: cover;
	background-position: center;
	filter: blur(25px);
	transform: scale(1.2);
	opacity: 0.6;
	z-index: 0;
	transition: opacity 0.2s ease-in-out;
}

.gallery-hover-zones {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 4;
	display: flex;
}

.gallery-hover-zone {
	flex: 1;
	height: 100%;
	display: block;
	text-decoration: none;
}

.gallery-dots {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 4px;
	z-index: 10;
}

.gallery-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	transition: background-color 0.2s ease;
}

.gallery-dot.active {
	background-color: #fff;
}

.image-count-badge {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.75rem;
	padding: 4px 8px;
	border-radius: 12px;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.image-count-badge svg {
	flex-shrink: 0;
}

/* ── Sidebar/Content column layout ───────────────────────── */

.filter-location-group {
	margin-bottom: 8px;
}

/* ── Filter category pills ───────────────────────────────── */
/* !important needed — overrides Modesy filter list max-height */

.filter-list-categories,
.filter-list-subcategories {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
	max-height: none !important;
}

.filter-list-categories li,
.filter-list-subcategories li {
	margin: 0 !important;
	padding: 0 !important;
}

.filter-list-categories li a,
.filter-list-subcategories li a {
	display: inline-block;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	color: var(--petz-text-dark, #333);
	font-size: 0.8rem;
	font-weight: 500;
	text-decoration: none !important;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.filter-list-categories li a:hover,
.filter-list-subcategories li a:hover {
	background: var(--petz-primary, #27ae60);
	border-color: var(--petz-primary, #27ae60);
	color: #fff;
	text-decoration: none !important;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

.filter-list-categories-parent {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 6px 10px;
	background: var(--petz-primary, #27ae60);
	border-radius: 10px;
	color: #fff !important;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none !important;
	margin-bottom: 8px;
	transition: all 0.2s ease;
}

.filter-list-categories-parent:hover {
	background: #1e8449;
	color: #fff !important;
	text-decoration: none !important;
}

/* ── Responsive ──────────────────────────────────────────── */



@media (min-width: 992px) {
	.col-sidebar-products {
		flex: 0 0 300px;
		max-width: 300px;
	}
	.col-content-products {
		flex: 1;
		max-width: calc(100% - 300px);
	}
}

@media (min-width: 1200px) {
	.col-sidebar-products {
		flex: 0 0 320px;
		max-width: 320px;
	}
	.col-content-products {
		flex: 1;
		max-width: calc(100% - 320px);
	}
}
