/**
 * Viva Contact frontend styles.
 */

.vc-card {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 20px;
	width: 100%;
	padding: 24px;
	border: 1px solid rgb(243 229 171 / 0.14);
	border-radius: 20px;
	background:
		radial-gradient(circle at 50% 0%, rgb(212 175 55 / 0.06), transparent 42%),
		#121815;
	color: #f4f1e8;
	font-family: var(--viva-font, "Peyda", Tahoma, sans-serif);
	box-sizing: border-box;
}

.vc-card--minimal {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.vc-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.vc-card__title {
	margin: 0;
	color: #f4f1e8;
	font-size: clamp(1.55rem, 4vw, 2.35rem);
	line-height: 1.45;
}

.vc-card__description {
	max-width: 680px;
	margin: 0.55rem 0 0;
	color: #c9c4b8;
	line-height: 1.95;
}

.vc-card__items {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	margin-top: 20px;
}

.vc-item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 12px;
	border: 1px solid rgb(243 229 171 / 0.12);
	border-radius: 12px;
	background: #171d1a;
	color: inherit;
	text-decoration: none;
	box-sizing: border-box;
	transition:
		transform 180ms ease,
		border-color 180ms ease,
		background-color 180ms ease;
}

a.vc-item:hover,
a.vc-item:focus-visible {
	border-color: rgb(212 175 55 / 0.45);
	background: #1a211d;
	transform: translateY(-1px);
	outline: none;
}

.vc-item__icon {
	display: inline-flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #101512;
	color: #d4af37;
}

.vc-item__icon svg {
	width: 53%;
	height: 53%;
}

.vc-item__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.vc-item__label {
	color: #d4af37;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.5;
}

.vc-item__value {
	margin-top: 2px;
	color: #e8e3d8;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.vc-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 10px;
	margin-top: 18px;
}

.vc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 46px;
	padding: 12px 18px;
	border: 1px solid rgb(243 229 171 / 0.16);
	border-radius: 10px;
	background: #305050;
	color: #f4f1e8;
	font-weight: 700;
	text-decoration: none;
	transition:
		transform 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease;
}

.vc-button svg {
	width: 20px;
	height: 20px;
}

.vc-button--primary {
	border-color: rgb(212 175 55 / 0.45);
	background: #d4af37;
	color: #17201c;
}

.vc-button:hover,
.vc-button:focus-visible {
	border-color: #d4af37;
	transform: translateY(-2px);
	outline: none;
}

.vc-card__socials {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 8px;
	margin-top: 18px;
}

.vc-social {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 9px 12px;
	border: 1px solid rgb(243 229 171 / 0.12);
	border-radius: 10px;
	background: #171d1a;
	color: #d4af37;
	text-decoration: none;
}

.vc-social svg {
	width: 19px;
	height: 19px;
}

.vc-card__map {
	position: relative;
	overflow: hidden;
	flex: 0 0 42%;
	width: 42%;
	min-height: 380px;
	border: 1px solid rgb(243 229 171 / 0.14);
	border-radius: 16px;
	background: #101512;
}

.vc-card__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(0.8) contrast(1.05) brightness(0.72);
}

/* Compact footer-oriented mode */
.vc-card--compact {
	padding: 18px;
}

.vc-card--compact .vc-card__description {
	display: none;
}

.vc-card--compact .vc-card__items {
	margin-top: 14px;
}

.vc-card--compact .vc-item {
	padding: 9px;
	border-color: transparent;
	background: transparent;
}

.vc-card--compact .vc-item__icon {
	flex-basis: 36px;
	width: 36px;
	height: 36px;
}

.vc-card--compact .vc-item__label {
	font-size: 0.72rem;
}

.vc-card--compact .vc-item__value {
	font-size: 0.9rem;
}

.vc-card--compact .vc-card__actions {
	margin-top: 12px;
}

@media (max-width: 767px) {
	.vc-card {
		flex-direction: column;
		padding: 20px 16px;
	}

	.vc-card__map {
		width: 100%;
		flex-basis: auto;
		min-height: 280px;
	}

	.vc-card__items {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.vc-card__actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vc-button {
		width: 100%;
	}
}

@media (max-width: 420px) {
	.vc-card__actions {
		grid-template-columns: minmax(0, 1fr);
	}

	.vc-social span {
		display: none;
	}
}


/* v1.0.2: map providers */
.vc-button--directions {
	position: relative;
}

.vc-button--google {
	background: #305050;
}

.vc-button--neshan {
	background: #3b4a32;
}

.vc-button--balad {
	background: #262d29;
}

.vc-card__map--google iframe,
.vc-card__map--neshan iframe,
.vc-card__map--balad iframe {
	filter: none;
}


/* v1.0.5: WhatsApp social placement and unified contact buttons */
.vc-button--contact,
.vc-button--email {
	border-color: rgb(212 175 55 / 0.45);
	background: #d4af37;
	color: #17201c;
}

.vc-button--contact:hover,
.vc-button--contact:focus-visible,
.vc-button--email:hover,
.vc-button--email:focus-visible {
	border-color: #f0ce58;
	background: #e0bb42;
	color: #17201c;
}

.vc-social--whatsapp {
	background: #171d1a;
	color: #d4af37;
}

.vc-social--whatsapp:hover,
.vc-social--whatsapp:focus-visible {
	border-color: rgb(212 175 55 / 0.45);
	background: #1a211d;
	color: #d4af37;
	outline: none;
}


/* v1.0.6: separated action groups and routing dropdown */
.vc-card__action-groups {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 18px;
}

.vc-action-group {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
}

.vc-action-group--contact .vc-button {
	background: #d4af37;
	color: #17201c;
	border-color: rgb(212 175 55 / 0.45);
}

.vc-action-group--social {
	display: flex;
}

.vc-routing {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	min-width: 180px;
}

.vc-routing__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 12px 18px;
	border: 1px solid rgb(243 229 171 / 0.18);
	border-radius: 10px;
	background: #305050;
	color: #f4f1e8;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}



.vc-routing__toggle svg {
	width: 20px;
	height: 20px;
}

.vc-routing__chevron {
	margin-inline-start: auto;
	transition: transform 180ms ease;
}

.vc-routing.is-open .vc-routing__chevron {
	transform: rotate(180deg);
}

.vc-routing-menu {
	position: absolute;
	z-index: 40;
	top: calc(100% + 8px);
	right: 0;
	min-width: 100%;
	padding: 8px;
	border: 1px solid rgb(243 229 171 / 0.16);
	border-radius: 12px;
	background: #111713;
	box-shadow: 0 14px 36px rgb(0 0 0 / 0.34);
}

.vc-routing-menu__item {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 10px 12px;
	border-radius: 8px;
	color: #f4f1e8;
	text-decoration: none;
}

.vc-routing-menu__item:hover,
.vc-routing-menu__item:focus-visible {
	background: #1a211d;
	color: #d4af37;
	outline: none;
}

.vc-routing-menu__item svg {
	width: 20px;
	height: 20px;
}

.vc-card__map {
	overflow: visible;
}

.vc-card__map iframe {
	border-radius: inherit;
}

.vc-card__map-routing {
	position: absolute;
	right: 14px;
	left: 14px;
	bottom: 14px;
	z-index: 20;
}

.vc-card__map-routing .vc-routing {
	width: 100%;
}

.vc-card__map-routing .vc-routing__toggle {
	width: 100%;
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.28);
}

.vc-card__map-routing .vc-routing-menu {
	top: auto;
	bottom: calc(100% + 8px);
}

@media (max-width: 767px) {
	.vc-action-group,
	.vc-routing,
	.vc-routing__toggle {
		width: 100%;
	}

	.vc-action-group .vc-button,
	.vc-action-group .vc-social {
		flex: 1 1 auto;
	}
}


/* v1.0.8: responsive map, non-blocking routing menu, fixed alignments */
.vc-action-group--contact,
.vc-action-group--social {
	width: 100%;
}

.vc-routing--card .vc-routing-menu {
	position: static;
	top: auto;
	right: auto;
	min-width: 0;
	width: 100%;
	margin-top: 8px;
	box-shadow: none;
}

.vc-routing--menu-vertical .vc-routing-menu {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vc-routing--menu-horizontal .vc-routing-menu {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 6px;
}

.vc-routing--menu-horizontal .vc-routing-menu__item {
	flex: 1 1 110px;
	justify-content: center;
}

.vc-routing-menu[hidden] {
	display: none !important;
}

.vc-card__map {
	max-width: 100%;
	isolation: isolate;
}

.vc-card__map iframe {
	display: block;
	max-width: 100%;
}

@media (max-width: 767px) {
	.vc-card {
		flex-direction: column !important;
		align-items: stretch !important;
		overflow: hidden;
	}

	.vc-card__content {
		width: 100%;
		min-width: 0;
		order: 1;
	}

	.vc-card__map {
		position: relative;
		order: 2;
		flex: 0 0 auto !important;
		flex-basis: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		min-height: 260px;
		height: 260px;
		overflow: hidden;
	}

	.vc-card__map iframe {
		position: absolute;
		inset: 0;
		width: 100% !important;
		height: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}

	.vc-card__map-routing {
		right: 10px;
		left: 10px;
		bottom: 10px;
	}

	.vc-card__map-routing .vc-routing-menu {
		max-height: 52vh;
		overflow-y: auto;
	}

	.vc-routing--card,
	.vc-routing--card .vc-routing__toggle {
		width: 100%;
	}

	.vc-action-group--contact,
	.vc-action-group--social {
		width: 100%;
	}

	.vc-action-group--contact .vc-button,
	.vc-action-group--social .vc-social {
		min-width: 0;
	}
}

@media (max-width: 420px) {
	.vc-card__map {
		min-height: 230px;
		height: 230px;
	}
}


/* v1.0.9: managed custom icons and unified icon styling */
.vc-button svg,
.vc-social svg,
.vc-routing__toggle svg,
.vc-routing-menu__item svg,
.vc-item__icon svg {
	display: inline-block;
	flex: 0 0 auto;
	color: inherit;
	fill: none;
	vertical-align: middle;
}

.vc-button svg [fill="currentColor"],
.vc-social svg [fill="currentColor"],
.vc-routing__toggle svg [fill="currentColor"],
.vc-routing-menu__item svg [fill="currentColor"],
.vc-item__icon svg [fill="currentColor"] {
	fill: currentColor;
}

.vc-button svg [stroke="currentColor"],
.vc-social svg [stroke="currentColor"],
.vc-routing__toggle svg [stroke="currentColor"],
.vc-routing-menu__item svg [stroke="currentColor"],
.vc-item__icon svg [stroke="currentColor"] {
	stroke: currentColor;
}


/* v2.0.0: rebuilt Neshan/Balad default provider icons */
.vc-provider-logo--neshan,
.vc-provider-logo--balad {
	color: inherit;
	fill: none;
	stroke: currentColor;
}

.vc-routing-menu__item--neshan svg,
.vc-routing-menu__item--balad svg,
.vc-item--directions-neshan svg,
.vc-item--directions-balad svg {
	opacity: 1;
	filter: none;
}


/* v2.0.1: routing menu layout priority */
.vc-routing--menu-horizontal .vc-routing-menu {
	direction: rtl;
	justify-content: flex-start;
}

.vc-routing--menu-horizontal .vc-routing-menu__item {
	direction: rtl;
}

.vc-routing--menu-vertical .vc-routing-menu {
	direction: rtl;
}

.vc-routing-menu__item--google {
	order: 1;
}

.vc-routing-menu__item--neshan {
	order: 2;
}

.vc-routing-menu__item--balad {
	order: 3;
}


/* v2.0.2: action group layouts and routing menu item styling */
.vc-action-group--layout-horizontal {
	flex-direction: row;
	direction: rtl;
}

.vc-action-group--layout-vertical {
	flex-direction: column;
	align-items: stretch;
	direction: rtl;
}

.vc-action-group--layout-vertical .vc-button,
.vc-action-group--layout-vertical .vc-social,
.vc-action-group--layout-vertical .vc-routing {
	width: 100%;
}

.vc-routing-menu__item {
	border: 0 solid transparent;
}

.vc-routing--menu-horizontal .vc-routing-menu {
	direction: rtl;
}

.vc-routing--menu-horizontal .vc-routing-menu__item {
	direction: rtl;
}

.vc-routing--menu-vertical .vc-routing-menu {
	direction: rtl;
}


/* v2.0.3: global layout for contact/routing/social groups */
.vc-card__action-groups--vertical {
	flex-direction: column;
	align-items: stretch;
	direction: rtl;
}

.vc-card__action-groups--horizontal {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-start;
	direction: rtl;
}

.vc-card__action-groups--horizontal > .vc-action-group,
.vc-card__action-groups--horizontal > .vc-routing {
	width: auto;
	max-width: 100%;
}

.vc-card__action-groups--horizontal .vc-action-group--layout-horizontal {
	width: auto;
}

.vc-card__action-groups--horizontal .vc-routing {
	min-width: 180px;
}

.vc-card__action-groups--horizontal .vc-routing__toggle {
	width: 100%;
}

.vc-card__action-groups--horizontal .vc-action-group--layout-vertical {
	min-width: 180px;
}

@media (max-width: 767px) {
	.vc-card__action-groups--horizontal {
		flex-direction: column;
		align-items: stretch;
	}

	.vc-card__action-groups--horizontal > .vc-action-group,
	.vc-card__action-groups--horizontal > .vc-routing,
	.vc-card__action-groups--horizontal .vc-routing__toggle {
		width: 100%;
	}
}


/* v2.0.4: alignment controls for action groups */
.vc-card__action-groups--align-start {
	align-items: flex-start;
	justify-content: flex-start;
}

.vc-card__action-groups--align-center {
	align-items: center;
	justify-content: center;
}

.vc-card__action-groups--align-end {
	align-items: flex-end;
	justify-content: flex-end;
}

.vc-card__action-groups--align-stretch {
	align-items: stretch;
	justify-content: stretch;
}

.vc-card__action-groups--horizontal.vc-card__action-groups--align-stretch > .vc-action-group,
.vc-card__action-groups--horizontal.vc-card__action-groups--align-stretch > .vc-action-group--directions {
	flex: 1 1 0;
}

.vc-card__action-groups--horizontal.vc-card__action-groups--align-center {
	justify-content: center;
}

.vc-card__action-groups--horizontal.vc-card__action-groups--align-end {
	justify-content: flex-end;
}

.vc-action-group--align-start {
	justify-content: flex-start;
	align-items: flex-start;
}

.vc-action-group--align-center {
	justify-content: center;
	align-items: center;
}

.vc-action-group--align-end {
	justify-content: flex-end;
	align-items: flex-end;
}

.vc-action-group--align-stretch {
	justify-content: stretch;
	align-items: stretch;
}

.vc-action-group--align-stretch > .vc-button,
.vc-action-group--align-stretch > .vc-social,
.vc-action-group--align-stretch > .vc-routing {
	flex: 1 1 0;
}

.vc-action-group--align-stretch .vc-routing,
.vc-action-group--align-stretch .vc-routing__toggle {
	width: 100%;
}

.vc-action-group--layout-vertical.vc-action-group--align-start {
	align-items: flex-start;
}

.vc-action-group--layout-vertical.vc-action-group--align-center {
	align-items: center;
}

.vc-action-group--layout-vertical.vc-action-group--align-end {
	align-items: flex-end;
}

.vc-action-group--layout-vertical.vc-action-group--align-stretch {
	align-items: stretch;
}

@media (max-width: 767px) {
	.vc-card__action-groups--align-start,
	.vc-card__action-groups--align-center,
	.vc-card__action-groups--align-end,
	.vc-card__action-groups--align-stretch {
		align-items: stretch;
	}

	.vc-action-group--align-start,
	.vc-action-group--align-center,
	.vc-action-group--align-end,
	.vc-action-group--align-stretch {
		align-items: stretch;
	}
}


/* v2.0.5: independent text/icon alignment inside buttons */
.vc-action-group--button-align-start > .vc-button,
.vc-action-group--button-align-start > .vc-social,
.vc-routing--button-align-start .vc-routing__toggle {
	justify-content: flex-start;
	text-align: start;
}

.vc-action-group--button-align-center > .vc-button,
.vc-action-group--button-align-center > .vc-social,
.vc-routing--button-align-center .vc-routing__toggle {
	justify-content: center;
	text-align: center;
}

.vc-action-group--button-align-end > .vc-button,
.vc-action-group--button-align-end > .vc-social,
.vc-routing--button-align-end .vc-routing__toggle {
	justify-content: flex-end;
	text-align: end;
}

.vc-action-group--button-align-stretch > .vc-button,
.vc-action-group--button-align-stretch > .vc-social,
.vc-routing--button-align-stretch .vc-routing__toggle {
	justify-content: space-between;
	text-align: start;
}

.vc-action-group--button-align-stretch > .vc-button span,
.vc-action-group--button-align-stretch > .vc-social span {
	flex: 1 1 auto;
}

.vc-action-group--button-align-start > .vc-button span,
.vc-action-group--button-align-start > .vc-social span,
.vc-action-group--button-align-center > .vc-button span,
.vc-action-group--button-align-center > .vc-social span,
.vc-action-group--button-align-end > .vc-button span,
.vc-action-group--button-align-end > .vc-social span {
	flex: 0 1 auto;
}

.vc-routing--button-align-start .vc-routing__chevron,
.vc-routing--button-align-center .vc-routing__chevron,
.vc-routing--button-align-end .vc-routing__chevron {
	margin-inline-start: 0;
}

.vc-routing--button-align-stretch .vc-routing__chevron {
	margin-inline-start: auto;
}

.vc-routing--button-align-stretch .vc-routing__toggle span {
	flex: 1 1 auto;
	text-align: start;
}

.vc-routing--button-align-center .vc-routing__toggle span,
.vc-routing--button-align-start .vc-routing__toggle span,
.vc-routing--button-align-end .vc-routing__toggle span {
	flex: 0 1 auto;
}
