/* Frontend rules stay inside the shortcode wrapper; admin rules remain separate. */
.property-grid-filter-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px 0;
}
.property-grid-filter-wrap .property-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start;
  margin-bottom: 25px;
  width: 100%;
  max-width: 1140px;
}
.property-grid-filter-wrap .property-filter-buttons.pgf-buttons-3 {
  gap: 15px;
}

.property-grid-filter-wrap .property-filter-btn {
  box-sizing: border-box;
  flex: 1 1 34vw;
  background: #68a4d7;
  color: #fff;
  max-width: 525px;
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  font-size: 20px;
  border-radius: 0;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}
/* When 3 buttons are shown, shrink to fit */
.property-grid-filter-wrap .pgf-buttons-3 .property-filter-btn {
  flex: 1 1 30%;
  max-width: 350px;
  min-width: 200px;
  padding: 12px 8px;
  font-size: 17px;
}

.property-grid-filter-wrap .property-filter-btn.active {
  background: #91989e;
}

.property-grid-filter-wrap .property-filter-btn:hover {
  background: #68a4d7;
}

.property-grid-filter-wrap .property-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.property-grid-filter-wrap .property-grid-card {
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.property-grid-filter-wrap .property-grid-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
}
.property-grid-filter-wrap .property-grid-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.property-grid-filter-wrap .property-grid-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.property-grid-filter-wrap .property-grid-title {
  font-size: 22px;
  min-height: 48px;
  font-weight: bold;
  margin: 0 0 15px 0;
  color: #222;
}
.property-grid-filter-wrap .property-grid-address {
  color: #a67c52;
  margin-bottom: 10px;
  font-size: 16px;
}
.property-grid-filter-wrap .property-grid-excerpt {
  color: #707070;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.5;
  min-height: 48px;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.property-grid-filter-wrap .property-grid-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 16px;
  color: #333;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: auto;
}
.property-grid-filter-wrap .property-grid-meta li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: bold;
}
.property-grid-filter-wrap .property-grid-meta span {
  color: #f9c073;
  font-size: 18px;
}
.property-grid-filter-wrap .property-grid-price {
  margin-left: auto;
  font-size: 20px;
  color: #000;
  font-weight: bold;
}
@media (max-width: 900px) {
  .property-grid-filter-wrap .property-grid-row {
    grid-template-columns: 1fr;
  }
  .property-grid-filter-wrap .property-filter-btn {
    min-width: 35vw;
    font-size: 18px;
  }
  .property-grid-filter-wrap .pgf-buttons-3 .property-filter-btn {
    min-width: 28vw;
    font-size: 15px;
    padding: 10px 6px;
  }
  .property-grid-filter-wrap .property-grid-image img {
    height: 160px;
  }
}

.property-grid-filter-wrap .property-grid-content .tab-space {
  height: 1.0em;
  display: flow-root list-item;
}

.property-grid-filter-wrap .property-grid-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
}
.property-grid-filter-wrap .property-grid-pagination .page-numbers {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  text-decoration: none;
}
.property-grid-filter-wrap .property-grid-pagination .current {
  font-weight: 600;
}
.property-grid-filter-wrap .property-grid-pagination.top-pagination {
  margin-bottom: 20px;
}
.property-grid-filter-wrap .property-grid-pagination.bottom-pagination {
  margin-top: 24px;
}

.property-grid-filter-wrap .property-grid-pagination .page-numbers,
.property-grid-filter-wrap .property-grid-pagination a,
.property-grid-filter-wrap .property-grid-pagination span {
  color: #666666;
  font-size: 20px;
  font-family: "Montserrat", Helvetica, Arial, Lucida, sans-serif;
  text-decoration: none;
  border: none !important;
}

.property-grid-filter-wrap .property-grid-pagination a:hover {
  text-decoration: underline;
}

.property-grid-filter-wrap .property-grid-pagination .current {
  color: #f9c073 !important;
  font-weight: 600;
  border: none !important;
  background: none !important;
}

@media screen and (max-width: 768px) {
  .property-grid-filter-wrap .property-grid-pagination .page-numbers,
  .property-grid-filter-wrap .property-grid-pagination a,
  .property-grid-filter-wrap .property-grid-pagination span {
    font-size: 12px; /* Daha okunabilir mobilde */
    padding: 6px 10px; /* Dokunmatik kolaylığı için */
  }

  .property-grid-filter-wrap .property-grid-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Ortalansın */
    gap: 6px;
  }

  .property-grid-filter-wrap .property-grid-pagination .current {
    font-size: 13px;
    font-weight: 700;
  }
}

@media screen and (max-width: 480px) {
  .property-grid-filter-wrap .property-grid-pagination .page-numbers,
  .property-grid-filter-wrap .property-grid-pagination a,
  .property-grid-filter-wrap .property-grid-pagination span {
    font-size: 15px; /* Küçük cihazlarda daha büyük */
    padding: 8px 1px;
  }

  .property-grid-filter-wrap .property-grid-pagination {
    gap: 8px;
  }
}

.property-grid-filter-wrap .property-grid-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f5f5f5;
}
.property-grid-filter-wrap .property-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.property-grid-filter-wrap .property-grid-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f5f5f5;
}
.property-grid-filter-wrap .property-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-grid-filter-wrap .property-grid-row {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px 0;
}

@media (max-width: 767px) {
  .property-grid-filter-wrap .property-grid-row {
    grid-template-columns: 1fr !important;
  }
}

.property-grid-filter-wrap .property-grid-card {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #dde2e6;
  border-top: 5px solid #f9c073;
  box-shadow: 0 4px 18px rgba(28, 42, 52, 0.16);
  border-radius: 0;
  transition: transform 0.3s ease;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.property-grid-filter-wrap .property-grid-content {
  padding: 0 !important;
  padding-left: 5px !important;
  margin: 0 !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.property-grid-filter-wrap .property-grid-card,
.property-grid-filter-wrap .property-grid-meta,
.property-grid-filter-wrap .property-grid-address {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  color: #333 !important;
}

.property-grid-filter-wrap .property-grid-title {
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 22px !important;
  color: #333 !important;
  margin: 25px 20px 10px 20px !important;
  margin-top: 10px;
  padding-left: 5px !important;
}

.property-grid-filter-wrap .property-grid-title a {
  color: inherit;
  text-decoration: none;
}

.property-grid-filter-wrap .property-grid-excerpt {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 300;
  margin-top: 10px;
  margin-bottom: 2rem;
  color: #333;
  margin-left: 0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.property-grid-filter-wrap .property-grid-address {
  display: block !important;
  margin-bottom: 1rem !important;
  font-size: 18px !important;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 300 !important;
  color: #333 !important;
  padding-left: 20px !important;
}

.property-grid-filter-wrap .property-grid-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 35px 35px;
  margin: 0 !important;
  padding-left: 20px !important;
  list-style: none;
}

.property-grid-filter-wrap .property-grid-price {
  flex: 1 1 100%;
  text-align: right;
  margin-top: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 20px !important;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700 !important;
  color: #333 !important;
  display: block !important;
  text-align: right !important;
  float: right !important; /* 👈 bu kesin sağa yapıştırır */
  padding-left: 0 !important;
  margin-right: 20px !important;
}

.property-grid-filter-wrap .property-grid-price b,
.property-grid-filter-wrap .property-grid-price strong {
  all: unset;
  font-family: "Montserrat", sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #333 !important;
}

.property-grid-filter-wrap .property-grid-meta svg {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  visibility: hidden !important;
}

.property-grid-filter-wrap .property-grid-meta li:not(.property-grid-price) {
  display: inline-flex;
  align-items: baseline !important;
  font-size: 18px;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 300 !important;
  color: #333 !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  line-height: 1.4;
}

.property-grid-filter-wrap .property-grid-meta li *,
.property-grid-filter-wrap .property-grid-address * {
  font-family: "Montserrat", sans-serif !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

.property-grid-filter-wrap .property-grid-meta li span span {
  display: none !important;
}

.property-grid-filter-wrap .property-grid-meta .es-listing__meta-camere-nr::before,
.property-grid-filter-wrap .property-grid-meta .es-listing__meta-bagni-nr::before,
.property-grid-filter-wrap .property-grid-meta .es-listing__meta-superficie-mq::before,
.property-grid-filter-wrap .property-grid-meta .es-listing__meta-ettaroxxx-ha::before,
.property-grid-filter-wrap .property-grid-meta .es-listing__meta-dein_meta_status::before,
.property-grid-filter-wrap .property-grid-address::before {
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  display: inline-block !important;
  margin-right: 10px !important;
  margin-left: 6px !important;
  font-size: 25px !important;
  color: #f9c073 !important;
  vertical-align: baseline !important;
  line-height: 1 !important;
  position: relative !important;
  top: 0 !important;
}

.property-grid-filter-wrap .property-grid-meta .es-listing__meta-camere-nr::before {
  content: "\f236" !important; /* fa-bed */
}
.property-grid-filter-wrap .property-grid-meta .es-listing__meta-bagni-nr::before {
  content: "\e06d" !important; /* fa-bath */
}
.property-grid-filter-wrap .property-grid-meta .es-listing__meta-superficie-mq::before {
  content: "\f546" !important; /* fa-ruler-combined */
}
.property-grid-filter-wrap .property-grid-address::before {
  content: "\f3c5" !important; /* fa-map-marker-alt */
}
.property-grid-filter-wrap .property-grid-meta .es-listing__meta-ettaroxxx-ha::before {
  content: "\f1fe" !important;
}

.property-grid-filter-wrap .es-listing__meta-superficie-mq span {
  margin-left: 0.25em;
}

.property-grid-filter-wrap .es-listing__meta-ettaroxxx-ha span {
  margin-left: 0.25em;
}

.property-grid-filter-wrap .property-grid-footer {
  position: relative;
  min-height: 50px;
  padding: 0 !important;
  margin: 0 !important;
}

.property-grid-filter-wrap .custom-read-more {
  position: absolute;
  left: -5px;
  bottom: 0;
  color: #ffffff !important;
  background-color: #f9c073;
  font-size: 14px;
  font-family: "Montserrat", Helvetica, Arial, Lucida, sans-serif !important;
  font-weight: 400;
  text-transform: uppercase !important;
  letter-spacing: 1px;
  border: none;
  border-radius: 0;
  padding: 10px 18px;
  text-decoration: none;
  display: inline-block;
  width: auto;
  margin: 0 !important;
}

.property-grid-filter-wrap .custom-read-more:hover {
  color: #000000 !important;
  background-color: #ffffff;
}

.property-grid-filter-wrap .property-grid-thumb,
.property-grid-filter-wrap .property-grid-image {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 3 / 2 !important;
  overflow: hidden !important;
  background: #f5f5f5 !important;
}
.property-grid-filter-wrap .property-grid-thumb img,
.property-grid-filter-wrap .property-grid-image img {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.property-grid-filter-wrap .property-grid-thumb,
.property-grid-filter-wrap .property-grid-image {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  background: #f5f5f5 !important;
}

.property-grid-filter-wrap .property-grid-thumb::before,
.property-grid-filter-wrap .property-grid-image::before {
  content: "" !important;
  display: block !important;
  padding-top: 66.6667% !important; /* 3:2 ratio (height = width * 2/3) */
}

.property-grid-filter-wrap .property-grid-thumb > img,
.property-grid-filter-wrap .property-grid-image > img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.property-grid-filter-wrap .property-grid-image img {
  height: 100% !important;
}

.property-grid-filter-wrap .property-grid-meta li:has(> b:empty)::before,
.property-grid-filter-wrap .property-grid-meta li:has(> b:empty) span {
  color: transparent !important;
  visibility: hidden !important;
}

.property-grid-filter-wrap .property-grid-meta li:has(b:empty):has(span:empty)::before {
  color: transparent !important;
  visibility: hidden !important;
}

.property-grid-filter-wrap .property-grid-price {
  position: relative;
}

@media (max-width: 767px) {
  .property-grid-filter-wrap .property-grid-card {
    position: relative; /* absolute konum için referans */
    padding-bottom: 56px; /* fiyat için alt boşluk bırak */
  }
  .property-grid-filter-wrap .property-grid-price {
    position: absolute !important;
    right: 12px !important;
    bottom: 12px !important;
    margin-left: 0 !important;
    font-size: 18px !important;
    z-index: 2 !important;
    display: inline-flex !important; /* inline-block yerine flex */
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 4px !important; /* sayı ve € arası boşluk */
    white-space: nowrap !important; /* alt satıra düşmeyi engelle */
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1 !important;
  }
  .property-grid-filter-wrap .property-grid-price br {
    display: none !important; /* olası <br>’leri kaldır */
  }
  .property-grid-filter-wrap .property-grid-price * {
    line-height: 1 !important;
  }
}

.property-grid-filter-wrap .property-grid-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.property-grid-filter-wrap .property-grid-old_id::before {
  content: "\23"; /* fa-hashtag */
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  display: inline-block !important;
  margin-right: 10px !important;
  margin-left: 6px !important;
  font-size: 25px !important;
  color: #f9c073 !important;
  vertical-align: baseline !important;
  line-height: 1 !important;
  position: relative !important;
  top: 0 !important;
}

.property-grid-filter-wrap .property-grid-old_id {
  display: block !important;
  margin-bottom: 0.6rem !important;
  font-size: 18px !important;
  font-family: "Montserrat", sans-serif !important;
  padding-left: 5px !important;
  font-family: "Montserrat", Helvetica, Arial, Lucida, sans-serif;
  font-size: 18px;
  color: rgb(102, 102, 102);
  padding: 0px 0px 5px;
  display: flex;
  align-items: center;
  font-weight: bold;
}

.property-grid-filter-wrap .property-general-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 18px;
  max-width: 80vw;
}
.property-grid-filter-wrap .property-general-search__input {
  flex: 1 1 auto;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #e0e0e0;
}
.property-grid-filter-wrap .property-general-search__btn {
  padding: 10px 14px;
  border: none;
  background: #85bae5;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}
.property-grid-filter-wrap .property-general-search__btn:hover {
  background: #68a4d7;
}
.property-grid-filter-wrap .property-general-search__clear {
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
}

.pgf-admin .pgf-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.pgf-admin .pgf-col {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px;
  width: calc(25% - 12px);
  min-width: 260px;
  box-sizing: border-box;
}
.pgf-admin .pgf-col h2 {
  margin: 4px 0 8px;
  font-size: 14px;
}
.pgf-admin .pgf-list {
  min-height: 40px;
  list-style: none;
  margin: 0;
  padding: 6px;
  border: 1px dashed #ccc;
}
.pgf-admin .pgf-item {
  margin: 6px 0;
  cursor: move;
}
.pgf-admin .pgf-card {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e2e2;
  padding: 6px;
  border-radius: 4px;
  position: relative;
}
.pgf-admin .pgf-card img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  background: #f5f5f5;
}

/* Add wrapper for image to position old_id badge */
.pgf-admin .pgf-card-thumb {
  position: relative;
  width: 60px;
  height: 40px;
  flex-shrink: 0;
}

.pgf-admin .pgf-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f5f5f5;
}

/* Style for old_id badge overlay on admin card images */
.pgf-admin .pgf-card-old-id {
  position: absolute;
  top: 2px;
  left: 2px;
  background: rgba(249, 192, 115, 0.95);
  color: #333;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 2px;
  line-height: 1;
  z-index: 5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pgf-admin .pgf-title {
  flex: 1;
  font-size: 13px;
}

.pgf-admin .pgf-move .button {
  margin-left: 4px;
}
.pgf-placeholder {
  height: 48px;
  border: 2px dashed #999;
  background: #f8f8f8;
  margin: 6px 0;
}
.pgf-admin .pgf-to-rent {
  background: #f0f7ff;
  border-color: #b0cce6;
}
.pgf-admin .pgf-inactive {
  background: #fff7f7;
  border-color: #f0cccc;
}

.pgf-admin .pgf-remove-btn {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 15px;
  height: 15px;
  border: none;
  background: #dc3232;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 3px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.pgf-admin .pgf-remove-btn:hover {
  background: #a00;
}

.pgf-admin .pgf-remove-btn:focus {
  outline: 2px solid #0073aa;
  outline-offset: 1px;
}

.property-grid-filter-wrap .property-filter-buttons--all .property-filter-btn {
  flex: 1 1 100%;
  max-width: 100%;
  min-width: 0;
}
.property-grid-filter-wrap .property-filter-btn[aria-pressed="false"] {
  opacity: 0.5;
}
.property-grid-filter-wrap .property-filter-btn.is-active,
.property-grid-filter-wrap .property-filter-btn[aria-pressed="true"] {
  opacity: 1;
}

.property-grid-filter-wrap .property-grid-price.no-price {
  opacity: 1 !important;
  filter: none !important;
}

.property-grid-filter-wrap .property-grid-price .ask-price {
  opacity: 1 !important;
  font-size: 16.5px !important;
  display: inline-block;
  font-weight: 600;
}

.property-grid-filter-wrap .property-grid-price:has(.pgf-ask-price) {
  visibility: visible !important;
  color: inherit !important;
}

.property-grid-filter-wrap .property-grid-price .pgf-ask-price {
  display: inline !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: inherit !important;
}

/* ---- Equal height for property titles ---- */
.property-grid-filter-wrap .es-property-title { 
  --lgf-title-line-height: 1.25;
  min-height: calc(3 * var(--lgf-title-line-height) * 1em);
  margin-bottom: 10px;
}
.property-grid-filter-wrap .es-property-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: var(--lgf-title-line-height);
}



/* ====== Leadwerk equal layout (cards) ====== */
.property-grid-filter-wrap .property-grid-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.property-grid-filter-wrap .property-grid-thumb { flex: 0 0 auto; }

.property-grid-filter-wrap .property-grid-title {
  --lgf-title-lh: 1.25;
  line-height: var(--lgf-title-lh);
  margin: 14px 0 8px 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: calc(3 * var(--lgf-title-lh) * 1em);
}

.property-grid-filter-wrap .property-grid-topline {
  --lgf-top-lh: 1.4;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  min-height: calc(1 * var(--lgf-top-lh) * 1em);
}

.property-grid-filter-wrap .property-grid-excerpt {
  --lgf-ex-lh: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* show up to 3 lines */
  overflow: hidden;
  line-height: var(--lgf-ex-lh);
  min-height: calc(3 * var(--lgf-ex-lh) * 1em);
  margin-bottom: 12px;
}

.property-grid-filter-wrap .property-grid-meta { 
  margin-top: auto; /* push to bottom so price aligns across cards */
}

/* ===== Mobile layout refinements (iPhone-class viewports) ===== */
@media (max-width: 767px) {
  .property-grid-filter-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px 0;
    overflow: hidden;
  }

  .property-grid-filter-wrap .property-filter-buttons {
    gap: 8px;
    margin-bottom: 12px;
  }

  .property-grid-filter-wrap .property-filter-buttons.pgf-buttons-2,
  .property-grid-filter-wrap .property-filter-buttons.pgf-buttons-3 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .property-grid-filter-wrap .property-filter-buttons.pgf-buttons-3
    .property-filter-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .property-grid-filter-wrap .property-filter-btn,
  .property-grid-filter-wrap .pgf-buttons-3 .property-filter-btn {
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 48px;
    padding: 10px 8px;
    font-size: 16px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    touch-action: manipulation;
  }

  .property-grid-filter-wrap .property-filter-buttons--all .property-filter-btn {
    min-height: 48px;
  }

  .property-grid-filter-wrap .property-general-search {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 8px;
    margin: 14px 0 16px;
  }

  .property-grid-filter-wrap .property-general-search__input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    font-size: 16px;
    box-sizing: border-box;
  }

  .property-grid-filter-wrap .property-general-search__btn,
  .property-grid-filter-wrap .property-general-search__clear {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.2;
    touch-action: manipulation;
  }

  .property-grid-filter-wrap .property-grid-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    padding: 18px 8px 24px;
    box-sizing: border-box;
  }

  .property-grid-filter-wrap .property-grid-card {
    height: auto !important;
    min-height: 0;
    padding-bottom: 68px;
    border: 1px solid #dde2e6 !important;
    border-top: 4px solid #f9c073 !important;
    box-shadow: 0 4px 16px rgba(28, 42, 52, 0.16) !important;
  }

  .property-grid-filter-wrap .property-grid-title {
    min-height: calc(3 * 1.25em) !important;
    margin: 16px 16px 8px !important;
    padding: 0 !important;
    font-size: 20px !important;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .property-grid-filter-wrap .property-grid-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: flex-start;
    gap: 4px 12px;
    width: auto;
    min-height: 0 !important;
    margin: 0 16px 8px;
  }

  .property-grid-filter-wrap .property-grid-address,
  .property-grid-filter-wrap .property-grid-old_id {
    width: auto;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .property-grid-filter-wrap .property-grid-address {
    flex: 0 1 auto;
  }

  .property-grid-filter-wrap .property-grid-old_id {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .property-grid-filter-wrap .property-grid-address::before,
  .property-grid-filter-wrap .property-grid-old_id::before,
  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-camere-nr::before,
  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-bagni-nr::before,
  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-superficie-mq::before,
  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-ettaroxxx-ha::before,
  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-dein_meta_status::before {
    margin-right: 6px !important;
    margin-left: 0 !important;
    font-size: 20px !important;
  }

  .property-grid-filter-wrap .property-grid-excerpt {
    min-height: calc(3 * 1.55em) !important;
    max-height: none;
    margin: 0 16px 12px !important;
    padding: 0 !important;
    font-size: 16px;
    line-height: 1.55;
  }

  .property-grid-filter-wrap .property-grid-meta {
    gap: 8px 14px;
    width: auto;
    margin: 0 !important;
    padding: 0 16px !important;
    font-size: 16px !important;
  }

  .property-grid-filter-wrap .property-grid-meta
    li:not(.property-grid-price) {
    font-size: 16px;
  }

  .property-grid-filter-wrap .property-grid-meta
    li:not(.property-grid-price):has(> b:empty) {
    display: none !important;
  }

  .property-grid-filter-wrap .property-grid-meta {
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-start;
    column-gap: 6px;
    row-gap: 0;
    padding-inline: 16px !important;
    box-sizing: border-box;
  }

  .property-grid-filter-wrap .property-grid-meta
    li:not(.property-grid-price) {
    flex: 0 0 auto;
    min-width: 0;
    align-items: center !important;
    gap: 0 !important;
    font-size: 14px !important;
    line-height: 1.2;
    white-space: nowrap;
  }

  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-camere-nr::before,
  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-bagni-nr::before,
  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-superficie-mq::before,
  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-ettaroxxx-ha::before {
    flex: 0 0 auto;
    margin: 0 3px 0 0 !important;
    font-size: 16px !important;
  }

  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-superficie-mq span,
  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-ettaroxxx-ha span {
    margin-left: 2px !important;
  }

  .property-grid-filter-wrap .property-grid-price {
    right: 16px !important;
    bottom: 16px !important;
    max-width: calc(100% - 32px);
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
  }

  .property-grid-filter-wrap .property-grid-price .ask-price,
  .property-grid-filter-wrap .property-grid-price .pgf-ask-price {
    font-size: 15px !important;
  }

  .property-grid-filter-wrap .property-grid-pagination {
    gap: 4px;
    margin: 14px 0;
  }

  .property-grid-filter-wrap .property-grid-pagination .page-numbers,
  .property-grid-filter-wrap .property-grid-pagination a,
  .property-grid-filter-wrap .property-grid-pagination span {
    display: inline-flex;
    min-width: 40px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    font-size: 15px;
    line-height: 1.2;
    box-sizing: border-box;
    touch-action: manipulation;
  }
}

@media (max-width: 410px) {
  .property-grid-filter-wrap .property-grid-meta {
    column-gap: 6px;
    padding-inline: 16px !important;
  }

  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-camere-nr::before,
  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-bagni-nr::before,
  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-superficie-mq::before,
  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-ettaroxxx-ha::before {
    margin-right: 3px !important;
    font-size: 15px !important;
  }
}

@media (max-width: 360px) {
  .property-grid-filter-wrap .property-grid-meta {
    column-gap: 4px;
    padding-inline: 16px !important;
  }

  .property-grid-filter-wrap .property-grid-meta
    li:not(.property-grid-price) {
    font-size: 13px !important;
  }

  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-camere-nr::before,
  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-bagni-nr::before,
  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-superficie-mq::before,
  .property-grid-filter-wrap .property-grid-meta
    .es-listing__meta-ettaroxxx-ha::before {
    margin-right: 2px !important;
    font-size: 14px !important;
  }

  .property-grid-filter-wrap .property-general-search {
    flex-wrap: wrap;
  }

  .property-grid-filter-wrap .property-general-search__btn,
  .property-grid-filter-wrap .property-general-search__clear {
    flex: 1 1 auto;
  }
}
