.travel-intro,
.travel-panel-heading,
.travel-editor-actions,
.travel-transfer-actions,
.travel-coordinate-action {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .55rem 1rem;
}

.travel-intro { align-items: end; }
.travel-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(17rem, 1fr);
  gap: 1.65rem;
  padding: 1.65rem 0 2rem;
  align-items: start;
}
.travel-layer-bar { display:flex; gap:.4rem; padding-bottom:.5rem; }
.travel-layer-bar button {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--green);
  padding: .38rem .7rem;
  font: 650 .84rem/1.25 var(--sans);
  cursor: pointer;
}
.travel-layer-bar button[aria-pressed="true"] { color: white; background: var(--green); border-color: var(--green); }
.travel-layer-bar button:disabled { cursor: default; }
.travel-map {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(26rem, 47vw, 39rem);
  background: radial-gradient(ellipse at 48% 44%, #253b45 0%, #12242e 52%, #09151d 100%);
  border: 1px solid #273c43;
  touch-action: none;
}
#travel-globe, .globe-pins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#travel-globe { display: block; cursor: grab; }
#travel-globe:active { cursor: grabbing; }
#travel-globe:focus-visible { outline: 2px solid #fff4cf; outline-offset: -4px; }
.travel-map.is-picking #travel-globe { cursor: crosshair; }
.globe-pins { pointer-events: none; }

.travel-pin {
  --pin-colour: #cb784b;
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -83%);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 1;
}
.travel-pin::before {
  content: "";
  width: 1.12rem;
  height: 1.12rem;
  border: 2px solid #fff;
  border-radius: 56% 56% 6% 56%;
  background: var(--pin-colour);
  box-shadow: 1px 1px .26rem #142624c9;
  transform: rotate(45deg);
}
.travel-pin::after {
  content: "";
  position: absolute;
  width: .34rem;
  height: .34rem;
  border-radius: 50%;
  background: #fff;
}
.travel-pin:hover, .travel-pin:focus-visible, .travel-pin[aria-pressed="true"] {
  --pin-colour: #985233;
  z-index: 2;
}
.travel-pin:focus-visible { outline-color: white; outline-offset: 0; }
.travel-pin--draft { --pin-colour: #286452; pointer-events: none; z-index: 2; }
.travel-map-actions {
  z-index: 3;
  display: grid;
  gap: .35rem;
  position: absolute;
  right: .75rem;
  top: .75rem;
}
.travel-map-actions button {
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid #6b818a;
  border-radius: 3px;
  padding: 0;
  color: white;
  background: #142b36;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.travel-map-actions button:hover { background: #304c58; }
.travel-map-actions button:focus-visible { outline-color: white; }
.map-message {
  position: absolute;
  left: .75rem;
  right: 3.75rem;
  bottom: .55rem;
  margin: 0;
  padding: .42rem .6rem;
  background: #102630;
  color: #fff6e0;
  font-size: .83rem;
  border: 1px solid #6b818a;
  pointer-events: none;
}
.travel-map-caption { color: var(--muted); font-size: .78rem; }
.travel-map-caption p { margin: .45rem 0 0; }
.travel-map-caption a { color: inherit; }
.travel-panel {
  min-width: 0;
  padding-inline-start: 1.4rem;
  border-inline-start: 1px solid var(--rule);
}
.travel-panel h2 { font-size: 2rem; }
.travel-panel-heading { padding-bottom: .75rem; border-bottom: 1px solid var(--rule); }
#place-count, #places-empty { color: var(--muted); }
.travel-place-list, .travel-city-results { list-style: none; padding: 0; margin: 0; }
.travel-place-list { max-height: 15rem; overflow: auto; }
.travel-place-list button, .travel-city-results button {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  padding: .6rem .48rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.travel-place-list button { border-bottom: 1px solid var(--rule); }
.travel-place-list button:hover, .travel-city-results button:hover,
.travel-place-list button[aria-pressed="true"] { color: var(--green); background: var(--faint); }
.travel-detail { padding-top: 1.1rem; }
#place-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.travel-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin: .65rem 0; }
.travel-photo {
  padding: 0;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: zoom-in;
}
.travel-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.travel-editor label { display: block; margin: .75rem 0 .25rem; font-weight: 650; }
.travel-editor input, .travel-editor textarea {
  width: 100%;
  min-width: 0;
  padding: .45rem .57rem;
  border: 1px solid var(--control);
  background: white;
  color: var(--ink);
  font: inherit;
}
.travel-editor input[type="file"] { font-size: .86rem; }
.travel-editor textarea { resize: vertical; }
.travel-city-results { border: 1px solid var(--rule); max-height: 13rem; overflow: auto; background: white; }
.travel-coordinate-action { margin: .35rem 0; justify-content: flex-start; }
.travel-coordinates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; }
.editor-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editor-gallery figure { margin: 0; }
.editor-gallery .travel-quiet { font-size: .75rem; }
.travel-quiet {
  padding: 0;
  border: 0;
  color: var(--green);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .2em;
  font-size: .87rem;
  cursor: pointer;
}
.travel-quiet:disabled { opacity: .6; cursor: default; }
.travel-editor-actions { justify-content: flex-start; margin-top: .85rem; }
.remove-place { color: #8a392a; }
.travel-transfer {
  margin: 1.15rem 0 0;
  padding-top: .75rem;
  border-top: 1px solid var(--rule);
}
.travel-transfer summary, .travel-editor summary { cursor: pointer; color: var(--green); font-size: .87rem; }
.travel-transfer-actions { justify-content: flex-start; }
.travel-notice {
  padding: .55rem .65rem;
  background: var(--faint);
  border-inline-start: 3px solid var(--green);
  font-size: .86rem;
}
.travel-photo-viewer {
  max-width: min(92vw, 64rem);
  max-height: 92vh;
  padding: 1rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}
.travel-photo-viewer::backdrop { background: rgb(7 22 27 / .82); }
.travel-photo-viewer form { display: flex; justify-content: flex-end; padding-bottom: .6rem; }
.travel-photo-viewer img { width: auto; max-width: 100%; max-height: 74vh; margin-inline: auto; }
.travel-photo-viewer p { font-size: .9rem; margin-bottom: 0; }
@media (max-width: 790px) {
  .travel-layout { grid-template-columns: minmax(0, 1fr); }
  .travel-map { height: clamp(22rem, 77vw, 35rem); }
  .travel-panel { border-inline-start: 0; padding-inline-start: 0; }
}

.travel-highlights { border-top: 1px solid var(--rule); padding: 1.6rem 0 2.1rem; margin-top: 1rem; }
.travel-highlights h2 { font-size: clamp(1.7rem,3vw,2.55rem); margin-bottom: 1rem; }
.travel-highlight-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; }
.travel-feature-photo { margin: 0; min-width: 0; }
.travel-feature-photo img { height: clamp(24rem, 47vw, 36rem); object-fit: contain; border: 1px solid var(--rule); background: #e8ebe4; }
.travel-feature-photo figcaption { color: var(--muted); font-size: .92rem; margin-top: .45rem; }
@media (max-width: 670px) {
  .travel-highlight-grid { grid-template-columns: minmax(0,1fr); }
  .travel-feature-photo img { height: auto; max-height: 35rem; }
}
