/* =====================================================
   Template wtoruniueu-v4
   Joomla 4 / 5 / 6 + PHP 8.3+
   Menu boczne = WYMUSZONE przyciski (działa bez chrome)
   Baner = zdjęcia zabytków Torunia
   ===================================================== */

* { box-sizing: border-box; }

body, html {
	padding: 0; margin: 0; margin-bottom: 10px;
	font-family: "Segoe UI", system-ui, -apple-system, Arial, Verdana, sans-serif;
	font-size: 15px; color: #1a1a1a; line-height: 1.55;
}

#body_bg { text-align: center; background-color: #e8eef5; }

img { border: 0; max-width: 100%; height: auto; }

a:link, a:visited { text-decoration: none; color: #1a6bb5; }
a:hover { color: #0d4a80; text-decoration: underline; }

.clear { clear: both; height: 0; overflow: hidden; }

/* ========== BANER ========== */
#headerconteiner { width: 100%; position: relative; z-index: 100; }

.torun-banner {
	width: 100%; min-height: 270px;
	background:
		linear-gradient(180deg, rgba(6,24,48,0.5) 0%, rgba(10,35,65,0.8) 100%),
		linear-gradient(135deg, #061830 0%, #0d2d4a 40%, #1a4a7a 70%, #0a2540 100%);
	position: relative; overflow: hidden;
}

.torun-banner::before {
	content: ""; position: absolute; inset: 0;
	background:
		repeating-linear-gradient(0deg, transparent, transparent 12px, rgba(255,255,255,0.012) 12px, rgba(255,255,255,0.012) 13px),
		repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(255,255,255,0.018) 30px, rgba(255,255,255,0.018) 31px);
	pointer-events: none;
}

.torun-banner::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
	background: linear-gradient(90deg, transparent, #c9a227 15%, #ffd700 50%, #c9a227 85%, transparent);
	pointer-events: none;
}

.banner-overlay {
	position: relative; z-index: 2;
	padding: 26px 18px 22px;
	max-width: 1180px; margin: 0 auto;
}

.banner-content {
	display: flex; flex-wrap: wrap;
	align-items: center; justify-content: space-between; gap: 18px;
}

.banner-logo-area { flex: 1 1 240px; text-align: left; }

.site-logo { display: inline-block; color: #fff !important; text-decoration: none !important; }

.logo-text {
	display: block; font-size: 34px; font-weight: 800;
	color: #ffd700; text-shadow: 0 2px 8px rgba(0,0,0,0.5); line-height: 1.1;
}

.logo-sub {
	display: block; font-size: 13px; color: rgba(255,255,255,0.92);
	margin-top: 6px; max-width: 340px; line-height: 1.4;
}

#headermod { margin-top: 8px; color: #fff; font-size: 13px; }
#headermod p { color: #fff; margin: 0; }

/* Zabytki – zdjęcia */
.landmarks-strip {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
	gap: 12px; flex: 2 1 480px; padding: 4px 0;
}

.landmark,
a.landmark-link {
	display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
	width: 100px; height: 110px;
	padding: 0; overflow: hidden;
	border-radius: 12px;
	border: 2px solid rgba(255,215,0,0.4);
	box-shadow: 0 4px 14px rgba(0,0,0,0.3);
	background: #0d2d4a;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
	text-decoration: none !important; color: #fff !important;
	cursor: default; position: relative;
}

a.landmark-link { cursor: pointer; }

.landmark:hover,
a.landmark-link:hover {
	transform: translateY(-4px);
	border-color: #ffd700;
	box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}

.lm-photo {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}

.lm-name {
	position: relative; z-index: 2;
	width: 100%;
	padding: 6px 4px;
	font-size: 11px; font-weight: 700;
	text-align: center; color: #fff;
	background: linear-gradient(transparent, rgba(0,0,0,0.75));
	text-shadow: 0 1px 2px rgba(0,0,0,0.8);
	line-height: 1.2;
}

/* Szukajka */
#srch { flex: 0 0 auto; }
#srch .search-query, #srch .inputbox {
	padding: 10px 18px; border: 1px solid rgba(255,255,255,0.4);
	border-radius: 24px; background: rgba(255,255,255,0.12);
	color: #fff; font-size: 13px; width: 190px; outline: none;
}
#srch .search-query::placeholder { color: rgba(255,255,255,0.65); }
#srch .search-query:focus {
	background: rgba(255,255,255,0.22); border-color: #ffd700;
	box-shadow: 0 0 0 3px rgba(255,215,0,0.25);
}

.element-invisible {
	position: absolute !important; height: 1px; width: 1px;
	overflow: hidden; clip: rect(1px,1px,1px,1px);
}

/* Nawigacja górna */
#nav { background: #061830; min-height: 46px; text-align: center; }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 12px; }
#nav ul { list-style: none; margin: 0; padding: 0; display: inline-block; }
#nav li { display: inline-block; position: relative; }
#nav li a {
	display: block; padding: 14px 20px; color: #fff !important;
	font-size: 14px; font-weight: 600; text-decoration: none !important;
}
#nav li a:hover, #nav li.active a, #nav li:hover > a {
	background: #c9a227; color: #061830 !important;
}
#nav li ul {
	display: none; position: absolute; top: 100%; left: 0;
	background: #061830; min-width: 200px; z-index: 200;
	text-align: left; box-shadow: 0 8px 20px rgba(0,0,0,0.4);
	border-radius: 0 0 8px 8px;
}
#nav li:hover > ul { display: block; }
#nav li li { display: block; }
#nav li li a { padding: 11px 18px; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.08); }

#navborder {
	height: 4px;
	background: linear-gradient(90deg, #c9a227, #ffd700, #c9a227);
}

/* Main */
#mainconteiner {
	max-width: 1180px; margin: 0 auto;
	padding: 0 14px 28px; text-align: left;
	background: #fff; box-shadow: 0 0 28px rgba(0,0,0,0.06);
}
#mainconteiner.fluid { max-width: 100%; width: 98%; }
#mainconteiner.\31 000px { max-width: 1000px; }

.module-row { margin: 16px 0; }
.row-table { display: table; width: 100%; table-layout: fixed; }
.mod-cell { display: table-cell; vertical-align: top; padding: 0 8px; }
.mod-cell:first-child { padding-left: 0; }
.mod-cell:last-child { padding-right: 0; }

.header-bar {
	display: flex; justify-content: space-between; align-items: center;
	padding: 12px 0; border-bottom: 1px solid #e2e8f0;
	margin-bottom: 16px; font-size: 13px;
}
.header-bar .pw { flex: 1; }
.header-bar .date { font-weight: 600; color: #c9a227; white-space: nowrap; padding-left: 16px; }

.maincontent-wrapper { display: table; width: 100%; table-layout: fixed; }
.lcol, .rcol, .content-area { display: table-cell; vertical-align: top; }
.lcol { width: 250px; padding-right: 20px; }
.rcol { width: 250px; padding-left: 20px; }
.content-area { width: auto; }
.content-area.fullwidth { width: 100%; }

.sidebar-inner { display: flex; flex-direction: column; gap: 14px; }

/* =========================================================
   MENU BOCZNE – WYMUSZONE PRZYCISKI
   Działa na KAŻDYM module menu w .lcol / .rcol / aside
   bez konieczności ustawiania chrome "sidebar"
   ========================================================= */

/* Kontener modułu */
.lcol .moduletable,
.rcol .moduletable,
.lcol .moduletable_menu,
.rcol .moduletable_menu,
.lcol .mod-sidebar,
.rcol .mod-sidebar,
aside .moduletable,
aside .mod-sidebar {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	margin-bottom: 14px !important;
	width: 100% !important;
}

/* Nagłówek modułu */
.lcol .moduletable > th,
.rcol .moduletable > th,
.lcol .moduletable_menu > th,
.rcol .moduletable_menu > th,
.lcol .moduletable th,
.rcol .moduletable th,
.lcol .moduletable_menu th,
.rcol .moduletable_menu th,
.mod-sidebar-header {
	display: block !important;
	background: linear-gradient(135deg, #0d2d4a 0%, #1a4a7a 100%) !important;
	color: #ffd700 !important;
	padding: 12px 14px !important;
	border-radius: 10px !important;
	margin-bottom: 10px !important;
	text-align: center !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	border: none !important;
	box-shadow: 0 3px 10px rgba(13,45,74,0.25) !important;
}

.lcol .moduletable th span,
.rcol .moduletable th span,
.mod-sidebar-title {
	color: #ffd700 !important;
}

.lcol .moduletable td,
.rcol .moduletable td,
.lcol .moduletable_menu td,
.rcol .moduletable_menu td {
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
}

/* LISTA → kolumna przycisków */
.lcol ul,
.rcol ul,
aside ul,
.lcol .nav,
.rcol .nav,
.lcol .mod-menu,
.rcol .mod-menu,
.lcol .menu,
.rcol .menu,
.mod-sidebar-body ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
}

.lcol li,
.rcol li,
aside li,
.mod-sidebar-body li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
}

.lcol li::before,
.rcol li::before,
.lcol li::marker,
.rcol li::marker,
aside li::before,
aside li::marker {
	content: none !important;
	display: none !important;
}

/* KAŻDY link w bocznej kolumnie = przycisk */
.lcol a,
.rcol a,
aside a,
.mod-sidebar-body a,
.lcol .moduletable a,
.rcol .moduletable a,
.lcol .moduletable_menu a,
.rcol .moduletable_menu a {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	width: 100% !important;
	min-height: 46px !important;
	padding: 12px 14px !important;
	margin: 0 !important;
	background: #eef3f9 !important;
	color: #0d2d4a !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
	border: 1px solid #b8c9de !important;
	border-radius: 10px !important;
	box-shadow: 0 2px 6px rgba(13,45,74,0.1) !important;
	transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s !important;
}

.lcol a:hover,
.rcol a:hover,
aside a:hover,
.mod-sidebar-body a:hover,
.lcol .moduletable a:hover,
.rcol .moduletable a:hover {
	background: #1a4a7a !important;
	color: #ffd700 !important;
	border-color: #1a4a7a !important;
	box-shadow: 0 4px 12px rgba(13,45,74,0.3) !important;
	transform: translateY(-1px) !important;
	text-decoration: none !important;
}

.lcol li.active > a,
.rcol li.active > a,
.lcol li.current > a,
.rcol li.current > a,
.lcol a.active,
.rcol a.active,
aside li.active > a,
aside li.current > a {
	background: #0d2d4a !important;
	color: #ffd700 !important;
	border-color: #c9a227 !important;
	box-shadow: 0 3px 10px rgba(13,45,74,0.35) !important;
	font-weight: 700 !important;
}

/* Zagnieżdżone */
.lcol ul ul,
.rcol ul ul,
aside ul ul {
	margin-top: 6px !important;
	padding-left: 8px !important;
	gap: 6px !important;
}

.lcol ul ul a,
.rcol ul ul a {
	min-height: 40px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	background: #e4ebf4 !important;
	border-radius: 8px !important;
}

/* Nie zmieniaj linków w treści głównej ani w buycoffee / innych widgetach w left jeśli to nie menu – 
   ale buycoffee button też wygląda OK jako przycisk */

/* Karty */
.mod-card {
	background: #fff; border: 1px solid #e2e8f0;
	border-radius: 10px; overflow: hidden; margin-bottom: 12px;
	box-shadow: 0 1px 5px rgba(0,0,0,0.04);
}
.mod-card-header {
	background: #f1f5f9; padding: 11px 15px; border-bottom: 2px solid #c9a227;
}
.mod-card-title { margin: 0; font-size: 15px; font-weight: 700; color: #0d2d4a; }
.mod-card-body { padding: 13px 15px; }

#content { padding: 4px 0 18px; }
h1 { font-size: 24px; color: #0d2d4a; margin: 10px 0 12px; font-weight: 700; }
h2, h2 a:link {
	font-size: 18px; color: #1a4a7a; border-bottom: 2px solid #c9a227;
	padding-bottom: 5px; margin: 14px 0 10px; font-weight: 600;
}
h3 { font-size: 15px; color: #334155; margin: 12px 0 6px; font-weight: 600; }

.foot {
	max-width: 1180px; margin: 28px auto 40px; padding: 24px 18px;
	text-align: center; background: #061830; color: #cbd5e1;
	font-size: 13px; border-radius: 10px;
}
.foot a { color: #ffd700; }
.foot p { margin: 0; color: #cbd5e1; }
#footertext { margin-bottom: 12px; }

button, .button {
	font-size: 13px; color: #1e293b; border: 1px solid #cbd5e1;
	margin: 3px; background: #f8fafc; padding: 7px 15px;
	cursor: pointer; border-radius: 6px;
}

.inputbox {
	color: #0f172a; background: #fff; border: 1px solid #cbd5e1;
	margin: 3px; padding: 7px 11px; border-radius: 6px;
}

@media (max-width: 960px) {
	.maincontent-wrapper { display: block; }
	.lcol, .rcol, .content-area {
		display: block; width: 100% !important; padding: 0 0 18px 0 !important;
	}
	.landmarks-strip { gap: 10px; }
	.landmark, a.landmark-link { width: 88px; height: 100px; }
	.logo-text { font-size: 28px; }
	.row-table { display: block; }
	.mod-cell { display: block; width: 100% !important; padding: 0 0 12px 0 !important; }
}

@media (max-width: 600px) {
	.torun-banner { min-height: 210px; }
	.banner-content { flex-direction: column; text-align: center; }
	.banner-logo-area { text-align: center; }
	.logo-sub { margin: 5px auto 0; }
	#srch .search-query { width: 100%; max-width: 280px; }
}
