﻿/* STAGE35BH_DOMY_INDEX_LIST_AND_RESERVED_STATE
   Osobny szablon inwestycji domĂłw. WĹ‚aĹ›ciciel wizualny: .dh-doz-index.
   Cel: ukĹ‚ad hero jak szablon mieszkan (index), bez nadpisu nad listÄ… domĂłw, z rezerwacjÄ… jak w szablonie mieszkaĹ„.
   Nie zmienia szablonĂłw mieszkaĹ„ i nie jest plastrem pod jednÄ… inwestycjÄ™. */

body.dh-doz-index-page {
  margin: 0;
  background: #f7f6f1;
}

.dh-doz-index {
  --dh-doz-bg: #f7f6f1;
  --dh-doz-ink: #101a14;
  --dh-doz-muted: rgba(16, 26, 20, 0.68);
  --dh-doz-green: #06452f;
  --dh-doz-border: rgba(16, 26, 20, 0.12);
  --dh-doz-card: rgba(255, 255, 255, 0.88);
  --dh-doz-shadow: 0 24px 70px rgba(12, 28, 18, 0.10);
  box-sizing: border-box;
  width: min(1320px, calc(100% - 72px));
  margin: 0 auto;
  padding: 28px 0 20px;
  color: var(--dh-doz-ink);
  background: var(--dh-doz-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dh-doz-index *,
.dh-doz-index *::before,
.dh-doz-index *::after { box-sizing: border-box; }

/* STAGE35CW — tiles never let content escape: long words wrap (overflow-wrap is inherited, so this
   covers every text node), and every tile can shrink inside its grid track and clips overflow. */
.dh-doz-index { overflow-wrap: break-word; }
.dh-doz-index__stat,
.dh-doz-index__house,
.dh-doz-index__info-card { min-width: 0; overflow: hidden; }

.dh-doz-index a { color: inherit; }

.dh-doz-index__title,
.dh-doz-index__section-title,
.dh-doz-index__location-title,
.dh-doz-index__info-title,
.dh-doz-index__house-title,
.dh-doz-index__stat-value {
  margin: 0;
  color: var(--dh-doz-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.dh-doz-index__back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 8px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  text-decoration: none;
  font-weight: 850;
}

.dh-doz-index__hero {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(350px, 0.82fr) minmax(620px, 1.38fr);
  align-items: flex-start;
  gap: 0;
  background: var(--dh-doz-bg);
}

.dh-doz-index__copy {
  min-width: 0;
  padding: 10px 36px 10px 0;
  position: relative;
  z-index: 3;
  background: var(--dh-doz-bg);
}

.dh-doz-index__eyebrow {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dh-doz-green);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.dh-doz-index__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.dh-doz-index__title {
  max-width: 500px;
  font-size: clamp(3.25rem, 4.5vw, 5.2rem);
  line-height: 1.12;
}

.dh-doz-index__lead {
  max-width: 500px;
  margin: 18px 0 0;
  color: var(--dh-doz-muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.dh-doz-index__actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.dh-doz-index__button {
  min-height: 50px;
  padding: 0 26px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  background: var(--dh-doz-green);
  border: 1px solid var(--dh-doz-green);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(6, 69, 47, 0.18);
}

.dh-doz-index__button--light {
  color: var(--dh-doz-ink);
  background: #fff;
  border-color: var(--dh-doz-border);
  box-shadow: none;
}

.dh-doz-index__media {
  height: 470px;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--dh-doz-bg);
  isolation: isolate;
  border-radius: 0;
  box-shadow: none;
}

.dh-doz-index__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--dh-doz-bg) 0%, rgba(247, 246, 241, 0.94) 7%, rgba(247, 246, 241, 0.62) 15%, rgba(247, 246, 241, 0.26) 24%, rgba(247, 246, 241, 0) 32%);
}

.dh-doz-index__media-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}

.dh-doz-index__stats {
  width: min(1080px, calc(100% - 180px));
  margin: -132px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  /* STAGE35CW — count-driven: as many tiles as there are data entries; grid fits them itself. */
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 24px;
}

.dh-doz-index__stat {
  min-height: 106px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--dh-doz-border);
  border-radius: 16px;
  box-shadow: var(--dh-doz-shadow);
}

.dh-doz-index__stat-value {
  display: block;
  font-size: clamp(1.18rem, 1.75vw, 1.68rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.dh-doz-index__stat-label {
  display: block;
  color: var(--dh-doz-muted);
  font-size: 0.82rem;
  line-height: 1.15;
}

.dh-doz-index__section { margin-top: -78px; }
.dh-doz-index__location { margin-top: -78px; }
.dh-doz-index__info { margin-top: 0; }

.dh-doz-index__section-head {
  margin-bottom: 10px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.dh-doz-index__section-title,
.dh-doz-index__location-title {
  font-size: clamp(2.1rem, 3.1vw, 3.2rem);
  line-height: 0.98;
}

.dh-doz-index__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.dh-doz-index__pill {
  min-height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--dh-doz-border);
  background: rgba(255,255,255,0.75);
  font-weight: 900;
  cursor: pointer;
}

.dh-doz-index__pill.is-active {
  color: #fff;
  background: var(--dh-doz-green);
}

.dh-doz-index__houses {
  display: grid;
  /* STAGE35CW — count-driven: one tile per house in the data, laid out to fit. */
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 22px;
}

.dh-doz-index__house {
  overflow: hidden;
  border-radius: 18px;
  background: var(--dh-doz-card);
  border: 1px solid var(--dh-doz-border);
  box-shadow: 0 18px 48px rgba(12, 28, 18, 0.08);
}

.dh-doz-index__house[hidden] { display: none; }

.dh-doz-index__house-media {
  height: 215px;
  display: block;
  position: relative;
  overflow: hidden;
  background: #fbfaf7;
}

.dh-doz-index__house-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* STAGE35CW — zapowiedź: neutral placeholder when a house has no image (never a broken img). */
.dh-doz-index__house-media--empty {
  background: repeating-linear-gradient(135deg, #f4f2ec, #f4f2ec 10px, #efece4 10px, #efece4 20px);
}

.dh-doz-index__house-number,
.dh-doz-index__house-status {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--dh-doz-green);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dh-doz-index__house-number { left: 14px; }
.dh-doz-index__house-status { right: 14px; background: #4b5563; }

.dh-doz-index__house.is-reserved {
  background: rgba(229, 231, 235, 0.92);
  border-color: rgba(107, 114, 128, 0.32);
  box-shadow: 0 14px 38px rgba(31, 41, 55, 0.08);
}

.dh-doz-index__house.is-reserved .dh-doz-index__house-media { background: #e5e7eb; }
.dh-doz-index__house.is-reserved .dh-doz-index__house-img { opacity: 0.56; filter: grayscale(1); }
.dh-doz-index__house.is-reserved .dh-doz-index__house-title,
.dh-doz-index__house.is-reserved .dh-doz-index__house-facts strong { color: #374151; }
.dh-doz-index__house.is-reserved .dh-doz-index__house-link { color: #374151; border-color: rgba(75, 85, 99, 0.32); background: rgba(255, 255, 255, 0.72); }

.dh-doz-index__house-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.dh-doz-index__house-title {
  font-size: 1.32rem;
  line-height: 1.12;
}

.dh-doz-index__house-title a,
.dh-doz-index__house-link { text-decoration: none; }

.dh-doz-index__house-meta {
  min-height: 42px;
  margin: 0;
  color: var(--dh-doz-muted);
  line-height: 1.45;
}

.dh-doz-index__house-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-top: auto;
  color: var(--dh-doz-muted);
}

.dh-doz-index__house-facts strong {
  color: var(--dh-doz-green);
  font-size: 1.35rem;
  font-weight: 950;
}

.dh-doz-index__house-link {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dh-doz-green);
  border: 1px solid rgba(6, 69, 47, 0.28);
  font-weight: 900;
  background: rgba(255,255,255,0.78);
}

.dh-doz-index__location {
  display: grid;
  grid-template-columns: 0.78fr 1.5fr;
  align-items: start;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--dh-doz-border);
  box-shadow: 0 20px 54px rgba(12, 28, 18, 0.08);
}

.dh-doz-index__location-copy { padding: 20px 28px 16px; }
.dh-doz-index__location .dh-doz-index__eyebrow { margin-bottom: 10px; }
.dh-doz-index__location-title { font-size: clamp(1.8rem, 2.45vw, 2.55rem); }
.dh-doz-index__location-text { margin: 10px 0 0; color: var(--dh-doz-muted); font-size: 0.86rem; line-height: 1.38; }
.dh-doz-index__location-list,
.dh-doz-index__info-list { margin: 10px 0 0; padding-left: 18px; color: var(--dh-doz-muted); font-size: 0.82rem; line-height: 1.42; }
.dh-doz-index__list-item + .dh-doz-index__list-item { margin-top: 8px; }
.dh-doz-index__location-media { min-height: 220px; margin: 0; overflow: hidden; background: #edf2e9; }
.dh-doz-index__location-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* STAGE35CW — zapowiedź gallery inside the location tile: big main image + thumbnail row. */
.dh-doz-index__gallery { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.dh-doz-index__gallery-main { margin: 0; border-radius: 14px; overflow: hidden; background: #edf2e9; aspect-ratio: 16 / 10; }
.dh-doz-index__gallery-main-img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.dh-doz-index__gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.dh-doz-index__gallery-thumb { padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 4 / 3; transition: border-color .15s ease; }
.dh-doz-index__gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-doz-index__gallery-thumb:hover { border-color: rgba(6, 69, 47, 0.4); }
.dh-doz-index__gallery-thumb.is-active { border-color: var(--dh-doz-green); }

.dh-doz-index__info {
  display: grid;
  /* STAGE35CW — count-driven: one card per info section that has data, laid out to fit. */
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 18px;
}

.dh-doz-index__info-card {
  padding: 22px 24px;
  border-radius: 16px;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--dh-doz-border);
}

.dh-doz-index__info-title {
  margin-bottom: 9px;
  font-size: 1.24rem;
}

@media (max-width: 1180px) {
  .dh-doz-index { width: min(100% - 48px, 1320px); }

  .dh-doz-index__hero,
  .dh-doz-index__location {
    grid-template-columns: 1fr;
  }

  .dh-doz-index__copy { padding: 42px 28px 30px; }
  .dh-doz-index__media { height: 420px; }

  .dh-doz-index__stats,
  .dh-doz-index__houses,
  .dh-doz-index__info {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dh-doz-index__stats { margin: 24px 0 48px; }
  .dh-doz-index__section { margin-top: 0; }
}

@media (max-width: 720px) {
  .dh-doz-index {
    width: min(100% - 28px, 1320px);
    padding-top: 22px;
  }

  .dh-doz-index__title { font-size: 3.25rem; }

  .dh-doz-index__stats,
  .dh-doz-index__houses,
  .dh-doz-index__info {
    grid-template-columns: 1fr;
  }

  .dh-doz-index__section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dh-doz-index__pills {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }

  .dh-doz-index__pill {
    flex: 0 0 auto;
  }
}

/* STAGE35CT_OSIEDLE_DOMOW_ZAPOWIEDZ
   Global osiedle-domów layout mirroring the apartments index template (MIESZKANIE_INWESTYCJA_INDEX):
   hero → stats overlapping the banner (base -132px) → "Dostępne domy" right under the stats →
   location → info, all with one short, consistent section gap. This is the single global spacing rule — one section gap for every estate, no per-investment overrides. */
.dh-doz-index { --dh-doz-section-gap: 12px; }

.dh-doz-index__location { margin-top: var(--dh-doz-section-gap); }
.dh-doz-index__info { margin-top: var(--dh-doz-section-gap); }

@media (max-width: 720px) {
  .dh-doz-index__location,
  .dh-doz-index__info { margin-top: var(--dh-doz-section-gap); }
}


/* STAGE35DY_OSIEDLE_HERO_TOP_SPACING */


/* STAGE35EF_OSIEDLE_ZAPOWIEDZ_NO_HOUSE_SECTION */
