/* Package details modal — hidden by default; only visible when [hidden] is removed */
.car-pkg-detail-ov[hidden] {
  display: none !important;
}
.car-pkg-detail-ov:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.car-pkg-detail-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  color: #334155;
  animation: carPkgDetailIn 0.22s ease;
}
@keyframes carPkgDetailIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.car-pkg-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f4f6f9;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 2;
}
.car-pkg-detail-close:hover,
.car-pkg-detail-close:focus-visible {
  background: #eef2f7;
  color: #0f172a;
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}
.car-pkg-detail-head {
  padding: 22px 22px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}
.car-pkg-detail-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 36px 8px 0;
}
.car-pkg-detail-price {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  line-height: 1.45;
}
.car-pkg-detail-body {
  padding: 16px 22px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.car-pkg-detail-foot {
  padding: 14px 22px 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}
.car-pkg-detail-book {
  width: 100%;
  min-height: 48px;
}
.car-pkg-detail-body .car-pkg-detail-section {
  margin-bottom: 14px;
}
.car-pkg-detail-body .car-pkg-detail-section:last-child {
  margin-bottom: 0;
}
.car-pkg-detail-body .car-pkg-detail-section h4 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2563eb;
  margin-bottom: 6px;
}
.car-pkg-detail-body .car-pkg-detail-section p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}
.car-pkg-detail-body .car-pkg-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.car-pkg-detail-body .car-pkg-detail-list li {
  padding: 3px 0 3px 14px;
  position: relative;
  line-height: 1.45;
  color: #475569;
  font-size: 13px;
}
.car-pkg-detail-body .car-pkg-detail-list li::before {
  position: absolute;
  left: 0;
  font-size: 10px;
  font-weight: 700;
}
.car-pkg-detail-body .car-pkg-detail-list--inc li::before {
  content: "✓";
  color: #2563eb;
}
.car-pkg-detail-body .car-pkg-detail-list--addons li::before {
  content: "+";
  color: #d97706;
}

/* See what's included — text link button, not inline expand */
.car-pkg-see-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  color: #1d4ed8;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.18s;
  pointer-events: auto;
}
.car-pkg-see-btn::after {
  content: none;
}
.car-pkg-see-btn:hover,
.car-pkg-see-btn:focus-visible {
  color: #1e40af;
  text-decoration: underline;
  outline: none;
}
.car-pkg-see-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .car-pkg-detail-ov:not([hidden]) {
    padding: 0;
    align-items: flex-end;
  }
  .car-pkg-detail-panel {
    max-width: 100%;
    max-height: 92svh;
    border-radius: 20px 20px 0 0;
    margin: 0;
  }
}
