/* Alap rács – több oszlopos layout */

.ad-re-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

    gap: 24px;

}



/* Főoldali verziónál opcionálisan kicsit nagyobb külső margó */

.ad-re-grid--latest {

    margin: 0;

}



/* Kártya alap */

.ad-re-card {

    background: #ffffff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);

    display: flex;

    flex-direction: column;

    height: 100%;

    transition: transform .2s ease, box-shadow .2s ease;

}



.ad-re-card:hover {

    transform: translateY(-4px);

    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.14);

}



/* Klikkelhető teljes kártya */

.ad-re-card__link {

    display: flex;

    flex-direction: column;

    height: 100%;

    text-decoration: none;

    color: inherit;

}



/* Kép blokk */

.ad-re-card__image {

    position: relative;

    aspect-ratio: 4 / 3;

    overflow: hidden;

}



.ad-re-card__image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}



/* Státusz badge (pl. Eladó / Kiadó) */

.ad-re-card__badge {

    position: absolute;

    top: 12px;

    left: 12px;

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 600;

    background: rgba(15, 23, 42, 0.9);

    color: #fff;

}



/* Törzs */

.ad-re-card__body {

    padding: 16px 18px 18px;

    display: flex;

    flex-direction: column;

    gap: 8px;

}



/* Cím */

.ad-re-card__title {

    font-size: 18px;

    line-height: 1.3;

    margin: 0;

}



/* Helyszín */

.ad-re-card__location {

    font-size: 14px;

    color: #6b7280;

}



/* Meta sor (ár, m2, szobák) */

.ad-re-card__meta {

    display: flex;

    flex-wrap: wrap;

    gap: 6px 10px;

    margin-top: 6px;

    font-size: 13px;

}



.ad-re-card__price {

    font-weight: 700;

    font-size: 15px;

}



.ad-re-card__size,

.ad-re-card__bedrooms,

.ad-re-card__bathrooms,

.ad-re-card__type {

    padding: 3px 8px;

    border-radius: 999px;

    background: #f3f4f6;

    color: #4b5563;

}



/* Rövid leírás */

.ad-re-card__excerpt {

    margin-top: 8px;

    font-size: 14px;

    color: #4b5563;

}



/* “Nincs találat” üzenet */

.ad-re-no-results {

    font-size: 14px;

    color: #6b7280;

}



/* Reszponzív finomhangolás */

@media (max-width: 768px) {

    .ad-re-grid {

        grid-template-columns: 1fr;

        gap: 20px;

    }

}









:root {
  --ad-re-filter-radius: 6px;
  --ad-re-filter-border: #ddd;
  --ad-re-filter-bg: #ffffff;
  --ad-re-filter-hover-bg: #555!important;
  --ad-re-filter-hover-color: #ffffff;
  --ad-re-filter-active-bg: #111111;
  --ad-re-filter-active-color: #ffffff;
}

/* a sáv */
.ad-re-filters{
  margin: 0 auto 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: center;
  /*background: #f7fafc;*/
  /*background: rgba(247, 250, 252, 0.6);*/
}

.ad-re-filter{ position: relative; }

/* Ország + Város */
.ad-re-filter-selects{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ad-re-filter-select{ min-width: 200px; }
.ad-re-filter-select select{
  width: 100%;
  padding: 10px 18px;
  border-radius: var(--ad-re-filter-radius);
  border: 1px solid var(--ad-re-filter-border);
  background: var(--ad-re-filter-bg);
  font-size: 14px;
  line-height: 1.2;
  color: #111827;
  cursor: pointer;
}
.ad-re-filter-select select:focus{
  outline: none;
  border-color: var(--ad-re-filter-active-bg);
  box-shadow: 0 0 0 1px rgba(17,17,17,.15);
}

/* Toggle gomb */
.ad-re-filter-toggle{
  border-radius: var(--ad-re-filter-radius);
  border: 1px solid var(--ad-re-filter-border);
  background: var(--ad-re-filter-bg);
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ad-re-filter-toggle:hover{
  background: var(--ad-re-filter-hover-bg);
  color: #FFF;
  border-color: var(--ad-re-filter-hover-bg);
}
.ad-re-filter-toggle.is-open{
  background: var(--ad-re-filter-active-bg);
  color: var(--ad-re-filter-active-color);
  border-color: var(--ad-re-filter-active-bg);
}

/* Panel */
.ad-re-filter-panel{
  position: absolute;
  left: 0;
  right: auto;
  margin-top: 4px;
  padding: 10px 12px;
  min-width: 400px;
  display: none;
  z-index: 25;
  border-radius: var(--ad-re-filter-radius);
  border: 1px solid var(--ad-re-filter-border);
  background: var(--ad-re-filter-bg);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.10);
}
.ad-re-filter-panel.is-open{ display:block; }

/* Chip rádiók */
.ad-re-radio-list{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ad-re-radio-item{ position: relative; margin: 0; }
.ad-re-radio-item input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ad-re-radio-item span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--ad-re-filter-radius);
  border: 1px solid var(--ad-re-filter-border);
  background: var(--ad-re-filter-bg);
  font-size: 14px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ad-re-radio-item input:checked + span{
  background: var(--ad-re-filter-hover-bg);
  color: #FFF;
  border-color: var(--ad-re-filter-hover-bg);
}
.ad-re-radio-item input:focus-visible + span{
  outline: 2px solid #555;
  outline-offset: 2px;
}

/* Submit: legyen “primér” */
.ad-re-searchbar-submit{
  background: var(--ad-re-filter-active-bg);
  color: var(--ad-re-filter-active-color);
  /*border-color: var(--ad-re-filter-active-bg);*/
  border:1px solid #FFF;
}
.ad-re-searchbar-submit:hover{
  opacity: 0.85;
  border:1px solid #FFF;
}

/* Mobil: panelek inline, full széles */
@media (max-width: 900px){
  .ad-re-filter-selects{ flex-direction: column; }
  .ad-re-filter-select{ width: 100%; min-width: 0; }
  .ad-re-filter{ width: 100%; }
  .ad-re-filter-toggle{ width: 100%; }
  .ad-re-filter-panel{
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
  }
}




/* ========== SHORTCODE: Mobil finomhangolás ========== */
@media (max-width: 900px){

  /* 1) Ország + város maradjon egymás mellett (ne oszlop) */
  .ad-re-searchbar .ad-re-filter-selects{
    flex-direction: row;      /* felülírja a column-t */
    flex-wrap: nowrap;        /* ne törjön két sorba */
    gap: 10px;
  }

  .ad-re-searchbar .ad-re-filter-select{
    width: auto;              /* felülírja a 100%-ot */
    min-width: 0;
    flex: 1 1 0;              /* fele-fele */
  }

  /* 2) Mobilon ne látszódjon: Státusz + Ingatlan típus */
  .ad-re-searchbar .ad-re-filter--status,
  .ad-re-searchbar .ad-re-filter--type{
    display: none !important;
  }

  /* 3) Keresés gomb új sorban, full szélesség */
  .ad-re-searchbar .ad-re-searchbar-submit{
    flex: 0 0 100%;
    width: 100%;
    margin-top: 6px;
    text-align: center;
  }
}
