/* Registry module only. Existing theme CSS is intentionally untouched. */

.sve-registry-page-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.sve-registry-tools {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(280px, 1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
}

.sve-registry-control {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.sve-registry-control > span {
  color: rgba(22, 32, 42, .72);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sve-registry-control input {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(22, 32, 42, .14);
  border-radius: 16px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 32, .06);
  font: inherit;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.sve-registry-control input:focus {
  border-color: rgba(169, 128, 58, .66);
  box-shadow: 0 0 0 4px rgba(169, 128, 58, .10), 0 10px 28px rgba(16, 24, 32, .06);
}

.sve-registry-control--region select {
  appearance: none;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 46px 0 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  outline: 0;
  color: #fff;
  background-color: var(--dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  box-shadow: 0 10px 24px rgba(16, 24, 32, .12);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}

.sve-registry-control--region select:focus {
  border-color: rgba(169, 128, 58, .86);
  box-shadow: 0 0 0 4px rgba(169, 128, 58, .13), 0 10px 24px rgba(16, 24, 32, .12);
}

.sve-registry-list {
  display: grid;
  gap: 18px;
}

.sve-registry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 30px;
  align-items: center;
  width: 100%;
  padding: 30px;
  border: 1px solid rgba(22, 32, 42, .09);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(16, 24, 32, .09);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
}

.sve-registry-card:hover {
  transform: translateY(-4px);
  background: #fffaf2;
  box-shadow: 0 24px 60px rgba(16, 24, 32, .14);
}

.sve-registry-card--no-photo {
  grid-template-columns: minmax(0, 1fr);
}

.sve-registry-card__body {
  min-width: 0;
}

.sve-registry-card h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.sve-registry-card__description {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.sve-registry-card__details {
  display: grid;
  gap: 8px;
}

.sve-registry-card__detail {
  color: rgba(22, 32, 42, .78);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.sve-registry-card__detail strong {
  color: var(--ink);
}

.sve-registry-card__detail a {
  color: #6d5529;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sve-registry-card__photo {
  justify-self: end;
  width: 190px;
}

.sve-registry-card__photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(16, 24, 32, .10);
}

.sve-registry-empty {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.sve-registry-card[hidden],
.sve-registry-empty[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .sve-registry-page-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .sve-registry-tools {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sve-registry-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px;
  }

  .sve-registry-card__photo {
    justify-self: start;
    width: min(190px, 60vw);
  }
}
