#survey {
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 22px 12px 74px;
}

#survey .page-title {
  text-align: center;
  margin: 0 0 12px;
  color: var(--kozepbarna);
}

#memorialsContainer,
#survey .memorials-grid {
  position: relative;
  left: auto;
  transform: none;
  width: min(1120px, calc(100% - 16px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 22px 18px;
  box-sizing: border-box;
}

.header .filter-bar {
  background-color: var(--linkek);
  padding: 12px;
  width: min(420px, calc(100vw - 24px));
  position: absolute;
  display: none;
  left: 50%;
  top: calc(100% - 4px);
  transform: translateX(-50%);
  z-index: 2100;
  opacity: 1;
  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(255,250,238,.65);
  box-shadow: 0 12px 22px rgba(56, 30, 13, .24);
  box-sizing: border-box;
}

.header .filter-bar input,
.header .filter-bar select,
.header .filter-bar button {
  padding: 10px;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  margin: 5px;
  box-sizing: border-box;
}

.header .filter-bar input,
.header .filter-bar select {
  width: calc(100% - 10px);
}

.header .filter-bar button {
  background-color: #4a2c14;
  color: white;
  cursor: pointer;
  display: inline-block;
  width: auto;
}

.header .filter-bar.hide {
  display: none;
}

.main .memorial-card {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  padding: 0 8px 8px;
  background: #f0e2c6;
  border-radius: 30px 30px 0 0;
  border: 6px solid #e0d1b2;
  text-align: center;
  font-family: Georgia, serif;
  color: #5a3b1e;
  position: relative;
  margin: 30px 0 0;
  display: block;
  box-sizing: border-box;
  overflow: visible;
  flex: 0 0 150px;
}

.main .memorial-card::before {
  content: "";
  position: absolute;
  top: -31px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 25px;
  background: #f0e2c6;
  border: 6px solid #e0d1b2;
  border-bottom: none;
  border-radius: 30px 30px 0 0;
  z-index: 0;
  box-sizing: border-box;
}

.main .memorial-card .memorial-top {
  z-index: 1;
  top: -22px;
  width: 100%;
  position: relative;
  display: block;
  overflow: hidden;
}

.main .memorial-card .paw {
  font-size: 20px;
  margin-bottom: 3px;
  position: relative;
  display: block;
  line-height: 1;
}

.main .memorial-card .name,
.main .memorial-card .species {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}

.main .memorial-card .name {
  font-size: 15px;
  line-height: 1.15;
  margin: 0;
  color: #5a3b1e;
}

.main .memorial-card .species {
  font-size: 12px;
  line-height: 1.15;
  margin: 4px 0 8px;
  color: #6a4a2d;
}

.main .memorial-card .photo-container {
  top: -20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  overflow: hidden;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 14px;
  box-sizing: border-box;
}

.main .memorial-card .photo-container img {
  width: 82px !important;
  height: 82px !important;
  max-width: 82px !important;
  max-height: 82px !important;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid #c8b38d;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  display: block;
  position: static;
  transform: none;
  box-sizing: border-box;
}

.main .memorial-card .dates {
  font-size: 12px;
  font-weight: bold;
  position: relative;
  display: block;
  top: -15px;
  min-height: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.main .memorial-card button {
  padding: 6px 10px;
  background-color: #3c2415;
  color: white;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  position: absolute;
  display: block;
  left: 50%;
  transform: translateX(-50%);
  bottom: 9px;
  top: auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  #survey {
    padding: 16px 8px 74px;
  }

  #memorialsContainer,
  #survey .memorials-grid {
    width: 100%;
    gap: 20px 10px;
  }

  .main .memorial-card {
    width: 142px;
    min-width: 142px;
    max-width: 142px;
    flex-basis: 142px;
  }

  .header .filter-bar {
    width: calc(100vw - 12px);
    top: calc(100% - 2px);
    padding: 10px;
  }
}

/* Saját emlékhelyek - statikus oldalhoz tartozó gyors megosztási ikonok */
.main .memorial-card.has-static-share {
  height: 258px;
  min-height: 258px;
  max-height: 258px;
}

.main .memorial-card.has-static-share button.view {
  bottom: 42px;
}

.main .memorial-card .card-share-row {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: calc(100% - 12px);
  z-index: 3;
}

.main .memorial-card .card-share-link {
  width: 25px;
  height: 25px;
  min-width: 25px;
  min-height: 25px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,.18);
}

.main .memorial-card .card-share-link.facebook {
  background: #1877f2;
  font-size: 16px;
}

.main .memorial-card .card-share-link.whatsapp {
  background: #25d366;
  font-size: 13px;
}

.main .memorial-card .card-share-link.x {
  background: #111;
  font-size: 12px;
}

.main .memorial-card .card-share-link.email {
  background: #8c5e3c;
  font-size: 14px;
}

.main .memorial-card .card-share-link:hover {
  filter: brightness(1.08);
}

@media (max-width: 640px) {
  .main .memorial-card.has-static-share {
    height: 258px;
    min-height: 258px;
    max-height: 258px;
  }

  .main .memorial-card .card-share-link {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
  }
}


.parcel-badge{
	margin:6px auto 8px;
	padding:4px 8px;
	border-radius:999px;
	background:#f2ead6;
	color:#5a472a;
	font-size:13px;
	font-weight:700;
	display:inline-block;
		display: none;

}
