/* Start Anywhere (beta) — screenshot/caption import card on /my-trip.
   Scoped .hg-sa; px font sizes per site convention. */

/* Reset for site-wide form rules in 04-08-25-v1.css (main input[type=...] /
   textarea selectors are (0,1,2) — list type-specific selectors so each is
   (0,1,2)+ and later in source order; see CLAUDE.md Form Controls). */
.hg-sa input[type='file'],
.hg-sa input[type='text'],
.hg-sa input[type='url'],
.hg-sa textarea {
  height: auto;
  margin: 0;
  background: none;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
  line-height: 1.4;
  box-shadow: none;
  width: auto;
}

.hg-sa {
  background: linear-gradient(135deg, #f5faff 0%, #f3f9f4 100%);
  border: 1px solid #d8e7ef;
  border-radius: 14px;
  margin: 0 0 16px;
  overflow: hidden;
  scroll-margin-top: 80px; /* keep the #start-anywhere deep link clear of the header */
}
.hg-sa .hg-sa-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  padding: 13px 18px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.hg-sa .hg-sa-toggle-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hg-sa .hg-sa-toggle-title {
  font-size: 17px;
  font-weight: 800;
  color: #1a2b3c;
}
.hg-sa .hg-sa-beta {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  background: #0a5793;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 8px;
  position: relative;
  top: -1px;
}
.hg-sa .hg-sa-toggle-sub { font-size: 13.5px; color: #51606b; }
.hg-sa .hg-sa-chev { color: #7a8a96; font-size: 14px; transition: transform .2s ease; flex: 0 0 auto; }
.hg-sa.is-open .hg-sa-chev { transform: rotate(180deg); }

.hg-sa .hg-sa-body { padding: 0 18px 16px; }
.hg-sa .hg-sa-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hg-sa .hg-sa-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 86px;
  background: #fff;
  border: 1.5px dashed #9fc0d4;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  text-align: center;
  font-size: 13.5px;
  color: #51606b;
  box-sizing: border-box;
}
.hg-sa .hg-sa-drop:hover { border-color: #0a5793; }
.hg-sa .hg-sa-drop.has-image { border-style: solid; border-color: #1D9771; color: #157a5b; }
.hg-sa .hg-sa-drop .fa { font-size: 20px; color: #7a98ab; }
.hg-sa .hg-sa-drop input[type='file'] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}
.hg-sa .hg-sa-url {
  background: #fff;
  border: 1.5px solid #d8e7ef;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  display: block;
}
.hg-sa .hg-sa-url:focus { outline: 2px solid #0a5793; outline-offset: -1px; }
.hg-sa textarea {
  background: #fff;
  border: 1.5px solid #d8e7ef;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 86px;
}
.hg-sa textarea:focus { outline: 2px solid #0a5793; outline-offset: -1px; }

.hg-sa .hg-sa-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.hg-sa .hg-sa-go {
  background: #0a5793;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.hg-sa .hg-sa-go:hover { filter: brightness(.92); }
.hg-sa .hg-sa-go[disabled] { opacity: .55; cursor: wait; }
.hg-sa .hg-sa-note { font-size: 12px; color: #7a8a96; }

.hg-sa .hg-sa-results { margin-top: 12px; }
.hg-sa .hg-sa-result {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e2ecf2;
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 7px;
  font-size: 14.5px;
}
.hg-sa .hg-sa-result-name { font-weight: 700; }
.hg-sa .hg-sa-result-name a { color: #0a5793; }
.hg-sa .hg-sa-result-meta { font-size: 12px; color: #7a8a96; }
.hg-sa .hg-sa-isl {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
}
.hg-sa .hg-sa-isl.is-oahu { background: #F27A24; }
.hg-sa .hg-sa-isl.is-maui { background: #1866B4; }
.hg-sa .hg-sa-isl.is-big-island { background: #c3232f; }
.hg-sa .hg-sa-isl.is-kauai { background: #1D9771; }
.hg-sa .hg-sa-isl.is-other { background: #475569; }
.hg-sa .hg-sa-add {
  margin-left: auto;
  background: #1D9771;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  flex: 0 0 auto;
}
.hg-sa .hg-sa-add:hover { filter: brightness(.92); }
.hg-sa .hg-sa-add.is-added { background: #475569; cursor: default; }
.hg-sa .hg-sa-unmatched {
  font-size: 13px;
  color: #7a8a96;
  padding: 4px 2px;
}
.hg-sa .hg-sa-status { font-size: 13.5px; color: #51606b; padding: 4px 2px; }
.hg-sa .hg-sa-status.is-error { color: #c3232f; }

@media print { .hg-sa { display: none; } }
