.travel-planner-modal {
  width: min(760px, calc(100vw - 28px));
  max-width: 760px;
  overflow: visible;
  border: 4px solid #70502e;
  background: #dfc69f;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .56), inset 0 0 0 2px #f5e4bd;
}

.travel-planner-modal .modal-head {
  background: linear-gradient(#afc841, #99b82d);
  border-bottom: 3px solid #735734;
  color: #4a321c;
  justify-content: center;
}

.travel-planner-modal .modal-head h3 {
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.travel-planner-modal .modal-body {
  padding: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(255,255,255,.18), transparent 24%),
    linear-gradient(135deg, rgba(104,75,42,.05) 25%, transparent 25%) 0 0/24px 24px,
    #dec6a3;
}

.travel-planner-modal .modal-actions {
  padding: 14px 22px 18px;
  background: #d4b98f;
  border-top: 2px solid rgba(99, 69, 38, .28);
}

.travel-planner-shell {
  color: #4b3826;
  font-family: Georgia, 'Times New Roman', serif;
}

.travel-planner-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 22px 12px;
  border-bottom: 1px solid rgba(87, 60, 31, .28);
}

.travel-commander {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f5d997, #7d4f25 70%);
  border: 3px solid #62411f;
  font-size: 34px;
  box-shadow: inset 0 0 0 2px #e4b968, 0 3px 7px rgba(0,0,0,.25);
}

.travel-planner-header small,
.travel-planner-header span {
  display: block;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 700;
}

.travel-planner-header small {
  color: #776045;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.travel-planner-header h3 {
  margin: 2px 0;
  font-size: 24px;
}

.travel-planner-header span {
  font-size: 13px;
  color: #725a3e;
}

.travel-arrival-strip {
  display: grid;
  grid-template-columns: 1.45fr 1fr .8fr;
  gap: 1px;
  margin: 0 22px;
  background: rgba(94, 64, 32, .22);
  border: 1px solid rgba(94, 64, 32, .28);
}

.travel-arrival-strip > div {
  min-height: 50px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(246, 229, 196, .68);
}

.travel-arrival-strip span,
.travel-summary-row span {
  color: #745b3e;
  font-family: 'Segoe UI', sans-serif;
  font-size: 13px;
}

.travel-arrival-strip strong {
  font-size: 17px;
}

.travel-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 22px;
}

.travel-summary-row > div {
  min-width: 0;
  padding: 9px 10px;
  background: rgba(242, 224, 190, .8);
  border: 1px solid rgba(94, 64, 32, .24);
  text-align: center;
}

.travel-summary-row > div.is-highlight {
  background: #edf1c4;
  border-color: #9cab48;
}

.travel-summary-row span,
.travel-summary-row strong {
  display: block;
}

.travel-summary-row strong {
  margin-top: 3px;
  font-size: 16px;
}

.travel-mount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 4px 22px 16px;
}

.travel-mount-card {
  position: relative;
  min-height: 236px;
  padding: 13px 9px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 3px solid #9b845e;
  background: linear-gradient(#d7bf98, #c4a77e);
  color: #4a3523;
  cursor: pointer;
  font-family: Georgia, 'Times New Roman', serif;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.20), 0 3px 7px rgba(73,48,23,.22);
  transition: transform .13s ease, border-color .13s ease, filter .13s ease;
}

.travel-mount-card:hover:not(:disabled),
.travel-mount-card:focus-visible:not(:disabled) {
  transform: translateY(-3px);
  border-color: #738b25;
  outline: none;
}

.travel-mount-card.is-selected {
  border-color: #789322;
  box-shadow: inset 0 0 0 2px #dbe978, 0 0 0 3px rgba(120,147,34,.24), 0 5px 10px rgba(73,48,23,.25);
}

.travel-mount-card.is-locked {
  filter: grayscale(.72) brightness(.86);
  cursor: not-allowed;
}

.travel-mount-card.is-unaffordable:not(.is-selected) {
  border-color: #a55b49;
}

.travel-mount-art {
  width: 96px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 42% 42%;
  background: radial-gradient(circle at 40% 34%, #f0d4a3 0 22%, #a96631 56%, #5e321c 100%);
  border: 3px solid #7a4c28;
  font-family: 'Segoe UI Emoji', sans-serif;
  font-size: 62px;
  line-height: 1;
  text-shadow: 0 3px 2px rgba(0,0,0,.25);
}

.travel-mount-art.warhorse {
  background: radial-gradient(circle at 40% 34%, #e8dfc7 0 22%, #9db2b7 56%, #4b6067 100%);
}

.travel-mount-art.steed {
  background: radial-gradient(circle at 40% 34%, #f2f0e5 0 22%, #aeb8be 54%, #596870 100%);
}

.travel-mount-card > strong {
  font-size: 18px;
}

.travel-mount-bonus,
.travel-mount-cost,
.travel-mount-lock {
  width: 86%;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 3px 6px;
  background: rgba(251,239,215,.74);
  border: 1px solid rgba(89,61,32,.22);
  font-family: 'Segoe UI', sans-serif;
  font-weight: 800;
}

.travel-mount-bonus {
  color: #526d21;
}

.travel-mount-lock {
  font-size: 12px;
  color: #765c43;
}

.travel-mount-radio {
  width: 22px;
  height: 22px;
  margin-top: auto;
  border-radius: 50%;
  border: 3px solid #674a30;
  background: #ead7b8;
}

.travel-mount-card.is-selected .travel-mount-radio {
  background: radial-gradient(circle, #5e9e20 0 40%, #e7d7b9 44%);
}

.travel-mount-help {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% - 18px);
  width: 215px;
  padding: 10px 12px;
  transform: translate(-50%, 8px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  border: 2px solid #77715a;
  background: #d8d5bc;
  color: #4d4435;
  box-shadow: 0 5px 13px rgba(0,0,0,.34);
  font-family: 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.3;
  transition: opacity .12s ease, transform .12s ease;
}

.travel-mount-help b {
  display: block;
  margin-bottom: 5px;
}

.travel-mount-card:hover .travel-mount-help,
.travel-mount-card:focus-visible .travel-mount-help {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.travel-no-stables {
  margin: 5px 22px 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 2px dashed #9a7b51;
  background: rgba(239,219,184,.72);
}

.travel-no-stables > span {
  font-size: 52px;
  filter: grayscale(1);
}

.travel-no-stables p {
  margin: 5px 0 0;
}

.travel-planner-note {
  margin: 0 22px 16px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #8ba13a;
  background: #e5edbb;
  font-family: 'Segoe UI', sans-serif;
}

.travel-planner-note.is-warning {
  border-color: #aa644b;
  background: #f0c9b8;
}

.travel-planner-note > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #769522;
  color: #fff;
  font-weight: 900;
}

.travel-planner-note.is-warning > span {
  background: #a34f38;
}

.travel-planner-note p {
  margin: 0;
}

.travel-confirm-btn {
  min-width: 220px;
  padding: 12px 20px;
  border: 3px solid #38619b;
  background: linear-gradient(#4e8dd8, #2d65ae);
  color: white;
  font-size: 16px;
  font-weight: 900;
  text-shadow: 0 2px 1px rgba(0,0,0,.35);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), 0 3px 0 #244875;
  cursor: pointer;
}

.travel-confirm-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.travel-confirm-btn:disabled {
  filter: grayscale(1);
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .travel-arrival-strip,
  .travel-summary-row {
    grid-template-columns: 1fr 1fr;
  }

  .travel-mount-grid {
    grid-template-columns: 1fr;
  }

  .travel-mount-card {
    min-height: 190px;
  }
}
