/* ==========================================================================
   Contact Us — contact details shortcode + Amap container
   ========================================================================== */

/* --- contact details ---------------------------------------------------- */

.ct-info {
	margin: 24px 0 0;
}

.ct-info__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ct-info__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid #e9eff6;
}

.ct-info__item:first-child {
	padding-top: 0;
}

.ct-info__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.ct-info__icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background-color: #045cb4;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px auto;
}

.ct-info__icon--phone {
	background-image: url(../icon/phone_white.svg);
}

.ct-info__icon--whatsapp {
	background-image: url(../icon/whatsapp_white.svg);
}

.ct-info__icon--email {
	background-image: url(../icon/email_white.svg);
}

.ct-info__icon--address {
	background-image: url(../icon/address_white.svg);
}

.ct-info__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: 15px;
	line-height: 1.5;
}

.ct-info__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #94a3b8;
}

.ct-info__value {
	color: #1e293b;
	font-weight: 500;
	text-decoration: none !important;
	word-break: break-word;
}

a.ct-info__value:hover {
	color: #045cb4;
}

/* --- map ---------------------------------------------------------------- */

.info-map-box {
	position: relative;
	width: 100%;
	height: 440px;
	min-height: 300px;
	border: 1px solid #e6edf5;
	border-radius: 14px;
	overflow: hidden;
	background: #eef4fa;
}

#mapContainer {
	width: 100%;
	height: 100%;
}

/* info window styling (matches the markup built in contact-map.js) */
.info-top {
	position: relative;
	background: #f9f9f9;
	border-bottom: 1px solid #ccc;
	border-radius: 5px 5px 0 0;
}

.info-top div {
	display: inline-block;
	padding: 0 10px;
	color: #333;
	font-size: 14px;
	font-weight: 700;
	line-height: 31px;
	text-align: left;
}

.info-middle {
	padding: 10px;
	background-color: #fff;
	font-size: 12px;
	line-height: 21px;
	text-align: left;
}

.info-bottom {
	width: 100%;
	height: 0;
	clear: both;
	text-align: center;
}

.amap-info {
	width: 340px;
	max-width: 80vw;
}

/* Fallback shown only when the Amap API cannot load. It must stay display:none
   while the [hidden] attribute is present, otherwise it covers the map. */
.oe-map__fallback {
	position: absolute;
	inset: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	text-align: center;
	background: #eef4fa;
	color: #334155;
	font-size: 14px;
	line-height: 1.6;
}

.oe-map__fallback:not([hidden]) {
	display: flex;
}

.oe-map__fallback-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #045cb4 url(../icon/address_white.svg) center no-repeat;
	background-size: 20px auto;
}

@media (max-width: 900px) {
	.info-map-box {
		height: 340px;
	}

	/* The page puts "Get in Touch" and the map side by side in a nowrap flex
	   group; stack them on small screens so nothing gets squeezed. */
	.is-layout-flex.is-nowrap:has(.info-map-box),
	.page-id-41 .is-layout-flex.is-nowrap {
		flex-wrap: wrap !important;
		gap: 28px;
	}

	.is-layout-flex.is-nowrap:has(.info-map-box) > .wp-block-group,
	.page-id-41 .is-layout-flex.is-nowrap > .wp-block-group {
		flex: 1 1 100% !important;
		width: 100% !important;
		max-width: 100% !important;
	}
}

@media (max-width: 560px) {
	.info-map-box {
		height: 280px;
	}

	.ct-info__item {
		padding: 14px 0;
	}

	.ct-info__text {
		font-size: 14px;
	}

	.ct-info__icon {
		flex-basis: 38px;
		width: 38px;
		height: 38px;
		background-size: 18px auto;
	}
	.ct-info .ct-info__list{padding-left:0}
	.info-top div{line-height:1.4em;font-size:12px;padding: 8px;}
	.info-middle{padding:8px;line-height: 18px;}
}
