/* Center detail page – complements public-landing.css */
.detail-hero {
  background: linear-gradient(135deg, #021a19 0%, #042f2e 40%, #0f766e 100%);
  position: relative;
  overflow: hidden;
}
.detail-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse 60% 50% at 70% 30%, rgba(234, 88, 12, 0.1) 0%, transparent 55%);
  pointer-events: none;
}
.detail-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse 40% 40% at 20% 80%, rgba(234, 88, 12, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.center-logo-wrap {
  background: #fff;
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.center-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.detail-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid #e2e8f0;
  color: #0f172a;
  background: #fff;
}
.detail-action-btn:hover {
  border-color: #ea580c;
  color: #ea580c;
  background: rgba(234, 88, 12, 0.06);
}
.detail-action-btn.primary {
  background: #ea580c;
  color: #fff;
  border-color: #ea580c;
}
.detail-action-btn.primary:hover {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}
.course-tab-new { border: 1px solid #e2e8f0; border-radius: 0.75rem; overflow: hidden; }
.course-tab-new .nav-link {
  color: #475569;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: #f8fafc;
}
.course-tab-new .nav-link:hover { color: #0f172a; background: #fff; }
.course-tab-new .nav-link.active {
  color: #ea580c;
  background: #fff;
  border-bottom-color: #ea580c;
}
.course-row-new {
  display: grid;
  grid-template-columns: 60px 1fr 120px;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}
.course-row-new:last-child { border-bottom: none; }
.course-row-new:nth-child(even) { background: #f8fafc; }
#mapCanvas { border-radius: 0.75rem; }
.modal-detail {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 41, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-detail.show { display: flex; }
.modal-detail .modal-box {
  background: #fff;
  border-radius: 1rem;
  max-width: 420px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
}
.modal-detail .close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}
.modal-detail .close:hover { color: #0f172a; }
.modal-detail input.tex_t {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
}
.modal-detail input.tex_t:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}
.gallery-thumb {
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f1f5f9;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-thumb:hover img { transform: scale(1.05); }
