/* =========================================================
   RELIEVE — MEDICAL TEAM & FACILITIES GOLD INTERACTION
   Letakkan setelah style.css dan stylesheet tema silver.
   ========================================================= */

:root {
  --luxury-gold: #c9a227;
  --luxury-gold-light: #e5c76b;
  --luxury-gold-soft: rgba(201, 162, 39, .16);
  --luxury-ink: #1a1c1f;
}

/* Kartu Tim Medis dan Fasilitas */
.doctor,
.facility-card {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 22px !important;
  overflow: hidden;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: 0 12px 30px rgba(28, 32, 36, .12) !important;
  transition:
    transform .35s cubic-bezier(.22, 1, .36, 1),
    box-shadow .35s ease,
    border-color .35s ease;
}

/* Garis emas elegan di sisi kiri */
.doctor::before,
.facility-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  z-index: 5;
  background: linear-gradient(
    180deg,
    var(--luxury-gold-light),
    var(--luxury-gold),
    var(--luxury-gold-light)
  );
  box-shadow: 0 0 16px rgba(201, 162, 39, .7);
  transition: height .4s cubic-bezier(.22, 1, .36, 1);
}

/* Garis emas tipis di bagian atas */
.doctor::after,
.facility-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 5;
  background: linear-gradient(
    90deg,
    transparent,
    var(--luxury-gold-light),
    var(--luxury-gold),
    transparent
  );
  opacity: 0;
  transition: opacity .35s ease;
}

/* Efek saat diarahkan kursor */
.doctor:hover,
.facility-card:hover,
.doctor:focus-within,
.facility-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(201, 162, 39, .72) !important;
  box-shadow:
    0 22px 42px rgba(28, 32, 36, .2),
    0 0 0 1px rgba(201, 162, 39, .16),
    0 0 24px rgba(201, 162, 39, .14) !important;
}

.doctor:hover::before,
.facility-card:hover::before,
.doctor:focus-within::before,
.facility-card:focus-within::before {
  height: 100%;
}

.doctor:hover::after,
.facility-card:hover::after,
.doctor:focus-within::after,
.facility-card:focus-within::after {
  opacity: 1;
}

/* Foto lebih hidup saat hover */
.doctor__img,
.facility-card__img {
  position: relative;
  overflow: hidden;
}

.doctor__img img,
.facility-card__img img {
  transition:
    transform .7s cubic-bezier(.22, 1, .36, 1),
    filter .4s ease;
}

.doctor:hover .doctor__img img,
.facility-card:hover .facility-card__img img,
.doctor:focus-within .doctor__img img,
.facility-card:focus-within .facility-card__img img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

/* Badge emas lebih profesional */
.doctor__badge,
.facility-card__floor {
  background: linear-gradient(
    135deg,
    var(--luxury-gold-light),
    var(--luxury-gold)
  ) !important;
  color: var(--luxury-ink) !important;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 5px 14px rgba(25, 28, 32, .25);
  transition: transform .3s ease, box-shadow .3s ease;
}

.doctor:hover .doctor__badge,
.facility-card:hover .facility-card__floor {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(201, 162, 39, .34);
}

/* Detail teks kartu */
.doctor__body {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, .86),
    rgba(238, 240, 242, .7)
  );
}

.doctor__cred {
  background: var(--luxury-gold-soft) !important;
  color: #80651d !important;
  border: 1px solid rgba(201, 162, 39, .25);
}

.facility-card__content {
  padding-bottom: 1rem;
}

.facility-card__title {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}

/* Sentuhan pada perangkat mobile */
@media (hover: none) and (pointer: coarse) {
  .doctor:active,
  .facility-card:active {
    transform: scale(.985);
    border-color: rgba(201, 162, 39, .78) !important;
    box-shadow:
      0 14px 28px rgba(28, 32, 36, .18),
      0 0 0 1px rgba(201, 162, 39, .18) !important;
  }

  .doctor:active::before,
  .facility-card:active::before {
    height: 100%;
  }

  .doctor:active::after,
  .facility-card:active::after {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .doctor,
  .facility-card,
  .doctor::before,
  .facility-card::before,
  .doctor::after,
  .facility-card::after,
  .doctor__img img,
  .facility-card__img img {
    transition: none !important;
  }
}