/* =============================================================================
 * blog.css — wygląd bloga Apartmore (single + lista + archiwum). Paleta „Marina".
 * ============================================================================= */

/* ---------- POJEDYNCZY WPIS: hero ---------- */
.blog-single { background: var(--paper); }
.blog-hero { background: var(--cream); padding: clamp(48px,8vw,110px) 24px clamp(32px,5vw,64px); border-bottom: 1px solid var(--line); }
.blog-hero.has-img { background-image: linear-gradient(180deg, rgba(52,49,48,.30) 0%, rgba(52,49,48,.66) 100%), var(--hero-img); background-size: cover; background-position: center; border-bottom: 0; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.blog-hero__inner { max-width: 880px; margin: 0 auto; text-align: center; }
.blog-hero__cat { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); text-decoration: none; margin-bottom: 18px; }
.blog-hero.has-img .blog-hero__cat { color: var(--sand); }
.blog-hero__cat:hover { color: var(--amber-2); }
.blog-hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(34px,5.2vw,64px); line-height: 1.02; letter-spacing: .01em; color: var(--ink); margin: 0 0 22px; }
.blog-hero.has-img .blog-hero__title { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.blog-hero__meta { font-family: var(--sans); font-size: 14px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 10px; }
.blog-hero.has-img .blog-hero__meta { color: rgba(255,255,255,.9); }
.blog-hero__dot { opacity: .6; }

/* ---------- POJEDYNCZY WPIS: treść ---------- */
.blog-body { max-width: 760px; margin: 0 auto; padding: clamp(36px,6vw,64px) 24px 0; }
.blog-content { font-family: var(--sans); font-size: 1.075rem; line-height: 1.82; color: var(--ink); }
.blog-content > *:first-child { margin-top: 0; }
.blog-content p { margin: 0 0 1.5em; }
.blog-content h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px,3.4vw,36px); line-height: 1.1; letter-spacing: .01em; color: var(--ink); margin: 1.9em 0 .6em; }
.blog-content h3 { font-family: var(--display); font-weight: 400; font-size: clamp(22px,2.6vw,28px); line-height: 1.15; color: var(--ink); margin: 1.6em 0 .5em; }
.blog-content h4 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; margin: 1.5em 0 .4em; color: var(--ink); }
.blog-content a { color: var(--amber-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.blog-content a:hover { color: var(--burgundy); }
.blog-content strong { color: var(--ink); font-weight: 700; }
.blog-content ul, .blog-content ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.blog-content li { margin: 0 0 .5em; }
.blog-content ul li::marker { color: var(--amber); }
.blog-content img, .blog-content figure img, .blog-content .wp-block-image img { max-width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); margin: 1em 0; display: block; }
.blog-content figure { margin: 1.6em 0; }
.blog-content figcaption { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 8px; }
.blog-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--amber); font-style: italic; color: var(--ink-2); font-size: 1.1rem; }
.blog-content iframe { max-width: 100%; border-radius: 14px; margin: 1em 0; }

/* tagi + powrót */
.blog-foot { max-width: 760px; margin: 40px auto 0; padding: 28px 0 8px; border-top: 1px solid var(--line); }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.blog-tag { font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); background: var(--stone); border-radius: 999px; padding: 6px 14px; text-decoration: none; }
.blog-tag:hover { background: var(--sand); color: var(--ink); }
.blog-back { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--amber-2); text-decoration: none; }
.blog-back:hover { color: var(--burgundy); }

/* ---------- CTA ---------- */
.blog-cta { text-align: center; margin-top: clamp(48px,7vw,80px); padding: clamp(48px,6vw,72px) 24px; background: var(--stone); }
.blog-cta h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px,3.6vw,40px); color: var(--ink); margin: 0 0 14px; }
.blog-cta p { font-family: var(--sans); color: var(--ink-2); max-width: 560px; margin: 0 auto 28px; line-height: 1.6; }
.blog-btn { display: inline-block; font-family: var(--display); font-size: 18px; letter-spacing: .06em; background: var(--amber); color: #fff; text-decoration: none; padding: 14px 38px; border-radius: 8px; transition: background .15s ease, transform .15s ease; }
.blog-btn:hover { background: var(--amber-2); transform: translateY(-1px); color: #fff; }

/* ---------- Karty (powiązane + siatka) ---------- */
.blog-related { padding: clamp(48px,6vw,80px) 24px; }
.blog-related > h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px,3vw,34px); text-align: center; color: var(--ink); margin: 0 0 36px; }
.blog-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.blog-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card__img { aspect-ratio: 16/10; background: var(--stone) center/cover no-repeat; }
.blog-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.blog-card__cat { font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.blog-card__title { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.08; color: var(--ink); margin: 0; }
.blog-card__date { font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); }

/* ---------- LISTA /blog/ + ARCHIWUM ---------- */
.blog-archive-hero { background: var(--cream); padding: clamp(56px,8vw,110px) 24px clamp(28px,4vw,48px); text-align: center; border-bottom: 1px solid var(--line); }
.blog-archive-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px,6vw,72px); color: var(--ink); margin: 0 0 12px; }
.blog-archive-hero p { font-family: var(--sans); color: var(--ink-2); max-width: 600px; margin: 0 auto; line-height: 1.6; }
.blog-archive-hero__eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.blog-archive-hero__eyebrow a { color: var(--amber); text-decoration: none; }
.blog-archive-hero__eyebrow a:hover { color: var(--amber-2); }

.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: clamp(24px,4vw,34px) 24px 0; }
.blog-chip { font-family: var(--sans); font-size: 13.5px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; text-decoration: none; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.blog-chip:hover { border-color: var(--amber); color: var(--ink); }
.blog-chip.is-active { background: var(--amber); border-color: var(--amber); color: #fff; }

.blog-featured { max-width: 1120px; margin: 0 auto clamp(28px,4vw,40px); display: grid; grid-template-columns: 1.15fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.blog-featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-featured__img { background: var(--stone) center/cover no-repeat; min-height: 280px; }
.blog-featured__body { padding: clamp(22px,3vw,40px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.blog-featured__cat { font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.blog-featured__title { font-family: var(--display); font-weight: 400; font-size: clamp(26px,3vw,40px); line-height: 1.05; color: var(--ink); margin: 0; }
.blog-featured__excerpt { font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.blog-featured__date { font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); }

.blog-list { max-width: 1120px; margin: 0 auto; padding: clamp(40px,6vw,64px) 24px; }
.blog-list .blog-grid { gap: 30px; }
.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.blog-pagination a, .blog-pagination span { font-family: var(--sans); font-size: 14px; padding: 9px 15px; border-radius: 8px; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); }
.blog-pagination .current { background: var(--amber); color: #fff; border-color: var(--amber); }
.blog-pagination a:hover { background: var(--stone); }
.blog-empty { text-align: center; color: var(--ink-2); font-family: var(--sans); padding: 60px 24px; }

/* ---------- Mobile ---------- */
@media (max-width: 880px) { .blog-grid { grid-template-columns: 1fr; max-width: 460px; } .blog-content { font-size: 1.02rem; } }
@media (max-width: 760px) { .blog-featured { grid-template-columns: 1fr; } .blog-featured__img { aspect-ratio: 16/9; min-height: 0; } }

/* ---------- LISTA: hero medialny (ilustracja / zdjęcie) ---------- */
.blog-hero-media { position: relative; min-height: 440px; background: var(--hero-bg) center/cover no-repeat; display: flex; align-items: flex-start; justify-content: center; text-align: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.blog-hero-media__inner { position: relative; z-index: 2; max-width: 880px; padding: clamp(44px,7vw,96px) 24px 0; }
.blog-hero-media h1 { font-family: var(--display); font-weight: 400; font-size: clamp(46px,7vw,88px); line-height: 1; margin: 0 0 12px; }
.blog-hero-media p { font-family: var(--sans); max-width: 600px; margin: 0 auto; line-height: 1.6; }
.blog-hero-media .blog-archive-hero__eyebrow { margin-bottom: 10px; }
.blog-hero-media--art { color: var(--ink); }
.blog-hero-media--art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(250,247,242,.62) 0%, rgba(250,247,242,0) 42%); z-index: 1; }
.blog-hero-media--art h1 { color: var(--ink); text-shadow: 0 2px 18px rgba(250,247,242,.7); }
.blog-hero-media--art p { color: var(--ink-2); }
.blog-hero-media--foto { color: #fff; }
.blog-hero-media--foto::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(52,49,48,.5) 0%, rgba(52,49,48,.28) 55%, rgba(52,49,48,.58) 100%); z-index: 1; }
.blog-hero-media--foto h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.blog-hero-media--foto p { color: rgba(255,255,255,.92); }
.blog-hero-media--foto .blog-archive-hero__eyebrow { color: var(--sand); }
@media (max-width: 760px) { .blog-hero-media { min-height: 340px; } }

/* ---------- CTA dla wlascicieli (wpisy: rynek nieruchomosci), 2026-07-15 ---------- */
.blog-cta--owners { background: #2e2926; }
.blog-cta--owners .eyebrow { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }
.blog-cta--owners h2 { color: #fff; }
.blog-cta--owners h2 .accent { color: var(--amber); }
.blog-cta--owners p { color: rgba(255,255,255,.82); }
.blog-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.blog-btn--ghost { background: transparent; border: 1px solid rgba(255,255,255,.4); }
.blog-btn--ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- LISTA: sekcja przypieta "Dla wlascicieli" (2026-07-31) ---------- */
.blog-owners { margin: 0 0 clamp(30px,4vw,44px); padding-bottom: clamp(28px,4vw,40px); border-bottom: 1px solid var(--line); }
.blog-owners__head { margin: 0 0 18px; }
.blog-owners__tag { display: block; font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.blog-owners__title { font-family: var(--display); font-weight: 400; font-size: clamp(22px,2.6vw,30px); line-height: 1.1; color: var(--ink); margin: 0; }
