.elementor-2714 .elementor-element.elementor-element-1c07bc8{--display:flex;}/* Start custom CSS for shortcode, class: .elementor-element-1a69d02 *//* =========================================
   SINGLE AGENT (CPT: esti_agent) – ESTAGO
   działa z markup: .esti-agent + .esti-offer-card
   ========================================= */

/* ====== KARTA AGENTA ====== */
body.single-esti_agent .esti-agent{
  max-width: 1200px;
  margin: 40px auto 10px;
  padding: 0 20px;
}

body.single-esti_agent .esti-agent__card{
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  padding: 22px;
}

body.single-esti_agent .esti-agent__photo{
  border-radius: 16px;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 4 / 5;            /* portret */
}

body.single-esti_agent .esti-agent__photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;       /* kadruj wyżej */
  display: block;
}

body.single-esti_agent .esti-agent__name{
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 14px;
  font-weight: 700;
}

body.single-esti_agent .esti-agent__contacts{
  background: rgba(0,0,0,.03);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 14px;
}

body.single-esti_agent .esti-agent__row{
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  margin: 8px 0;
  align-items: baseline;
}

body.single-esti_agent .esti-agent__label{ opacity: .7; }
body.single-esti_agent .esti-agent__link{
  color: #c62828;
  font-weight: 700;
  text-decoration: none;
}
body.single-esti_agent .esti-agent__link:hover{ text-decoration: underline; }

body.single-esti_agent .esti-agent__desc{
  margin-top: 10px;
  line-height: 1.7;
  opacity: .9;
  max-width: 75ch;
}

body.single-esti_agent .esti-agent-section-title{
  max-width: 1200px;
  margin: 28px auto 16px;
  padding: 0 20px;
  font-size: 32px;
  font-weight: 800;
}

/* RWD agent */
@media (max-width: 900px){
  body.single-esti_agent .esti-agent__card{ grid-template-columns: 1fr; }
  body.single-esti_agent .esti-agent__name{ font-size: 36px; }
}

/* ====== GRID OFERT AGENTA – jak /oferta ====== */
/* ====== GRID OFERT AGENTA – NOWY MARKUP (.esti-offer-tile) ====== */
body.single-esti_agent .esti-agent-offers{
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* KAFEL */
body.single-esti_agent .esti-offer-tile{
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  transition: transform .25s ease;
}
body.single-esti_agent .esti-offer-tile:hover{ transform: translateY(-5px); }

body.single-esti_agent .esti-offer-tile__link{
  display:block;
  text-decoration:none;
  color: inherit;
}

/* OBRAZ (u Ciebie to background-image) */
body.single-esti_agent .esti-offer-tile__img{
  width: 100%;
  height: 200px;           /* jak na /oferta */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* OVERLAY DLA DOSTĘPNYCH (tytuł + cena) */
body.single-esti_agent .esti-offer-tile.is-available .esti-offer-tile__overlay{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 15px 20px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  z-index: 2;
}

/* tytuł max 2 linie */
body.single-esti_agent .esti-offer-tile__title{
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;

  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.single-esti_agent .esti-offer-tile__price{
  margin: 0;
  font-size: 15px;
  opacity: .95;
}

/* ====== NIEDOSTĘPNE (klasa is-unavailable) ====== */

/* przygaś */
body.single-esti_agent .esti-offer-tile.is-unavailable .esti-offer-tile__img{
  filter: grayscale(1) brightness(.78);
}

/* nakładka pełna */
body.single-esti_agent .esti-offer-tile.is-unavailable .esti-offer-tile__overlay--unavailable{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(227,66,52,.35);
  z-index: 4;
  pointer-events: none; /* klik nadal działa */
}

/* napis */
body.single-esti_agent .esti-offer-tile.is-unavailable .esti-offer-tile__badge{
  background: rgba(255,255,255,.92);
  color: #e34234;
  font-weight: 800;
  font-size: 18px;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

/* RWD */
@media (max-width: 520px){
  body.single-esti_agent .esti-offer-tile.is-unavailable .esti-offer-tile__badge{
    font-size: 16px;
    padding: 7px 14px;
  }
}


/* RWD */
@media (max-width: 520px){
  body.single-esti_agent .esti-offer-card:has(.esti-offer-card__img img[alt="–"])::before,
  body.single-esti_agent .esti-offer-card:has(.esti-offer-card__img img[alt="-"])::before{
    font-size: 16px;
    padding: 7px 14px;
  }
}
/* === MOBILE FIX: mail nie wychodzi poza kartę === */
body.single-esti_agent .esti-agent__contacts,
body.single-esti_agent .esti-agent__row{
  min-width: 0; /* pozwala elementom w gridzie się kurczyć */
}

body.single-esti_agent .esti-agent__link{
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;     /* najlepsze łamanie maili */
  word-break: break-word;      /* fallback */
  hyphens: auto;
}

/* opcjonalnie: jeśli chcesz, żeby tel/mail były w jednej linii i z "..." */
body.single-esti_agent .esti-agent__link.is-ellipsis{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}/* End custom CSS */