/* ==========================================================================
   offline.css - halaman Rental Offline (rental-offline.php)

   Dimuat lewat $page_css hanya di halaman ini, sesudah style.css dan
   tajam.css, jadi aturan di sini menang tanpa !important.

   Kartu talent di halaman ini sengaja berbeda dari beranda. Di beranda ada
   170-an talent dan orang memindai cepat, jadi kartunya kecil. Di sini
   talentnya sedikit dan keputusannya lebih berat: customer akan bertemu
   orangnya langsung. Wajahnya harus kelihatan jelas, jadi fotonya dibuat
   besar (4:5, selebar kartu) dan diambil dari salinan 900 sampai 1200
   piksel, bukan salinan 560 piksel milik beranda.
   ========================================================================== */

/* ── Kepala halaman dan aturan ─────────────────────────────────────────── */
.ro-hero { padding: 72px 0 40px; }
.ro-hero h1 { font-size: clamp(32px, 5.4vw, 50px); margin: 8px 0 14px; }
.ro-hero p { max-width: 640px; color: #C7D7F5; line-height: 1.7; }
.ro-note { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ro-note span {
  background: #16357A;
  border: 1px solid #2A4FA8;
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 13px;
  color: #C7D7F5;
}
.ro-rules {
  background: #16357A;
  border: 1px solid #2A4FA8;
  border-radius: 14px;
  padding: 20px 22px;
  margin: 28px 0 8px;
}
.ro-rules h3 { margin: 0 0 10px; font-size: 18px; }
.ro-rules ul { margin: 0; padding-left: 20px; color: #C7D7F5; line-height: 1.8; font-size: 15px; }
.ro-empty {
  grid-column: 1 / -1;
  background: #16357A;
  border: 1px solid #2A4FA8;
  border-radius: 14px;
  padding: 36px;
  text-align: center;
  color: #C7D7F5;
}
.ro-kota-judul { margin: 26px 0 10px; color: #93AEE0; font-size: 14px; }
.ro-city { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.ro-city span {
  background: #16357A;
  border: 1px solid #2A4FA8;
  color: #C7D7F5;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
}

/* ── Daftar kartu ──────────────────────────────────────────────────────── */
.of-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 10px;
}

.talent-card.of-kartu {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #16357A;
  border: 1px solid rgba(255, 255, 255, .14);
}
.talent-card.of-kartu:hover { border-color: rgba(143, 182, 255, .55); }
/* Kartu yang dituju dari profil talent (rental-offline.php#offline-12). */
.talent-card.of-kartu.of-sorot {
  border-color: #8FB6FF;
  box-shadow: 0 0 0 3px rgba(143, 182, 255, .55), 0 24px 60px -24px rgba(3, 12, 42, .9);
  transition: box-shadow .6s, border-color .6s;
}

/* Bingkai 4:5 menahan tempat sebelum fotonya selesai dimuat, jadi halaman
   tidak melompat waktu foto-foto muncul satu per satu. */
.of-bingkai {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #12306F;
}

.of-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: block;
  overflow: hidden;
  background: #12306F;
  cursor: zoom-in;
  appearance: none;
  -webkit-appearance: none;
}
/* Foto potret hampir selalu menaruh wajah di sepertiga atas. Titik
   potongnya digeser ke atas supaya yang terpotong bagian kaki, bukan
   kepala. */
.of-foto img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 28%;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
.of-kartu:hover .of-foto img { transform: scale(1.03); }
.of-foto:focus-visible { outline: 3px solid #9EC1FF; outline-offset: -3px; border-radius: 0; }

.of-perbesar {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: rgba(6, 20, 64, .58);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: transform .2s;
  pointer-events: none;
}
.of-perbesar svg { width: 18px; height: 18px; }
.of-foto:hover .of-perbesar, .of-foto:focus-visible .of-perbesar { transform: scale(1.1); }

.of-inisial {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: 'DM Serif Display', serif;
  font-size: 72px;
  cursor: default;
}

.of-bintang {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 20, 64, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 12px;
  font-weight: 700;
  color: #FFD990;
  pointer-events: none;
}

/* ── Isi kartu ─────────────────────────────────────────────────────────── */
.of-isi {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 18px 8px;
}
.of-nama {
  margin: 0;
  display: flex;
  min-width: 0;
  font-size: 20px;
  line-height: 1.25;
  color: #FFFFFF;
}
.of-nama .talent-nama { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-umur { flex: none; font-weight: 400; color: #DCE7FA; }
.of-baris { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.of-baris .lencana-verif { margin-left: 0; }
.of-kota { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #C7D7F5; min-width: 0; }
.of-kota .tc-ikon { width: 14px; height: 14px; opacity: .8; }
.of-isi .talent-rating { margin-top: 0; }
.of-hobi {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #C7D7F5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.of-hobi strong { color: #FFFFFF; font-weight: 600; }
.of-bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #DCE7FA;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.of-bio.terbuka { display: block; -webkit-line-clamp: unset; overflow: visible; }
.of-bio-lagi {
  align-self: flex-start;
  margin: -2px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #9DB8FF;
  cursor: pointer;
}
.of-bio-lagi[hidden] { display: none; }

.talent-card.of-kartu .talent-bottom {
  margin-top: auto;
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  flex-wrap: nowrap;
  gap: 10px;
}
.of-kartu .talent-rate strong { font-size: 18px; color: #FFFFFF; }
.of-per { font-size: 13px; color: #93AEE0; }
.of-kartu .btn-chat { flex: 0 0 auto; font-size: 13.5px; padding: 10px 18px; }

/* ── Penampil foto ─────────────────────────────────────────────────────────
   Foto di kartu dipotong 4:5. Penampil ini menunjukkan foto utuh, sebesar
   layar, supaya customer bisa melihat dengan jelas siapa yang akan ditemui. */
.modal-overlay.of-lihat { padding: 0; background: rgba(4, 10, 30, .94); z-index: 1000; }
.of-lihat-isi {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 72px 18px;
}
@supports (height: 100dvh) { .of-lihat-isi { height: 100dvh; } }
.of-lihat-bingkai {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.of-lihat-bingkai img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.of-lihat-ket {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding-top: 16px;
  text-align: center;
  color: #FFFFFF;
}
.of-lihat-ket b { display: block; font-size: 18px; }
.of-lihat-ket span { display: block; font-size: 13px; color: #C7D7F5; }
.of-lihat-ket .btn-chat { font-size: 14px; padding: 11px 22px; flex: none; }
.of-lihat-tutup, .of-lihat-geser {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .2s;
}
.of-lihat-tutup:hover, .of-lihat-geser:hover { background: rgba(255, 255, 255, .22); }
.of-lihat-tutup { top: 12px; right: 14px; width: 44px; height: 44px; font-size: 28px; }
.of-lihat-geser { top: 50%; width: 48px; height: 48px; font-size: 32px; transform: translateY(-50%); }
.of-lihat-geser.kiri { left: 12px; }
.of-lihat-geser.kanan { right: 12px; }
.of-lihat-geser[hidden] { display: none; }
.of-lihat-urut { position: absolute; top: 22px; left: 0; right: 0; text-align: center; font-size: 13px; color: #93AEE0; pointer-events: none; }

/* ── Ukuran layar ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .of-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* Di HP satu kolom: fotonya jadi selebar layar, wajah terlihat jelas tanpa
   perlu dibuka. */
@media (max-width: 560px) {
  .ro-hero { padding: 48px 0 28px; }
  .of-grid { grid-template-columns: 1fr; gap: 18px; }
  .of-nama { font-size: 21px; }
  .of-lihat-isi { padding: 60px 8px 14px; }
  .of-lihat-geser { width: 40px; height: 40px; font-size: 26px; background: rgba(6, 20, 64, .55); }
  .of-lihat-geser.kiri { left: 4px; }
  .of-lihat-geser.kanan { right: 4px; }
}

@media (max-width: 360px) {
  .talent-card.of-kartu .talent-bottom { flex-wrap: wrap; }
  .of-kartu .btn-chat { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .of-foto img, .of-perbesar { transition: none; }
  .of-kartu:hover .of-foto img { transform: none; }
}
