/* WaggleTails web, phase 2b slice A: the two Lost & Found report forms and their edit mode
   (Areas/Shelter/Views/LostFoundReports/Edit.cshtml; MAUI ReportLostPetPage.xaml / ReportFoundPetPage.xaml). Only the
   wt-lf-report-* family: the inputs, selects, the breed suggestions, the buttons and the map picker come from the shared
   sheets, and every colour is a wt-tokens.css token. */

/* "* Required fields" - XAML:48-52 (12 px, centred, muted) */
.wt-lf-report-required {
  font-size: 12px;
  text-align: center;
  color: var(--wt-text-muted);
}

/* Field labels - the XAML's 14 px bold TextPrimary labels (the shared .wt-field__label is medium on the body colour) */
.wt-lf-report-form .wt-field__label {
  font-weight: 700;
  font-size: 14px;
  color: var(--wt-text);
}

/* Media card - MediaPickerBorderStyle (XAML:1187-1195): 220 px, the subtle fill, a 2 px dashed stroke, radius 22; the whole face
   is the tap target, so the file input covers it invisibly and the states sit under it. The card is a label inside .wt-field,
   whose shared label rules (a flex row, 18 px images) it has to out-rank, hence the parent in these two selectors */
.wt-field .wt-lf-report-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border: 2px dashed var(--wt-border);
  border-radius: 22px;
  background: var(--wt-surface-subtle);
  cursor: pointer;
}
.wt-lf-report-media:has(input:focus-visible) {
  border-color: var(--wt-primary);
}
.wt-lf-report-media__input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
/* Image state - XAML:65-68 (AspectFill) */
.wt-field .wt-lf-report-media__preview {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
/* Video state (XAML:70-98) and empty state (XAML:100-119) */
.wt-lf-report-media__video,
.wt-lf-report-media__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  overflow-wrap: anywhere;
}
.wt-lf-report-media__empty i {
  font-size: 30px;
  color: var(--wt-text-muted);
}
.wt-lf-report-media__headline {
  font-size: 14px;
  color: var(--wt-text-secondary);
}
.wt-lf-report-media__video {
  gap: 10px;
}
.wt-lf-report-media__video .wt-lf-report-media__headline {
  font-weight: 700;
  color: var(--wt-text);
}
/* MediaChipBorderStyle filled with SoftTealAccentColor (the soft-teal token: the primary teal in light, the lighter accent in
   dark - XAML:73-75) and the white camera-video glyph; the glyph takes the on-primary token, as every selected chip on the web
   does (white in light, the dark ink on the lighter dark-theme teal) */
.wt-lf-report-media__chip {
  display: grid;
  place-items: center;
  min-width: 56px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-soft-teal);
  color: var(--wt-on-primary);
  font-size: 24px;
}

/* Location card - MapSelectionInputBorderStyle (InputContainerBorderStyle at 14/10 padding): the pin line, "Select From Map"
   and the picker revealed below; the prompt before a pin exists is muted, the address after it takes the picker's own line style */
.wt-lf-report-map {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 14px;
  border: 2px solid var(--wt-border);
  border-radius: var(--wt-radius-input);
  background: var(--wt-input-bg);
}
.wt-lf-report-map__line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.wt-lf-report-map__line i {
  font-size: 16px;
  line-height: 1.45;
  color: var(--wt-text-muted);
}
.wt-lf-report-map__address--empty {
  color: var(--wt-text-muted);
}
.wt-lf-report-map__frame {
  min-width: 0;
}

/* Last Seen / Found At - XAML:309-342: the two 12 px sub-labels and the pickers side by side; one column where a time input
   cannot shrink below its value */
.wt-lf-report-when {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 419px) {
  .wt-lf-report-when {
    grid-template-columns: minmax(0, 1fr);
  }
}
.wt-lf-report-form .wt-lf-report-sublabel {
  font-size: 12px;
  color: var(--wt-text-secondary);
}

/* Shelter identity card - XAML:353-375: the soft teal fill with a teal hairline at about a third of its strength, the house
   emoji, the bold name (tail-truncated) and the teal caption */
.wt-lf-report-shelter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--wt-soft-teal);
  border-radius: 16px;
  background: var(--wt-soft-teal-bg);
}
@supports (border-color: color-mix(in srgb, red 30%, transparent)) {
  .wt-lf-report-shelter {
    border-color: color-mix(in srgb, var(--wt-primary) 30%, transparent);
  }
}
.wt-lf-report-shelter__icon {
  font-size: 20px;
  line-height: 1;
}
.wt-lf-report-shelter__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wt-lf-report-shelter__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--wt-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-lf-report-shelter__caption {
  font-size: 12px;
  color: var(--wt-soft-teal);
  overflow-wrap: anywhere;
}
