/*
 * [hotel_destinations_showcase] shortcode (includes/destinations-showcase.php) -
 * replaces the theme's generic country-tabs homepage widget. Same brand
 * palette/card language as assets/search-cards.css (.agz-search-card is
 * reused unmodified inside .agz-dest-showcase__card).
 */
.agz-dest-showcase {
	direction: rtl;
	width: min(1200px, 92%);
	margin: 60px auto;
	font-family: Tahoma, Arial, sans-serif;
}

.agz-dest-showcase__intro {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 34px;
}

.agz-dest-showcase__eyebrow {
	display: inline-block;
	padding: 5px 16px;
	border-radius: 30px;
	background: #fff0f4;
	color: #f4476b;
	font-size: 12px;
	font-weight: 800;
	margin-bottom: 14px;
}

.agz-dest-showcase__title {
	margin: 0 0 14px;
	font-size: clamp(24px, 4vw, 34px);
	color: #071b53;
}

.agz-dest-showcase__title span {
	color: #20bdd4;
	font-style: italic;
}

.agz-dest-showcase__text {
	margin: 0;
	color: #6b7280;
	line-height: 1.8;
	font-size: 15px;
}

.agz-dest-showcase__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 30px;
}

.agz-dest-showcase__tab {
	padding: 10px 26px;
	border-radius: 30px;
	border: none;
	background: #071b53;
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.2s ease, background 0.2s ease;
}

.agz-dest-showcase__tab:hover {
	opacity: 0.8;
}

.agz-dest-showcase__tab.is-active {
	opacity: 1;
	background: linear-gradient(120deg, #f4476b, #ff7a93);
}

.agz-dest-showcase__panel {
	display: none;
}

.agz-dest-showcase__panel.is-active {
	display: block;
}

.agz-dest-showcase__row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

@media (max-width: 992px) {
	.agz-dest-showcase__row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
	.agz-dest-showcase__row { grid-template-columns: 1fr; }
}

/* More than 4 hotels in a destination: a real RTL carousel (Swiper,
   already loaded site-wide by the theme) instead of wrapping to more
   rows, per spec. */
.agz-dest-showcase__carousel {
	position: relative;
	overflow: hidden;
	/* Room on each side for the nav buttons to sit outside the cards
	   without the container clipping them off. */
	padding: 6px 54px;
	margin: 0 -54px;
}

.agz-dest-showcase__carousel .swiper-wrapper {
	align-items: stretch;
}

.agz-dest-showcase__carousel .swiper-slide {
	height: auto;
}

.agz-dest-showcase__card .agz-search-card {
	height: 100%;
}

/* Modern circular nav buttons, positioned outside the card row (not
   overlapping it), vertically centered. !important overrides Swiper's own
   inline-free but same-specificity .swiper-button-prev/next defaults
   (top:50%;width/height/margin-top etc.) reliably regardless of CSS
   load order. */
.agz-dest-showcase__nav {
	position: absolute !important;
	top: 40% !important;
	transform: translateY(-50%);
	width: 46px !important;
	height: 46px !important;
	margin-top: 0 !important;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #e7edf3;
	box-shadow: 0 10px 24px rgba(7, 27, 83, 0.12);
	color: #071b53;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.agz-dest-showcase__nav::after {
	font-size: 16px !important;
	font-weight: 900;
}

.agz-dest-showcase__nav:hover {
	background: linear-gradient(120deg, #f4476b, #ff7a93);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 12px 28px rgba(244, 71, 107, 0.35);
}

/* Outside the card row on each side (the container's extra side padding,
   added above, makes room for this). Physical placement, chosen for RTL
   reading: "prev" (back toward where you started reading) sits on the
   physical RIGHT; "next" (continue forward) sits on the physical LEFT. */
.agz-dest-showcase__nav--prev {
	left: auto !important;
	right: 0 !important;
}

.agz-dest-showcase__nav--next {
	right: auto !important;
	left: 0 !important;
}

.agz-dest-showcase__nav.swiper-button-disabled {
	opacity: 0.3;
	box-shadow: none;
}

@media (max-width: 620px) {
	.agz-dest-showcase__carousel {
		padding: 6px 40px;
		margin: 0 -16px;
	}
	.agz-dest-showcase__nav {
		width: 36px !important;
		height: 36px !important;
	}
}
