.asaph-widget,
.asaph-widget * {
	box-sizing: border-box;
}

.asaph-widget {
	--asaph-text: #111613;
	--asaph-muted: #66736e;
	--asaph-border: rgba(17, 22, 19, 0.1);
	--asaph-soft: rgba(255, 255, 255, 0.86);
	--asaph-accent: #111613;
	--asaph-focus: #2f7e62;
	--asaph-transition-duration: 160ms;
	--asaph-hover-lift: -1px;
	--asaph-gallery-gap: 18px;
	--asaph-main-empty-background: linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.22)), repeating-linear-gradient(45deg, rgba(17, 22, 19, 0.035) 0 10px, rgba(17, 22, 19, 0.01) 10px 20px);
	--asaph-counter-background: rgba(17, 22, 19, 0.72);
	--asaph-counter-color: #ffffff;
	--asaph-arrow-background: rgba(255, 255, 255, 0.82);
	--asaph-arrow-color: var(--asaph-text);
	--asaph-arrow-hover-background: var(--asaph-accent);
	--asaph-arrow-hover-color: #ffffff;
	--asaph-meta-background: rgba(255, 255, 255, 0.68);
	--asaph-meta-border: rgba(17, 22, 19, 0.08);
	--asaph-badge-background: rgba(47, 126, 98, 0.09);
	--asaph-badge-border: rgba(47, 126, 98, 0.2);
	--asaph-badge-color: #2f7e62;
	--asaph-thumbnail-active-border: var(--asaph-accent);
	--asaph-map-stage-background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)), #f4f6f4;
	--asaph-map-empty-border: rgba(17, 22, 19, 0.18);
	--asaph-hotspot-border: rgba(17, 22, 19, 0.16);
	--asaph-hotspot-text: var(--asaph-text);
	--asaph-hotspot-active-text: #ffffff;
	--asaph-hotspot-ring: rgba(17, 22, 19, 0.18);
	--asaph-hotspot-hover-scale: 1.08;
	--asaph-hotspot-label-background: rgba(255, 255, 255, 0.94);
	--asaph-hotspot-label-border: rgba(17, 22, 19, 0.1);
	--asaph-hotspot-label-color: var(--asaph-text);
	--asaph-pill-border: rgba(17, 22, 19, 0.1);
	background: #f6f8f7;
	color: var(--asaph-text);
	font-family: inherit;
}

.asaph-widget [hidden] {
	display: none !important;
}

.asaph-widget button,
.asaph-widget a {
	font: inherit;
}

.asaph-widget button {
	cursor: pointer;
}

.asaph-widget__inner {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px 20px;
}

.asaph-header {
	max-width: 720px;
	margin-bottom: 24px;
}

.asaph-header__eyebrow {
	margin-bottom: 8px;
	color: #49635a;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.asaph-header__title {
	margin: 0;
	color: var(--asaph-text);
	font-size: 2.5rem;
	line-height: 1.08;
	letter-spacing: 0;
}

.asaph-header__intro {
	max-width: 620px;
	margin: 12px 0 0;
	color: var(--asaph-muted);
	font-size: 1rem;
	line-height: 1.65;
}

.asaph-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
	gap: 24px;
	align-items: stretch;
}

.asaph-gallery-card,
.asaph-map-card,
.asaph-empty-state {
	border: 1px solid var(--asaph-border);
	border-radius: 8px;
	background-color: var(--asaph-soft);
	box-shadow: 0 18px 50px rgba(23, 33, 28, 0.08);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.asaph-gallery-card {
	display: flex;
	flex-direction: column;
	gap: var(--asaph-gallery-gap);
	min-width: 0;
	padding: 20px;
}

.asaph-main-frame {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: 8px;
	background: linear-gradient(135deg, rgba(242, 245, 243, 0.95), rgba(228, 235, 231, 0.88));
}

.asaph-main-image,
.asaph-main-empty {
	width: 100%;
	height: 100%;
	border-radius: 8px;
}

.asaph-main-image {
	display: block;
	object-fit: cover;
	transition: opacity var(--asaph-transition-duration) ease, transform 240ms ease;
}

.asaph-main-image.is-changing {
	opacity: 0.15;
	transform: scale(1.01);
}

.asaph-main-empty {
	display: block;
	background: var(--asaph-main-empty-background);
}

.asaph-counter {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 10px;
	border: 1px solid rgba(255, 255, 255, 0.38);
	border-radius: 999px;
	background: var(--asaph-counter-background);
	color: var(--asaph-counter-color);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1;
}

.asaph-arrows {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.asaph-arrow {
	position: absolute;
	top: 50%;
	display: inline-grid;
	width: 40px;
	height: 40px;
	place-items: center;
	padding: 0;
	border: 1px solid var(--asaph-border);
	border-radius: 50%;
	background: var(--asaph-arrow-background);
	color: var(--asaph-arrow-color);
	box-shadow: 0 10px 22px rgba(17, 22, 19, 0.12);
	line-height: 1;
	pointer-events: auto;
	transform: translateY(-50%);
	transition: background var(--asaph-transition-duration) ease, color var(--asaph-transition-duration) ease, transform var(--asaph-transition-duration) ease;
}

.asaph-arrow:hover,
.asaph-arrow:focus-visible {
	background: var(--asaph-arrow-hover-background);
	color: var(--asaph-arrow-hover-color);
	transform: translateY(-50%) scale(1.04);
}

.asaph-arrow--prev {
	left: 12px;
}

.asaph-arrow--next {
	right: 12px;
}

.asaph-arrow span {
	display: block;
	margin-top: -2px;
	font-size: 2rem;
	line-height: 1;
}

.asaph-project {
	display: grid;
	gap: 14px;
}

.asaph-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.asaph-meta__item {
	min-width: 0;
	padding: 11px 12px;
	border: 1px solid var(--asaph-meta-border);
	border-radius: 8px;
	background: var(--asaph-meta-background);
}

.asaph-meta__label {
	display: block;
	margin-bottom: 4px;
	color: var(--asaph-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.asaph-meta__value {
	display: block;
	overflow-wrap: anywhere;
	color: var(--asaph-text);
	font-size: 0.94rem;
	font-weight: 700;
	line-height: 1.25;
}

.asaph-project__topline {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	justify-content: space-between;
}

.asaph-project__title {
	margin: 0;
	color: var(--asaph-text);
	font-size: 1.35rem;
	line-height: 1.25;
	letter-spacing: 0;
}

.asaph-badge {
	flex: 0 0 auto;
	max-width: 42%;
	padding: 6px 10px;
	border: 1px solid var(--asaph-badge-border);
	border-radius: 999px;
	background: var(--asaph-badge-background);
	color: var(--asaph-badge-color);
	font-size: 0.74rem;
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
	overflow-wrap: anywhere;
}

.asaph-project__description {
	color: var(--asaph-muted);
	font-size: 0.96rem;
	line-height: 1.7;
	white-space: pre-line;
}

.asaph-thumbnails {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
	gap: 8px;
}

.asaph-thumb {
	overflow: hidden;
	height: 72px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	opacity: 0.72;
	transition: border-color var(--asaph-transition-duration) ease, opacity var(--asaph-transition-duration) ease, transform var(--asaph-transition-duration) ease;
}

.asaph-thumb:hover,
.asaph-thumb:focus-visible,
.asaph-thumb.is-active {
	border-color: var(--asaph-thumbnail-active-border);
	opacity: 1;
	transform: translateY(var(--asaph-hover-lift));
}

.asaph-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 6px;
	object-fit: cover;
}

.asaph-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	border-radius: 8px;
	background: var(--asaph-accent);
	color: #fff;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background var(--asaph-transition-duration) ease, color var(--asaph-transition-duration) ease, transform var(--asaph-transition-duration) ease;
}

.asaph-cta:hover,
.asaph-cta:focus-visible {
	background: #2f4f43;
	color: #fff;
	transform: translateY(var(--asaph-hover-lift));
}

.asaph-map-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.78);
}

.asaph-map-card__header {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid var(--asaph-border);
}

.asaph-map-card__label {
	display: block;
	margin-bottom: 4px;
	color: var(--asaph-muted);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.asaph-map-card__active {
	display: block;
	color: var(--asaph-text);
	font-size: 1rem;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.asaph-map-card__count {
	display: inline-grid;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 50%;
	background: rgba(17, 22, 19, 0.08);
	color: var(--asaph-text);
	font-size: 0.86rem;
	font-weight: 900;
}

.asaph-map__stage {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	padding: 20px;
	background: var(--asaph-map-stage-background);
}

.asaph-map__media {
	position: relative;
	display: inline-block;
	max-width: 100%;
	line-height: 0;
}

.asaph-map__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: contain;
}

.asaph-map__empty {
	display: grid;
	width: 100%;
	min-height: 320px;
	place-items: center;
	border: 1px dashed var(--asaph-map-empty-border);
	border-radius: 8px;
	color: var(--asaph-muted);
	font-weight: 700;
	text-align: center;
}

.asaph-hotspots {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.asaph-hotspot {
	position: absolute;
	left: var(--asaph-x);
	top: var(--asaph-y);
	display: inline-grid;
	width: 34px;
	height: 34px;
	place-items: center;
	padding: 0;
	border: 2px solid var(--asaph-hotspot-border);
	border-radius: 50%;
	background: #fff;
	color: var(--asaph-hotspot-text);
	box-shadow: 0 12px 26px rgba(17, 22, 19, 0.18);
	line-height: 0;
	pointer-events: auto;
	transform: translate(-50%, -50%);
	transition: background var(--asaph-transition-duration) ease, border-color var(--asaph-transition-duration) ease, transform var(--asaph-transition-duration) ease;
}

.asaph-hotspot::before {
	position: absolute;
	inset: -8px;
	border: 1px solid var(--asaph-hotspot-ring);
	border-radius: 50%;
	content: "";
	opacity: 0;
	transform: scale(0.82);
}

.asaph-widget--pulse .asaph-hotspot.is-active::before {
	animation: asaph-pulse 1.8s ease-out infinite;
	opacity: 1;
}

.asaph-hotspot:hover,
.asaph-hotspot:focus-visible,
.asaph-hotspot.is-active {
	border-color: var(--asaph-hotspot-ring);
	background: var(--asaph-accent);
	color: var(--asaph-hotspot-active-text);
	transform: translate(-50%, -50%) scale(var(--asaph-hotspot-hover-scale));
}

.asaph-hotspot__dot {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.asaph-hotspot__label {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	max-width: 180px;
	padding: 7px 9px;
	border: 1px solid var(--asaph-hotspot-label-border);
	border-radius: 8px;
	background: var(--asaph-hotspot-label-background);
	color: var(--asaph-hotspot-label-color);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.2;
	opacity: 0;
	pointer-events: none;
	text-align: center;
	transform: translateX(-50%) translateY(4px);
	transition: opacity var(--asaph-transition-duration) ease, transform var(--asaph-transition-duration) ease;
	white-space: nowrap;
}

.asaph-hotspot:hover .asaph-hotspot__label,
.asaph-hotspot:focus-visible .asaph-hotspot__label,
.asaph-hotspot.is-active .asaph-hotspot__label {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.asaph-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px 18px 18px;
	border-top: 1px solid var(--asaph-border);
}

.asaph-pill {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid var(--asaph-pill-border);
	border-radius: 999px;
	background: #fff;
	color: #1f2a24;
	font-size: 0.88rem;
	font-weight: 800;
	line-height: 1.2;
	transition: background var(--asaph-transition-duration) ease, color var(--asaph-transition-duration) ease, transform var(--asaph-transition-duration) ease;
}

.asaph-pill:hover,
.asaph-pill:focus-visible,
.asaph-pill.is-active {
	background: var(--asaph-accent);
	color: #fff;
	transform: translateY(var(--asaph-hover-lift));
}

.asaph-empty-state {
	padding: 20px;
	color: var(--asaph-muted);
	font-weight: 700;
	text-align: center;
}

.asaph-widget :focus-visible {
	outline: 3px solid var(--asaph-focus);
	outline-offset: 3px;
}

.asaph-widget--editor-light *,
.asaph-widget--editor-light *::before,
.asaph-widget--editor-light *::after {
	animation: none !important;
	transition: none !important;
}

@keyframes asaph-pulse {
	0% {
		opacity: 0.72;
		transform: scale(0.82);
	}

	100% {
		opacity: 0;
		transform: scale(1.75);
	}
}

@media (prefers-reduced-motion: reduce) {
	.asaph-widget *,
	.asaph-widget *::before,
	.asaph-widget *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.001ms !important;
	}
}

@media (max-width: 1024px) {
	.asaph-layout {
		grid-template-columns: 1fr;
	}

	.asaph-map__stage {
		min-height: 280px;
	}
}

@media (max-width: 767px) {
	.asaph-widget__inner {
		padding: 28px 14px;
	}

	.asaph-header {
		margin-bottom: 18px;
	}

	.asaph-header__title {
		font-size: 1.8rem;
	}

	.asaph-gallery-card {
		padding: 14px;
	}

	.asaph-meta {
		grid-template-columns: 1fr;
	}

	.asaph-project__topline {
		display: grid;
	}

	.asaph-badge {
		max-width: 100%;
		justify-self: start;
	}

	.asaph-thumbnails {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.asaph-thumb {
		height: 62px;
	}

	.asaph-cta {
		width: 100%;
	}

	.asaph-map-card__header {
		padding: 14px;
	}

	.asaph-map__stage {
		min-height: 240px;
		padding: 14px;
	}

	.asaph-hotspot__label {
		display: none;
	}

	.asaph-pills {
		padding: 12px 14px 14px;
	}

	.asaph-pill {
		flex: 1 1 calc(50% - 8px);
		justify-content: center;
		min-width: 0;
		text-align: center;
	}
}

.rtl .asaph-counter {
	right: auto;
	left: 12px;
}

.rtl .asaph-arrow--prev {
	right: 12px;
	left: auto;
}

.rtl .asaph-arrow--next {
	right: auto;
	left: 12px;
}
