﻿body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.talalati_oldal {
  max-width: 1100px;
  margin: 20px 0;
}

/* SZŰRŐK */
.szurok {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.szurok input,
.szurok select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.szurok button {
  padding: 10px 15px;
  background: #0f2821;
  color: #f8dcb7;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* TALÁLAT GRID */
.talalatok_lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

/* KÁRTYA */
.talalat_kartya {
  display: flex;
  background: #f7f1eb;
  border-radius: 10px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  transition: 0.2s;

  height: 100%; /* 👈 EZ EGYFORMA MAGASSÁG */
  overflow: hidden; /* 👈 semmi nem lóghat ki */
  display: flex;
  flex-direction: column;
}

.talalat_kartya:hover {
  background: #efe6db;
}

/* KÉP */
.talalat_kep {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #faf7f2; /* ← extra_box szín */
  border-radius: 8px;
}

/* SZÖVEG */
.talalat_info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.talalat_cim {
  font-weight: bold;
  color: #0f2821;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* max 2 sor */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.talalat_meta {
  font-size: 12px;
  opacity: 0.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: auto;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* NINCS TALÁLAT */
.nincs_talalat {
  text-align: center;
  padding: 40px;
  font-size: 18px;
}
.felso {
  background: #0f2821;
  height: 200px;
  flex-shrink: 0;
  border-radius: 0 0 10px 10px;
  padding-top: 20px;
 }
.felso_szoveg {
  margin-left: 20px;
  color: #f8dcb7;
  font-weight: bold;
  font-size: 25px;
  font-family: Helvetica;
  letter-spacing: 2px;
}
.felso_kisdoboz {
  border-radius: 10px 10px 0 0;
  position: relative;
  margin-top: -100px;
  left: 20px;
  width: calc(100% - 140px);
   background-color: #f8dcb7;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(120, 80, 40, 0.12), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(140, 90, 50, 0.10), transparent 45%),
    radial-gradient(circle at 40% 80%, rgba(90, 60, 30, 0.08), transparent 50%),
    linear-gradient(120deg,
      rgba(255,255,255,0.15),
      rgba(0,0,0,0.05),
      rgba(255,255,255,0.10)
    );
  color: #0f2821;
  padding: 50px 50px;
  flex: 0;
}

.kep {
  float: left;
  margin: 0 15px 10px 0;
  display: block;
}
.kep2 {
  float: right;
  margin: 0 15px 10px 0;
  display: block;
}
.talalatok {
  margin-left: 20px;
background-color: #fff1eb;
  padding: 10px;
  width: calc(100% - 60px);
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}
.talalatok.active {
  display: flex; /* vagy grid */
}
.talalat {
  display: flex;
  align-items: center;
  gap: 15px;

  background: #f7f1eb;
  border-radius: 10px;
  padding: 10px;

  transition: 0.2s;
}
.talalat:hover {
  background: #efe6db;
}
.kereso {
  flex-shrink: 0;
  border-radius: 0 0 10px 10px;
  margin-top: 50px;
 }

.kereso input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  outline: none;
  width: 500px;
}
.kereso button {
  padding: 10px 15px;
  border: none;
  background: #f8dcb7;
  color: #0f2821;
  font-weight: bold;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
}
.ev_slider {
  margin: 10px;
  padding: 10px;
  background: #faf7f2;
  border-radius: 10px;
  border: 1px solid #e3dfd6;

  display: flex;
  align-items: center;
  gap: 20px;
  width: 200px;
}
.ev_tartalom {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ev_cim {
   width: 45px;
  height: 45px;
  font-family: Helvetica;
  display: flex;
  align-items: center;
  justify-content: center;

 border: 1px solid #e3dfd6;
  border-radius: 50%;

  font-weight: bold;
  color: #0f2821;
  font-size: 14px;

  flex-shrink: 0;
}
 
#slider {
  margin: 5px 0;
}

.slider_ertek {
  text-align: center;
  font-weight: bold;
  color: #0f2821;
}
.noUi-target {
  background: #e7dfd4;
  border: none;
  box-shadow: none;
  height: 6px;
}

.noUi-connect {
  background: #0f2821 !important;
}

.noUi-horizontal .noUi-handle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0f2821;
  border: 2px solid #f8dcb7;
  box-shadow: none;

top: calc(50% + 3px);   /* ← EZ A 2px LEJJEBB */
  transform: translate(-50%, -50%) !important;
  right: -10px !important;
}

.noUi-handle:before,
.noUi-handle:after {
  display: none;
}

.noUi-handle:focus,
.noUi-handle:active {
  outline: none;
  background: #0f2821;
}
.felso_kisdoboz2 {
  margin: 0 20px;
   background-color: #f7f1eb;
  color: #0f2821;
  padding: 20px 20px;
  flex: 1;
}
.ev_sav {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin: 20px;
}
.extra_box {
flex: 0 0 300px;
 min-width: 0; /* EZ FONTOS dropdown miatt */
  margin: 10px;
  padding: 10px;
  background: #faf7f2;
  border-radius: 10px;
  border: 1px solid #e3dfd6;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 20px;
  width: 200px;
  position: relative;
  overflow: visible;
  font-family: Helvetica;
}

.tema_label {
  font-weight: bold;
  margin-bottom: 5px;
}

.dropdown_header {

  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.dropdown_list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  width: 100%;
  box-sizing: border-box;

  background: #faf7f2;
  border: 1px solid #e3dfd6;
  border-radius: 8px;

  max-height: 220px;
  overflow-y: auto;

  z-index: 9999;

  padding: 10px;
}

.dropdown_list.open {
  display: block;
}

.dropdown_list label {
  display: block;
  padding: 4px 0;
  cursor: pointer;
}
.tema_box {
  background: #faf7f2;
 }
.reset_box {
flex: 0 0 300px;
 min-width: 0; /* EZ FONTOS dropdown miatt */
  margin: 10px;
  padding: 10px;
 background: #e9ddcf;
  border-radius: 10px;
  border: 1px solid #e3dfd6;

  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Helvetica;
  gap: 20px;
  width: 200px;
  position: relative;
}
.reset_btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
 
}

.talalat_toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 20px;
}

.toolbar_jobb {
  display: flex;
  gap: 10px;
  align-items: center;
}

.talalat_lista_view {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr; /* 👈 teljes szélesség */
  justify-items: stretch; /* 👈 EZ A KULCS */
  width: 100%;
}

.talalat_lista_view .talalat_kartya {
  display: flex;
  align-items: center;
  gap: 15px;

  height: auto; /* fontos, ne legyen fix kártyamagasság */
  width: 100%;
}

.talalat_lista_view .img_wrap {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
}

.talalat_lista_view .talalat_info {
  flex: 1;
}

.talalat_lista_view .talalat_cim {
  font-size: 16px;
}

.talalat_lista_view .talalat_meta {
  margin-top: 5px;
}

.talalat_lista_view .talalat_kep {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.toolbar_sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort_label {
  font-family: Helvetica;
  color: #0f2821;
}

.sort_box {
  background: #faf7f2;
  border: 1px solid #e3dfd6;
  border-radius: 8px;

  padding: 6px 12px;

  cursor: pointer;
  min-width: 90px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.sort_box:hover {
  background: #f1ece4;
}

.sort_box .selected_text {
  font-family: Helvetica;
  font-size: 14px;
  margin: 0;
}
.toolbar_jobb {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: nowrap; /* EZ akadályozza meg a sorugrást */
}

/* rendezés */
.toolbar_sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort_box {
  background: #faf7f2;
  border: 1px solid #e3dfd6;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}

/* view toggle */
.view_toggle {
  display: flex;
  gap: 8px;
}

.view_btn {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e3dfd6;

  background: #faf7f2;
  color: #0f2821;

  cursor: pointer;
  font-family: Helvetica;
  font-size: 14px;
}

/* AKTÍV NÉZET (kiemelt) */
.view_btn.active {
  background: #0f2821;
  color: #f8dcb7;
  border-color: #0f2821;
}
.grid_icon {
  width: 14px;
  height: 14px;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1px;
}

.grid_icon::before,
.grid_icon::after,
.grid_icon {
  content: "";
}

.grid_icon {
  position: relative;
}

/* 9 kis négyzet */

.grid_icon {
  width: 14px;
  height: 14px;
  display: inline-block;

  background:
    linear-gradient(currentColor,currentColor) 0 0/4px 4px,
    linear-gradient(currentColor,currentColor) 50% 0/4px 4px,
    linear-gradient(currentColor,currentColor) 100% 0/4px 4px,

    linear-gradient(currentColor,currentColor) 0 50%/4px 4px,
    linear-gradient(currentColor,currentColor) 50% 50%/4px 4px,
    linear-gradient(currentColor,currentColor) 100% 50%/4px 4px,

    linear-gradient(currentColor,currentColor) 0 100%/4px 4px,
    linear-gradient(currentColor,currentColor) 50% 100%/4px 4px,
    linear-gradient(currentColor,currentColor) 100% 100%/4px 4px;

  background-repeat: no-repeat;
}
.img_wrap {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

.ev_badge {
  position: absolute;
  top: 8px;
  right: 8px;

  background: #faf7f2;
  border: 1px solid #e3dfd6;
  color: #0f2821;

  font-size: 13px;


  padding: 4px 8px;
  border-radius: 6px;

  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.talalat_lista_view .img_wrap {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
}
.talalat_lista_view .kartya_keret {
  flex-direction: row;     /* 👈 EZ A LÉNYEG */
  align-items: flex-start;
  width: 100%;
  gap: 15px;
}
.talalat_lista_view .ev_badge {
  display: none;
  position: relative;

  top: auto;
  right: auto;

  width: 100%;
  text-align: center;

  background: #faf7f2;
  border: 1px solid #e3dfd6;
  color: #0f2821;

  font-size: 12px;
  font-weight: bold;
  padding: 4px 6px;
  border-radius: 6px 6px 0 0;

  box-sizing: border-box;
}
.kartya_keret {
  background: #faf7f2;
  border: 1px solid #e3dfd6;
  border-radius: 10px;

  padding: 2px; /* ← EZ adja a 2px “távolságot” */
  display: flex;
  flex-direction: column;

  transition: 0.2s;

  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.talalat_ev {
  font-size: 12px;
  font-weight: bold;
  color: #0f2821;
  opacity: 0.7;
  margin-bottom: 4px;
}