/* ==================================================
   Padra Service Branches
   ================================================== */

.padra-service-branches {
	--padra-branch-gap: 16px;
	--padra-branch-height: 88px;
	--padra-branch-radius: 18px;
	--padra-branch-border: #e8e4df;
	--padra-branch-text: #242020;
	--padra-branch-muted: #9b9693;
	--padra-branch-orange: #ff6900;

	display: block;
	width: 100%;
}

.padra-service-branches *,
.padra-service-branches *::before,
.padra-service-branches *::after {
	box-sizing: border-box;
}

.padra-service-branches__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--padra-branch-gap);
	width: 100%;
}

.padra-service-branches__card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 15px;
	width: 100%;
	min-width: 0;
	min-height: var(--padra-branch-height);
	padding: 15px 14px 15px 16px;
	overflow: hidden;
	border: 1px solid var(--padra-branch-border);
	border-radius: var(--padra-branch-radius);
	color: var(--padra-branch-text) !important;
	background-color: #fff;
	text-decoration: none !important;
	outline: none;
	isolation: isolate;
	-webkit-tap-highlight-color: transparent;
	transition:
		border-color 350ms ease,
		box-shadow 350ms ease,
		transform 350ms cubic-bezier(.2, .7, .2, 1);
}

.padra-service-branches__card::before {
	position: absolute;
	z-index: -1;
	inset: -1px;
	content: "";
	border-radius: inherit;
	background:
		linear-gradient(
			90deg,
			#fffaf5 0%,
			#ffe8d9 48%,
			#ffbd94 100%
		);
	opacity: 0;
	transition: opacity 400ms ease;
}

.padra-service-branches__flag {
	display: flex;
	flex: 0 0 31px;
	align-items: center;
	justify-content: center;
	width: 31px;
	height: 31px;
	overflow: hidden;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.padra-service-branches__flag-svg {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
}

.padra-service-branches__content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
	line-height: 1;
}

.padra-service-branches__title,
.padra-service-branches__city {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.padra-service-branches__title {
	color: var(--padra-branch-text);
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
}

.padra-service-branches__city {
	color: var(--padra-branch-muted);
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	transition: color 350ms ease;
}

.padra-service-branches__arrow {
	display: flex;
	flex: 0 0 32px;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-inline-start: auto;
	border-radius: 50%;
	color: #242020;
	background-color: transparent;
	transition:
		color 350ms ease,
		background-color 350ms ease,
		transform 350ms cubic-bezier(.2, .7, .2, 1);
}

.padra-service-branches__arrow-svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.padra-service-branches[dir="rtl"] .padra-service-branches__arrow-svg {
	transform: rotate(180deg);
}

.padra-service-branches[dir="rtl"] .padra-service-branches__card::before {
	background:
		linear-gradient(
			270deg,
			#fffaf5 0%,
			#ffe8d9 48%,
			#ffbd94 100%
		);
}

@media (hover: hover) and (pointer: fine) {
	.padra-service-branches__card:hover {
		color: var(--padra-branch-text) !important;
		border-color: transparent;
		box-shadow: 0 14px 34px rgba(255, 105, 0, 0.1);
		transform: translateY(-2px);
	}

	.padra-service-branches__card:hover::before {
		opacity: 1;
	}

	.padra-service-branches__card:hover .padra-service-branches__arrow {
		color: #fff;
		background-color: var(--padra-branch-orange);
		transform: translateX(2px);
	}

	.padra-service-branches[dir="rtl"]
	.padra-service-branches__card:hover
	.padra-service-branches__arrow {
		transform: translateX(-2px);
	}
}

.padra-service-branches__card:focus,
.padra-service-branches__card:focus-visible,
.padra-service-branches__card:active {
	color: var(--padra-branch-text) !important;
	text-decoration: none !important;
	outline: none;
}

.padra-service-branches__card:focus-visible::before {
	opacity: 1;
}

.padra-service-branches__card:focus-visible .padra-service-branches__arrow {
	color: #fff;
	background-color: var(--padra-branch-orange);
}

/* Tablet */
@media (max-width: 1024px) {
	.padra-service-branches__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile */
@media (max-width: 600px) {
	.padra-service-branches {
		--padra-branch-gap: 12px;
		--padra-branch-height: 82px;
		--padra-branch-radius: 16px;
	}

	.padra-service-branches__grid {
		grid-template-columns: 1fr;
	}

	.padra-service-branches__card {
		padding: 13px 14px;
	}

	.padra-service-branches__title {
		font-size: 15px;
	}

	.padra-service-branches__city {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.padra-service-branches__card,
	.padra-service-branches__card::before,
	.padra-service-branches__arrow,
	.padra-service-branches__city {
		transition-duration: 0.01ms !important;
	}
}




/* Other Branches: three cards on desktop */
.padra-service-branches--count-3
.padra-service-branches__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Tablet: two columns */
@media (max-width: 1024px) {
	.padra-service-branches--count-3
	.padra-service-branches__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile: one column */
@media (max-width: 600px) {
	.padra-service-branches--count-3
	.padra-service-branches__grid {
		grid-template-columns: 1fr;
	}
}