/*
Theme Name: Körzetszám kereső SEO
Description: SEO-optimalizált téma a korzetszam.keresok.info oldalhoz (a Leggero megjelenésére építve).
Version: 1.0.0
Author: korzetszam.keresok.info
Requires PHP: 7.2
Text Domain: korzetszam-seo
*/

:root {
	--red: #b83c32;
	--red-dark: #8f2c24;
	--ink: #1d1d1d;
	--muted: #555;
	--line: #d9d9d9;
	--panel: rgba(255, 255, 255, 0.95);
	--zebra: #f6f2f1;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
	margin: 0;
	color: var(--ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.5;
	background: #3a3a3a url("imgs/back.jpg") no-repeat fixed center top;
	background-size: cover;
}

a { color: var(--red); font-weight: 600; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ===== Elrendezés ===== */
#body-container {
	max-width: 1060px;
	margin: 0 auto;
	padding: 8px;
	background: rgba(0, 0, 0, 0.75);
}

#head {
	margin: 4px 4px 12px;
	padding: 20px 24px;
	text-align: center;
	color: #fff;
	background: rgba(184, 60, 50, 0.85);
	border: 1px solid #000;
	border-radius: 10px;
}

#head .site-title { margin: 0; font-size: 2.1rem; font-weight: 700; letter-spacing: 1px; }
#head .site-title a { color: #fff; text-decoration: none; }
#head .subtitle { margin: .3em 0 .8em; font-style: italic; }

#outer-container { display: flex; gap: 16px; align-items: flex-start; }

#main {
	flex: 1 1 auto;
	min-width: 0;
	padding: 24px;
	background: var(--panel);
	border-radius: 4px;
}

#column {
	flex: 0 0 250px;
	color: #fff;
	font-size: .95rem;
}

@media (max-width: 760px) {
	#outer-container { flex-direction: column; }
	#column { flex-basis: auto; width: 100%; }
	#main { padding: 16px; }
	#head .site-title { font-size: 1.6rem; }
}

/* ===== Kereső ===== */
.search-form { display: flex; gap: 6px; max-width: 520px; margin: 0 auto; }
.search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: .6em .8em;
	font-size: 1rem;
	border: 1px solid #999;
	border-radius: 4px;
}
.search-form button {
	padding: .6em 1.1em;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	background: var(--red-dark);
	border: 1px solid #000;
	border-radius: 4px;
	cursor: pointer;
}
.search-form button:hover { background: #6e211b; }
#main .search-form { margin: 1em 0; }

/* ===== Tipográfia ===== */
h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.08rem; margin: 1.2em 0 .3em; }
#main p { margin: .6em 0; }
#main ul, #main ol { padding-left: 1.4em; }
.lead { font-size: 1.15rem; }
.small, small { font-size: .85rem; color: var(--muted); }

/* ===== Morzsamenü ===== */
.breadcrumb ol { list-style: none; margin: 0 0 1em; padding: 0 !important; font-size: .9rem; color: var(--muted); }
.breadcrumb li { display: inline; }
.breadcrumb li + li::before { content: "›"; margin: 0 .45em; }

/* ===== Adatdoboz, táblázatok ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1em 0; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { padding: .5em .6em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--red); color: #fff; white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--zebra); }
td.num, th.num { text-align: center; white-space: nowrap; }

.facts { max-width: 560px; }
.facts th { width: 42%; background: var(--zebra); color: var(--ink); font-weight: 600; }

.dial {
	margin: 1em 0;
	padding: 12px 16px;
	background: #fff7f6;
	border-left: 4px solid var(--red);
	border-radius: 3px;
}
.dial code { font-size: 1.05rem; font-weight: 700; font-family: inherit; white-space: nowrap; }

/* ===== Link-listák ===== */
ul.town-list, ul.link-grid {
	list-style: none;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 4px 14px;
}
ul.link-grid.narrow { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
ul.link-grid.narrow a { display: block; text-align: center; padding: .3em 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; }

/* ===== GYIK ===== */
.faq h3 { margin-bottom: .1em; }
.faq p { margin-top: 0; }

/* ===== Térkép ===== */
.map { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 420px; border: 0; }

/* ===== Oldalsáv ===== */
#column .widget { margin: 0 0 1.2em; }
#column h2 { margin: 0 0 .4em; font-size: 1.05rem; color: #fff; }
#column ul { list-style: none; margin: 0; padding: 0; }
#column li { margin: .15em 0; }
#column a { color: #ffd6d2; font-weight: 600; }
#column ul.ksz-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
#column ul.ksz-grid a { display: block; text-align: center; padding: .2em 0; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; }

/* ===== Lábléc ===== */
#footer { clear: both; padding: 12px; text-align: center; color: #fff; font-size: .9rem; }
#footer a { color: #ffd6d2; }
#footer .small { color: #ccc; }

/* ===== Lapozás ===== */
.pagination { margin: 1.5em 0; }
.pagination .page-numbers { display: inline-block; padding: .3em .7em; margin: 0 2px; border: 1px solid var(--line); border-radius: 3px; }
.pagination .current { background: var(--red); color: #fff; }

@media print {
	body { background: none; }
	#column, #head form, .map, #footer { display: none; }
	#body-container, #main { background: none; padding: 0; }
}
