/* =========================================================
   ÚJ INGATLANOLDAL
   ========================================================= */

.property-page-wrap {
  padding-bottom: 60px;
}


/* =========================================================
   KERESŐPANEL
   ========================================================= */

.property-search-panel {
  width: 100%;
  margin: 0 auto 28px;
  padding: 22px;
  box-sizing: border-box;
}

#propertyCodeInput,
#locationFilter,
#propertyTypeFilter,
#propertyCodeSearch,
#resetFilters {
  height: 29px;
}

#propertyCodeInput,
#locationFilter,
#propertyTypeFilter {
  border: 0.5px solid #E0E1D7;
  background: #ecede3;
  color: #173040;
  padding: 2px 7px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  font-size: smaller;
  box-shadow:
    0 6.4px 14.4px 0 rgb(0 0 0 / 13%),
    0 1.2px 3.6px 0 rgb(0 0 0 / 11%);
}


/* Asztali keresősor */

.property-search-panel .filter-row {
  display: grid;
  grid-template-columns:
    minmax(120px, 0.8fr)
    minmax(150px, 1fr)
    minmax(130px, 0.9fr)
    minmax(190px, 1.25fr)
    110px
    145px;
  align-items: end;
  gap: 12px;
  width: 100%;
}

.property-search-panel .filter-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
}

.property-search-panel .filter-item:has(#propertyCodeInput) {
  grid-column: 1;
}

.property-search-panel .filter-item:has(#locationFilter) {
  grid-column: 2;
}

.property-search-panel .filter-item:has(#propertyTypeFilter) {
  grid-column: 3;
}

.property-search-panel .price-block {
  grid-column: 4;
}

.property-search-panel .search-box {
  grid-column: 5;
}

.property-search-panel .reset-filter-row {
  display: block;
  width: 110px;
  margin: 0;
  grid-column: 6;
  grid-row: 1;
}

.property-search-panel .reset-filter-btn {
  width: 100%;
  margin: 0;
  background-color: #173040;
  border: 0.5px solid #173040;
  color: #ecede3;
}

.property-search-panel .reset-filter-btn:hover {
  background: #6B806F;
  border-color: #6B806F;
  color: #ecede3;
}


/* Közös ármező és kétvégű ársáv */

.property-search-panel .price-inline {
  display: grid;
  grid-template-columns: auto minmax(60px, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 29px;
}

.property-search-panel .price-min,
.property-search-panel .price-max {
  white-space: nowrap;
  font-size: 11px;
}

.property-search-panel .price-sliders {
  position: relative;
  display: block;
  flex: 1;
  width: 100%;
  min-width: 60px;
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(
    to right,
    #cbd2d3 0%,
    #cbd2d3 var(--range-start, 0%),
    #173040 var(--range-start, 0%),
    #173040 var(--range-end, 100%),
    #cbd2d3 var(--range-end, 100%),
    #cbd2d3 100%
  );
}

.property-search-panel .price-sliders input[type="range"] {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
  cursor: pointer;
}

.property-search-panel .price-sliders input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  background: transparent;
  border: 0;
}

.property-search-panel .price-sliders input[type="range"]::-moz-range-track {
  height: 5px;
  background: transparent;
  border: 0;
}

.property-search-panel .price-sliders input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #173040;
  pointer-events: auto;
  cursor: grab;
}

.property-search-panel .price-sliders input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 2px solid #ecede3;
  border-radius: 50%;
  background: #173040;
  pointer-events: auto;
  cursor: grab;
}


/* Találatok száma */

.property-results-count {
  grid-column: 1 / -1;
  margin: 60px 0 20px;
  font-weight: 600;
}


/* =========================================================
   INGATLANKÁRTYÁK
   ========================================================= */

.property-grid {
  align-items: flex-start;
}

.property-grid > [class*="col-"] {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.property-grid-item {
  box-sizing: border-box;
  min-width: 0;
}

.property-grid .one-property {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  width: 100%;
  height: auto;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}


/* Kártya külső kerete */


.property-card-inner {
  display: flex;
  flex-direction: column;
  
  width: 100%;
  
  min-width: 0;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 48, 64, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  padding: 16px;
  border-radius: 3px;
}


.property-card-inner .carousel-box {
  margin: 0;
}


/* Ingatlankód */

.property-card-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 34px;
}

.property-code-label {
  position: static !important;
  display: inline-block;
  margin: 0 auto 5px 0;
}


/* Kártya tartalma */

.property-card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px 16px 18px;
}


/* Ingatlan címe */

.property-card-content h3 {
  height: 120px;
  min-height: 120px;
  margin: 8px 0;
  font-size: 1.15rem !important;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-wrap: break-word;
}


/* Ár */

.property-price-drop {
  margin-right: auto;
  color: #173040;
  font-size: 0.92rem;
}

.property-price-main {
  margin-bottom: 12px;
  color: #173040;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}


/* Ingatlanadatok */

.property-detailsbox {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  min-width: 0;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.property-detailsbox .iconsbox {
  display: flex;
  justify-content: flex-start;
  flex: 1 1 120px;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 4px;
  height: 43px;
  align-items: center;
  box-sizing: border-box;
}

.property-detailsbox .iconsbox p {
  min-width: 0;
  margin: 0 0 0 3px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  
}

.property-detailsbox .iconimage {
  flex: 0 0 32.33px;
  width: 32.33px;
  min-width: 32.33px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.property-detailsbox .iconimage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.property-info-label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.68rem;
  opacity: 0.65;
  line-height: 1.1;
}


/* Rövid leírás
   A fix magasság megtartja a kártyák egységes megjelenését. */

.property-teaser {
  width: 100%;
  height: 240px;
  overflow: hidden;
  margin: 0 0 16px;
  box-sizing: border-box;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.property-teaser p {
  margin: 0;
}


/* Részletek és megosztás gombjai */

.property-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(23, 48, 64, 0.12);
}

.property-details-toggle {
  border: 0;
  background: transparent;
  color: #173040;
  padding: 7px 4px;
  cursor: pointer;
  font-weight: 600;
  margin-right: auto;
}


/* Részletes leírás
   Fontos: a hidden attribútumú rész egyáltalán ne jelenjen meg. */

.property-card-content .property-full-details {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 48, 64, 0.12);
  box-sizing: border-box;
  line-height: 1.55;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.property-card-content .property-full-details[hidden] {
  display: none !important;
}

.property-card-content .property-full-details p {
  display: block;
  margin: 0 0 12px;
  line-height: 1.55;
}

.property-card-content .property-full-details ul {
  display: block;
  width: 100%;
  margin: 12px 0 20px;
  padding-left: 22px;
  list-style: disc;
  box-sizing: border-box;
}

.property-card-content .property-full-details li {
  display: list-item;
  width: auto;
  margin: 0 0 8px;
  line-height: 1.5;
  list-style: disc;
  overflow-wrap: break-word;
}


/* Képek és Bootstrap carousel */

.property-card-inner .carousel {
  width: 100%;
  min-width: 0;
}

.property-card-inner .carousel-item img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}


/* =========================================================
   KISEBB ASZTALI KÉPERNYŐK ÉS TABLETEK
   ========================================================= */

@media (min-width: 768px) and (max-width: 1199px) {
  .property-search-panel {
    display: block;
    width: 100%;
    padding: 14px;
    box-sizing: border-box;
  }

  .property-search-panel .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
    width: 100%;
  }

  .property-search-panel .filter-row > .filter-item,
  .property-search-panel .filter-row > .price-block,
  .property-search-panel .filter-row > .search-box {
    grid-column: auto;
    width: 100%;
    min-width: 0;
  }

  .property-search-panel .reset-filter-row {
    display: block;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-width: 0;
  }

  .property-search-panel #propertyCodeInput,
  .property-search-panel #locationFilter,
  .property-search-panel #propertyTypeFilter,
  .property-search-panel #propertyCodeSearch,
  .property-search-panel #resetFilters {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .property-search-panel #propertyCodeSearch {
    width: 90px;
    max-width: 100%;
    justify-self: start;
    box-sizing: border-box;
  }

  .property-search-panel #resetFilters {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 767.98px) {
  .property-search-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 15px;
  }

  .property-search-panel .filter-row,
  .property-search-panel .reset-filter-row {
    display: contents;
  }

  .property-search-panel .filter-row > div:has(#propertyCodeInput),
  .property-search-panel .filter-row > div:has(#locationFilter),
  .property-search-panel .filter-row > div:has(#propertyTypeFilter),
  .property-search-panel .price-block,
  .property-search-panel .search-box {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .property-search-panel .filter-label {
    margin-bottom: 7px;
  }

  #locationFilter,
  #propertyCodeInput,
  #propertyTypeFilter {
    width: 100%;
  }

  .property-search-panel .price-sliders,
  .property-search-panel .price-slider,
  .property-search-panel input[type="range"] {
    width: 100%;
  }

  .property-search-panel #propertyCodeSearch,
  .property-search-panel #resetFilters {
    width: 100%;
    min-height: 44px;
    height: auto;
    margin: 0;
  }

  .property-results-count {
    margin-bottom: 18px;
  }

  .property-card-content {
    padding: 13px 14px 16px;
  }

  .property-card-content h3 {
    height: auto;
    min-height: 0;
    font-size: 1.15rem !important;
    line-height: 1.4;
  }

  .property-detailsbox .iconsbox {
    flex: 1 1 100%;
    width: 100%;
  }

  .property-detailsbox .iconimage {
    flex-basis: 10%;
  }
}
