/* ==========================================================================
   Sapiens Custom Hospital Pages (.shp)
   1. about      — เกี่ยวกับเรา (รู้จักโรงพยาบาล)
   2. atmosphere — บรรยากาศ
   3. rooms      — ห้องพัก
   4. interior   — บรรยากาศภายใน
   Follows .agent/rules/design-system.md Canonical Design Tokens
   ========================================================================== */

.shp {
  --shp-blue: #0758b7;
  --shp-navy: #102b51;
  --shp-accent: #1794dd;
  --shp-ink: #183442;
  --shp-muted: #526b7e;
  --shp-ice: #edf6fc;
  --shp-soft: #dceeff;
  --shp-cream: #f7f6f2;
  --shp-line: #dfe4e3;
  --shp-radius: 16px;
  --shp-radius-sm: 12px;
  --shp-radius-pill: 999px;
  font-family: "Kanit", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  color: var(--shp-ink);
  background: #ffffff;
  font-size: 16px;
  line-height: 1.8;
}

.shp *,
.shp *::before,
.shp *::after {
  box-sizing: border-box;
}

.shp [hidden] {
  display: none !important;
}

.shp-container {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.shp a {
  color: var(--shp-blue);
  text-decoration: none;
}

.shp a:focus-visible,
.shp button:focus-visible {
  outline: 3px solid var(--shp-accent);
  outline-offset: 4px;
}

/* ---------- Hero ---------- */
.shp-hero {
  background: var(--shp-ice);
  border-bottom: 1px solid var(--shp-line);
  padding: 36px 0 64px;
}

.shp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--shp-muted);
  margin-bottom: 28px;
}

.shp-breadcrumb a {
  color: var(--shp-blue);
}

.shp-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.shp-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.1px;
  text-transform: uppercase;
  color: var(--shp-blue);
  margin-bottom: 10px;
}

.shp-hero h1 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--shp-navy);
  margin: 0 0 18px;
}

.shp-serif {
  display: block;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--shp-blue);
  margin-top: 6px;
}

.shp-lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--shp-muted);
  margin: 0 0 26px;
}

.shp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Buttons ---------- */
.shp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--shp-radius-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.shp-btn--primary {
  background: var(--shp-blue);
  border-color: var(--shp-blue);
  color: #ffffff !important;
}

.shp-btn--primary:hover {
  background: var(--shp-navy);
  border-color: var(--shp-navy);
  color: #ffffff !important;
}

.shp-btn--secondary {
  background: var(--shp-soft);
  border-color: var(--shp-soft);
  color: var(--shp-navy) !important;
}

.shp-btn--secondary:hover {
  background: #ffffff;
  border-color: var(--shp-blue);
  color: var(--shp-blue) !important;
}

.shp-btn--outline {
  background: #ffffff;
  border-color: var(--shp-blue);
  color: var(--shp-blue) !important;
}

.shp-btn--outline:hover {
  background: var(--shp-navy);
  border-color: var(--shp-navy);
  color: #ffffff !important;
}

.shp-btn--full {
  width: 100%;
  margin-top: auto;
}

/* ---------- Sample Figures & Photo Notes ---------- */
.shp-sample-figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--shp-ice);
  border-bottom: 1px solid var(--shp-line);
}

.shp-sample-figure--hero,
.shp-sample-figure--zone {
  border-radius: var(--shp-radius);
  border: 1px solid var(--shp-line);
  box-shadow: 0 14px 34px rgba(16, 43, 81, 0.08);
}

.shp-sample-img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.shp-sample-img--hero {
  height: 380px;
}

.shp-sample-img--card {
  height: 220px;
}

.shp-sample-img--portrait {
  height: 280px;
  object-position: top center;
}

.shp-sample-img--zone {
  height: 300px;
}

.shp-photo-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: var(--shp-navy);
  color: #e4f1fb;
  font-size: 12px;
  line-height: 1.5;
}

.shp-photo-note__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 2px 8px;
  border-radius: var(--shp-radius-pill);
  background: var(--shp-accent);
  color: #ffffff;
}

/* ---------- Stats Bar ---------- */
.shp-stats-bar {
  background: var(--shp-navy);
  color: #ffffff;
  padding: 36px 0;
}

.shp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.shp-stat-card {
  padding: 18px 20px;
  border-left: 3px solid var(--shp-accent);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 var(--shp-radius-sm) var(--shp-radius-sm) 0;
}

.shp-stat-card strong {
  display: block;
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 4px;
}

.shp-stat-card span {
  display: block;
  font-size: 13.5px;
  color: #dceeff;
  line-height: 1.6;
}

/* ---------- Sections ---------- */
.shp-section {
  padding: 84px 0;
}

.shp-section--white {
  background: #ffffff;
}

.shp-section--cream {
  background: var(--shp-cream);
}

.shp-section--ice {
  background: var(--shp-ice);
}

.shp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.shp-section-head h2 {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--shp-navy);
  margin: 0;
}

.shp-section-sub {
  margin: 0;
  font-size: 15px;
  color: var(--shp-muted);
  max-width: 480px;
}

.shp-subheading {
  font-size: 22px;
  font-weight: 500;
  color: var(--shp-navy);
  margin: 16px 0 20px;
}

.shp-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--shp-blue);
}

/* ---------- Grids & Cards ---------- */
.shp-grid {
  display: grid;
  gap: 24px;
}

.shp-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shp-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shp-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shp-mb-32 {
  margin-bottom: 32px;
}

.shp-card {
  background: #ffffff;
  border: 1px solid var(--shp-line);
  border-radius: var(--shp-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.shp-card--ice {
  background: var(--shp-ice);
}

.shp-card--leader,
.shp-card--gallery,
.shp-card--room {
  padding: 0;
  overflow: hidden;
}

.shp-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shp-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: var(--shp-radius-pill);
  background: var(--shp-soft);
  color: var(--shp-navy);
  margin-bottom: 12px;
}

.shp-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--shp-ice);
  color: var(--shp-blue);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.shp-card h3 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--shp-navy);
  margin: 0 0 12px;
}

.shp-card p {
  font-size: 15px;
  color: var(--shp-muted);
  margin: 0 0 16px;
}

.shp-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.shp-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--shp-ink);
}

.shp-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--shp-blue);
  font-weight: 700;
}

.shp-list--compact li {
  font-size: 14px;
}

/* Doctor Cards on About Page */
.shp-card--doctor {
  border-radius: var(--shp-radius-sm);
  padding: 20px;
  align-items: center;
  text-align: center;
}

.shp-doctor-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--shp-ice);
  margin-bottom: 12px;
}

.shp-doctor-avatar--placeholder {
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--shp-blue);
}

.shp-card--doctor h4 {
  font-size: 17px;
  font-weight: 500;
  color: var(--shp-navy);
  margin: 0 0 6px;
}

/* Filter Tabs (Atmosphere Page) */
.shp-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shp-filter-btn {
  min-height: 40px;
  padding: 8px 18px;
  border-radius: var(--shp-radius-pill);
  border: 1px solid var(--shp-line);
  background: #ffffff;
  color: var(--shp-navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.shp-filter-btn.is-active,
.shp-filter-btn:hover {
  background: var(--shp-blue);
  border-color: var(--shp-blue);
  color: #ffffff;
}

/* Room Meta */
.shp-room-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 16px;
  background: var(--shp-ice);
  border-radius: var(--shp-radius-sm);
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--shp-navy);
}

.shp-room-price {
  font-size: 20px;
  font-weight: 600;
  color: var(--shp-blue);
}

.shp-room-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 12px 12px;
  background: var(--shp-ice);
  border-bottom: 1px solid var(--shp-line);
}

.shp-room-thumb {
  width: 100%;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--shp-line);
  display: block;
}

.shp-zone-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.shp-zone-thumb {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: var(--shp-radius-sm);
  border: 1px solid var(--shp-line);
  display: block;
}

/* Interior Zones Stack */
.shp-zones-stack {
  display: grid;
  gap: 28px;
}

.shp-zone-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--shp-line);
  border-radius: var(--shp-radius);
  background: #ffffff;
}

.shp-zone-card:nth-child(even) {
  background: var(--shp-cream);
}

.shp-zone-card__body h3 {
  font-size: 24px;
  font-weight: 500;
  color: var(--shp-navy);
  margin: 0 0 12px;
}

.shp-zone-card__body p {
  font-size: 15.5px;
  color: var(--shp-muted);
  margin: 0 0 18px;
}

/* Contact Banner */
.shp-contact-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.shp-contact-banner h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  color: var(--shp-navy);
  margin: 0 0 8px;
}

.shp-contact-banner p {
  margin: 0 0 6px;
  color: var(--shp-ink);
}

/* Responsive */
@media (max-width: 1024px) {
  .shp-hero__grid,
  .shp-zone-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .shp-stats-grid,
  .shp-grid--3,
  .shp-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .shp-container {
    width: calc(100% - 36px);
  }
  .shp-section {
    padding: 56px 0;
  }
  .shp-stats-grid,
  .shp-grid--2,
  .shp-grid--3,
  .shp-grid--4 {
    grid-template-columns: 1fr;
  }
  .shp-zone-card {
    padding: 20px;
  }
}
