/**
 * Destination grid layout fixes.
 */

/* Always show tour/activity counts — theme hides them until card hover. */
.myt-destination-grid .destination-dropdown {
	display: block !important;
}

.myt-destination-grid .mytravel-elementor-destination__list {
	display: block;
	padding: 0.3125rem 0 !important;
	white-space: normal;
}

/* Stronger overlay + text scrim for readability on bright photos */
.myt-destination-grid .bg-img-hero.gradient-overlay-half-bg-gradient::before {
	background: linear-gradient(
		180deg,
		rgba(14, 18, 24, 0.94) 0%,
		rgba(14, 18, 24, 0.78) 38%,
		rgba(14, 18, 24, 0.42) 62%,
		transparent 100%
	) !important;
}

.myt-destination-grid .bg-img-hero.gradient-overlay-half-bg-gradient:hover::before {
	background: linear-gradient(
		180deg,
		rgba(14, 18, 24, 0.94) 0%,
		rgba(14, 18, 24, 0.78) 38%,
		rgba(14, 18, 24, 0.42) 62%,
		transparent 100%
	) !important;
}

.myt-destination-grid .destination-content {
	position: relative;
	z-index: 2;
}

.myt-destination-grid .destination-content > .position-relative {
	display: inline-block;
	max-width: calc(100% - 0.5rem);
	padding: 1rem 1.25rem 0.875rem;
	border-radius: 0.5rem;
	background: rgba(14, 18, 24, 0.52);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.myt-destination-grid .mytravel-elementor-destination__title {
	padding-bottom: 0.75rem !important;
	margin-bottom: 0.75rem !important;
}

.myt-destination-grid .mytravel-elementor-destination__title,
.myt-destination-grid .mytravel-elementor-destination__list {
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.myt-destination-grid .mytravel-elementor-destination__list:hover {
	color: #fff !important;
	opacity: 0.92;
}

@media (max-width: 991.98px) {
	/* Bootstrap row negative margins overflow inside Elementor column padding on mobile. */
	.myt-destination-grid.row {
		margin-left: 0;
		margin-right: 0;
	}

	.myt-destination-grid.row > [class*='col-'] {
		padding-left: 0;
		padding-right: 0;
	}
}

@media (min-width: 768px) and (max-width: 991.98px) {
	.myt-destination-grid.row > [class*='col-'] {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}
}
