/* Stránka pobočky (COMCO-88) — obsah z admin/pobocky, šablóna template/default/branch_detail.php.
   Samostatný súbor načítaný len na stránkach pobočiek, s ?v=<čas zmeny súboru> (.htaccess dáva
   css ročnú cache). Farby z comco.css: žltá #ffe41a, tmavá #252525, sivé #f5f5f5/#dcdcdc. */

.br { margin: 6px 0 24px; color: #252525; }
.br .br-h { font-size: 20px; margin: 28px 0 12px; }
.br .br-h3 { font-size: 15px; margin: 18px 0 8px; }

/* --- kontakt vľavo, mapa a fotky vpravo ---------------------------------------------- */
.br-top {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 20px;
	align-items: start;
}
.br-card {
	background: #f5f5f5;
	border: 1px solid #dcdcdc;
	border-radius: 6px;
	padding: 16px 18px;
}
.br-card .br-h { margin-top: 20px; font-size: 18px; }

.br-status {
	display: inline-block;
	margin-bottom: 12px;
	padding: 4px 10px;
	border-radius: 14px;
	font-size: 13px;
	font-weight: 600;
}
.br-status[hidden] { display: none; }
.br-status.br-open { background: #e3f4e4; color: #1b5e20; }
.br-status.br-shut { background: #fdecea; color: #b71c1c; }

.br-contact { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.45; }
.br-contact li { display: flex; gap: 10px; margin: 0 0 8px; }
.br-contact li i { width: 18px; text-align: center; color: #565656; padding-top: 3px; flex: 0 0 18px; }
.br-contact a { color: #252525; text-decoration: underline; text-underline-offset: 2px; }

.br-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* .br .br-btn, nie len .br-btn: web ma .mainContainer a s underline !important a to by vyhralo */
.br .br-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	background: #ffe41a;
	border: 1px solid #e6b720;
	border-radius: 4px;
	color: #252525 !important;
	font-weight: 600;
	text-decoration: none !important;
}
.br .br-btn:hover, .br .br-btn:focus { background: #fad720; }
.br .br-btn.br-btn-sec { background: #fff; border-color: #dcdcdc; }
.br .br-btn.br-btn-sec:hover, .br .br-btn.br-btn-sec:focus { border-color: #e6b720; }

.br-hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.br-hours th, .br-hours td { padding: 5px 6px; border-bottom: 1px solid #e3e3e3; text-align: left; vertical-align: top; }
.br-hours th { font-weight: normal; width: 45%; }
.br-hours td { text-align: right; white-space: nowrap; }
.br-hours tr.br-closed td { color: #777; }
.br-hours tr.br-today th, .br-hours tr.br-today td { font-weight: 700; background: #fff7b8; }
.br-hours .br-note { display: block; color: #777; font-size: 12px; font-weight: normal; }
.br-hours tr.br-special td { color: #b00000; }

.br-side .br-h { margin-top: 18px; font-size: 18px; }

/* mapa = Leaflet; isolation drzi jeho z-indexy (400 az 1000) vnutri mapy, inak by
   prekryla lepiacu hlavicku webu */
.br-map { position: relative; }
.br-map-canvas {
	height: 420px;
	border: 1px solid #dcdcdc;
	border-radius: 6px;
	overflow: hidden;
	isolation: isolate;
	background: #e8e8e8;
}
.br-map-canvas iframe { display: block; width: 100%; height: 100%; border: 0; }
.br-map-link { display: inline-block; margin-top: 6px; font-size: 13px; color: #565656; }
.br .leaflet-bar a { text-decoration: none !important; }

.br-map-toggle { display: flex; background: #fff; overflow: hidden; }
.br .br-map-toggle button {
	appearance: none;
	margin: 0;
	padding: 7px 13px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #252525;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
.br .br-map-toggle button + button { border-left: 1px solid #ccc; }
.br .br-map-toggle button:hover { background: #f5f5f5; }
.br .br-map-toggle button[aria-pressed=true] { background: #ffe41a; }

/* fotky pod mapou: prva velka, dalsie ako nahlady */
.br-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 8px;
}
.br-gallery a { display: block; border-radius: 6px; overflow: hidden; border: 1px solid #dcdcdc; background: #f5f5f5; }
.br-gallery a:first-child { grid-column: 1 / -1; }
.br-gallery img { display: block; width: 100%; height: 100px; object-fit: cover; transition: transform .2s; }
.br-gallery a:first-child img { height: 300px; }
.br-gallery a:hover img, .br-gallery a:focus img { transform: scale(1.03); }

/* --- služby, platby, príchod ---------------------------------------------------------- */
.br-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 28px; }
.br-list { list-style: none; margin: 0; padding: 0; }
.br-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eee; font-size: 15px; }
.br-list li i { width: 22px; text-align: center; color: #565656; flex: 0 0 22px; }

.br-access { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.br-access-item { background: #f5f5f5; border: 1px solid #dcdcdc; border-radius: 6px; padding: 12px 14px; font-size: 14px; line-height: 1.55; }
.br-access-title { font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.br-access-title i { color: #565656; }

.br-desc { margin-top: 28px; font-size: 15px; line-height: 1.6; }
.br-desc p { margin-bottom: 10px; }

/* --- mobil ---------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.br-top { grid-template-columns: 1fr; }
	.br-map-canvas { height: 300px; }
	.br-gallery { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
	.br-gallery a:first-child img { height: 220px; }
	.br .br-h { font-size: 18px; margin-top: 22px; }
}
