/* =====================================================================
   ApartsBook — system stylów. Premium, minimalistyczny, responsywny.
   Zmieniamy tylko warstwę wizualną; ID formularzy zostają bez zmian.
   ===================================================================== */

:root {
  /* Kolory — ciepła, stonowana paleta premium */
  --ink:        #16150f;
  --charcoal:   #22201a;
  --slate:      #45463d;
  --stone:      #7c7a6f;
  --sand:       #e8e0d1;
  --sand-soft:  #f1ebdf;
  --ivory:      #f6f2e9;
  --paper:      #fcfaf4;
  --white:      #ffffff;
  --brass:      #a8824f;
  --brass-d:    #8a6a3c;
  --brass-soft: #c9ab7c;
  --forest:     #2f4033;
  --forest-d:   #223026;
  --line:       rgba(22, 21, 15, 0.10);
  --line-soft:  rgba(22, 21, 15, 0.06);

  --ok:   #3d6b46;
  --warn: #a8824f;

  --shadow-xs: 0 1px 2px rgba(22,21,15,.05);
  --shadow-sm: 0 2px 8px -2px rgba(22,21,15,.10), 0 4px 20px -8px rgba(22,21,15,.10);
  --shadow-md: 0 6px 24px -8px rgba(22,21,15,.18), 0 2px 8px -4px rgba(22,21,15,.10);
  --shadow-lg: 0 24px 60px -24px rgba(22,21,15,.35), 0 8px 24px -12px rgba(22,21,15,.18);

  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --nav-h: 74px;
  --maxw: 1240px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--brass); color: #fff; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 430; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
@media (min-width: 900px) { .container { padding-inline: 44px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--brass-d); margin: 0;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brass); opacity: .6; }
.eyebrow.center::before { display: none; }
.muted { color: var(--stone); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Reveal on scroll (bez JS treść i tak widoczna) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; padding: 14px 28px; font-size: .95rem; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .12s, box-shadow .2s;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px) scale(.995); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--forest); box-shadow: var(--shadow-md); }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-d); box-shadow: var(--shadow-md); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: rgba(22,21,15,.2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-ondark { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-ondark:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ===================================================================
   NAVBAR
   =================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: inline-flex; align-items: baseline; gap: 3px; font-family: var(--display); font-size: 1.45rem; font-weight: 500; letter-spacing: -.02em; color: #fff; transition: color .35s; }
.brand b { color: var(--brass-soft); font-weight: 500; }
.brand .dot { color: var(--brass); }
.nav-links { display: none; align-items: center; gap: 34px; }
.nav-links a { font-size: .95rem; color: rgba(255,255,255,.82); transition: color .2s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px; background: var(--brass-soft); transition: width .25s; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; }
@media (min-width: 900px) { .nav-links, .nav-cta { display: inline-flex; } }

/* stan po przewinięciu / na podstronach */
.nav.solid { background: rgba(252,250,244,.86); backdrop-filter: blur(14px) saturate(1.1); border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset; }
.nav.solid .brand { color: var(--ink); }
.nav.solid .brand b { color: var(--brass-d); }
.nav.solid .nav-links a { color: var(--slate); }
.nav.solid .nav-links a:hover { color: var(--ink); }

/* hamburger */
.nav-burger { display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.nav-burger span { width: 22px; height: 1.6px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .2s, background .35s; }
.nav.solid .nav-burger span { background: var(--ink); }
@media (min-width: 900px) { .nav-burger { display: none; } }
.nav-mobile { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 59; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.nav-mobile.open { opacity: 1; transform: none; pointer-events: auto; }
.nav-mobile a { display: block; padding: 16px 22px; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.nav-mobile .btn { margin: 16px 22px; }

/* ===================================================================
   HERO
   =================================================================== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__veil { position: absolute; inset: 0; background:
    linear-gradient(180deg, rgba(22,21,15,.5) 0%, rgba(22,21,15,.1) 30%, rgba(22,21,15,.35) 65%, rgba(22,21,15,.86) 100%); }
.hero__inner { position: relative; padding: 150px 0 70px; }
.hero__loc { color: var(--brass-soft); }
.hero h1 { color: var(--paper); font-size: clamp(2.7rem, 7vw, 5.4rem); font-weight: 400; margin: 22px 0 0; letter-spacing: -0.03em; }
.hero h1 em { font-style: italic; color: var(--brass-soft); }
.hero__sub { color: rgba(246,242,233,.82); max-width: 46ch; margin: 24px 0 0; font-size: clamp(1rem, 1.4vw, 1.18rem); }
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { display: flex; gap: 40px; margin-top: 54px; flex-wrap: wrap; }
.hero__stats .s b { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--paper); font-weight: 400; }
.hero__stats .s span { font-size: .8rem; color: rgba(246,242,233,.6); letter-spacing: .04em; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: rgba(246,242,233,.55); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__scroll i { width: 1px; height: 34px; background: linear-gradient(rgba(246,242,233,.6), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ===================================================================
   SEKCJE
   =================================================================== */
.section { padding: 88px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section.tight { padding: 66px 0; }
.band { background: var(--ivory); }
.band-dark { background: var(--forest-d); color: var(--paper); }

.section-head { max-width: 640px; }
.section-head.center { max-width: 720px; margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 400; margin: 18px 0 0; }
.section-head p { color: var(--slate); margin: 18px 0 0; font-size: 1.05rem; }
.band-dark .section-head p { color: rgba(246,242,233,.7); }

.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Wyróżniki (3 kolumny) ---------- */
.features { display: grid; gap: 14px 40px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding-top: 26px; border-top: 1px solid var(--line); }
.feature .fi { width: 30px; height: 30px; color: var(--brass); margin-bottom: 16px; }
.feature h3 { font-size: 1.4rem; font-weight: 430; }
.feature p { color: var(--slate); margin-top: 10px; font-size: .96rem; }

/* ===================================================================
   KARTY APARTAMENTÓW
   =================================================================== */
.grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s; color: inherit; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.card:hover .card__media img { transform: scale(1.06); }
.card__price { position: absolute; left: 14px; bottom: 14px; background: rgba(252,250,244,.94); backdrop-filter: blur(6px); border-radius: 999px; padding: 8px 15px; font-size: .9rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-xs); }
.card__price span { color: var(--stone); font-weight: 400; font-size: .78rem; }
.card__guests { position: absolute; right: 14px; top: 14px; background: rgba(22,21,15,.55); backdrop-filter: blur(6px); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: .72rem; font-weight: 500; letter-spacing: .02em; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__loc { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-d); font-weight: 600; }
.card h3 { font-size: 1.5rem; margin-top: 8px; font-weight: 430; }
.card__tag { color: var(--stone); font-size: .93rem; margin-top: 7px; line-height: 1.5; }
.card__specs { display: flex; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); color: var(--slate); font-size: .85rem; }
.card__specs span { display: inline-flex; align-items: center; gap: 6px; }
.card__specs svg { width: 16px; height: 16px; color: var(--brass); opacity: .85; }
.card__cta { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.card__cta .go { color: var(--brass-d); font-weight: 500; font-size: .92rem; display: inline-flex; align-items: center; gap: 7px; transition: gap .25s; }
.card:hover .card__cta .go { gap: 12px; }

/* ===================================================================
   OKOLICA / band-dark z liczbami
   =================================================================== */
.split { display: grid; grid-template-columns: 1fr; }
@media (min-width: 940px) { .split { grid-template-columns: 1.05fr 1fr; } }
.split__media { position: relative; min-height: 320px; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__body { padding: 64px 22px; }
@media (min-width: 940px) { .split__body { padding: 96px 64px; } }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 26px; margin-top: 40px; }
@media (min-width: 560px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-grid dt { font-family: var(--display); font-size: 1.9rem; color: var(--brass-soft); font-weight: 400; }
.stat-grid dd { margin: 4px 0 0; font-size: .82rem; color: rgba(246,242,233,.6); }

/* ===================================================================
   FAQ
   =================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-size: 1.1rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { position: relative; width: 18px; height: 18px; flex: none; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; background: var(--brass); transition: transform .28s; }
.faq .pm::before { top: 8px; left: 0; width: 18px; height: 1.6px; }
.faq .pm::after { top: 0; left: 8px; width: 1.6px; height: 18px; }
.faq details[open] .pm::after { transform: scaleY(0); }
.faq p { color: var(--slate); padding: 0 0 24px; max-width: 65ch; }

/* ===================================================================
   BREADCRUMB + DETAL APARTAMENTU
   =================================================================== */
.crumb { font-size: .86rem; color: var(--stone); padding-top: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { opacity: .5; }

.detail-head { margin-top: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.detail-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 400; margin-top: 12px; }
.detail-head .tl { color: var(--stone); font-size: 1.12rem; margin-top: 10px; }
.detail-head .loc { display: inline-flex; align-items: center; gap: 7px; color: var(--brass-d); font-size: .9rem; font-weight: 500; margin-top: 14px; }
.detail-head .loc svg { width: 16px; height: 16px; }

/* Galeria */
.gallery { margin-top: 26px; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .gallery { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: 520px; } }
.gallery__main { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--sand); cursor: zoom-in; }
@media (min-width: 780px) { .gallery__main { grid-row: 1 / 3; } }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; transition: transform .8s; }
@media (min-width: 780px) { .gallery__main img { aspect-ratio: auto; } }
.gallery__main:hover img { transform: scale(1.03); }
.gallery__side { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--sand); cursor: zoom-in; display: none; }
@media (min-width: 780px) { .gallery__side { display: block; } }
.gallery__side img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.gallery__side:hover img { transform: scale(1.05); }
.gallery__more { position: absolute; inset: 0; background: rgba(22,21,15,.5); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; font-weight: 500; letter-spacing: .02em; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
@media (min-width: 780px) { .gallery__thumbs { display: none; } }
.gallery__thumbs button { flex: none; width: 84px; height: 64px; border: 0; border-radius: 10px; overflow: hidden; background: var(--sand); cursor: pointer; opacity: .6; padding: 0; }
.gallery__thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Layout detalu: treść + panel */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 44px; margin-top: 50px; }
@media (min-width: 1000px) { .detail-grid { grid-template-columns: 1.5fr 1fr; gap: 60px; } }

.block { padding-top: 44px; border-top: 1px solid var(--line); }
.block:first-child { padding-top: 0; border-top: 0; }
.block h2 { font-size: 1.7rem; font-weight: 430; margin-bottom: 18px; }
.block .lede { color: var(--slate); font-size: 1.06rem; line-height: 1.8; white-space: pre-line; }

/* W skrócie */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (min-width: 560px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { }
.fact .fi { width: 24px; height: 24px; color: var(--brass); margin-bottom: 10px; }
.fact dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--stone); }
.fact dd { margin: 4px 0 0; font-size: 1.15rem; font-family: var(--display); }

/* Udogodnienia grid z ikonami */
.amen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 620px) { .amen { grid-template-columns: repeat(3, 1fr); } }
.amen li { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-sm); font-size: .94rem; color: var(--slate); box-shadow: var(--shadow-xs); transition: border-color .2s, transform .2s; }
.amen li:hover { border-color: var(--brass-soft); transform: translateY(-2px); }
.amen svg { width: 21px; height: 21px; color: var(--brass); flex: none; }

/* Lokalizacja */
.loc-card { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background:
    radial-gradient(circle at 30% 20%, rgba(168,130,79,.08), transparent 60%),
    linear-gradient(135deg, var(--sand-soft), var(--ivory)); box-shadow: var(--shadow-sm); }
.loc-card__map { position: relative; height: 240px; overflow: hidden;
  background-image:
    linear-gradient(rgba(47,64,51,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,64,51,.10) 1px, transparent 1px),
    linear-gradient(rgba(47,64,51,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,64,51,.05) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
  background-color: #e9e6da;
}
.loc-card__roads { position: absolute; inset: 0; opacity: .5; }
.loc-card__pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); }
.loc-card__pin .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--brass); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(22,21,15,.3); position: relative; z-index: 2; margin: 0 auto; }
.loc-card__pin .pulse { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--brass); transform: translate(-50%,-50%); animation: pinPulse 2.4s ease-out infinite; }
@keyframes pinPulse { 0% { opacity: .5; transform: translate(-50%,-50%) scale(1); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(5); } }
.loc-card__body { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.loc-card__body .addr { display: flex; align-items: flex-start; gap: 12px; }
.loc-card__body .addr svg { width: 22px; height: 22px; color: var(--brass); flex: none; margin-top: 2px; }
.loc-card__body .addr b { font-family: var(--display); font-size: 1.15rem; font-weight: 430; display: block; }
.loc-card__body .addr span { color: var(--stone); font-size: .85rem; }
.loc-empty { padding: 22px 24px; color: var(--stone); font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.loc-empty svg { width: 20px; height: 20px; color: var(--brass); }

/* Info / zasady */
.rules { background: var(--ivory); border-radius: var(--r-md); padding: 28px 30px; }
.rules ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.rules li { display: flex; gap: 12px; color: var(--slate); font-size: .96rem; }
.rules li svg { width: 19px; height: 19px; color: var(--brass); flex: none; margin-top: 2px; }

/* ===================================================================
   PANEL REZERWACJI (restyle — ID bez zmian)
   =================================================================== */
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-md); padding: 26px; }
@media (min-width: 1000px) { .panel.sticky { position: sticky; top: calc(var(--nav-h) + 20px); } }
.panel .price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel .price-line .big { font-family: var(--display); font-size: 1.7rem; font-weight: 430; }
.panel .price-line .big span { font-family: var(--sans); font-size: .9rem; font-weight: 400; color: var(--stone); }
.panel .price-line .muted { font-size: .78rem; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

.field-label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--stone); margin: 0 0 7px; }
.field { width: 100%; border: 1px solid rgba(22,21,15,.16); border-radius: var(--r-sm); background: var(--paper); padding: 12px 14px; font-size: .95rem; color: var(--ink); font-family: inherit; transition: border-color .18s, box-shadow .18s, background .18s; }
.field:focus { outline: none; border-color: var(--brass); background: var(--white); box-shadow: 0 0 0 3px rgba(168,130,79,.16); }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237c7a6f' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.col-2 { grid-column: 1 / -1; }

.summary { font-size: .93rem; }
.summary .r { display: flex; justify-content: space-between; color: var(--stone); margin-bottom: 9px; }
.summary .r b { color: var(--ink); font-weight: 500; }
.summary .total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 13px; font-size: 1.1rem; font-weight: 600; align-items: baseline; }
.summary .total span:last-child { font-family: var(--display); font-size: 1.35rem; }

/* Metody płatności */
.pay { display: grid; gap: 10px; }
.pay label { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; cursor: pointer; transition: border-color .2s, background .2s; }
.pay label.selected { border-color: var(--ink); background: var(--paper); }
.pay label.disabled { opacity: .55; cursor: not-allowed; }
.pay input { accent-color: var(--brass); width: 17px; height: 17px; }
.pay .pm-title { font-weight: 600; font-size: .95rem; }
.pay .pm-sub { font-size: .76rem; color: var(--stone); }
.pay .tag { margin-left: auto; font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--ok); }
.pay .tag.off { color: var(--stone); }
.blik-input { letter-spacing: .38em; text-align: center; font-size: 1.4rem; font-family: ui-monospace, monospace; }

.alert { border-radius: var(--r-sm); padding: 13px 15px; font-size: .88rem; margin-top: 14px; }
.alert-err { background: rgba(168,130,79,.13); color: var(--ink); border: 1px solid rgba(168,130,79,.3); }

.trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .74rem; color: var(--stone); }
.trust svg { width: 15px; height: 15px; color: var(--ok); }

/* ---------- Kalendarz ---------- */
.cal { margin-top: 8px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font-weight: 600; font-size: .92rem; text-transform: capitalize; }
.cal-nav { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: var(--ink); font-size: 1.1rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .18s, border-color .18s; }
.cal-nav:hover:not([disabled]) { background: var(--sand); border-color: var(--brass-soft); }
.cal-nav[disabled] { opacity: .3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow-row { margin-bottom: 6px; }
.cal-dow { text-align: center; font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; color: var(--stone); font-weight: 600; }
.cal-empty { aspect-ratio: 1; }
.cal-day { aspect-ratio: 1; border: 0; background: none; border-radius: 9px; cursor: pointer; font: inherit; font-size: .84rem; color: var(--ink); display: flex; align-items: center; justify-content: center; padding: 0; transition: background .14s, color .14s; }
.cal-day:hover:not([disabled]):not(.edge) { background: var(--sand); }
.cal-day[disabled] { color: rgba(22,21,15,.22); cursor: not-allowed; text-decoration: line-through; }
.cal-day.in-range { background: var(--sand); border-radius: 0; }
.cal-day.edge { background: var(--ink); color: var(--paper); font-weight: 600; }
.cal-day.edge-start:not(.edge-end) { border-radius: 9px 0 0 9px; }
.cal-day.edge-end:not(.edge-start) { border-radius: 0 9px 9px 0; }
.cal-hint { text-align: center; font-size: .76rem; color: var(--stone); margin: 14px 0 0; }
.cal-hint.warn { color: var(--brass-d); font-weight: 500; }

/* ---------- Ekran oczekiwania na BLIK ---------- */
.blik-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(22,21,15,.74); backdrop-filter: blur(6px); animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; } }
.blik-modal { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 44px 30px; max-width: 400px; width: 100%; text-align: center; }
.blik-modal h3 { font-size: 1.45rem; margin: 24px 0 0; }
.blik-modal p { font-size: .92rem; margin: 12px 0 0; color: var(--slate); }
.blik-phone { width: 68px; height: 68px; margin: 0 auto; border-radius: 20px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.blik-spinner { width: 30px; height: 30px; border: 3px solid rgba(246,242,233,.22); border-top-color: var(--brass-soft); border-radius: 50%; animation: blikSpin .8s linear infinite; }
@keyframes blikSpin { to { transform: rotate(360deg); } }
.blik-dots { display: flex; gap: 7px; justify-content: center; margin-top: 24px; }
.blik-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); opacity: .3; animation: blikPulse 1.4s ease-in-out infinite; }
.blik-dots span:nth-child(2) { animation-delay: .2s; }
.blik-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blikPulse { 0%,100% { opacity: .3; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .blik-spinner, .blik-dots span, .hero__img img { animation: none; } }

/* ---------- Lightbox galerii ---------- */
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(16,15,11,.95); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .25s; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; cursor: pointer; border-radius: 999px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lightbox__close { top: 20px; right: 20px; width: 46px; height: 46px; font-size: 1.5rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.6rem; }
.lightbox__nav.prev { left: 16px; }
.lightbox__nav.next { right: 16px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .85rem; letter-spacing: .05em; }

/* ===================================================================
   POTWIERDZENIE
   =================================================================== */
.confirm { max-width: 720px; margin-inline: auto; }
.confirm__head { text-align: center; }
.confirm__badge { width: 64px; height: 64px; border-radius: 50%; background: rgba(61,107,70,.12); color: var(--ok); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.confirm__badge svg { width: 30px; height: 30px; }
.confirm h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin-top: 14px; }
.refbox { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: 40px 24px; text-align: center; margin-top: 34px; box-shadow: var(--shadow-lg); }
.refbox .k { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(246,242,233,.5); }
.refbox .v { font-family: ui-monospace, monospace; font-size: clamp(2.2rem,8vw,3.4rem); letter-spacing: .14em; margin-top: 12px; }
.info-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-sm); padding: 28px; margin-top: 24px; }
.pill { border-radius: 999px; padding: 5px 13px; font-size: .72rem; font-weight: 600; }
.pill-new { background: rgba(168,130,79,.16); color: var(--brass-d); }

/* ===================================================================
   STOPKA
   =================================================================== */
.footer { background: var(--ink); color: var(--paper); margin-top: 0; }
.footer__top { display: grid; gap: 44px; grid-template-columns: 1fr; padding: 74px 0; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer .brand { color: var(--paper); font-size: 1.7rem; }
.footer p { color: rgba(246,242,233,.6); max-width: 40ch; margin-top: 14px; font-size: .95rem; }
.footer h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-soft); font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 16px 0 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(246,242,233,.72); transition: color .2s; }
.footer a:hover { color: var(--paper); }
.footer__rim { border-top: 1px solid rgba(246,242,233,.12); }
.footer__rim > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 24px 0; font-size: .8rem; color: rgba(246,242,233,.45); }

/* ===================================================================
   PUSTY STAN / 404
   =================================================================== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--stone); }
.center-screen { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 20px; }

/* ===================================================================
   TRYB CIEMNY (opcja 5)
   =================================================================== */
[data-theme="dark"] {
  --ink:        #f3efe6;
  --charcoal:   #e8e3d7;
  --slate:      #c8c4b6;
  --stone:      #9a968a;
  --sand:       #2a2822;
  --sand-soft:  #24221c;
  --ivory:      #201e19;
  --paper:      #17150f;
  --white:      #1e1c16;
  --brass:      #c9a878;
  --brass-d:    #d9bd91;
  --brass-soft: #c9ab7c;
  --line:       rgba(243, 239, 230, 0.12);
  --line-soft:  rgba(243, 239, 230, 0.07);
  --ok:   #7fc48c;
}
[data-theme="dark"] body { background: var(--paper); color: var(--ink); }
[data-theme="dark"] .nav.solid { background: rgba(23,21,15,.86); }
[data-theme="dark"] .card,
[data-theme="dark"] .panel,
[data-theme="dark"] .review,
[data-theme="dark"] .loc-card { background: var(--white); }
[data-theme="dark"] img { filter: brightness(.92); }
[data-theme="dark"] .btn-primary { background: var(--brass); color: #17150f; }
/* Elementy z jasnym tłem zakodowanym na sztywno — poprawiamy kontrast w ciemnym trybie */
[data-theme="dark"] .card__price { background: rgba(30,28,22,.94); color: var(--ink); }
[data-theme="dark"] .card__price span { color: var(--stone); }
[data-theme="dark"] .field,
[data-theme="dark"] .field:focus { background: var(--white); color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .field::placeholder { color: var(--stone); }
[data-theme="dark"] .btn-ghost { border-color: rgba(243,239,230,.25); color: var(--ink); }
[data-theme="dark"] .btn-ghost:hover { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .btn-light { background: var(--white); color: var(--ink); }
[data-theme="dark"] .blik-modal { background: var(--white); color: var(--ink); }
[data-theme="dark"] .summary,
[data-theme="dark"] .refbox,
[data-theme="dark"] .info-card,
[data-theme="dark"] .pay label { background: var(--sand-soft); color: var(--ink); }
[data-theme="dark"] .chip { background: var(--sand); color: var(--slate); }
[data-theme="dark"] .cal-day { color: var(--ink); }
[data-theme="dark"] .cal-day[disabled] { color: rgba(243,239,230,.25); }
[data-theme="dark"] .nav-mobile { background: var(--paper); }
/* Stopka: w ciemnym trybie zostaje ciemna z jasnymi napisami (stałe kolory, niezależne od zmiennych) */
[data-theme="dark"] .footer { background: #0f0e0a; }
[data-theme="dark"] .footer .brand { color: #f6f2e9; }
[data-theme="dark"] .footer p { color: rgba(246,242,233,.62); }
[data-theme="dark"] .footer h4 { color: var(--brass-soft); }
[data-theme="dark"] .footer a { color: rgba(246,242,233,.72); }
[data-theme="dark"] .footer a:hover { color: #f6f2e9; }
[data-theme="dark"] .footer__rim { border-top-color: rgba(246,242,233,.12); }
[data-theme="dark"] .footer__rim > div { color: rgba(246,242,233,.45); }
/* Refbox (numer rezerwacji) i inne ciemne bloki — zachowaj ciemne tło z jasnym tekstem */
[data-theme="dark"] .refbox { background: #201e19; color: #f6f2e9; }
[data-theme="dark"] .refbox .v { color: #f6f2e9; }
[data-theme="dark"] .cal-day.edge { background: var(--brass); color: #17150f; }
[data-theme="dark"] details { border-color: var(--line); }

/* Przełącznik motywu */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; margin-left: 10px; transition: background .2s, transform .15s, color .2s; flex-shrink: 0;
}
.theme-toggle:hover { background: var(--line-soft); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 19px; height: 19px; }
.nav:not(.solid) .theme-toggle { color: var(--paper); border-color: rgba(255,255,255,.25); }
.theme-toggle .theme-moon { display: none; }
.theme-toggle .theme-sun { display: block; }
[data-theme="dark"] .theme-toggle .theme-moon { display: block; }
[data-theme="dark"] .theme-toggle .theme-sun { display: none; }

/* ===================================================================
   BADGE / METKI / NOWOŚĆ (opcje 12, 20, 30)
   =================================================================== */
.card__corner { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.tag-new, .tag-badge {
  font-size: .7rem; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  letter-spacing: .02em; backdrop-filter: blur(4px); box-shadow: var(--shadow-xs);
}
.tag-new { background: var(--forest); color: #fff; }
.tag-badge { background: rgba(168,130,79,.95); color: #fff; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.chip {
  font-size: .72rem; padding: 4px 10px; border-radius: 999px;
  background: var(--sand-soft); color: var(--slate); border: 1px solid var(--line-soft);
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.detail-tags .tag-new, .detail-tags .tag-badge { font-size: .78rem; padding: 6px 13px; }

/* ===================================================================
   GWIAZDKI / OPINIE (opcja 73)
   =================================================================== */
.stars { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.stars__ic { letter-spacing: 1px; color: rgba(120,120,110,.35); font-size: .95rem; }
.stars__ic .on { color: #e0a63f; }
.stars__n { font-size: .82rem; color: var(--stone); }
.stars--lg .stars__ic { font-size: 1.15rem; }

.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.reviews-score { display: flex; align-items: center; gap: 12px; }
.reviews-score__num { font-family: var(--display); font-size: 2.6rem; color: var(--brass-d); line-height: 1; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-xs); }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review__avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--brass), var(--brass-d)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.05rem; flex-shrink: 0; }
.review__author { font-size: .95rem; display: block; }
.review__stars { letter-spacing: 1px; color: rgba(120,120,110,.3); font-size: .82rem; }
.review__stars .on { color: #e0a63f; }
.review__text { color: var(--slate); font-size: .92rem; line-height: 1.6; margin: 0; }

/* === DANE DO PRZELEWU === */
.transfer-box { background: var(--sand-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; }
.transfer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; }
.transfer-row span { color: var(--stone); }
.transfer-row b { font-family: var(--display); letter-spacing: .01em; word-break: break-all; text-align: right; }
[data-theme="dark"] .transfer-box { background: var(--white); }

/* === WIDOCZNE OSTRZEŻENIE O TYTULE PRZELEWU === */
.transfer-title-warn { margin-top: 14px; background: rgba(168,130,79,.12); border: 2px solid var(--brass); border-radius: var(--r-sm); padding: 14px 16px; }
.transfer-title-warn .ttw-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brass-d); font-weight: 700; margin: 0 0 6px; }
.transfer-title-warn .ttw-value { font-family: var(--display); font-size: 1.25rem; color: var(--ink); font-weight: 600; word-break: break-word; }
.transfer-title-warn .ttw-hint { font-size: .8rem; color: var(--slate); margin: 8px 0 0; }
[data-theme="dark"] .transfer-title-warn { background: rgba(201,168,120,.14); }

/* === DWUETAP: zatwierdzenie danych → płatność === */
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--charcoal); }
.btn-dark.done { background: var(--ok); color: #fff; }
[data-theme="dark"] .btn-dark { background: var(--brass); color: #17150f; }
[data-theme="dark"] .btn-dark:hover { filter: brightness(1.1); }

/* Sekcja płatności zablokowana do czasu zatwierdzenia danych */
.pay-locked { position: relative; opacity: .4; pointer-events: none; filter: grayscale(.4); transition: opacity .35s, filter .35s; }
.pay-locked::after { content: "🔒 Najpierw zatwierdź dane powyżej"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 600; color: var(--stone); background: rgba(255,255,255,.35); border-radius: var(--r-md); z-index: 3; }
[data-theme="dark"] .pay-locked::after { background: rgba(23,21,15,.45); }
.pay-unlocked { opacity: 1; pointer-events: auto; filter: none; }
.pay-unlocked::after { display: none; }

/* === MAPA POLSKI Z OBIEKTAMI === */
.map-section { background: var(--ivory); }
.map-wrap { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 44px; align-items: center; }
@media (min-width: 860px) { .map-wrap { grid-template-columns: 1.3fr 1fr; } }
.poland-map { width: 100%; max-width: 460px; margin: 0 auto; display: block; height: auto; }
.poland-shape { fill: var(--sand); stroke: var(--brass); stroke-width: 1.5; opacity: .9; }
[data-theme="dark"] .poland-shape { fill: var(--white); stroke: var(--brass); }
.map-pin { cursor: pointer; }
.map-pin__dot { fill: var(--brass); stroke: #fff; stroke-width: 2; transition: r .2s; }
.map-pin__halo { fill: var(--brass); opacity: .25; transform-origin: center; animation: pinPulse 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes pinPulse { 0%, 100% { opacity: .25; r: 11; } 50% { opacity: .05; r: 17; } }
.map-pin:hover .map-pin__dot { r: 8; }
[data-theme="dark"] .map-pin__dot { stroke: var(--paper); }
.map-legend { display: flex; flex-direction: column; gap: 12px; }
.map-legend__item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); transition: transform .2s, box-shadow .2s; text-decoration: none; }
.map-legend__item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.map-legend__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--brass); flex-shrink: 0; }
.map-legend__item b { color: var(--ink); font-size: .95rem; }
.map-legend__reg { color: var(--stone); font-size: .82rem; margin-left: auto; }

/* === STRONA PRAWNA (polityka prywatności) === */
.legal-page { max-width: 760px; padding-top: calc(var(--nav-h) + 60px); padding-bottom: 80px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 8px 0; }
.legal-content h2 { font-size: 1.15rem; margin: 32px 0 10px; color: var(--ink); }
.legal-content p { color: var(--slate); line-height: 1.75; margin: 0; }
.legal-content a { color: var(--brass-d); text-decoration: underline; }

/* === ZAJĘTE TERMINY W KALENDARZU (wyraźnie inaczej niż dni minione) === */
/* Dni minione: szare, przekreślone (reguła .cal-day[disabled] wyżej). */
/* Dni ZAJĘTE: czerwone tło + czerwony tekst, bez przekreślenia — od razu widać. */
.cal-day.cal-blocked { opacity: 1; color: #a3382f; background: rgba(192,80,77,.16); text-decoration: none; cursor: not-allowed; font-weight: 600; }
.cal-day.cal-blocked:hover { background: rgba(192,80,77,.16); }

/* Legenda pod kalendarzem */
.cal-legend { display: flex; gap: 16px; justify-content: center; margin: 10px 0 0; font-size: .76rem; color: var(--stone); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.cal-legend .lg-busy { background: rgba(192,80,77,.35); border: 1px solid #a3382f; }
.cal-legend .lg-past { background: rgba(22,21,15,.10); }
[data-theme="dark"] .cal-day.cal-blocked { color: #f0a3a1; background: rgba(192,80,77,.24); }
[data-theme="dark"] .cal-legend .lg-past { background: rgba(243,239,230,.12); }

/* === CHATBOT === */
.chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 200; }
.chat-fab { width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--brass); color: #fff; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.22); display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s; }
.chat-fab:hover { background: var(--brass-d); transform: scale(1.05); }
.chat-fab svg { width: 24px; height: 24px; }
.chat-fab__close { display: none; }
.chat-widget.open .chat-fab__open { display: none; }
.chat-widget.open .chat-fab__close { display: block; }
.chat-panel { position: absolute; bottom: 70px; right: 0; width: 340px; max-width: calc(100vw - 40px); height: 480px; max-height: calc(100vh - 120px); background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; animation: chatIn .25s ease; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--ink); color: var(--paper); }
.chat-header__av { width: 38px; height: 38px; border-radius: 50%; background: var(--brass); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-family: var(--display); flex-shrink: 0; }
.chat-header b { font-size: .92rem; display: block; }
.chat-header__st { font-size: .72rem; opacity: .7; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--ivory); }
.chat-msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: .88rem; line-height: 1.5; word-wrap: break-word; }
.chat-msg a { color: inherit; text-decoration: underline; }
.chat-msg--bot { background: var(--white); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg--user { background: var(--brass); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-typing { display: flex; gap: 4px; align-items: center; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--stone); animation: chatDot 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chatDot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: var(--ivory); }
.chat-chip { font-size: .78rem; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--brass); background: transparent; color: var(--brass-d); cursor: pointer; transition: background .15s; }
.chat-chip:hover { background: rgba(168,130,79,.1); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.chat-input input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 15px; font: inherit; font-size: .88rem; background: var(--paper); color: var(--ink); }
.chat-input input:focus { outline: none; border-color: var(--brass); }
.chat-input button { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--brass); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-input button:hover { background: var(--brass-d); }
.chat-input button svg { width: 18px; height: 18px; }
[data-theme="dark"] .chat-panel { background: var(--white); }
@media (max-width: 480px) { .chat-panel { width: calc(100vw - 32px); height: calc(100vh - 100px); } .chat-widget { bottom: 16px; right: 16px; } }

/* === SOCIAL PROOF (popularność obiektu) === */
.social-proof { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 8px 12px; background: rgba(168,130,79,.08); border-radius: var(--r-sm); font-size: .82rem; color: var(--brass-d); }
.social-proof__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); flex-shrink: 0; animation: spPulse 2s ease-in-out infinite; }
@keyframes spPulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(168,130,79,.4); } 50% { opacity: .6; box-shadow: 0 0 0 6px rgba(168,130,79,0); } }

/* === PERŁA MIESIĄCA (wyróżniony obiekt) === */
.tag-pearl { font-size: .7rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: #fff; letter-spacing: .02em; background: linear-gradient(110deg, #b8860b 0%, #e8c15a 45%, #fff4d0 50%, #e8c15a 55%, #b8860b 100%); background-size: 220% 100%; animation: pearlShine 3.5s linear infinite; box-shadow: 0 2px 8px rgba(184,134,11,.4); }
@keyframes pearlShine { 0% { background-position: 220% 0; } 100% { background-position: -20% 0; } }
.detail-tags .tag-pearl { font-size: .82rem; padding: 7px 15px; }
