/* gruntowo.pl – drobne poprawki (menu na telefonie). Ładowane po style.css. */

/* mniejsze pozycje w rozwijanym menu na telefonie */
.mobile-menu ul { gap: clamp(.7rem, 2.2vh, 1.35rem); }
.mobile-menu .mm-link { font-size: clamp(1.1rem, 3.4vh, 1.5rem); line-height: 1.2; }
.mobile-menu .mm-link-glowny { font-size: clamp(1.05rem, 3.2vh, 1.4rem); padding-bottom: .35rem; }

/* subtelna informacja o nowej publikacji pod „Publikacje” */
.mobile-menu .mm-nowosc {
  display: block; margin-top: .35rem;
  font-family: Montserrat, system-ui, sans-serif; font-size: .72rem; font-weight: 400;
  letter-spacing: .02em; line-height: 1.4;
  color: rgba(201,169,110,.8); text-decoration: none;
}
.mobile-menu .mm-nowosc:hover { color: var(--gold, #c9a96e); }

/* wyszukiwarka, krok 2: wyraźny przycisk powrotu do wyboru miejscowości */
#step-2 .search-label { flex-wrap: wrap; gap: .6rem .9rem; }
#step-2 #btn-back {
  opacity: 1; gap: .45rem; min-height: 40px;
  padding: .5rem 1rem .5rem .75rem;
  border: 1px solid rgba(201,169,110,.75); border-radius: 999px;
  background: rgba(201,169,110,.14); color: var(--gold, #c9a96e);
  font: 600 .8rem/1 Montserrat, system-ui, sans-serif; letter-spacing: .02em; text-transform: none;
  transition: background .2s, color .2s;
}
#step-2 #btn-back svg { width: 16px; height: 16px; }
#step-2 #btn-back::after { content: "Zmień miejscowość"; }
#step-2 #btn-back:hover, #step-2 #btn-back:focus-visible { background: var(--gold, #c9a96e); color: #0b0c0a; }

/* wyszukiwarka, krok 2: przycisk „Zbadaj nieruchomość” – pulsuje i błyska, ramka z e-mailem świeci */
#step-2 .search-row:has(#btn-submit) { animation: gr-ramka2 3.2s ease-in-out infinite; }
#step-2 .search-row:has(#btn-submit):focus-within { animation: none; border-color: rgba(201,169,110,.9); box-shadow: 0 0 22px rgba(201,169,110,.32); }
@keyframes gr-ramka2 {
  0%,100% { border-color: rgba(255,255,255,.14); box-shadow: 0 0 0 rgba(201,169,110,0); }
  50%     { border-color: rgba(201,169,110,.85); box-shadow: 0 0 26px rgba(201,169,110,.34); }
}
#btn-submit { position: relative; overflow: hidden; animation: gr-puls 2.2s ease-in-out infinite; }
@keyframes gr-puls {
  0%,100% { filter: brightness(1);    box-shadow: inset 0 0 0 0 rgba(255,255,255,0); }
  50%     { filter: brightness(1.2);  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
}
#btn-submit::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent);
  transform: skewX(-18deg); animation: gr-blysk2 3s ease-in-out .5s infinite;
}
@keyframes gr-blysk2 { 0% { left: -60%; } 30%,100% { left: 130%; } }
#btn-submit:hover { animation: none; filter: brightness(1.15); }
@media (prefers-reduced-motion: reduce) {
  #step-2 .search-row:has(#btn-submit), #btn-submit, #btn-submit::after { animation: none; }
}

/* krok z mapą: bez linku „Inna miejscowość o tej nazwie? Zmień →” (jest przycisk „Zmień miejscowość”) */
.mw-zmien { display: none !important; }

/* Umawianie konsultacji: szersze okno i większa mapa do wskazania działki */
html body #konsult-modal form.km-start { max-width: 880px; }
html body #konsult-modal .km-mapa-box { height: min(52vh, 480px); }
@media (max-width: 520px) { html body #konsult-modal .km-mapa-box { height: 52vh; } }

/* Publikacje: przy 4 kartach - szeroka na gorze + 3 rowne kolumny (bez pustego miejsca) */
.pub-lista:has(> .pub-karta:nth-child(4):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .pub-lista:has(> .pub-karta:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-lista:has(> .pub-karta:nth-child(4):last-child) > .pub-karta:nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .pub-lista:has(> .pub-karta:nth-child(4):last-child) { grid-template-columns: 1fr; }
}

/* Publikacje 4 karty: wyrownanie trzech kart w rzedzie */
.pub-lista:has(> .pub-karta:nth-child(4):last-child) > .pub-karta:not(:first-child) h3 { font-size: clamp(21px, 1.7vw, 25px) !important; line-height: 1.22; }
.pub-lista:has(> .pub-karta:nth-child(4):last-child) > .pub-karta:not(:first-child) .pub-karta-liczby { display: none; }
.pub-lista:has(> .pub-karta:nth-child(4):last-child) > .pub-karta:not(:first-child) .pub-karta-stopka { margin-top: auto; }

/* ---------- O nas: ekspert gruntowo.pl (zdjecie + cytat), obie wersje kolorystyczne ---------- */
.ekspert { position: relative; margin: 8.5rem 0 0; display: grid; grid-template-columns: minmax(260px, 360px) 1fr; align-items: stretch; min-height: 300px;
  border-radius: 22px; border: 1px solid rgba(201,169,110,.24); background: linear-gradient(135deg, rgba(201,169,110,.10), rgba(255,255,255,.02) 60%); box-shadow: 0 30px 70px -45px rgba(0,0,0,.8); }
.ekspert-foto { position: relative; min-height: 300px; }
.ekspert-foto::before { content: ''; position: absolute; left: 50%; bottom: 0; width: 340px; height: 340px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(201,169,110,.32), rgba(201,169,110,0) 68%); pointer-events: none; }
.ekspert-foto picture, .ekspert-foto img { display: block; }
.ekspert-foto img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 410px; width: auto; max-width: none; border-bottom-left-radius: 22px; }
.ekspert-cytat { margin: 0; padding: 3.2rem 3.6rem 3.2rem 1.2rem; align-self: center; }
.ekspert-cytat .ek-znak { display: block; width: 34px; height: 26px; margin: 0 0 1.1rem; fill: #c9a96e; opacity: .9; }
.ekspert-cytat p { margin: 0 0 1.6rem; font-size: clamp(1.12rem, 1.55vw, 1.42rem); line-height: 1.55; font-weight: 400; color: #f2f0eb; letter-spacing: .005em; }
.ekspert-cytat p em { font-style: normal; color: #c9a96e; }
.ekspert-podpis { display: flex; flex-direction: column; gap: .25rem; padding-top: 1.2rem; border-top: 1px solid rgba(201,169,110,.25); }
.ekspert-podpis b { font-size: 1.05rem; font-weight: 600; color: #f2f0eb; letter-spacing: .01em; }
.ekspert-podpis span { font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #c9a96e; }
html[data-motyw="jasny"] .ekspert { background: #ffffff; border-color: rgba(154,117,54,.22); box-shadow: 0 34px 70px -42px rgba(59,42,28,.55); }
html[data-motyw="jasny"] .ekspert-foto::before { background: radial-gradient(circle at 50% 55%, rgba(154,117,54,.20), rgba(154,117,54,0) 68%); }
html[data-motyw="jasny"] .ekspert-cytat .ek-znak { fill: #9a7536; }
html[data-motyw="jasny"] .ekspert-cytat p em, html[data-motyw="jasny"] .ekspert-podpis span { color: #9a7536; }
html[data-motyw="jasny"] .ekspert-cytat p, html[data-motyw="jasny"] .ekspert-podpis b { color: #3b2a1c; }
html[data-motyw="jasny"] .ekspert-podpis { border-top-color: rgba(59,42,28,.12); }
@media (max-width: 900px) {
  .ekspert { grid-template-columns: 1fr; margin-top: 6.5rem; }
  .ekspert-foto { min-height: 250px; }
  .ekspert-foto::before { width: 280px; height: 280px; }
  .ekspert-foto img { height: 330px; border-radius: 0; }
  .ekspert-cytat { padding: 1.8rem 1.5rem 2rem; border-top: 1px solid rgba(201,169,110,.2); }
}

/* ---------- Hero: czytelniejszy podtytul i podpowiedz w wyszukiwarce (wiekszy kontrast, grubsza czcionka) ---------- */
html body .hero .hero-sub { color: rgba(255,255,255,.97) !important; font-weight: 500; font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.6;
  text-shadow: 0 1px 2px rgba(20,14,8,.45), 0 2px 18px rgba(20,14,8,.55); }
html body #szukaj .search-hint-sm { font-weight: 500; font-size: .9rem; line-height: 1.5; color: rgba(242,240,235,.9) !important; }
html[data-motyw="jasny"] body #szukaj .search-hint-sm { color: #3b2a1c !important; }

/* ---------- Hero: wieksze i czytelniejsze podpisy pod liczbami (12 lat, 200, 80 mln zl, 3) ---------- */
html body .hero-stats .hstat-l { font-size: .98rem !important; font-weight: 600 !important; letter-spacing: .06em !important; line-height: 1.45; color: rgba(242,240,235,.88) !important; }
html[data-motyw="jasny"] body .hero-stats .hstat-l { color: #3b2a1c !important; }
@media (max-width: 600px) { html body .hero-stats .hstat-l { font-size: .88rem !important; } }

/* ---------- O nas: mapa Polski na zdjeciu satelitarnym (onas-mapa-pl.jpg w SVG), w obu wersjach ---------- */
html body .hw3-mapa { background: #12100c !important; }
html body .hw3-obrys { display: none; }
html body .hw3-mapa .hw3-miasto text { fill: #f4efe6 !important; paint-order: stroke; stroke: rgba(14,11,7,.75); stroke-width: 2.6px; stroke-linejoin: round; }
html body .hw3-mapa .hw3-miasto circle { fill: #e6c98e !important; }
html body .hw3-mapa .hw3-miasto.glowne circle { fill: #f0d9a8 !important; }
html body .hw3-mapa .hw3-linia { stroke: rgba(240,215,160,.75) !important; }
html body .hw3-mapa .hw3-puls { fill: rgba(240,215,160,.22) !important; stroke: rgba(240,215,160,.6) !important; }
html body .hw3-mapa .hw3-mapa-t { color: #f4efe6 !important; background: rgba(14,11,7,.72) !important; }
