/**
 * THL Office Locations Carousel
 *
 * Bug fixes applied:
 *   1. Phone link display: flex !important (beats Elementor a[href^="tel:"])
 *   2. Map photo border-radius on <img> directly (beats ShortPixel <picture> wrapper)
 *   3. Card image border-radius on <img> directly
 * Recommendations:
 *   3. Keyboard focus styles for accessible card activation
 */

/* ── Root ──────────────────────────────────────────── */
.thl-ol {
	display: flex;
	flex-direction: row;
	gap: 16px;
	width: 100%;
	align-items: center;
}

/* ── Map Panel (Desktop) ───────────────────────────── */
.thl-ol__map {
	flex: 0 0 750px;
	display: flex;
	flex-direction: row;
	gap: 20px;
	border: 0.667px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	padding: 16px;
	overflow: hidden;
	background: transparent;
	box-sizing: border-box;
}

.thl-ol__map-iframe {
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
	border-radius: 10px;
	overflow: hidden;
}

.thl-ol__map-iframe iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.thl-ol__map-fade {
	position: absolute;
	inset: 0;
	background: rgba(10, 12, 18, 0.7);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
	z-index: 2;
}

.thl-ol__map-fade.is-loading {
	opacity: 1;
}

.thl-ol__map-detail {
	flex: 0 0 300px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* BUG FIX #2: border-radius on img directly + picture wrapper */
.thl-ol__map-photo {
	width: 300px;
	height: 175px;
	object-fit: cover;
	border-radius: 10px !important;
	display: block;
}

.thl-ol__map-detail picture {
	display: block;
	width: 300px;
	height: 175px;
	border-radius: 10px;
	overflow: hidden;
}

.thl-ol__map-detail picture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 10px !important;
}

.thl-ol h3.thl-ol__map-city {
	font-family: Inter, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 22px;
	letter-spacing: normal;
	color: #E9ECEF;
	margin: 0;
}

/* ── Info List ─────────────────────────────────────── */
.thl-ol__info {
	list-style: none;
	margin: 0;
	padding: 0;
}

.thl-ol__info li {
	display: flex;
	align-items: flex-start;
	padding: 0 0 5px;
	margin: 0;
}

.thl-ol__info li + li {
	margin-top: 5px;
	padding-bottom: 0;
}

.thl-ol__info li:last-child {
	padding-bottom: 0;
}

.thl-ol__info a {
	text-decoration: none;
	display: flex;
	align-items: flex-start;
	gap: 0;
	font-family: Inter, sans-serif;
	font-size: 14px;
	line-height: 19.6px;
	color: rgb(127, 51, 61);
	transition: color 0.2s ease;
}

.thl-ol__info a:hover {
	color: rgb(160, 65, 78);
}

/* BUG FIX #1: Nuclear specificity for tel: links
   Beats Elementor's a[href^="tel:"] { display: inline-block } */
.thl-ol .thl-ol__info a[href^="tel:"] {
	display: flex !important;
}

.thl-ol__icon {
	display: flex;
	align-items: flex-start;
	flex-shrink: 0;
	width: 17.5px;
}

.thl-ol__info svg {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	margin-top: 0;
	fill: #FFDA30;
}

.thl-ol__info span {
	color: rgb(198, 205, 211);
	padding-left: 5px;
}

.thl-ol__map-detail .thl-ol__info a {
	font-size: 16px;
	line-height: 22.4px;
}

.thl-ol__map-detail .thl-ol__info svg {
	width: 16px;
	height: 16px;
}

/* ── Card Carousel ─────────────────────────────────── */
.thl-ol__cards-wrap {
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
	overflow: hidden;
}

.thl-ol__cards {
	overflow: visible;
}

.thl-ol__card {
	width: 350px !important;
	border: 0.667px solid rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	padding: 16px;
	background: transparent;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	transition: border-color 0.3s ease;
	box-sizing: border-box;
	flex-shrink: 0;
	cursor: pointer;
}

.thl-ol__card.is-active {
	border-color: rgba(255, 255, 255, 0.35);
}

.thl-ol__card:hover {
	border-color: rgba(255, 255, 255, 0.25);
}

/* REC #3: Keyboard focus style */
.thl-ol__card:focus {
	outline: 2px solid #FFDA30;
	outline-offset: 2px;
	border-color: rgba(255, 255, 255, 0.35);
}

.thl-ol__card:focus:not(:focus-visible) {
	outline: none;
}

/* BUG FIX #3: border-radius on card images + picture wrapper */
.thl-ol__card-img {
	border-radius: 10px;
	overflow: hidden;
}

.thl-ol__card-img img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
	border-radius: 10px !important;
}

.thl-ol__card-img picture {
	display: block;
	border-radius: 10px;
	overflow: hidden;
}

.thl-ol__card-img picture img {
	border-radius: 0 !important;
}

.thl-ol__card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.thl-ol h3.thl-ol__card-city {
	font-family: Inter, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 20px;
	letter-spacing: normal;
	color: #E9ECEF;
	margin: 0;
}

/* ── Navigation Arrows — HIDDEN on desktop ─────────── */
.thl-ol__nav {
	display: none;
}

.thl-ol__arrows {
	display: none;
}

/* ── Pagination Dots ───────────────────────────────── */
.thl-ol__dots {
	display: none;
	text-align: center;
	padding-top: 16px;
}

.thl-ol__dots .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: rgba(255, 255, 255, 0.25);
	opacity: 1;
	margin: 0 4px;
	border-radius: 50%;
}

.thl-ol__dots .swiper-pagination-bullet-active {
	background: #fff;
	width: 24px;
	border-radius: 4px;
}

/* Screen reader only helper */
.thl-ol .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ═══ MOBILE (≤1024px) ═══ */
@media (max-width: 1024px) {
	.thl-ol {
		flex-direction: column;
		align-items: stretch;
	}

	.thl-ol__map { display: none; }

	.thl-ol__card {
		width: 100% !important;
		max-width: 100%;
		flex-direction: row;
		padding: 0;
		gap: 16px;
		justify-content: flex-start;
		align-items: stretch;
	}

	.thl-ol__card-img {
		flex: 0 0 125px;
		width: 125px;
		border-radius: 10px 0 0 10px;
	}

	.thl-ol__card-img img {
		width: 125px;
		height: 100%;
		min-height: 125px;
		border-radius: 10px 0 0 10px !important;
	}

	.thl-ol__card-img picture {
		border-radius: 10px 0 0 10px;
		height: 100%;
	}

	.thl-ol__card-img picture img {
		border-radius: 0 !important;
		height: 100%;
		min-height: 125px;
	}

	.thl-ol__card-body {
		flex: 1 1 auto;
		gap: 8px;
		padding: 12px 12px 12px 0;
		justify-content: center;
	}

	.thl-ol__card .thl-ol__info a {
		font-size: 12px;
		line-height: 16.8px;
	}

	.thl-ol__card .thl-ol__info svg {
		width: 12px;
		height: 12px;
	}

	.thl-ol__card .thl-ol__icon {
		width: 15px;
	}

	.thl-ol__card .thl-ol__info li + li {
		margin-top: 3px;
	}

	.thl-ol__arrows {
		display: flex;
		justify-content: center;
		gap: 8px;
		padding-top: 16px;
	}

	.thl-ol__nav {
		display: flex;
		position: relative;
		bottom: auto;
		right: auto;
		width: 44px;
		height: 44px;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		color: rgba(255, 255, 255, 0.5);
		transition: color 0.2s ease;
	}

	.thl-ol__nav:hover {
		color: rgba(255, 255, 255, 0.9);
	}

	.thl-ol__nav svg {
		width: 100%;
		height: 100%;
	}
}

@media (max-width: 480px) {
	.thl-ol__card-img {
		flex: 0 0 110px;
		width: 110px;
	}

	.thl-ol__card-img img {
		width: 110px;
	}

	.thl-ol h3.thl-ol__card-city {
		font-size: 18px;
		line-height: 18px;
	}
}