/* Nowy wygląd BaSI – warstwa nad starym szablonem templatemo (css/templatemo_style.css):
   czcionka Inter (fonts/, bez zewnętrznych serwerów), kolory z logo, bez grafik tła szablonu, nowe ikony (images/icons/).
   Wczytywany po pozostałych arkuszach, przed css/mobile.css (index.php). */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(/fonts/inter-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(/fonts/inter-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--b-navy: #1d3c5c;       /* granat z napisu w logo */
	--b-navy-2: #2c5379;
	--b-orange: #c0561d;     /* pomarańcz z logo */
	--b-orange-2: #a8481a;
	--b-text: #2b2f36;
	--b-muted: #6b7380;
	--b-line: #e3e7ec;
	--b-soft: #f5f7fa;
	--b-link: #1f6fb5;
}

body {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: var(--b-text);
	background: #fff;
}
input, select, textarea, button { font-family: inherit; }
a:link, a:visited { color: var(--b-link); }
a:active, a:hover { color: var(--b-orange); text-decoration: underline; }
h1, h2, h3 { letter-spacing: -0.01em; }
h2 { color: var(--b-navy); font-size: 22px; line-height: 1.25; font-weight: 700; }
h3 { color: var(--b-navy); font-weight: 600; }

/* --- nagłówek: logo z lewej, menu u góry, wyszukiwarka i język pod nim --- */
#templatemo_site_title_bar_wrapper { height: auto; background: #fff; border-bottom: 1px solid var(--b-line); box-shadow: 0 1px 6px rgba(29, 60, 92, .06); }
#templatemo_site_title_bar { height: auto; padding: 12px 10px; background: none;
	display: grid; grid-template-columns: 280px auto 1fr; grid-template-areas: "logo menu menu" "logo lang search"; align-items: center; row-gap: 8px; }
#site_title { grid-area: logo; float: none; width: auto; padding: 0; }
#site_title h1 a { justify-content: flex-start; }
#site_title h1 a img { width: 62px; height: 74px; }
#site_title h1 a span { color: var(--b-orange); font-weight: 700; letter-spacing: .3px; font-size: 16px; line-height: 1.3; width: 190px; }
#templatemo_site_title_bar #templatemo_menu { grid-area: menu; justify-self: end; float: none; height: auto; padding: 0; display: flex; gap: 2px; }
#templatemo_menu li a { float: none; position: static; height: auto; margin: 0; padding: 6px 12px; border-radius: 6px;
	font-size: 14px; font-weight: 600; color: var(--b-navy); background: none; }
#templatemo_menu li a span { display: none; }
#templatemo_menu li a:hover { color: var(--b-orange); background: var(--b-soft); text-decoration: none; }
#templatemo_menu li .current, #templatemo_menu li a.current:hover { color: var(--b-orange); background: #fbefe8; }
#templatemo_site_title_bar #lang_box { grid-area: lang; float: none; width: auto; height: auto; margin: 0 16px 0 0; padding: 0; color: var(--b-muted); }
#templatemo_site_title_bar #search_box { grid-area: search; justify-self: end; float: none; height: auto; margin: 0; padding: 0; }
#search_box form { float: none; display: flex; gap: 8px; height: auto; }
#searchfield { width: 320px !important; height: 38px !important; box-sizing: border-box; padding: 0 12px !important; font-size: 14px !important;
	border: 1px solid #c9d1db; border-radius: 8px; color: var(--b-text); background: #fff; }
#searchfield:focus { outline: none; border-color: var(--b-navy-2); box-shadow: 0 0 0 3px rgba(44, 83, 121, .15); }
#searchbutton { width: auto !important; min-width: 110px; height: 38px !important; padding: 0 18px; border: 0; border-radius: 8px;
	background: var(--b-orange); color: #fff; font-size: 14px; font-weight: 600; }
#searchbutton:hover { background: var(--b-orange-2); }
#lang_box select { height: 30px; border: 1px solid #c9d1db; border-radius: 6px; padding: 0 6px; background: #fff; color: var(--b-text); }

/* pasek „Poznań Project / Wyszukiwanie rozszerzone” i panel wyszukiwania rozszerzonego */
#templatemo_banner_wrapper_outter { background: none; }
#templatemo_banner_top { height: auto; background: var(--b-soft); border-bottom: 1px solid var(--b-line); }
#templatemo_banner_top_inside { height: 34px; display: flex; align-items: center; justify-content: space-between; }
#top_links, #top_expand { float: none; width: auto; margin: 0; line-height: 34px; font-size: 13px; }
#top_links { margin-left: 290px; color: var(--b-muted); }
#top_links span { color: var(--b-muted) !important; }
#top_expand a { font-weight: 600; }
#search_slider { height: auto; min-height: 0; background: var(--b-soft); border-bottom: 1px solid var(--b-line); }
#search_ext_body { height: auto; max-height: 420px; border: 0; padding: 10px 0; }
#templatemo_banner_bottom { height: 0; background: none; }

/* --- treść --- */
#templatemo_content { padding: 24px 20px 30px; }
#templatemo_content #twitter_section p.head { color: var(--b-navy) !important; font-weight: 300; letter-spacing: -0.02em; }
#templatemo_content #twitter_section p.head b { font-weight: 700; color: var(--b-orange); }
.box h2 { color: var(--b-navy); font-size: 19px; margin-bottom: 14px; }
.box_border { border-right: 1px solid var(--b-line); }
.box .box_image_wrapper { margin-right: 16px; }
img.box_icon { width: 30px; height: 30px; padding: 11px; border-radius: 12px; background: #fbefe8; }
.button_01 a { display: inline-block; width: auto; height: auto; padding: 6px 16px; border: 1px solid var(--b-navy); border-radius: 999px;
	background: #fff; color: var(--b-navy); font-size: 13px; font-weight: 600; line-height: 1.3; }
.button_01 a:hover { background: var(--b-navy); color: #fff; text-decoration: none; }
.button_01 br { display: none; }
.news_box { border-bottom: 1px solid var(--b-line); padding-bottom: 8px; }
.news_box a { color: var(--b-link); }
.news_box .post_info a { color: var(--b-navy); font-weight: 600; }
.support-box h3 { color: var(--b-navy); }
.box input[type=text], .box input[type=password] { border: 1px solid #c9d1db; border-radius: 6px; padding: 4px 8px; }

/* wyniki wyszukiwania */
.result_box { border-bottom: 1px solid var(--b-line); }

/* --- stopka --- */
#templatemo_footer_wrapper { background: var(--b-navy); }
#templatemo_footer { padding: 24px 10px; color: #c9d6e3; font-size: 13px; }
#templatemo_footer a { color: #fff; }

/* wyszukiwanie rozszerzone: pola i przycisk jak w nagłówku */
#search_slider input[type=text], #search_slider select { height: 30px; box-sizing: border-box; border: 1px solid #c9d1db; border-radius: 6px; padding: 0 8px; background: #fff; color: var(--b-text); }
#search_slider input[type=text][style*="transparent"] { border: 0; background: transparent !important; padding: 0; height: auto; }
#search_ext_button input, #AdvSearch { width: 150px; height: 40px; border: 0; border-radius: 8px; background: var(--b-orange); color: #fff;
	font-size: 15px; font-weight: 600; cursor: pointer; }
#search_ext_button input:hover, #AdvSearch:hover { background-color: var(--b-orange-2); }

/* tło nagłówka: ciepły odcień papieru (jak rude logo), ku dołowi jaśniejszy */
#templatemo_site_title_bar_wrapper {
	background: linear-gradient(180deg, #f9eadc 0%, #fdf7f1 100%);
	border-bottom: 1px solid #ecdccd;
}

/* ===== więcej życia i czytelności: kontrast, karty, akcenty ===== */
body { font-size: 15px; line-height: 1.6; color: #1f2933; }
#templatemo_content p { color: #2b3440; }
a:link, a:visited { color: #0b62b0; }

/* pasek pod nagłówkiem – granatowy */
#templatemo_banner_top { background: var(--b-navy); border-bottom: 0; }
#top_links, #top_links span { color: #c9d6e3 !important; }
#top_links a, #top_expand a { color: #fff !important; }
#top_expand a { background: rgba(255, 255, 255, .12); padding: 3px 12px; border-radius: 999px; }
#top_expand a:hover { background: var(--b-orange); text-decoration: none; }

/* blok z liczbą wpisów */
#templatemo_content #twitter_section { margin: 6px 0 26px; }
#templatemo_content #twitter_section p.head { box-sizing: border-box; margin: 0; padding: 26px 20px; border-radius: 14px; text-align: center;
	background: linear-gradient(135deg, var(--b-navy) 0%, #2c5379 100%); color: #fff !important; font-size: 30px !important; font-weight: 400;
	box-shadow: 0 6px 20px rgba(29, 60, 92, .18); }
#templatemo_content #twitter_section p.head b { color: #ffb27a; font-weight: 800; }

/* nagłówki sekcji z pomarańczowym akcentem */
#templatemo_content h2 { font-size: 24px; color: var(--b-navy); }
.section_w450 > h2, .section_w450 > div > h2, .support-box h3 { position: relative; padding-bottom: 8px; margin-bottom: 14px; }
.section_w450 > h2::after, .section_w450 > div > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 2px; background: var(--b-orange); }

/* trzy kafelki na stronie głównej jako karty */
.section_w940 > .box { box-sizing: border-box; width: 300px; min-height: 272px; padding: 20px; margin-right: 20px; background: #fff;
	border: 1px solid var(--b-line); border-radius: 14px; box-shadow: 0 4px 14px rgba(29, 60, 92, .07); transition: box-shadow .15s, transform .15s; }
.section_w940 > .box:not(.margin_r_20) { margin-right: 0; }
.section_w940 > .box:hover { box-shadow: 0 8px 22px rgba(29, 60, 92, .12); transform: translateY(-2px); }
.section_w940 > .box.box_border { border-right: 1px solid var(--b-line); }
.box h2 { font-size: 20px !important; }
img.box_icon { background: #fde6d6; }

/* przyciski – pełne */
.button_01 a { background: var(--b-navy); color: #fff !important; border-color: var(--b-navy); padding: 7px 18px; }
.button_01 a:hover { background: var(--b-orange); border-color: var(--b-orange); }

/* ostatnio dodane */
.news_box { padding: 10px 0; margin: 0; }
.news_box > a { font-weight: 600; color: var(--b-navy) !important; }
.news_box .post_info { color: #5a6472; }

/* wsparcie */
.support-box { background: #fff7ef; border: 1px solid #f1d9c4; border-radius: 12px; color: #3a3f47; }

/* stopka */
#templatemo_footer_wrapper { background: #16304a; }

/* Zawartość bazy (content.php): duża mapa, opis miejscowości w panelu na mapie */
#content_map { position: relative; margin: 0 0 20px; }
#content_map #map_canvas { width: 100%; margin: 0; box-sizing: border-box; height: min(75vh, 720px); min-height: 420px; border: 1px solid var(--b-line); border-radius: 12px; }   /* bez reguł mapy wyników (index.php: pełna szerokość okna) */
#content_map #map_info_box { position: absolute; top: 12px; right: 12px; z-index: 1000; box-sizing: border-box; width: 320px; max-height: calc(100% - 24px);
	overflow: auto; padding: 12px 14px; background: rgba(255, 255, 255, .96); border: 1px solid var(--b-line); border-radius: 10px;
	box-shadow: 0 4px 16px rgba(29, 60, 92, .15); font-size: 13px; }
#content_map #map_info_box[hidden] { display: none; }
#content_map #map_info { padding-right: 18px; }
.map-info-close { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--b-muted); font-size: 22px; line-height: 26px; cursor: pointer; }
.map-info-close:hover { background: var(--b-soft); color: var(--b-orange); }

/* rejestracja (register.php): formularz jako karta */
.reg-card { max-width: 620px; margin: 10px auto 30px; padding: 26px 28px; background: #fff; border: 1px solid var(--b-line); border-radius: 14px;
	box-shadow: 0 6px 20px rgba(29, 60, 92, .08); }
.reg-intro { color: var(--b-muted); margin: 0 0 18px !important; }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.reg-field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 5px; padding: 6px 8px; margin: -6px -8px; border-radius: 8px; transition: background .15s; }
.reg-field.reg-half { grid-column: auto; }
.reg-field:focus-within { background: var(--b-soft); }
.reg-field label { font-weight: 600; color: var(--b-navy); font-size: 14px; }
.reg-field input { height: 40px; box-sizing: border-box; padding: 0 12px; border: 1px solid #c9d1db; border-radius: 8px; font-size: 15px; background: #fff; }
.reg-field input:focus { outline: none; border-color: var(--b-navy-2); box-shadow: 0 0 0 3px rgba(44, 83, 121, .15); }
.reg-hint { min-height: 1.2em; font-size: 12.5px; color: var(--b-muted); line-height: 1.4; }
.reg-hint img { vertical-align: -3px; margin-right: 3px; }
.reg-submit { display: block; width: 100%; height: 46px; margin: 22px 0 0; border: 0; border-radius: 10px; background: var(--b-orange); color: #fff;
	font-size: 16px; font-weight: 700; cursor: pointer; }
.reg-submit:hover { background: var(--b-orange-2); }
.reg-note { text-align: center; color: var(--b-muted); font-size: 13px; margin-top: 10px !important; }
.reg-msg { max-width: 620px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 10px; }
.reg-msg ul { margin: 6px 0 0; padding-left: 20px; }
.reg-err { background: #fbeaea; border: 1px solid #f0c4c4; color: #8a1c1c; }
.reg-ok { background: #e9f6ec; border: 1px solid #bfe3c8; color: #1d5b2c; font-weight: 600; }

/* karty na stronie głównej: ikona, tytuł, treść, przycisk zawsze na dole po lewej */
.section_w940 > .box { display: flex; flex-direction: column; align-items: flex-start; }
.section_w940 > .box > .box_image_wrapper { order: -1; float: none; margin: 0 0 12px; }
.section_w940 > .box > h2 { margin: 0 0 8px; }
.section_w940 > .box > p { margin: 0 0 16px; }
.section_w940 > .box > .cleaner_h10 { display: none; }
.section_w940 > .box > .button_01, .box-login .button_01 { margin-top: auto; }
.box-login { display: flex; flex-direction: column; gap: 8px; width: 100%; flex: 1; }
.box-login label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 600; color: var(--b-navy); }
.box-login input { height: 36px; box-sizing: border-box; padding: 0 10px; border: 1px solid #c9d1db; border-radius: 8px; font-size: 14px; }
.box-login input:focus { outline: none; border-color: var(--b-navy-2); box-shadow: 0 0 0 3px rgba(44, 83, 121, .15); }
.box-login .button_01 { padding-top: 8px; }
.button_01 button { display: inline-block; padding: 7px 18px; border: 1px solid var(--b-navy); border-radius: 999px; background: var(--b-navy); color: #fff;
	font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.button_01 button:hover { background: var(--b-orange); border-color: var(--b-orange); }
/* trzy karty w jednym rzędzie o równej wysokości – przyciski w jednej linii */
.section_w940:has(> .box) { display: flex; align-items: stretch; gap: 20px; }
.section_w940:has(> .box) > .cleaner { display: none; }
.section_w940 > .box, .section_w940 > .box.margin_r_20 { margin-right: 0; min-height: 0; flex: 1 1 0; }

/* ===== szersza strona: 1200 px zamiast 940/960 px szablonu, płynnie węższa na mniejszych ekranach ===== */
:root { --page: 1200px; }
#templatemo_site_title_bar, #templatemo_content, #templatemo_banner_top_inside, #search_ext_body, #templatemo_footer {
	width: auto; max-width: var(--page); box-sizing: border-box; padding-left: 20px; padding-right: 20px; }
#templatemo_site_title_bar { padding-top: 12px; padding-bottom: 12px; }
#search_person_box, #templatemo_content #twitter_section, #templatemo_content #twitter_section p.head, .section_w940 { width: auto; }
.section_w450 { width: calc(50% - 20px); }
.result_box { width: auto; box-sizing: border-box; overflow: hidden; }
.result_box .lbox, .lbox { width: calc(100% - 210px); }
#templatemo_content [style*="width: 960px"], #templatemo_content [style*="width:960px"] { width: auto !important; max-width: 100%; }
#templatemo_content #twitter_section p.head { float: none; }   /* szablon: float:left – blok miał szerokość tekstu */

/* akceptacja regulaminu w rejestracji, strona regulaminu (regulamin.php) */
.reg-terms { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; font-size: 14px; line-height: 1.45; cursor: pointer; }
.reg-terms input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--b-orange); }
.terms { max-width: 820px; margin: 0 auto 30px; }
.terms h3 { margin: 26px 0 8px; font-size: 18px; color: var(--b-navy); }
.terms ol { margin: 0; padding-left: 22px; }
.terms li { margin: 0 0 6px; }
.terms-date { text-align: center; color: var(--b-muted); margin-top: -6px !important; }
.terms-lang { text-align: center; padding: 8px 12px; background: var(--b-soft); border-radius: 8px; }

/* stopka zawsze na dole okna, także na krótkich stronach (bez pustego miejsca pod nią) */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > * { flex-shrink: 0; }
#templatemo_content { width: 100%; }
#templatemo_footer_wrapper { margin-top: auto; }

/* okienko akceptacji regulaminu dla dotychczasowych użytkowników (index.php, includes/terms.php) */
.terms-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 30, 45, .55); }
.terms-modal-box { box-sizing: border-box; width: 100%; max-width: 520px; max-height: 100%; overflow: auto; padding: 22px 24px; background: #fff; border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.terms-modal-box h3 { margin: 0 0 10px; font-size: 20px; color: var(--b-navy); }
.terms-modal-box p { margin: 0 0 10px !important; }
.terms-modal-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 16px; }
.terms-btn-1 { padding: 9px 20px; border: 0; border-radius: 8px; background: var(--b-orange); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.terms-btn-1:hover { background: var(--b-orange-2); }
.terms-btn-2 { padding: 9px 16px; border: 1px solid #c9d1db; border-radius: 8px; background: #fff; color: var(--b-text) !important; font: inherit; cursor: pointer; text-decoration: none !important; }
.terms-modal-note { color: var(--b-muted); font-size: 12.5px; margin-top: 12px !important; }
.terms ol ol { margin: 6px 0; padding-left: 20px; }

/* baner zgody na pliki cookies (index.php) */
.cookie-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2500; max-width: 760px; margin: 0 auto; box-sizing: border-box;
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 18px; background: #fff; border: 1px solid var(--b-line);
	border-radius: 12px; box-shadow: 0 8px 30px rgba(15, 30, 45, .22); font-size: 13.5px; }
.cookie-consent[hidden] { display: none; }
.cookie-consent p { flex: 1 1 360px; margin: 0 !important; }
.cookie-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-buttons button { padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.cc-necessary { background: #fff; border: 1px solid #c9d1db; color: var(--b-text); }
.cc-all { background: var(--b-navy); border: 1px solid var(--b-navy); color: #fff; }
.cc-all:hover { background: var(--b-orange); border-color: var(--b-orange); }

/* uprawnienia użytkowników (profile_permissions.php) */
.perm-search { display: flex; gap: 8px; margin: 10px 0 18px; }
.perm-search input { flex: 1; height: 38px; padding: 0 12px; border: 1px solid #c9d1db; border-radius: 8px; font: inherit; }
.perm-search button, .perm-card button { padding: 0 18px; height: 38px; border: 0; border-radius: 8px; background: var(--b-navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.perm-card { margin: 0 0 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--b-line); border-radius: 12px; }
.perm-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.perm-head small, .perm-foot small { color: var(--b-muted); }
.perm-list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.perm-list label { cursor: pointer; }
.perm-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.perm-foot input[type=number] { width: 80px; height: 32px; padding: 0 8px; border: 1px solid #c9d1db; border-radius: 6px; }
.perm-foot button { margin-left: auto; height: 34px; }
.perm-super { color: var(--b-orange); font-weight: 600; margin: 0 !important; }
.perm-legend dt { font-weight: 600; color: var(--b-navy); margin-top: 8px; }
.perm-legend dd { margin: 2px 0 0; color: var(--b-muted); }
.perm-log pre { max-height: 300px; overflow: auto; background: var(--b-soft); padding: 10px; font-size: 12px; }

/* pasek ładowania przy przechodzeniu między podstronami (index.php, #page_progress) */
#page_progress { position: fixed; top: 0; left: 0; z-index: 4000; height: 3px; width: 0; opacity: 0; pointer-events: none;
	background: linear-gradient(90deg, var(--b-orange), #f0a060); box-shadow: 0 0 8px rgba(192, 86, 29, .6); }
#page_progress.on { opacity: 1; animation: page-progress 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes page-progress { 0% { width: 0; } 20% { width: 45%; } 60% { width: 75%; } 100% { width: 92%; } }

/* część strony wczytywana w tle – szkielet do czasu nadejścia treści (profil.php → profile_part.php) */
.lazy-part { margin: 20px 0; }
.skel { background: linear-gradient(90deg, #eef1f5 0%, #f7f9fb 40%, #eef1f5 80%); background-size: 200% 100%; border-radius: 10px; animation: skel 1.4s ease-in-out infinite; }
.skel-title { width: 240px; height: 26px; margin-bottom: 14px; }
.skel-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.skel-tiles .skel { height: 66px; }
.skel-map { height: 300px; }
.lazy-note { color: var(--b-muted); font-size: 13px; margin-top: 8px !important; }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.ptile[hidden] { display: none; }   /* kafelek „Zindeksowane jednostki” do czasu wczytania liczby jednostek */

/* import indeksów z arkuszy (profile_import.php) */
.imp-card { margin: 0 0 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--b-line); border-radius: 12px; }
.imp-card h3 { margin: 0 0 10px; font-size: 17px; color: var(--b-navy); }
.imp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 16px; }
.imp-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef1f5; color: var(--b-navy); }
.imp-pending { background: #fdf3e2; color: #8a5a00; } .imp-published { background: #e9f6ec; color: #1d5b2c; }
.imp-rejected, .imp-undone { background: #fbeaea; color: #8a1c1c; }
.imp-meta { margin: 8px 0 0 !important; }
.imp-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.imp-stats div { flex: 1 1 110px; padding: 8px 10px; background: var(--b-soft); border-radius: 8px; text-align: center; color: var(--b-muted); font-size: 13px; }
.imp-stats b { display: block; font-size: 20px; color: var(--b-navy); }
.imp-types span, .imp-headvals code { display: inline-block; margin: 2px 8px 2px 0; font-size: 13px; }
.imp-headvals code { padding: 1px 6px; background: var(--b-soft); border-radius: 4px; }
.imp-list { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; }
.imp-list ul { margin: 6px 0 0; padding-left: 20px; max-height: 260px; overflow: auto; }
.imp-err { background: #fbeaea; border: 1px solid #f0c4c4; color: #8a1c1c; }
.imp-warn { background: #fdf6e8; border: 1px solid #f1dfb8; color: #6b4b00; }
.imp-preview { margin: 0 0 16px; }
.imp-table-wrap { overflow-x: auto; }
.imp-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.imp-table th, .imp-table td { padding: 5px 8px; border-bottom: 1px solid var(--b-line); text-align: left; vertical-align: top; }
.imp-table th { background: var(--b-soft); color: var(--b-navy); }
.imp-table tr.err td { background: #fbeaea; } .imp-table tr.warn td { background: #fdf6e8; }
.imp-search { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.imp-search input[type=text] { flex: 1 1 240px; height: 34px; padding: 0 10px; border: 1px solid #c9d1db; border-radius: 8px; font: inherit; }
.imp-search select { height: 34px; border: 1px solid #c9d1db; border-radius: 8px; max-width: 320px; }
.imp-search button, .imp-btn { height: 34px; padding: 0 14px; border: 1px solid var(--b-navy); border-radius: 8px; background: #fff; color: var(--b-navy); font: inherit; font-weight: 600; cursor: pointer; }
.imp-btn.primary { background: var(--b-orange); border-color: var(--b-orange); color: #fff; }
.imp-btn.danger { border-color: #c0392b; color: #c0392b; }
.imp-btn.disabled { opacity: .5; pointer-events: none; }
.imp-units { max-height: 280px; overflow: auto; margin: 0 0 10px; border: 1px solid var(--b-line); border-radius: 8px; }
.imp-units label { display: block; padding: 6px 10px; border-bottom: 1px solid var(--b-line); font-size: 13px; cursor: pointer; }
.imp-units label:hover { background: var(--b-soft); }
.imp-badge { padding: 1px 6px; background: #e9f6ec; color: #1d5b2c; border-radius: 4px; font-size: 11px; }
.imp-radio { display: block; margin: 8px 0 4px; font-weight: 600; cursor: pointer; }
.imp-newunit { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; margin: 0 0 6px 22px; }
.imp-newunit label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--b-muted); }
.imp-newunit label.w { grid-column: span 2; }
.imp-newunit input, .imp-newunit select { height: 32px; padding: 0 8px; border: 1px solid #c9d1db; border-radius: 6px; font: inherit; font-size: 13px; }
.imp-hint { color: var(--b-muted); font-size: 13px; }
.imp-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 8px 8px 0; }
.imp-inline input[type=text] { height: 34px; padding: 0 10px; border: 1px solid #c9d1db; border-radius: 8px; }
.imp-confirm { font-size: 13px; }
.imp-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.imp-log ul { font-size: 12.5px; color: var(--b-muted); }

/* usunięcie danych użytkownika (profile_permissions.php, includes/user_delete.php) */
.perm-delete { margin: 8px 0 0 !important; font-size: 12.5px; text-align: right; }
.perm-delete a { color: #c0392b !important; }
.del-card { border-color: #f0c4c4; }
.del-list { margin: 10px 0; padding-left: 20px; }
.del-list li { margin: 3px 0; }
.del-what { color: var(--b-muted); }
.del-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.del-form input[type=text] { height: 32px; padding: 0 8px; border: 1px solid #c9d1db; border-radius: 6px; }

/* znaczek „Nowość” przy jednostkach do rezerwacji (includes/unit_new.php) */
.unit-new { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--b-orange); color: #fff;
	font-size: 11px; font-weight: 700; line-height: 18px; letter-spacing: .02em; vertical-align: 1px; white-space: nowrap; }

/* import indeksów – miejscowość jednostki (profile_import_place.php) */
.imp-place { margin: 14px 0 6px; padding: 12px 14px; border: 1px solid var(--b-line); border-radius: 10px; background: var(--b-soft); }
.imp-place h4 { margin: 0 0 4px; color: var(--b-navy); font-size: 15px; }
.imp-place-pick { margin: 0 0 6px 22px; }
.imp-place-pick input[type=text] { width: 100%; max-width: 360px; height: 34px; padding: 0 10px; border: 1px solid #c9d1db; border-radius: 8px; font: inherit; box-sizing: border-box; }
.imp-place-res { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.imp-place-hit { padding: 4px 10px; border: 1px solid #c9d1db; border-radius: 999px; background: #fff; color: var(--b-navy); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.imp-place-hit:hover { border-color: var(--b-orange); color: var(--b-orange); }
.imp-place-sel { margin: 4px 0; font-weight: 600; color: var(--b-navy); }
.imp-place-sel:empty { display: none; }
.imp-place-new .imp-place-geo, .imp-place-new .imp-place-res, .imp-place-new .imp-place-dup { grid-column: 1 / -1; margin: 0; }
.imp-place-dup { padding: 6px 10px; border-radius: 8px; background: #fdf3e2; font-size: 13px; }
.imp-place-map { height: 340px; margin: 10px 0 4px; border: 1px solid var(--b-line); border-radius: 8px; }

/* podpowiedź na mapach: przybliżanie z Ctrl / dwoma palcami (js/map-gestures.js) */
.map-gesture-hint { position: absolute; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
	background: rgba(29, 60, 92, .55); color: #fff; font-size: 16px; font-weight: 600; text-align: center; pointer-events: none; opacity: 0; transition: opacity .25s; }
.map-gesture-hint.show { opacity: 1; }

/* przycisk akcji (np. „Wyślij wiadomość” w profilu użytkownika) */
.btn-action { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; background: var(--b-navy); color: #fff !important;
	font-weight: 600; text-decoration: none !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); transition: background .15s; }
.btn-action:hover { background: var(--b-orange); }
.btn-action span { font-size: 17px; line-height: 1; }

/* formularz wiadomości (message.php) – na bazie karty rejestracji */
.msg-route { display: grid; gap: 8px; margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: var(--b-soft); }
.msg-route div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.msg-route span { width: 34px; color: var(--b-muted); font-size: 13px; }
.msg-route small { color: var(--b-muted); }
.reg-field textarea { box-sizing: border-box; min-height: 180px; padding: 10px 12px; border: 1px solid #c9d1db; border-radius: 8px; font: inherit; font-size: 15px; line-height: 1.5; resize: vertical; background: #fff; }
.reg-field textarea:focus { outline: none; border-color: var(--b-navy-2); box-shadow: 0 0 0 3px rgba(44, 83, 121, .15); }

/* karta użytkownika w profilu (profile_card – includes/functions.php) */
.pcard { display: flex; align-items: flex-start; gap: 18px; margin: 4px 0 22px; padding: 20px 22px; background: #fff; border: 1px solid var(--b-line);
	border-radius: 14px; box-shadow: 0 1px 3px rgba(16, 37, 61, .06); }
.pcard-avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%;
	background: linear-gradient(135deg, var(--b-orange), #e07a3a); color: #fff; font-size: 24px; font-weight: 700; letter-spacing: .02em; }
.pcard-main { flex: 1 1 auto; min-width: 0; }
.pcard-name { font-size: 22px; font-weight: 700; color: var(--b-navy); line-height: 1.2; }
.pcard-sub { margin-top: 3px; color: var(--b-muted); font-size: 14px; }
.pcard-coffee { margin-left: 8px; white-space: nowrap; }
.pcard-coffee .coffee-link { color: var(--b-orange); font-weight: 600; text-decoration: none; }
.pcard-coffee .coffee-link:hover { text-decoration: underline; }
.pcard-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 22px; margin: 14px 0 0; }
.pcard-rows div { min-width: 0; }
.pcard-rows dt { color: var(--b-muted); font-size: 12.5px; font-weight: 600; }   /* bez wersalików – „BaSIA” w etykietach */
.pcard-rows dd { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.pcard-badge { display: inline-block; margin: 0 4px 4px 0; padding: 1px 9px; border-radius: 999px; background: #e8eef5; color: var(--b-navy); font-size: 12.5px; font-weight: 600; }
.pcard-actions { flex: none; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border: 1px solid #c9d1db; border-radius: 10px;
	background: #fff; color: var(--b-navy) !important; font-weight: 600; text-decoration: none !important; white-space: nowrap; transition: border-color .15s, color .15s; }
.btn-ghost:hover { border-color: var(--b-orange); color: var(--b-orange) !important; }
@media (max-width: 640px) {
	.pcard { flex-wrap: wrap; padding: 16px; gap: 14px; }
	.pcard-avatar { width: 52px; height: 52px; font-size: 20px; }
	.pcard-main { flex-basis: calc(100% - 70px); }
	.pcard-actions { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; }
	.pcard-actions > * { flex: 1 1 auto; }
}

/* okienka w profilu (Zmień hasło, Postaw kawę) */
button.btn-ghost { font: inherit; font-weight: 600; cursor: pointer; }
.pdialog { border: 1px solid var(--b-line); border-radius: 14px; padding: 20px 24px; }
.pdialog h3 { color: var(--b-navy); font-size: 19px; margin: 0 0 12px; }
.pdialog .pd-field { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; font-weight: 600; color: var(--b-navy); font-size: 14px; white-space: normal; }
.pdialog .pd-field input { height: 40px; box-sizing: border-box; padding: 0 12px; border: 1px solid #c9d1db; border-radius: 8px; font: inherit; font-weight: 400; font-size: 15px; }
.pdialog .pd-field input:focus { outline: none; border-color: var(--b-navy-2); box-shadow: 0 0 0 3px rgba(44, 83, 121, .15); }
.pdialog .pd-buttons button { height: 38px; padding: 0 16px; border: 1px solid #c9d1db; border-radius: 10px; background: #fff; color: var(--b-navy); font: inherit; font-weight: 600; cursor: pointer; }
.pdialog .pd-buttons button[type=submit] { border-color: var(--b-orange); background: var(--b-orange); color: #fff; }
.pdialog .pd-buttons button[type=submit]:hover { background: var(--b-orange-2); }

/* lista zindeksowanych jednostek (/units/{id}, /profile/units – profile_units_table) */
.ulist-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 4px 0 16px; }
.ulist-head h2 { margin: 0; font-size: 24px; color: var(--b-navy); }
.ulist-head h2 span { color: var(--b-orange); }
.ulist-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 16px; }
.ulist-stats div { padding: 12px 14px; border: 1px solid var(--b-line); border-radius: 12px; background: #fff; color: var(--b-muted); font-size: 13px; text-align: center; }
.ulist-stats b { display: block; color: var(--b-navy); font-size: 22px; line-height: 1.2; }
.ulist-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.ulist-q { flex: 1 1 280px; height: 38px; box-sizing: border-box; padding: 0 12px; border: 1px solid #c9d1db; border-radius: 10px; font: inherit; font-size: 15px; }
.ulist-q:focus, .ulist-arch:focus { outline: none; border-color: var(--b-navy-2); box-shadow: 0 0 0 3px rgba(44, 83, 121, .15); }
.ulist-arch { height: 38px; max-width: 320px; padding: 0 8px; border: 1px solid #c9d1db; border-radius: 10px; font: inherit; background: #fff; }
.ulist-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.ulist-kinds button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid #c9d1db; border-radius: 999px; background: #fff;
	color: var(--b-navy); font: inherit; font-size: 13px; cursor: pointer; }
.ulist-kinds button small { color: var(--b-muted); }
.ulist-kinds button.on { border-color: var(--b-navy); background: var(--b-navy); color: #fff; }
.ulist-kinds button.on small { color: #c9d6e4; }
.ulist-count { color: var(--b-muted); font-size: 13px; }
.ulist-wrap { border: 1px solid var(--b-line); border-radius: 12px; overflow: auto; background: #fff; }
.ulist-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ulist-table th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; background: var(--b-soft); border-bottom: 1px solid var(--b-line); color: var(--b-navy);
	font-size: 13px; text-align: left; white-space: nowrap; }
.ulist-table th.sortable { cursor: pointer; user-select: none; }
.ulist-table th.sortable::after { content: "↕"; margin-left: 5px; color: #b3bdc8; font-size: 11px; }
.ulist-table th.sorted::after { content: "↑"; color: var(--b-orange); }
.ulist-table th.sorted.desc::after { content: "↓"; }
.ulist-table td { padding: 9px 12px; border-bottom: 1px solid var(--b-line); vertical-align: top; }
.ulist-table tbody tr:last-child td { border-bottom: 0; }
.ulist-table tbody tr:hover { background: #fbf6f2; }
.ulist-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.u-title b { font-weight: 600; color: var(--b-navy); }
.u-title small, .u-place small { display: block; color: var(--b-muted); font-size: 12.5px; margin-top: 2px; }
.u-kind { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; vertical-align: 1px; background: #9aa6b2; flex: none; }
.u-kind-b { background: #3b8b5a; } .u-kind-m { background: var(--b-orange); } .u-kind-d { background: #5b6b7d; } .u-kind-o { background: #b8a37a; }
.u-sig { white-space: nowrap; font-variant-numeric: tabular-nums; }
.u-arch { display: inline-block; padding: 0 6px; border-radius: 6px; background: #e8eef5; color: var(--b-navy); font-size: 12px; font-weight: 600; }
.u-date { white-space: nowrap; color: var(--b-muted); }
.u-dl { white-space: nowrap; }
.u-dl a { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; border: 1px solid #c9d1db; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--b-navy) !important; text-decoration: none !important; }
.u-dl a:hover { border-color: var(--b-orange); color: var(--b-orange) !important; }
.ulist-none, .ulist-empty { padding: 20px; text-align: center; color: var(--b-muted); }
@media (max-width: 760px) {
	.ulist-stats { grid-template-columns: repeat(2, 1fr); }
	.ulist-q, .ulist-arch { flex: 1 1 100%; width: 100%; min-width: 0; max-width: none; }
	.ulist, .ulist-tools, .ulist-stats { min-width: 0; max-width: 100%; }
	.ulist-wrap { border: 0; background: none; overflow: visible; }
	.ulist-table thead { display: none; }
	.ulist-table, .ulist-table tbody { display: block; }
	.ulist-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--b-line); border-radius: 12px; background: #fff; }
	.ulist-table tr[hidden] { display: none; }
	.ulist-table td { padding: 0; border: 0; }
	.ulist-table td.u-title { grid-column: 1 / -1; margin-bottom: 4px; }
	.ulist-table td[data-label]::before { content: attr(data-label); display: block; color: var(--b-muted); font-size: 11.5px; }
	.ulist-table .num { text-align: left; }
}

/* zdjęcie i opis w karcie użytkownika; okienko „Edytuj profil” (includes/avatar.php) */
.pcard-photo { object-fit: cover; padding: 0; background: var(--b-soft); border: 1px solid var(--b-line); }
.pcard-about { margin: 10px 0 0; max-width: 70ch; color: #2b3640; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.pcard-about a { color: var(--b-orange); text-decoration: underline; text-underline-offset: 2px; }
.pd-avatar { display: flex; align-items: center; gap: 16px; margin: 6px 0 12px; }
.pd-avatar-prev { flex: none; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--b-orange), #e07a3a); color: #fff; font-size: 30px; font-weight: 700; transition: opacity .2s; }
.pd-avatar-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-file { display: inline-flex !important; align-items: center; gap: 8px; height: 36px; margin: 0 !important; padding: 0 14px; border: 1px solid #c9d1db; border-radius: 10px;
	color: var(--b-navy); font-weight: 600; cursor: pointer; white-space: nowrap; }
.pd-file:hover { border-color: var(--b-orange); color: var(--b-orange); }
.pd-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pd-check { display: flex !important; align-items: center; gap: 6px; margin: 8px 0 0 !important; font-size: 14px; }
.pdialog textarea { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid #c9d1db; border-radius: 8px; font: inherit; font-weight: 400; font-size: 15px; line-height: 1.5; resize: vertical; }
.pdialog textarea:focus { outline: none; border-color: var(--b-navy-2); box-shadow: 0 0 0 3px rgba(44, 83, 121, .15); }

/* „zmień” przy adresie e-mail na karcie konta */
.pcard-inline { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--b-orange); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pcard-inline:hover { color: var(--b-orange-2); }
