.place-detail .btn { min-height: 44px; }
.place-detail .btn { display: inline-flex; align-items: center; text-decoration: none; }
.place-artwork { position: relative; isolation: isolate; display: block; width: 100%; height: 100%; background: #dbe7ff; }
.place-artwork > img, .place-artwork > .travel-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place-artwork > img { z-index: 1; }
.place-artwork > .travel-placeholder { color: #2753a8; background: linear-gradient(145deg,#e5edff,#c8dafa); }
.place-artwork.has-place-image > :is(.travel-placeholder,.place-empty-label) { display: none; }
.place-artwork > img[data-photo]:not([src]), .place-artwork > img[hidden] { display: none; }
.place-artwork > img[data-photo]:not([src]) + .place-photo-label, .place-artwork > img[hidden] + .place-photo-label { display: none; }
.place-photo-label {
  position: absolute;
  z-index: 2;
  inset: 7px auto auto 7px;
  padding: 3px 6px;
  border-radius: 5px;
  color: white;
  background: #101a30de;
  font-size: 10px;
  line-height: 1.25;
}
.place-detail-photo { aspect-ratio: 16/8; border-radius: 12px; overflow: hidden; }
.place-detail { overflow-wrap: anywhere; font-size: 14px; }
.place-detail-meta { color: #475571; }
.place-detail-notes { white-space: pre-wrap; }
.place-detail + .actions { margin-top: 10px; }
.place-detail + .actions .btn { min-height: 44px; }
.idea-cities {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  overscroll-behavior-inline: contain;
}
.idea-cities button, .idea-view-options button:first-child {
  flex: 0 0 auto;
  min-height: 44px;
  border: 0;
  border-radius: 26px;
  padding: 8px 13px;
  background: #eeebe6;
  font-size: 13px;
  font-weight: 700;
}
.idea-cities [aria-pressed="true"], .idea-view-options button[aria-pressed="true"] { background: var(--accent); color: white; }
.idea-view-options { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 3px 0 10px; }
.idea-view-options .btn { display: inline-flex; align-items: center; gap: 4px; background: transparent; color: var(--accent); padding-right: 2px; }
.idea-view-options svg { width: 16px; height: 16px; }
#idea-status:empty { display: none; }
.idea-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.idea-tile { position: relative; min-width: 0; }
.idea-open {
  position: relative;
  display: grid;
  align-items: end;
  width: 100%;
  min-height: 158px;
  aspect-ratio: 1/1.02;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  padding: 57px 0 0;
  background: #204486;
  text-align: left;
  box-shadow: var(--travel-shadow);
}
.idea-open > .place-artwork { position: absolute; inset: 0; }
.idea-open > .place-artwork .travel-placeholder { padding-bottom: 28px; }
.idea-caption {
  position: relative;
  display: grid;
  align-content: end;
  gap: 3px;
  min-height: 74px;
  padding: 17px 9px 10px;
  color: white;
  background: linear-gradient(transparent,#101a30e8 46%,#101a30);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.idea-caption strong { font-size: clamp(15px,3.9vw,18px); line-height: 1.16; }
.idea-heart {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff7a;
  border-radius: 50%;
  padding: 0;
  background: #101a30bb;
  color: white !important;
}
.idea-heart svg { fill: none; }
.idea-heart[aria-pressed="true"] svg { fill: white; }
.idea-tools { margin-top: 13px; padding: 0 10px 8px; border-top: 1px solid var(--travel-line); }
.idea-tools summary { cursor: pointer; min-height: 44px; padding: 13px 0 9px; font-size: 13px; font-weight: 700; }
.discover-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.discover-filters .field { min-width: 0; color: #475571; font-size: 12px; font-weight: 650; }
.discover-filters select { min-width: 0; min-height: 44px; background: #fff; font-size: 16px; }
.discover-empty { text-align: center; padding: 35px 18px; color: #43516a; }
.discover-empty > svg { width: 32px; height: 32px; color: var(--accent); }
.discover-empty h2 { margin: 7px 0; font-size: 18px; color: #17213a; }
@media print {
  :is(.travel-ideas,.travel-map,.travel-stays) { display: none; }
}

.travel-map .travel-paper { padding-top: 9px; }
.map-scopes.travel-segments { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 4px; }
.map-discover-filters .field { gap: 2px; margin-bottom: 6px; }
.map-discover-filters select { padding: 8px 10px; }
.map-frame { position: relative; isolation: isolate; }
.travel-map #trip-map {
  height: clamp(380px,65vh,640px);
  height: clamp(380px,65svh,640px);
  border: 1px solid #dbe3ee;
  border-radius: 15px;
  background: #e7edf3;
  overflow: hidden;
}
.travel-map #trip-map:not(.leaflet-container) { padding: 14px; }
#map-recenter {
  position: absolute;
  right: 10px;
  bottom: 26px;
  z-index: 2;
  color: white;
  background: var(--accent);
  box-shadow: 0 3px 12px #14275440;
}
#map-recenter[hidden] { display: none; }
.travel-map #trip-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
.map-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 8px;
  margin: 7px 0;
  color: #43516a;
  font-size: 12px;
  line-height: 1.5;
}
.map-caption a { display: inline-flex; align-items: center; min-height: 44px; }
.map-caption span { align-self: center; }
.map-route-legend { font-weight: 700; }
.map-photo-pin {
  border: 3px solid #fff;
  border-radius: 50%;
  background: #e6edfb;
  box-shadow: 0 0 0 1px #002fa7,0 2px 8px #10274970;
}
.map-photo-circle { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.travel-map .map-place-name {
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 5px;
  border-color: #fff;
  border-radius: 7px;
  color: #15213b;
  font: 700 12px/1.35 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;
}
.travel-map .map-place-name::before { display: none; }
.travel-map .leaflet-popup-content { margin: 12px; }
.travel-map #trip-map .leaflet-popup-close-button {
  width: 44px;
  height: 44px;
  line-height: 44px;
  font-size: 19px;
  border-radius: 12px;
  background: #fff;
  color: #17213a;
}
.map-popup-title { display: block; padding-right: 34px; margin-bottom: 7px; font-size: 15px; line-height: 1.25; }
.map-popup .place-detail { font-size: 12px; }
.map-popup .place-detail p { margin: 5px 0; }
.map-place-list .field { max-width: 150px; margin: 0; font-size: 12px; }
.map-place-list select { min-height: 44px; font-size: 16px; }
.map-place-list h2 { margin: 0; font-size: 18px; }
.travel-map .actions a.btn { display: inline-flex; align-items: center; text-decoration: none; }

.stay-list { display: grid; gap: 8px; }
.stay-row { grid-template-columns: minmax(0,32%) minmax(0,1fr) 15px; }
.stay-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  min-height: 78px;
  aspect-ratio: 4/3;
  padding: 6px 3px;
  border-radius: 9px;
  background: linear-gradient(150deg,#fff1d9,#eae0ce 72%,#ddcfb9);
  color: #514631;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.1;
  text-align: center;
}
.stay-placeholder svg { width: 34px; height: 34px; stroke-width: 1.45; }
.stay-row .stay-hotel { margin-top: 2px; font-weight: 680; }
.stay-row .travel-city-date { font-size: 12px; }
.stay-row .stay-status { margin-top: 4px; font-size: 12px; color: #43516a; }
.stay-actions { margin-top: 12px; }
.stay-note { margin: 7px 0 0; }
.stay-details { overflow-wrap: anywhere; }
.stay-details dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px 12px; font-size: 14px; }
.stay-details dt { color: #475571; }
.stay-details dd { margin: 0; }
.stay-details .btn { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
@media (min-width: 751px) {
  .stay-row { grid-template-columns: 114px minmax(0,1fr) 18px; }
}
