/* ==========================================================================
   The Capital — Destinations Nav Tabs widget
   ========================================================================== */

.tc-dest-mega-menu {
	margin-top: 10px;
}

.tc-dest-tabs {
	padding: 0 70px;
	padding-bottom: 20px;

	@media (max-width: 1024px) {
		padding: 0 40px;
	}
}

/* ---- Tab nav row ---- */
.tc-dest-tabs__nav {
	display: flex;
	gap: 0;
	margin-bottom: 30px;
	margin-top: 10px;
	-webkit-overflow-scrolling: touch;
	justify-content: center;
}

.tc-dest-tabs__tab {
	position: relative;
	padding: 16px 28px;
	font-family: var(--tc-font-body, 'DM Sans', sans-serif);
	font-size: 14px;
	font-weight: 500;
	line-height: normal;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
}

.tc-dest-tabs__tab:hover {
	color: rgba(255, 255, 255, 0.75);
}

.tc-dest-tabs__tab.is-active {
	color: #fff;
}

/* ---- Panels ---- */
.tc-dest-tabs__panel {
	display: none;
}

.tc-dest-tabs__panel.is-active {
	display: block;
	animation: tc-panel-in 1s ease both;
}

/* ---- Hotel card grid ---- */
.tc-dest-tabs__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(var(--tc-dest-cols, 4), 1fr);
}

.tc-dest-tabs[data-columns="2"] .tc-dest-tabs__grid { --tc-dest-cols: 2; }
.tc-dest-tabs[data-columns="3"] .tc-dest-tabs__grid { --tc-dest-cols: 3; }
.tc-dest-tabs[data-columns="4"] .tc-dest-tabs__grid { --tc-dest-cols: 4; }
.tc-dest-tabs[data-columns="5"] .tc-dest-tabs__grid { --tc-dest-cols: 5; }

/* ---- Hotel card ---- */
.tc-dest-tabs-single .tc-hotel-card,
.tc-dest-tabs .tc-hotel-card {
	display: block;
	text-decoration: none;
	color: #fff;
	transition: opacity 0.2s ease;
}

.tc-dest-tabs .tc-hotel-card:hover,
.tc-dest-tabs-single .tc-hotel-card:hover {
	opacity: 0.85;
}

.tc-dest-tabs .tc-hotel-card__img,
.tc-dest-tabs-single .tc-hotel-card__img {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 6px;
	margin-bottom: 20px;
	max-height: 250px;
	background: rgba(255, 255, 255, 0.05);
}

.tc-dest-tabs .tc-hotel-card__img img,
.tc-dest-tabs-single .tc-hotel-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.tc-dest-tabs .tc-hotel-card:hover .tc-hotel-card__img img,
.tc-dest-tabs-single .tc-hotel-card:hover .tc-hotel-card__img img {
	transform: scale(1.04);
}

/* Area label — small uppercase (subtitle field) */
.tc-dest-tabs .tc-hotel-card__name,
.tc-dest-tabs-single .tc-hotel-card__name {
	display: block;
	font-family: var(--tc-font-body, 'DM Sans', sans-serif);

	color: rgba(255, 255, 255, 1);
	margin-bottom: 10px;

	font-size: 21px;
	line-height: 21px;
	font-weight: 400;
	letter-spacing: -0.56px;
}

/* Hotel name — large (hotel title) */
.tc-dest-tabs .tc-hotel-card__area,
.tc-dest-tabs-single .tc-hotel-card__area {
	display: block;
	font-family: var(--tc-font-body, 'DM Sans', sans-serif);
	color: #fff;
	font-size: 12px;
	line-height: 20px;
	letter-spacing: 2.64px;
	margin-top: 18px;
	text-transform: uppercase;
}

/* Optional description */
.tc-dest-tabs .tc-hotel-card__content,
.tc-dest-tabs-single .tc-hotel-card__content {
	display: block;
	font-family: var(--tc-font-body, 'DM Sans', sans-serif);
	font-size: 14px;
	line-height: 24px;
	color: rgba(255, 255, 255, 1);
	margin-top: 4px;
}

/* ---- Grid → Slider (> 4 cards) ---- */
.tc-dest-tabs__grid.tc-dest-grid--slider {
	display: block;
	position: relative;
}

.tc-dest-grid-swiper {
	width: 100%;
	overflow: hidden;
}

.tc-dest-grid-swiper .swiper-slide {
	height: auto;
}

.tc-dest-grid-prev,
.tc-dest-grid-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 1) !important;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}

.tc-dest-grid-prev:hover,
.tc-dest-grid-next:hover {
	background: rgba(255, 255, 255, 0.75) !important;
}

.tc-dest-grid-prev svg,
.tc-dest-grid-next svg {
	width: 18px;
	height: 18px;
	stroke: var(--tc-black, #000);
}

.tc-dest-grid-prev {
	left: -52px;
}

.tc-dest-grid-next {
	right: -52px;
}

.tc-dest-grid-prev.swiper-button-disabled,
.tc-dest-grid-next.swiper-button-disabled {
	opacity: 0.3;
	pointer-events: none;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.tc-dest-tabs__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.tc-dest-tabs__tab {
		padding: 12px 18px;
		font-size: 11px;
	}

	.tc-dest-tabs__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.tc-dest-tabs .tc-hotel-card__area {
		font-size: 17px;
		line-height: 1.3;
	}
}

@media (max-width: 480px) {
	.tc-dest-tabs__grid {
		grid-template-columns: 1fr;
	}
}
