﻿.sp-san-detail-page {
  --sp-bg: #f4f7fb;
  --sp-surface: #ffffff;
  --sp-text: #10213d;
  --sp-muted: #607390;
  --sp-border: #d7e2ef;
  --sp-primary: #0b57d0;
  --sp-primary-strong: #093f95;
  --sp-accent: #ff7a1a;
  --sp-accent-strong: #dd6200;
  --sp-shadow: 0 14px 30px rgba(15, 36, 69, 0.11);
  --sp-shadow-soft: 0 8px 20px rgba(15, 36, 69, 0.07);
  background: var(--sp-bg);
  color: var(--sp-text);
  min-height: 100vh;
  padding-bottom: 3.5rem;
}

.sp-san-detail-page .sp-container {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
}

.sp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.36rem;
  padding: 1.1rem 0;
  font-size: 0.84rem;
}

.sp-breadcrumb a {
  text-decoration: none;
  color: #4d6487;
  font-weight: 700;
}

.sp-breadcrumb a:hover {
  color: var(--sp-primary);
}

.sp-breadcrumb .separator,
.sp-breadcrumb span {
  color: #7286a4;
}

.sp-detail-hero {
  background:
    radial-gradient(circle at 90% 26%, rgba(255, 122, 26, 0.18) 0%, transparent 34%),
    linear-gradient(140deg, rgba(9, 62, 145, 0.96) 0%, rgba(11, 87, 208, 0.95) 48%, rgba(9, 95, 198, 0.94) 100%);
  border: 1px solid rgba(219, 233, 253, 0.22);
  border-radius: 24px;
  box-shadow: var(--sp-shadow);
  padding: 1.4rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.sp-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: #ffd8b8;
}

.sp-hero-info h1 {
  margin: 0;
  font-family: var(--ui-font-heading);
  font-size: clamp(1.95rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.sp-hero-meta {
  display: flex;
  gap: 0.48rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}

.sp-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  font-size: 0.73rem;
  font-weight: 700;
}

.sp-badge.is-available {
  background: #e8f8ef;
  color: #11834f;
}

.sp-badge.is-maintenance {
  background: #fff2e4;
  color: #a35300;
}

.sp-badge.is-unavailable {
  background: #eef3fa;
  color: #5f748f;
}

.sp-hero-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.24rem 0.56rem;
  font-size: 0.73rem;
  color: #19406f;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.sp-hero-location {
  margin: 0.68rem 0 0;
  color: #e6efff;
  font-size: 0.92rem;
  display: flex;
  gap: 0.42rem;
  align-items: flex-start;
}

.sp-hero-location i {
  margin-top: 0.15rem;
}

.sp-hero-price {
  margin: 0.75rem 0 0;
  font-family: var(--ui-font-heading);
  font-size: 1.25rem;
}

.sp-hero-price span {
  font-size: 0.82rem;
  color: #d6e6ff;
}

.sp-hero-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  border-radius: 10px;
  padding: 0.56rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.sp-btn:hover {
  transform: translateY(-1px);
}

.sp-btn-primary {
  background: linear-gradient(180deg, var(--sp-primary) 0%, var(--sp-primary-strong) 100%);
  color: #ffffff;
}

.sp-btn-primary:hover {
  color: #ffffff;
}

.sp-btn-accent {
  background: linear-gradient(180deg, var(--sp-accent) 0%, var(--sp-accent-strong) 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(255, 122, 26, 0.24);
}

.sp-btn-accent:hover {
  color: #ffffff;
}

.sp-btn-outline {
  background: rgba(255, 255, 255, 0.97);
  color: #17335b;
  border-color: #c8d8ed;
}

.sp-btn-outline:hover {
  color: var(--sp-primary);
}

.sp-btn-disabled {
  background: #e2ebf7;
  color: #7188a8;
  border-color: #cfdaea;
  cursor: not-allowed;
}

.sp-detail-layout {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 1rem;
  align-items: start;
}

.sp-section-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 20px;
  box-shadow: var(--sp-shadow-soft);
  padding: 1rem;
  margin-bottom: 1rem;
}

.sp-section-title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--sp-border);
  font-family: var(--ui-font-heading);
  font-size: 1.15rem;
}

.sp-gallery-main {
  width: 100%;
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  background: #eaf2fc;
}

.sp-gallery-img,
.sp-gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-gallery-strip {
  margin-top: 0.62rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.sp-gallery-thumb {
  height: 78px;
  border-radius: 10px;
  overflow: hidden;
  background: #edf3fb;
}

.sp-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.sp-info-item {
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.72rem;
}

.sp-info-item label,
.sp-info-block label {
  display: block;
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #587194;
  font-weight: 700;
}

.sp-info-item span {
  display: block;
  margin-top: 0.32rem;
  color: #1f3a5f;
  font-weight: 600;
}

.sp-info-price {
  color: var(--sp-primary) !important;
}

.sp-info-block {
  margin-top: 0.75rem;
}

.sp-info-block p {
  margin: 0.36rem 0 0;
  color: var(--sp-muted);
  line-height: 1.6;
}

.sp-pre-wrap {
  white-space: pre-line;
}

.sp-btn-map {
  margin-top: 0.95rem;
}

.sp-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.sp-highlight-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  border-radius: 12px;
  border: 1px solid #dbe6f4;
  background: #f8fbff;
  padding: 0.72rem;
  color: #2f4a70;
  font-size: 0.88rem;
}

.sp-highlight-item i {
  color: var(--sp-primary);
  margin-top: 0.1rem;
}

.sp-policy-list {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: #4f6688;
  display: grid;
  gap: 0.3rem;
}

.sp-price-table-wrap {
  overflow-x: auto;
  border: 1px solid #d5e1f0;
  border-radius: 12px;
}

.sp-price-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.sp-price-table th,
.sp-price-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #e2eaf5;
  text-align: left;
  font-size: 0.86rem;
}

.sp-price-table th {
  background: #f2f7ff;
  color: #3a557c;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sp-price-table tbody tr:last-child td {
  border-bottom: none;
}

.sp-price-value {
  color: var(--sp-primary);
  font-weight: 700;
}

.sp-price-card-list {
  display: none;
}

.sp-price-card {
  border: 1px solid #d9e3f1;
  border-radius: 12px;
  background: #f9fbff;
  padding: 0.78rem;
  display: grid;
  gap: 0.42rem;
}

.sp-price-card-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.sp-price-card p {
  margin: 0;
  color: #4f6688;
  font-size: 0.88rem;
}

.sp-review-list {
  display: grid;
  gap: 0.72rem;
}

.sp-review-item {
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  background: #f9fbff;
  padding: 0.8rem;
}

.sp-review-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-start;
}

.sp-review-author {
  color: #19355b;
}

.sp-review-date {
  margin: 0.18rem 0 0;
  color: var(--sp-muted);
  font-size: 0.78rem;
}

.sp-review-stars {
  color: #f09d22;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
}

.sp-review-stars span {
  color: #c7d4e7;
}

.sp-review-text {
  margin: 0.46rem 0 0;
  color: #2f4a71;
  line-height: 1.58;
  font-size: 0.9rem;
}

.sp-calendar-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.52rem;
  margin-bottom: 0.9rem;
}

.sp-calendar-field label {
  display: block;
  margin: 0 0 0.28rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #28466f;
}

.sp-calendar-input {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #d3deed;
  background: #f8fbff;
  width: 100%;
  padding: 0.52rem 0.72rem;
  font-size: 0.9rem;
}

.sp-calendar-input:focus {
  outline: none;
  border-color: #2d71de;
  box-shadow: 0 0 0 0.16rem rgba(45, 113, 222, 0.16);
}

.sp-slot-list {
  display: grid;
  gap: 0.55rem;
  max-height: 470px;
  overflow: auto;
  padding-right: 0.2rem;
}

.sp-slot-item {
  border: 1px solid #dce5f2;
  border-radius: 12px;
  padding: 0.62rem;
  background: #f9fbff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
}

.sp-slot-time {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: #17355d;
  font-size: 0.88rem;
}

.sp-slot-action {
  min-height: 34px;
  font-size: 0.8rem;
  padding: 0.4rem 0.72rem;
}

.sp-empty {
  border: 1px dashed #bfd2ea;
  border-radius: 12px;
  background: #f8fbff;
  color: #5a7193;
  padding: 0.9rem;
  font-size: 0.9rem;
}

.sp-cta-box {
  margin-top: 0.5rem;
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 122, 26, 0.26) 0%, transparent 38%),
    linear-gradient(138deg, #09377f 0%, #0b57d0 48%, #0d68dc 100%);
  border: 1px solid rgba(217, 231, 250, 0.25);
  color: #ffffff;
  box-shadow: var(--sp-shadow);
}

.sp-cta-box h2 {
  margin: 0;
  font-family: var(--ui-font-heading);
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
}

.sp-cta-box p {
  margin: 0.75rem auto 0;
  max-width: 62ch;
  color: #dbe8ff;
}

.sp-cta-action {
  margin-top: 1rem;
}

@media (max-width: 1099px) {
  .sp-detail-layout {
    grid-template-columns: 1fr;
  }

  .sp-side-col .sp-section-card {
    position: static;
  }
}

@media (max-width: 767px) {
  .sp-san-detail-page .sp-container {
    width: min(1240px, calc(100% - 1.2rem));
  }

  .sp-detail-hero {
    padding: 1rem;
  }

  .sp-hero-actions {
    width: 100%;
    justify-content: stretch;
    flex-direction: column;
  }

  .sp-hero-actions .sp-btn {
    width: 100%;
  }

  .sp-info-grid,
  .sp-highlight-grid,
  .sp-gallery-strip,
  .sp-slot-item {
    grid-template-columns: 1fr;
  }

  .sp-slot-item {
    display: grid;
    align-items: stretch;
  }

  .sp-price-table-wrap {
    display: none;
  }

  .sp-price-card-list {
    display: grid;
    gap: 0.55rem;
  }

  .sp-calendar-form {
    grid-template-columns: 1fr;
  }

  .sp-gallery-main {
    height: 250px;
  }

  .sp-cta-box {
    padding: 1.2rem;
  }
}
