/* Lakásguru Ingatlanok — színek: #303D5D #CD732F #222221 */

.lg-ingatlanok {
  --lg-navy: #303d5d;
  --lg-accent: #cd732f;
  --lg-dark: #222221;
  --lg-muted: #6b6b6b;
  --lg-light-muted: #9a9a9a;
  --lg-white: #ffffff;
  --lg-radius: 0;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  color: var(--lg-dark);
  box-sizing: border-box;
}

.lg-ingatlanok *,
.lg-ingatlanok *::before,
.lg-ingatlanok *::after {
  box-sizing: border-box;
}

.lg-ingatlanok img {
  border-radius: 0;
}

/* ——— Archívum: 3 oszlop ——— */
.lg-archive--grid {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.lg-archive--c1 {
  grid-template-columns: minmax(0, 1fr);
}

.lg-archive--c2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lg-archive--c3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lg-archive--c4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .lg-archive--c3,
  .lg-archive--c4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .lg-archive--grid[class*="lg-archive--c"] {
    grid-template-columns: 1fr;
  }
}

/* Archívum kártya: kép → típus → m² → ár → gomb; háttér #303D5D, fehér szöveg, 10px padding */
.lg-card-tile {
  background: var(--lg-navy);
  color: var(--lg-white);
  border: none;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 10px;
}

.lg-card-tile__body {
  padding: 0;
  flex: 0 0 auto;
}

.lg-card-tile__meta {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lg-card-tile__row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  color: var(--lg-white);
}

.lg-card-tile__row:last-child {
  margin-bottom: 0;
}

.lg-card-tile__row .lg-icon {
  margin-top: 2px;
  color: var(--lg-accent);
}

.lg-card-tile__media {
  flex: 0 0 auto;
  position: relative;
  width: 100%;
}

.lg-card-tile__imglink {
  display: block;
  line-height: 0;
  min-height: 180px;
}

.lg-card-tile__img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.lg-card-tile__placeholder {
  min-height: 180px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lg-white);
  font-weight: 600;
}

.lg-card-tile__cta {
  padding: 0;
  margin-top: auto;
}

.lg-card-tile__cta .cta-wrap {
  width: 100%;
}

.lg-card-tile__cta .cta-button {
  width: 100%;
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 4rem;
}

/* Archívum gomb: narancs → navy hover (cta-button) */
.cta-wrap * {
  box-sizing: border-box;
}

.cta-button {
  --bg-default: #cd732f;
  --bg-hover: #303d5d;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden;

  background: var(--bg-default);
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;

  padding: 10px 100px 10px 20px;

  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 1px;
}

.cta-button:hover {
  color: #ffffff;
}

.cta-button span {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.cta-button::before,
.cta-button::after {
  content: "";
  position: absolute;
  width: 0;
  height: 50%;
  background: var(--bg-hover);
  left: 0;
  transition: width 0.5s ease;
}

.cta-button::before {
  top: 0;
}

.cta-button::after {
  bottom: 0;
}

.cta-button:hover::before,
.cta-button:hover::after {
  width: 100%;
}

.cta-line {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  border-bottom: 2px solid #ffffff;
  transition: 0.4s;
  z-index: 2;
}

.cta-button:hover .cta-line {
  width: 50px;
}

@media (max-width: 768px) {
  .lg-card-tile__cta .cta-button {
    padding: 10px 70px 10px 20px;
  }

  .cta-button:hover .cta-line {
    width: 30px;
  }
}

.lg-empty,
.lg-error {
  padding: 1rem;
  background: #f5f5f4;
  border-left: 4px solid var(--lg-accent);
}

/* Ikonok */
.lg-icon {
  display: inline-flex;
  color: var(--lg-accent);
  flex-shrink: 0;
}

.lg-icon svg {
  display: block;
}

/* CTA gomb */
.cta2-wrap * {
  box-sizing: border-box;
}

.cta2-button {
  --bg-default: #303d5d;
  --bg-hover: #222221;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden;

  background: var(--bg-default);
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;

  padding: 10px 100px 10px 20px;

  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 1px;
}

.cta2-button:hover {
  color: #ffffff;
}

.cta2-button span {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.cta2-button::before,
.cta2-button::after {
  content: "";
  position: absolute;
  width: 0;
  height: 50%;
  background: var(--bg-hover);
  left: 0;
  transition: width 0.5s ease;
}

.cta2-button::before {
  top: 0;
}

.cta2-button::after {
  bottom: 0;
}

.cta2-button:hover::before,
.cta2-button:hover::after {
  width: 100%;
}

.cta2-line {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  border-bottom: 2px solid #ffffff;
  transition: 0.4s;
  z-index: 2;
}

.cta2-button:hover .cta2-line {
  width: 50px;
}

@media (max-width: 768px) {
  .cta2-button {
    padding: 10px 70px 10px 20px;
  }

  .cta2-button:hover .cta2-line {
    width: 30px;
  }
}

/* ——— Egyedi oldal ——— */
.lg-single-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 2rem;
}

.lg-single-page__header {
  margin-bottom: 1.5rem;
}

.lg-single-page__heading {
  margin: 0 0 0.35rem;
  font-family: "Montserrat", sans-serif;
  font-size: 45px;
  font-weight: 900;
  color: #303d5d;
  line-height: 1.15;
}

.lg-single-page__subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--lg-muted);
  font-weight: 500;
}

/* Galéria: nagy bal, két kép jobb */
.lg-gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .lg-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.lg-gallery-grid__main {
  position: relative;
  border-radius: var(--lg-radius);
  overflow: hidden;
  line-height: 0;
  min-height: 280px;
}

.lg-gallery-grid__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.lg-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
}

.lg-badge--blue {
  background: #2563eb;
}

.lg-badge--green {
  background: #16a34a;
}

.lg-gallery-grid__main-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.lg-gallery-grid__side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.lg-gallery-grid__cell {
  position: relative;
  flex: 1;
  border-radius: var(--lg-radius);
  overflow: hidden;
  line-height: 0;
  display: block;
  min-height: 120px;
}

.lg-gallery-grid__cell--more .lg-gallery-grid__more {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(34, 34, 33, 0.82);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 0;
  pointer-events: none;
}

.lg-gallery-grid__side-img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
}

/* Összefoglaló sáv */
.lg-summary-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--lg-white);
  border: 1px solid #e4e4e2;
  border-radius: var(--lg-radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

@media (max-width: 540px) {
  .lg-summary-bar {
    grid-template-columns: 1fr;
  }
}

.lg-summary-bar__col {
  padding: 1.1rem 1.25rem;
  text-align: center;
  border-right: 1px solid #e4e4e2;
}

.lg-summary-bar__col:last-child {
  border-right: 0;
}

@media (max-width: 540px) {
  .lg-summary-bar__col {
    border-right: 0;
    border-bottom: 1px solid #e4e4e2;
  }

  .lg-summary-bar__col:last-child {
    border-bottom: 0;
  }
}

.lg-summary-bar__label {
  display: block;
  font-size: 0.8rem;
  color: var(--lg-muted);
  margin-bottom: 0.35rem;
}

.lg-summary-bar__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lg-dark);
}

/* Részletes táblázat */
.lg-spec-card {
  background: var(--lg-white);
  border: 1px solid #e4e4e2;
  border-radius: var(--lg-radius);
  padding: 1.35rem 1.5rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 20px rgba(34, 34, 33, 0.05);
}

.lg-spec-card__title {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--lg-dark);
}

.lg-spec-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
}

@media (max-width: 768px) {
  .lg-spec-table {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.lg-spec-table__col {
  border-right: 1px solid #e8e8e6;
  padding-right: 1.5rem;
}

.lg-spec-table__col:last-child {
  border-right: 0;
  padding-right: 0;
  padding-left: 1.5rem;
}

@media (max-width: 768px) {
  .lg-spec-table__col {
    border-right: 0;
    padding: 0;
  }

  .lg-spec-table__col:last-child {
    padding-left: 0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e8e8e6;
  }
}

.lg-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: 0.92rem;
  border-bottom: 1px solid #f0f0ee;
}

.lg-spec-row:last-child {
  border-bottom: 0;
}

.lg-spec-row__label {
  color: var(--lg-dark);
  flex: 0 1 48%;
}

.lg-spec-row__value {
  font-weight: 700;
  color: var(--lg-dark);
  text-align: right;
  flex: 1;
}

.lg-spec-row__value--empty {
  font-weight: 400;
  color: var(--lg-light-muted);
}

.lg-spec-card__cta {
  margin-top: 1.35rem;
  padding-top: 0.25rem;
}

.lg-prose {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--lg-dark);
}

.lg-prose > *:first-child {
  margin-top: 0;
}

.lg-prose > *:last-child {
  margin-bottom: 0;
}

/* Astra + Elementor */
.elementor-widget-shortcode .lg-ingatlanok {
  width: 100%;
  max-width: 100%;
}

.elementor-section .lg-archive--grid {
  min-width: 0;
}

.ast-separate-container .entry-content .elementor-widget-shortcode .lg-single-page {
  max-width: 1200px;
}
