/**
 * Supply Chain Map – premium layout for About Us and Contact pages.
 */

/* ==========================================================================
   About page – map section wrapper
   ========================================================================== */

.about-map-section {
	padding: 3rem 0 2.5rem;
	background: transparent;
	position: relative;
}

.about-map-section__header {
	text-align: center;
	max-width: 32em;
	margin: 0 auto 1.5rem;
}

.about-map-section__title {
	font-family: var(--font-heading);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	margin: 0 0 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-text);
}

/* Gold decorative underline */
.about-map-section__title::after {
	content: '';
	display: block;
	width: 40px;
	height: 2px;
	background: var(--color-accent, #b8860b);
	margin: 0.75rem auto 0;
	border-radius: 2px;
}

.about-map-section__subtitle {
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--color-text-muted, #5c5c5c);
	letter-spacing: 0.02em;
	margin: 0;
}

/* ==========================================================================
   Map card container
   ========================================================================== */

.about-map-wrapper {
	width: 100%;
	max-width: 640px;
	margin: 0 auto 1.25rem;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow:
		0 2px 4px rgba(0, 0, 0, 0.04),
		0 8px 24px rgba(0, 0, 0, 0.07),
		0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Map canvas — explicit height required by Leaflet
   ========================================================================== */

.about-map {
	width: 100%;
	height: 360px;
	min-height: 180px;
	background: #c8dde8; /* ocean colour shown before tiles load */
	display: block;
}

/* ==========================================================================
   Leaflet overrides — fit the brand's card aesthetic
   ========================================================================== */

.about-map .leaflet-container {
	font-family: var(--font-body, Georgia, serif);
	border-radius: inherit;
}


.about-map .leaflet-control-attribution {
	font-size: 0.65rem;
	background: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Custom gold map pin
   ========================================================================== */

.isemoody-map-pin {
	position: relative;
	width: 32px !important;
	height: 32px !important;
	background: transparent !important;
	border: none !important;
	overflow: visible; /* pulse allowed to show inside the map */
}

.isemoody-map-pin__dot {
	position: absolute;
	inset: 8px;
	border-radius: 50%;
	background: #b8860b;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	z-index: 1;
}

.isemoody-map-pin__pulse {
	position: absolute;
	inset: 8px;
	border-radius: 50%;
	border: 1.5px solid #b8860b;
	animation: isemoody-pin-pulse 2s ease-out infinite;
	pointer-events: none;
}

@keyframes isemoody-pin-pulse {
	0%   { transform: scale(1);   opacity: 0.55; }
	100% { transform: scale(2); opacity: 0; }
}

/* ==========================================================================
   Popup styling
   ========================================================================== */

.isemoody-map-popup__title {
	display: block;
	font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #1a1a1a;
	margin-bottom: 0.2rem;
}

.isemoody-map-popup__desc {
	display: block;
	font-size: 0.8rem;
	color: #5c5c5c;
	line-height: 1.4;
}

.about-map .leaflet-popup-content-wrapper {
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	padding: 2px 4px;
}

.about-map .leaflet-popup-tip {
	background: #fff;
}

/* ==========================================================================
   Legend cards below the map
   ========================================================================== */

.about-map-messages {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.625rem;
	max-width: 640px;
	margin: 0 auto;
}

.about-map-messages__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.3rem;
	padding: 0.75rem 0.875rem;
	background: #fff;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	font-size: 0.775rem;
	line-height: 1.45;
	letter-spacing: 0.01em;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.about-map-messages__item:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(184, 134, 11, 0.1);
	transform: translateY(-1px);
}

.about-map-messages__pin {
	flex-shrink: 0;
	width: 9px;
	height: 9px;
	margin-top: 0.3rem;
	border-radius: 50%;
	background: var(--color-accent, #b8860b);
	box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.about-map-messages__label {
	font-weight: 700;
	font-family: var(--font-heading);
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	color: var(--color-text, #0f0f0f);
	white-space: nowrap;
}

.about-map-messages__text {
	color: var(--color-text-muted, #5c5c5c);
	flex: 1;
	min-width: 0;
	line-height: 1.5;
}

/* ==========================================================================
   Contact page – supply chain journey cards
   ========================================================================== */

.contact-journey {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.625rem;
	margin-bottom: 1.5rem;
}

/* About page: 4 columns to match the wider layout */
.contact-journey--about {
	grid-template-columns: repeat(4, 1fr);
	max-width: 640px;
	margin: 0 auto;
}

.contact-journey__item {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	padding: 0.875rem 1rem;
	background: #fff;
	border-radius: 12px;
	border: 1px solid rgba(184, 134, 11, 0.12);
	border-left: 3px solid var(--color-accent, #b8860b);
	transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.contact-journey__item:hover {
	box-shadow: 0 6px 20px rgba(184, 134, 11, 0.1);
	transform: translateY(-2px);
}

.contact-journey__step {
	flex-shrink: 0;
	font-family: var(--font-heading, 'Cormorant Garamond', serif);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
	color: var(--color-accent, #b8860b);
	opacity: 0.55;
	letter-spacing: 0.02em;
	margin-top: 2px;
}

.contact-journey__body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.contact-journey__name {
	font-family: var(--font-heading, 'Cormorant Garamond', serif);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--color-text, #0f0f0f);
	display: block;
}

.contact-journey__desc {
	font-size: 0.78rem;
	color: var(--color-text-muted, #5c5c5c);
	line-height: 1.45;
	letter-spacing: 0.01em;
}

@media (max-width: 600px) {
	.contact-journey--about {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.contact-journey,
	.contact-journey--about {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
	.about-map-section {
		padding: 2rem 0 1.75rem;
	}

	.about-map-section__header {
		margin-bottom: 1.25rem;
		padding: 0 1rem;
	}

	.about-map-wrapper {
		border-radius: 12px;
		margin-bottom: 0.875rem;
	}

	.about-map {
		height: 260px;
		min-height: 160px;
	}

	.about-map-messages {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.5rem;
		padding: 0 0.5rem;
	}

	.about-map-messages__item {
		padding: 0.625rem 0.75rem;
	}
}
