/* Branch office photo cards — resources/views/partials/branch-cards.blade.php */
.brc-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
}
.brc-grid .brc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e5e9f2;
	border-radius: 14px;
	background: #fff;
	color: #0b1f3a !important;
	text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.brc-grid .brc-card:hover,
.brc-grid .brc-card:focus-visible {
	transform: translateY(-3px);
	border-color: #c9d6fb;
	box-shadow: 0 12px 28px -10px rgba(15, 23, 42, .25);
	outline: none;
}
.brc-grid .brc-card.is-active { border-color: #038bff; box-shadow: 0 0 0 2px rgba(3, 139, 255, .25); }
.brc-grid .brc-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e8edf5;
}
.brc-grid .brc-media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	border-radius: 0 !important;
	transition: transform .5s ease;
}
.brc-grid .brc-card:hover .brc-media img { transform: scale(1.07); }
.brc-grid .brc-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 31, 58, 0) 55%, rgba(11, 31, 58, .35));
	pointer-events: none;
}
.brc-grid .brc-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.brc-grid .brc-region {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #038bff;
	line-height: 1.3;
}
.brc-grid .brc-name {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #0b1f3a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.brc-grid .brc-name svg { width: 14px; height: 14px; flex: 0 0 14px; color: #94a3b8; }
.brc-grid .brc-card:hover .brc-name svg { color: #038bff; }
.brc-grid .brc-landmark {
	font-size: 12px;
	color: #64748b;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.brc-credits { margin-top: 14px; font-size: 12px; color: #94a3b8; }
.brc-credits summary { cursor: pointer; width: max-content; }
.brc-credits summary:hover { color: #64748b; }
.brc-credits p { margin: 6px 0 0; line-height: 1.7; }
.brc-credits a { color: #64748b !important; text-decoration: underline; }

@media (max-width: 1100px) { .brc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) { .brc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 560px) {
	.brc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.brc-grid .brc-body { padding: 8px 10px 10px; }
	.brc-grid .brc-name { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.brc-grid .brc-card, .brc-grid .brc-media img { transition: none; }
	.brc-grid .brc-card:hover { transform: none; }
	.brc-grid .brc-card:hover .brc-media img { transform: none; }
}
