/*
Theme Name: Marsa Campus
Theme URI: https://apartamentymarsa.pl
Author: Apartamenty Marsa
Description: Nowoczesny motyw dla akademika Apartamenty Marsa. Zaokrąglone karty, pastelowe sekcje, duża typografia. Współpracuje z wtyczkami MotoPress Hotel Booking, Contact Form 7, Getwid i GTranslate. Ustawienia: Wygląd → Dostosuj → Ustawienia akademika.
Version: 1.5.3
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: marsa
*/

/* ---------- Zmienne ---------- */
:root {
	--mars: #C2381B;
	--mars-dark: color-mix(in srgb, var(--mars) 82%, #000);
	--ink: #1E1F1F;
	--ink-2: #4A4C4C;
	--muted: #6E7070;
	--line: #E6E1DA;
	--sand: #F4EFE9;
	--sand-2: #ECE5DC;
	--peach: #FFE3D3;
	--white: #fff;
	--radius: 24px;
	--radius-sm: 14px;
	--container: 1240px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--shadow: 0 1px 2px rgba(30, 31, 31, .04), 0 12px 32px -12px rgba(30, 31, 31, .14);
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; background: #fff; padding: 8px 16px; border-radius: 8px; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 2.5rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--mars); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
	display: inline-block;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mars);
	margin-bottom: .9rem;
}
.eyebrow--light { color: #fff; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); padding: .4rem .85rem; border-radius: 99px; }
.lead { font-size: 1.15rem; color: var(--ink-2); }

/* ---------- Przyciski ---------- */
.btn, .button, button[type="submit"], input[type="submit"],
.mphb_sc_search-submit-button-wrapper input, .mphb-book-button, .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .8rem 1.4rem;
	border: 2px solid var(--mars);
	border-radius: 99px;
	background: var(--mars);
	color: #fff;
	font: 600 .95rem/1.2 var(--font);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .04em;
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover, .button:hover, button[type="submit"]:hover, input[type="submit"]:hover, .wpcf7-submit:hover, .mphb-book-button:hover {
	background: var(--mars-dark); border-color: var(--mars-dark); transform: translateY(-1px);
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn--sm { padding: .55rem 1rem; font-size: .8rem; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--white { background: #fff; color: var(--mars); border-color: #fff; }
.btn--white:hover { background: var(--sand); border-color: var(--sand); color: var(--mars-dark); }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.link-arrow { display: inline-flex; gap: .4em; align-items: center; font-weight: 600; color: var(--mars); text-decoration: none; }

/* ---------- Nagłówek ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(1.4) blur(10px);
	transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .25); }
.topbar { font-size: .82rem; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar__info, .topbar__links { display: flex; align-items: center; gap: 1.4rem; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.topbar a:hover { color: var(--mars); }
.topbar .icon { width: 15px; height: 15px; color: var(--mars); }
.site-header.is-scrolled .topbar { display: none; }

.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand__logo { max-height: 52px; width: auto; }
.brand__mark {
	width: 40px; height: 40px; border-radius: 50%;
	background: radial-gradient(circle at 32% 30%, #F3866A 0 12%, transparent 13%),
		radial-gradient(circle at 66% 62%, rgba(0, 0, 0, .18) 0 14%, transparent 15%),
		radial-gradient(circle at 40% 72%, rgba(0, 0, 0, .12) 0 8%, transparent 9%),
		var(--mars);
	box-shadow: inset -6px -6px 0 rgba(0, 0, 0, .12);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.04em; text-transform: uppercase; }
.brand__text small { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand--light, .brand--light .brand__text small { color: #fff; }
.brand--light .brand__text small { opacity: .6; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav .menu { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a {
	display: block; padding: .55rem .85rem; border-radius: 99px;
	font-weight: 600; font-size: .97rem; text-decoration: none;
}
.main-nav .menu a:hover, .main-nav .current-menu-item > a { background: var(--sand); }
.main-nav .sub-menu {
	list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: 12px; }
.hero__card {
	position: relative;
	min-height: min(78vh, 720px);
	border-radius: 32px;
	overflow: hidden;
	display: flex; align-items: flex-end;
	background: var(--ink);
	color: #fff;
	isolation: isolate;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .62) 100%); }
.hero__content { padding: clamp(28px, 5vw, 64px); max-width: 860px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 mark {
	background: var(--peach); color: var(--mars);
	padding: 0 .18em; border-radius: .18em;
	box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 620px; opacity: .95; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__scroll {
	position: absolute; right: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 48px);
	width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--ink);
	display: grid; place-items: center; transition: transform .2s;
}
.hero__scroll .icon { transform: rotate(90deg); width: 24px; height: 24px; }
.hero__scroll:hover { transform: translateY(3px); }

/* Formularz MotoPress pod hero */
.hero-search {
	position: relative; z-index: 2;
	margin: -48px auto 0; width: min(100% - 40px, 1080px);
	background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 18px 22px;
}
.hero-search form, .hero-search .mphb_sc_search-form { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin: 0; }
.hero-search p { margin: 0; flex: 1 1 160px; }
.hero-search .mphb-required-fields-tip { display: none; }
.hero-search label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
	width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
	font: 500 1rem var(--font); color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--mars); }

/* ---------- Fakty ---------- */
.facts { padding: 72px 0 24px; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { background: var(--sand); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: .4rem; }
.fact__value { font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.fact:first-child { background: var(--mars); color: #fff; }
.fact:first-child .fact__label { color: rgba(255, 255, 255, .85); }
.fact__label { color: var(--ink-2); font-size: .95rem; }

/* ---------- Sekcje ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.section--sand { background: var(--sand); }
.section--peach { background: var(--peach); }
.section-head { margin-bottom: 2.6rem; max-width: 720px; }
.section-head h2 { margin: 0; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.section-head--center { text-align: center; margin-inline: auto; }

/* Udogodnienia: duże karty ze zdjęciem */
.amenity-feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { border-radius: var(--radius); overflow: hidden; background: var(--sand); display: flex; flex-direction: column; }
.feature-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.feature-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feature-card:hover .feature-card__img img { transform: scale(1.04); }
.feature-card__body { display: flex; gap: 14px; padding: 22px 24px 26px; }
.feature-card h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.feature-card p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.icon-bubble {
	flex: none; width: 46px; height: 46px; border-radius: 50%;
	background: var(--mars); color: #fff; display: grid; place-items: center;
}
.icon-bubble .icon { width: 22px; height: 22px; }
.icon-bubble--sm { width: 40px; height: 40px; }

.amenity-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 20px; }
.amenity { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .2s, background .2s; }
.amenity:hover { border-color: var(--mars); background: #fffaf7; }
.amenity .icon-bubble { background: var(--peach); color: var(--mars); margin-bottom: 1rem; }
.amenity h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.amenity p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.45; }

/* Apartamenty */
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.room-card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.room-card__img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sand-2); overflow: hidden; }
.room-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.room-card:hover .room-card__img img { transform: scale(1.05); }
.tag {
	position: absolute; top: 14px; left: 14px; background: #fff; color: var(--ink);
	font-size: .78rem; font-weight: 700; padding: .35rem .75rem; border-radius: 99px;
}
.room-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.room-card h3 { margin-bottom: .3rem; }
.room-card h3 a { text-decoration: none; }
.room-card__meta { color: var(--muted); font-size: .92rem; }
.room-card__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.room-card__price { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.room-card__price small { font-weight: 500; font-size: .8rem; color: var(--muted); }
.room-card__price .mphb-price-period, .room-card__price .mphb-price-period { font-weight: 500; font-size: .8rem; color: var(--muted); }

/* Split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--reverse { grid-template-columns: 1fr 1.05fr; }
.split__img { border-radius: 32px; overflow: hidden; aspect-ratio: 5 / 5.4; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 14px; align-items: center; background: var(--sand); border-radius: 18px; padding: 14px 18px; }
.checklist strong { display: block; }
.checklist span:not(.icon-bubble) { color: var(--muted); font-size: .93rem; }

/* Opinie */
.reviews { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.reviews--1 { grid-template-columns: minmax(0, 760px); justify-content: center; }
.reviews--2 { grid-template-columns: repeat(2, 1fr); }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 1rem; }
.reviews--1 .review { padding: clamp(32px, 5vw, 56px); text-align: center; align-items: center; }
.reviews--1 blockquote { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.stars { display: flex; gap: 2px; color: #F5A524; }
.stars .icon { width: 20px; height: 20px; }
.review blockquote { margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }
.review figcaption { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--ink-2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--mars); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* Lokalizacja */
.map-wrap { position: relative; }
.split--reverse .map-wrap { order: 0; }
.map-link {
	position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: .45rem;
	background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem;
	padding: .65rem 1.1rem; border-radius: 99px; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .35);
}
.map-link .icon { color: var(--mars); }
.map-link:hover { background: var(--sand); }
.map { border-radius: 32px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.contact-cards { display: grid; gap: 12px; margin-top: 1.6rem; }
.contact-card {
	display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 18px;
	border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; transition: .2s;
}
.contact-card:hover { border-color: var(--mars); }
.contact-card .icon { width: 26px; height: 26px; color: var(--mars); }
.contact-card small { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }

/* FAQ */
.faq-wrap .section-head p.muted { margin-top: 1.2rem; }
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; padding: 0 24px; }
.faq summary {
	list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
	font-weight: 700; font-size: 1.07rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border-radius: 50%; background: var(--peach); color: var(--mars);
	display: grid; place-items: center; font-size: 1.2rem; font-weight: 600; transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }
.faq a { color: var(--mars); }

/* CTA */
.cta {
	position: relative; border-radius: 32px; overflow: hidden;
	background: linear-gradient(100deg, var(--mars) 40%, color-mix(in srgb, var(--mars) 40%, transparent) 100%), var(--cta-img) center/cover, var(--mars);
	color: #fff; padding: clamp(36px, 6vw, 80px);
	display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { font-size: 1.15rem; opacity: .92; margin: 0; max-width: 520px; }
.cta__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Podstrony ---------- */
.page-hero { padding-top: 12px; }
.page-hero__inner {
	border-radius: 32px; background: var(--sand); padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 64px);
	position: relative; overflow: hidden;
}
.page-hero__inner[data-has-img] {
	background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .6)), var(--page-img) center/cover;
	color: #fff; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end;
}
.page-hero__inner[data-has-img] .eyebrow { color: #fff; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0; }
.page-hero__meta { margin: .8rem 0 0; font-size: 1.1rem; opacity: .9; }

.entry-content { max-width: 1000px; }
.entry-content > * { margin-bottom: 1.2em; }
.entry-content a { color: var(--mars); }
.entry-content a.btn { color: #fff; }
.entry-content a.btn--outline { color: var(--ink); }
.entry-content a.btn--outline:hover { color: #fff; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .alignwide { max-width: var(--container); }
.entry-content .alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: 1.6em; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content td, .entry-content th { border-bottom: 1px solid var(--line); padding: .7rem .5rem; text-align: left; }
.entry-content .wp-block-gallery img { border-radius: var(--radius-sm); }

/* MotoPress: listy i szczegóły apartamentów na podstronach */
.mphb_sc_rooms-wrapper .mphb-room-type, .mphb_sc_search_results-wrapper .mphb-room-type {
	background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 24px;
}
.mphb-room-type .mphb-room-type-title { font-size: 1.6rem; }
.mphb-room-type .mphb-loop-room-thumbnail img, .mphb-gallery-thumbnail-slider img, .mphb-room-type .flexslider img { border-radius: var(--radius-sm); }
.mphb-room-type .mphb-view-details-button-wrapper a, .mphb-view-details-button {
	display: inline-flex; padding: .7rem 1.3rem; border-radius: 99px; border: 2px solid var(--ink); color: var(--ink);
	text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em;
}
.mphb-room-type .mphb-view-details-button-wrapper a:hover { background: var(--ink); color: #fff; }
.mphb-loop-room-type-attributes, .mphb-single-room-type-attributes { list-style: none; padding: 0; display: grid; gap: .35rem; }
.mphb-price { font-weight: 800; color: var(--ink); }
.mphb-calendar .datepick, .mphb-datepick-popup .datepick { border-radius: var(--radius-sm); }
.entry-content--room .mphb-reservation-form, .entry-content--room .mphb-booking-form {
	background: var(--sand); border-radius: var(--radius); padding: 28px;
}
.wpcf7-form { background: var(--sand); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.wpcf7-form label { font-weight: 600; display: block; }

/* Wpisy */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: var(--sand); border-radius: var(--radius); overflow: hidden; }
.post-card__img img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.post-card__body { padding: 24px; }
.post-card h2 { font-size: 1.3rem; }
.post-card h2 a { text-decoration: none; }
.pagination { margin-top: 2rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; border-radius: 99px; text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--ink); color: #fff; }

/* ---------- Stopka ---------- */
.site-footer { background: #232424; color: rgba(255, 255, 255, .75); padding: 80px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.site-footer li { display: flex; gap: .6rem; align-items: flex-start; }
.site-footer li .icon { color: var(--mars); margin-top: .2em; width: 17px; height: 17px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-col--brand p { margin: 1.2rem 0; max-width: 280px; }
.site-footer .footer-col ul.menu, .site-footer .footer-menu { gap: .7rem; }
.footer-menu li a::before, .site-footer .menu li a::before { content: "→ "; color: var(--mars); }
.footer-tenant { display: inline-block; margin-top: 1rem; color: #fff; font-weight: 600; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; color: #fff; transition: .2s; }
.socials a:hover { background: var(--mars); border-color: var(--mars); }
.socials .icon { width: 19px; height: 19px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Animacje ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsywność ---------- */
@media (max-width: 1100px) {
	.amenity-grid { grid-template-columns: repeat(3, 1fr); }
	.main-nav .menu a { padding: .5rem .6rem; font-size: .92rem; }
}
@media (max-width: 980px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: fixed; inset: 0; top: 0; z-index: -1;
		background: #fff; flex-direction: column; align-items: stretch; justify-content: center;
		padding: 100px 28px 40px; gap: 1.5rem;
		opacity: 0; visibility: hidden; transition: .25s;
	}
	.nav-open .site-header { backdrop-filter: none; background: #fff; }
	.nav-open .main-nav { opacity: 1; visibility: visible; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.nav-open { overflow: hidden; }
	.main-nav .menu { flex-direction: column; gap: .2rem; }
	.main-nav .menu a { font-size: 1.6rem; font-weight: 700; padding: .5rem 0; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 1rem; }
	.main-nav__cta { align-self: flex-start; }
	.facts__grid { grid-template-columns: repeat(2, 1fr); }
	.amenity-feature, .room-grid, .post-grid, .reviews { grid-template-columns: repeat(2, 1fr); }
	.split, .split--reverse, .faq-wrap { grid-template-columns: 1fr; }
	.split--reverse .map-wrap { order: -1; }
	.split__img { aspect-ratio: 4 / 3; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.topbar__info span { display: none; }
	.hero__card { min-height: 80vh; border-radius: 24px; }
	.hero__scroll { display: none; }
	.hero-search { margin-top: 16px; width: 100%; }
	.amenity-feature, .room-grid, .post-grid, .reviews, .reviews--2 { grid-template-columns: 1fr; }
	.amenity-grid { grid-template-columns: repeat(2, 1fr); }
	.fact { padding: 20px; }
	.footer-grid { grid-template-columns: 1fr; }
	.cta { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}

/* ---------- Strona apartamentu (MotoPress) ---------- */
.entry-content--room { max-width: none; }
.entry-content--room > * { margin-bottom: 0; }
.single-mphb_room_type .page-hero__inner[data-has-img] { min-height: 300px; }

/* Galeria: siatka bez JS, mozaika z JS */
.mphb-single-room-type-gallery-wrapper { position: relative; margin-bottom: clamp(32px, 4vw, 56px); }
.mphb-single-room-type-gallery-wrapper .gallery {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 !important;
}
.mphb-single-room-type-gallery-wrapper .gallery-item { margin: 0 !important; width: auto !important; max-width: none !important; padding: 0 !important; position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3; background: var(--sand); }
.mphb-single-room-type-gallery-wrapper .gallery-icon, .mphb-single-room-type-gallery-wrapper .gallery-icon a { display: block; height: 100%; }
.mphb-single-room-type-gallery-wrapper .gallery-item img {
	width: 100%; height: 100%; object-fit: cover; border-radius: 0; border: 0 !important; transition: transform .5s, filter .3s;
}
.mphb-single-room-type-gallery-wrapper .gallery-item:hover img { transform: scale(1.04); filter: brightness(.92); }
.mphb-single-room-type-gallery-wrapper .gallery br { display: none; }
.mphb-single-room-type-gallery-wrapper .gallery-caption { display: none; }

.is-mosaic .gallery {
	grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr));
	height: clamp(320px, 46vw, 540px); border-radius: 28px; overflow: hidden; gap: 8px;
}
.is-mosaic .gallery-item { aspect-ratio: auto; border-radius: 0; }
.is-mosaic .gallery-item:nth-child(n+6) { display: none; }
.is-mosaic .gallery-item:first-child { grid-row: 1 / 3; }
.is-mosaic--2 .gallery { grid-template-columns: 2fr 1fr; }
.is-mosaic--2 .gallery-item:nth-child(2) { grid-row: 1 / 3; }
.is-mosaic--3 .gallery { grid-template-columns: 2fr 1fr; }
.is-mosaic--4 .gallery-item:nth-child(4) { grid-column: 2 / 4; }
.is-mosaic .gallery-item[data-more]::after, .is-mosaic .gallery-item[data-more-m]::after {
	position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
	background: rgba(30, 31, 31, .55); color: #fff; font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em;
}
.is-mosaic .gallery-item[data-more]::after { content: attr(data-more); }
.gallery-all {
	position: absolute; right: 18px; bottom: 18px; z-index: 2;
	background: #fff; color: var(--ink); border: 0; border-radius: 99px; padding: .7rem 1.2rem;
	font: 600 .9rem var(--font); cursor: pointer; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .35);
}
.gallery-all:hover { background: var(--sand); }

/* Opis + karta boczna */
.room-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.room-main > p { font-size: 1.07rem; color: var(--ink-2); margin-bottom: 1.1em; max-width: 72ch; }
.room-main > p strong { color: var(--ink); }
.room-main h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 2.2em 0 .8em; }
.room-main .mphb-calendar { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; overflow-x: auto; }
.room-main .wpcf7 { margin-top: .5rem; }
.room-main .wpcf7 input[type="text"], .room-main .wpcf7 input[type="email"], .room-main .wpcf7 input[type="tel"], .room-main .wpcf7 textarea { margin-top: .35rem; }
.room-main .wpcf7 br { display: none; }
.room-main .wpcf7 label { margin-bottom: 1rem; }
#rezerwacja { scroll-margin-top: 110px; }

.room-aside { position: sticky; top: 100px; }
.room-card-side { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 28px; }
.room-card-side .mphb-regular-price { margin: 0 0 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.room-card-side .mphb-regular-price strong { display: block; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; margin-bottom: .2rem; }
.room-card-side .mphb-price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.room-card-side .mphb-details-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 .8rem; }
.room-card-side .mphb-single-room-type-attributes { margin: 0 0 1.4rem; gap: .8rem; }
.room-card-side .mphb-single-room-type-attributes li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; font-size: .95rem; }
.room-card-side .mphb-attribute-title { color: var(--muted); }
.room-card-side .mphb-attribute-value { font-weight: 600; text-align: right; }
.room-card-side .mphb-room-type-facilities { flex-direction: column; }
.room-card-side .mphb-room-type-facilities .mphb-attribute-value { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0; text-align: left; }
.room-card-side .mphb-room-type-facilities .mphb-attribute-value > span { font-size: .82rem; }
.room-card-side .mphb-room-type-facilities a {
	display: inline-block; text-decoration: none; background: var(--peach); color: var(--mars);
	padding: .3rem .7rem; border-radius: 99px; font-weight: 600;
}
.room-card-side__actions { display: grid; gap: 10px; }
.room-card-side__actions .btn { width: 100%; }

@media (max-width: 980px) {
	.room-layout { grid-template-columns: 1fr; }
	.room-aside { position: static; order: -1; }
}
@media (max-width: 640px) {
	.is-mosaic .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 360px; border-radius: 20px; }
	.is-mosaic .gallery-item:first-child { grid-row: auto; grid-column: 1 / 3; }
	.is-mosaic .gallery-item:nth-child(n+4) { display: none; }
	.is-mosaic .gallery-item[data-more]::after { content: none; }
	.is-mosaic .gallery-item[data-more-m]::after { content: none; }
	.is-mosaic--2 .gallery-item:nth-child(2) { grid-row: auto; grid-column: 1 / 3; }
	.is-mosaic--4 .gallery-item:nth-child(4) { grid-column: auto; }
	.gallery-all { right: 12px; bottom: 12px; font-size: .82rem; }
}

/* Kalendarz dostępności ukryty na stronie apartamentu */
.single-mphb_room_type .mphb-calendar-title,
.single-mphb_room_type .mphb-calendar { display: none !important; }

/* Okruszki */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }
.breadcrumbs a { text-decoration: none; opacity: .85; }
.breadcrumbs a:hover { opacity: 1; text-decoration: underline; }
.breadcrumbs span[aria-hidden] { opacity: .6; }
.page-hero__inner:not([data-has-img]) .breadcrumbs a { color: var(--mars); }

/* GTranslate w pasku górnym */
.topbar-widget p:empty { display: none; }
.topbar-widget .gtranslate_wrapper { display: flex; gap: .7rem; align-items: center; }
.topbar-widget .gtranslate_wrapper a { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.topbar-widget .gtranslate_wrapper a.gt-current-lang { color: var(--ink); }
.topbar-widget .gtranslate_wrapper img { width: 16px; height: auto; border-radius: 2px; }
/* Odstępy wokół wyróżnionego słowa (także po automatycznym tłumaczeniu) */
.hero h1 mark { margin: 0 .08em; }
