/* Recipient location profile — aligned with find-food map panel / Surplus impact map. */

.find-food-profile-section {
  font-family: Poppins, sans-serif;
  padding-top: var(--space--2xl);
}

.find-food-profile-section .find-food-breadcrumbs {
  margin-bottom: var(--space--2xl);
}

.find-food-profile-card {
  overflow: hidden;
  border: 1px solid #ececec;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.08),
    0 4px 6px -4px rgba(0, 0, 0, 0.06);
  color: #252525;
}

.find-food-profile-cover {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 10rem;
  overflow: hidden;
}

.find-food-profile-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.find-food-profile-header {
  position: relative;
  z-index: 2;
  height: 0;
  padding: 0 1rem;
  overflow: visible;
}

.find-food-profile-body {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.25rem 1.25rem;
}

.find-food-profile-header + .find-food-profile-body {
  padding-top: 1.625rem;
}

.find-food-profile-title {
  margin: 0 0 0.25rem;
  padding-right: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: #252525;
}

.find-food-profile-address {
  margin: 0 0 0.375rem;
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.4;
  color: #525252;
}

.find-food-profile-subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #737373;
}

.find-food-profile-subtitle.find-food-last-distribution {
  color: #737373;
  font-weight: 400;
}

.find-food-place-details {
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.find-food-place-details-loading {
  margin: 0;
  font-size: 0.8125rem;
  color: #737373;
}

.find-food-profile-badge {
  display: inline-flex;
  max-width: min(100%, 20rem);
  align-items: center;
  min-height: 1.5rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  color: #252525;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.find-food-profile-badge:hover {
  background: #f4f4f4;
  color: #252525;
  text-decoration: none;
}

.find-food-profile-photo-row {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.find-food-profile-photo-row .find-food-profile-photo-grid {
  margin-bottom: 0;
}

.find-food-profile-photo-grid {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  height: 192px;
  max-height: 192px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.find-food-profile-photo-cell {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  margin: 0;
  border-radius: 0.5rem;
  background: #fafafa;
}

.find-food-profile-photo-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.find-food-profile-photo-attribution {
  position: absolute;
  right: 0.375rem;
  bottom: 0.25rem;
  z-index: 1;
  max-width: 9rem;
  margin: 0;
  overflow: hidden;
  font-size: 6px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.find-food-profile-photo-attribution span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.find-food-profile-photo-attribution a {
  color: inherit;
  text-decoration: underline;
}

.find-food-profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.find-food-profile-field--full {
  grid-column: 1 / -1;
}

.find-food-profile-field--col-1 {
  grid-column: 1;
}

.find-food-profile-field--col-2 {
  grid-column: 2;
}

.find-food-profile-field {
  min-width: 0;
}

.find-food-profile-field-label {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #737373;
}

.find-food-profile-field-value {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: #252525;
}

.find-food-profile-field-value a {
  color: var(--find-food-link-blue, oklch(0.6 0.146 251));
  text-decoration: none;
}

.find-food-profile-field-value a:hover {
  text-decoration: underline;
}

.find-food-profile-google-attribution {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  font-style: italic;
  line-height: 1.4;
  color: #737373;
}

.find-food-profile-google-attribution a {
  color: inherit;
  text-decoration: underline;
}

.find-food-profile-map {
  width: 100%;
  border-top: 1px solid #ececec;
}

.find-food-profile-card .find-food-map-wrapper--preview {
  height: 300px;
  border-radius: 0;
}

.find-food-profile-card .find-food-map-wrapper--preview #find-food-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.find-food-profile-card .find-food-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.find-food-profile-card .find-food-map-loading.is-hidden {
  display: none;
}

.find-food-map-wrapper--preview {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.find-food-map-wrapper--preview .find-food-map-panel-host {
  display: none;
}

@media screen and (max-width: 991px) {
  .find-food-profile-photo-grid {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .find-food-profile-photo-cell {
    flex: 0 0 auto;
    width: 14rem;
    min-width: 14rem;
    height: 10.5rem;
    scroll-snap-align: start;
  }
}

@media screen and (max-width: 767px) {
  .find-food-profile-fields {
    grid-template-columns: 1fr;
  }

  .find-food-profile-field--col-1,
  .find-food-profile-field--col-2 {
    grid-column: auto;
  }

  .find-food-profile-body {
    padding: 1.25rem 1rem 1rem;
  }

  .find-food-profile-title {
    font-size: 1.25rem;
  }
}
