/* Route Context pill — beta Driving Tour CTA in the shared status-pill row. */

.hg-route-pill-wrap {
  display: inline-block;
  vertical-align: middle;
  margin: 0 6px;
}

.hg-route-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .25px;
  color: #fff;
  background: #117a4a;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  text-decoration: none;
  white-space: nowrap;
}

.hg-route-pill:hover,
.hg-route-pill:focus {
  color: #fff;
  background: #0b633b;
  text-decoration: none;
}

.hg-route-pill:focus {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.hg-route-pill-icon {
  font-size: 13px;
  opacity: .9;
  flex: 0 0 auto;
}

.hg-route-pill-text {
  display: inline-block;
  max-width: 30ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.hg-route-pill-beta {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #0b633b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .45px;
}

@media (max-width: 600px) {
  .hg-route-pill-wrap { margin: 4px 3px; }
  .hg-route-pill {
    gap: 5px;
    padding: 6px 9px;
    font-size: 11px;
    letter-spacing: .1px;
  }
  .hg-route-pill-text { max-width: 24ch; }
  .hg-route-pill-beta {
    padding: 2px 5px;
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .hg-route-pill {
    padding: 5px 8px;
    font-size: 10px;
  }
  .hg-route-pill-text { max-width: 22ch; }
}

/* Modal */

.hg-route-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}

.hg-route-modal.is-open {
  display: flex;
}

.hg-route-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .58);
}

.hg-route-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(82vh, 680px);
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.hg-route-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.hg-route-modal-eyebrow {
  margin-bottom: 5px;
  color: #117a4a;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.hg-route-modal-head h3 {
  margin: 0;
  color: #1f2937;
  font-size: 22px;
  line-height: 1.2;
}

.hg-route-modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  font-family: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.hg-route-modal-close:hover,
.hg-route-modal-close:focus {
  background: #e5e7eb;
}

.hg-route-modal-body {
  padding: 18px 22px 10px;
}

.hg-route-modal-intro {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
}

.hg-route-modal-list {
  display: grid;
  gap: 10px;
}

.hg-route-modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #f8fbf9;
}

.hg-route-modal-item-text {
  min-width: 0;
}

.hg-route-modal-item-text strong,
.hg-route-modal-item-text span {
  display: block;
}

.hg-route-modal-item-text strong {
  color: #1f2937;
  font-size: 15px;
  line-height: 1.25;
}

.hg-route-modal-item-text span {
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .35px;
  text-transform: uppercase;
}

.hg-route-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: #117a4a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .2px;
}

.hg-route-modal-cta:hover,
.hg-route-modal-cta:focus {
  background: #0b633b;
  color: #fff;
  text-decoration: none;
}

.hg-route-modal-foot {
  padding: 0 22px 20px;
}

.hg-route-modal-foot a {
  color: #117a4a;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.hg-route-modal-foot a:hover,
.hg-route-modal-foot a:focus {
  color: #0b633b;
  text-decoration: underline;
}

@media (max-width: 520px) {
  .hg-route-modal {
    align-items: flex-end;
    padding: 10px;
  }
  .hg-route-modal-card {
    max-height: 88vh;
    border-radius: 10px 10px 0 0;
  }
  .hg-route-modal-head,
  .hg-route-modal-body,
  .hg-route-modal-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hg-route-modal-item {
    align-items: stretch;
    flex-direction: column;
  }
  .hg-route-modal-cta {
    width: 100%;
    box-sizing: border-box;
  }
}

@media print {
  .hg-route-pill-wrap,
  .hg-route-modal { display: none !important; }
}
