.agencies-map-tabs-links {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	align-items: center;
	justify-content: center;
	text-align: center;
}

.agencies-map-tabs-link a {
	display: block;
	padding: 15px 5px;
	transition: 0.5s;
	border: 2px solid var(--red);
}

.agencies-map-tabs-link.active a,
.agencies-map-tabs-link:hover a {
	background: var(--red);
	color: white;
	font-weight: bold;
}

.agencies-map-tabs-link + .agencies-map-tabs-link a {
	border-left-width: 1px;
}

.agencies-map-tabs-link:not(:last-child) a {
	border-right-width: 1px;
}

.agencies-map-tabs {
	display: block;
	width: 100%;
}

.agencies-map-tab {
	display: none;
}

.agencies-map-tab.active {
	display: grid;
	grid-template-columns: 2fr 1fr;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 600px;
}

.agencies-map-tab__description {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 15px;
	padding: 15px;
	background: #f4f4f4;
}

.agencies-map-tab__title {
	color: var(--red);
	font-weight: bold;
	text-transform: uppercase;
}

.agencies-map-tab__phone {
	font-weight: bold;
}

@media screen and (max-width: 815px) {
	.agencies-map-tabs-links {
		grid-template-columns: repeat(2, 1fr);
	}

    .agencies-map-tabs-link:nth-child(odd) a {
        border-right-width: 1px;
        border-left-width: 2px;
    }

    .agencies-map-tabs-link:nth-child(even) a {
        border-right-width: 2px;
        border-left-width: 1px;
    }

    .agencies-map-tabs-link:nth-child(1) a, .agencies-map-tabs-link:nth-child(2) a {
        border-bottom-width: 1px;
    }

    .agencies-map-tabs-link:nth-child(3) a, .agencies-map-tabs-link:nth-child(4) a {
        border-top-width: 1px;
    }

    .agencies-map-tab.active {
        grid-template-columns: 1fr;
    }
}
