/* src/components/itinerary-stages.css */
.it-geo {
  margin-top: 16px;
  border: 1px solid #dde7f2;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  min-width: 0;
}
.it-geo > header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.it-geo h4 {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 14px;
  color: #163454;
  margin: 0 0 6px;
}
.it-geo p {
  font-size: 12px;
  line-height: 1.6;
  color: #63758d;
  margin: 4px 0;
}
.it-geo-mode {
  color: #456482;
  font-size: 10px;
  white-space: nowrap;
}
.it-geo-row {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 11px 0;
}
.it-geo-rows article {
  border-top: 1px solid #edf1f7;
}
.it-geo-number {
  font-size: 11px;
  color: #96a4b7;
  font-variant-numeric: tabular-nums;
}
.it-geo-edit {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  color: #183350;
  cursor: pointer;
  box-shadow: none;
}
.it-geo-edit small {
  display: block;
  font-size: 10px;
  color: #72829a;
}
.it-geo-edit strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.it-geo-edit em {
  display: block;
  font-size: 10px;
  color: #72829a;
  font-style: normal;
}
.it-geo-state {
  color: #aa7d2c;
}
.it-geo-state.is-resolved {
  color: #178166;
}
.it-geo .it-geo-icon {
  padding: 6px;
  border: 0;
  background: #f4f7fb;
  border-radius: 6px;
  cursor: pointer;
  color: #617795;
  box-shadow: none;
}
.it-geo-fields {
  padding: 14px;
  border-radius: 10px;
  background: #f8fafd;
  margin: 0 0 12px;
  display: grid;
  gap: 14px;
}
.it-geo-fields label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: #354e6b;
}
.it-geo-fields input,
.it-geo-fields select,
.it-geo-fields textarea {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  font: inherit;
  font-size: 13px;
  padding: 9px 10px;
  border: 1px solid #cbd9e8;
  border-radius: 7px;
  background: #fff;
  color: #183350;
}
.it-geo-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.it-geo-location {
  display: grid;
  gap: 12px;
}
.it-geo-location details summary {
  font-size: 11px;
  cursor: pointer;
  color: #526a89;
  margin-bottom: 10px;
}
.it-geo-actions,
.it-geo footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.it-geo-actions button,
.it-geo footer button {
  display: flex;
  gap: 5px;
  align-items: center;
  background: #fff;
  border: 1px solid #d4dfed;
  color: #31577e;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 11px;
  cursor: pointer;
  box-shadow: none;
}
.it-geo-actions button:disabled {
  opacity: .4;
}
.it-geo footer {
  padding-top: 13px;
  border-top: 1px solid #edf1f7;
}
.it-geo p.it-geo-warning {
  color: #966426;
}
.it-geo p.it-geo-ok {
  color: #178166;
}
.it-geo-actions .it-geo-danger {
  color: #a13d40;
}
.it-geo-empty {
  padding: 10px 0 18px;
}
.it-geo button:focus-visible,
.it-geo summary:focus-visible {
  outline: 3px solid #9ac9f5;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .it-geo {
    padding: 12px;
  }
  .it-geo > header {
    display: block;
  }
  .it-geo-mode {
    display: block;
    margin-top: 8px;
  }
  .it-geo-two {
    grid-template-columns: 1fr;
  }
  .it-geo-fields {
    padding: 10px;
  }
  .it-geo-actions button,
  .it-geo footer button {
    min-height: 34px;
  }
}
@media (max-width: 700px) {
  .jt-trip-itinerary > div:first-child {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px;
  }
  .jt-trip-itinerary > div:first-child > div:last-child {
    justify-content: space-between;
    flex-wrap: wrap;
    min-width: 0;
  }
  .jt-trip-itinerary .itinerary-editor-header,
  .itinerary-editor .itinerary-editor-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .itinerary-editor .itinerary-editor-header > div {
    min-width: 0;
    max-width: 100%;
  }
  .itinerary-editor .itinerary-day-header {
    flex-wrap: wrap;
  }
  .itinerary-editor .itinerary-day-badge-title {
    min-width: 0;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }
  .itinerary-editor .itinerary-day-title-input {
    min-width: 0;
    flex-basis: 100%;
    width: 100%;
  }
  .itinerary-editor .itinerary-day-reorder-actions {
    margin-left: auto;
  }
}
