/* SPA booking: entry button + debug panel */
#spaApiDebugPanel .spa-debug-card {
  width: min(1120px, 100%);
  max-width: min(1120px, 100%);
  min-height: auto;
  margin: 0 auto;
  box-sizing: border-box;
}

#spaApiDebugPanel .spa-debug-actions .btn {
  margin-top: 0;
}

#spaApiDebugPanel .spa-debug-grid .form-label {
  white-space: nowrap;
}

#spaApiDebugPanel #spaDebugOutput {
  max-height: 460px;
}

.spa-booking-entry-btn {
  background-color: #5227cc;
  border-color: #5227cc;
  color: #ffffff;
  min-width: 220px;
  font-size: 17px;
  padding: 0.65rem 1.75rem;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(82, 39, 204, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.spa-booking-entry-btn:hover,
.spa-booking-entry-btn:focus {
  background-color: #4a23b8;
  border-color: #4a23b8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(82, 39, 204, 0.26);
}

.spa-booking-entry-btn:active {
  transform: translateY(0);
}

/* SPA route modal */
#spaRouteModal .modal-dialog {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
}

#spaRouteModal .modal-content {
  padding: 12px 24px 24px;
  border-radius: 20px;
  border: 1px solid #ead9c8;
  background: #f8fafc;
  max-height: calc(100vh - 40px);
  height: auto;
  overflow: hidden;
}

#spaRouteModal .modal-header {
  padding: 0;
}

#spaRouteModal .modal-header-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 42px;
}

#spaRouteModal .modal-title.modal-title-edit {
  display: block !important;
  text-align: center;
  margin: 0;
}

#spaRouteModal .auth-status {
  justify-self: end;
  min-width: 120px;
  padding-right: 42px;
}

#spaRouteModal .modal-header .btn-link {
  font-size: 16px;
  font-weight: 400;
  color: #0e4a67;
  text-decoration: none;
  padding: 0;
}

#spaRouteModal .modal-header .btn-link:hover,
#spaRouteModal .modal-header .btn-link:focus {
  color: #0056b3;
  text-decoration: underline;
}

#spaRouteModal .modal-header .login-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

#spaRouteModal .step-line {
  letter-spacing: 0.3px;
}

#spaRouteModal .modal-body {
  padding-top: 10px !important;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

#spaRouteModal .spa-route-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

#spaRouteModal .spa-route-intro {
  margin-bottom: 18px;
}

#spaRouteModal .spa-route-intro h6 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
  color: #624533;
  text-align: center;
}

#spaRouteModal .spa-route-intro p {
  margin: 0 auto;
  max-width: 880px;
  color: #637993;
  font-size: 17px;
  line-height: 1.45;
  text-align: center;
}

#spaRouteModal .spa-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

#spaRouteModal .spa-route-card {
  border: 1px solid #caa06a;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: default;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 190px;
}

#spaRouteModal .spa-route-card:hover {
  border-color: #caa06a;
  box-shadow: 0 10px 26px rgba(154, 106, 67, 0.1);
}

#spaRouteModal .spa-route-card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

#spaRouteModal .spa-route-card h6 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  color: #132f57;
  text-align: center;
}

#spaRouteModal .spa-route-card p {
  margin: 0;
  color: #637993;
  font-size: 17px;
  line-height: 1.45;
  min-height: 84px;
}

#spaRouteModal .spa-route-select {
  margin-top: auto;
  width: auto;
  max-width: 100%;
  align-self: center;
  min-height: 48px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  padding: 10px 34px;
}

#spaRouteModal .spa-route-card .spa-route-select.btn-primary {
  background: #a17246;
  border-color: #a17246;
  color: #ffffff;
}

#spaRouteModal .spa-route-card .spa-route-select.btn-primary:hover,
#spaRouteModal .spa-route-card .spa-route-select.btn-primary:focus {
  background: #8f633b;
  border-color: #8f633b;
  color: #ffffff;
}

#spaRouteModal .spa-route-note {
  margin: 16px 0 0;
  color: #637993;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 1199.98px) {
  #spaRouteModal .modal-content {
    max-height: calc(100vh - 32px);
  }
}

@media (max-width: 767.98px) {
  #spaRouteModal .modal-dialog {
    max-width: 100%;
    margin: 12px;
  }

  #spaRouteModal .modal-content {
    padding: 10px 14px 16px;
  }

  #spaRouteModal .modal-header-top {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: center;
  }

  #spaRouteModal .auth-status {
    min-width: 0;
    padding-right: 0;
    justify-self: center;
  }

  #spaRouteModal .spa-route-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #spaRouteModal .spa-route-card {
    border-radius: 16px;
    padding: 14px;
    min-height: 0;
  }

  #spaRouteModal .spa-route-card p {
    min-height: 0;
    font-size: 15px;
  }

  #spaRouteModal .spa-route-card h6 {
    font-size: 18px;
  }

  #spaRouteModal .spa-route-intro h6 {
    font-size: 20px;
  }

  #spaRouteModal .spa-route-intro p {
    font-size: 15px;
  }

  #spaRouteModal .spa-route-select {
    min-height: 44px;
    font-size: 16px;
    width: auto;
    align-self: center;
    padding: 10px 16px;
  }
}
