/* travel_booking/public/css/trip_detail.css
   Page detail trip /trip/<slug>. Layout 2-kolum (content + sidebar booking)
   berpandukan cruise.rarecation.com tour detail. */

/* ── Font variables (ikut reference: Rubik=heading, Jost=body, Satisfy=tag, Sansita) ── */
:root {
  --font-rubik: "Rubik", sans-serif;
  --font-jost: "Jost", sans-serif;
  --font-satisfy: "Satisfy", cursive;
  --font-sansita: "Sansita", serif;
}
/* Default body font — reference guna Jost untuk teks biasa */
.rc-trip-detail { font-family: var(--font-jost); }

/* ── Page banner (trip_image sebagai bg photo + breadcrumb overlay) ── */
.rc-page-banner {
  position: relative; background-color: #1E1C18;
  background-size: cover; background-position: center;
  padding: 100px 22px 70px; text-align: center;
  overflow: hidden; min-height: 280px;
}
.rc-page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,12,8,.5) 0%, rgba(16,12,8,.75) 100%);
}
.rc-page-banner > * { position: relative; z-index: 1; }
.rc-banner-content { max-width: 700px; margin: 0 auto; }
.rc-page-banner .rc-crumb {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.7); margin: 0;
}
.rc-page-banner .rc-crumb a { color: #C9A84C; text-decoration: none; }
.rc-page-banner .rc-crumb a:hover { text-decoration: underline; }
.rc-page-banner .rc-crumb .ti { font-size: 13px; opacity: .6; }
.rc-page-banner .rc-crumb span { color: #fff; }

/* ── Gallery area (white card container, SQUARE grid) ── */
.rc-gallery-area {
  max-width: 1180px; margin: 50px auto 0; padding: 0 22px;
  position: relative; z-index: 2;
}
.rc-gallery-grid {
  display: flex; gap: 10px; align-items: stretch;
  border-radius: 10px; background: #fff; padding: 10px;
  box-shadow: 0 4px 25px rgba(0,0,0,.08);
}
/* Single image → full width */
.rc-gallery-grid > .rc-gal-full { width: 100%; }

/* Left column (big image — square) */
.rc-gal-left { flex: 0 0 50%; max-width: 50%; }
/* Right column (2×2 small images — all square) */
.rc-gal-right { flex: 0 0 50%; max-width: calc(50% - 10px);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}

.rc-gal-wrap {
  position: relative; overflow: hidden; border-radius: 8px;
  transition: transform .35s ease, box-shadow .35s ease;
  aspect-ratio: 1 / 1; /* SQUARE */
  user-select: none; -webkit-user-select: none;
  max-height:550px;
  min-width:100%;
}
.rc-gal-wrap:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.rc-gal-wrap img {
  display: block; width: 100%; height: 100%; 
  object-fit: cover; object-position: center;
  -webkit-touch-callout: none;
}
/* ── Hover overlay (tiada direct link — slideshow via JS click handler) ── */
.rc-gal-overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background-color: rgba(16,12,8,.6);
  color: #fff; font-size: 14px; letter-spacing: .6px;
  opacity: 0; transform: scale(.4);
  transition: all .45s ease;
  cursor: pointer; pointer-events: none;
}
.rc-gal-overlay i { font-size: 34px; color: #C9A84C; }
.rc-gal-wrap:hover .rc-gal-overlay { opacity: 1; transform: scale(1); }

@media (max-width: 767px) {
  .rc-page-banner { padding: 60px 16px 44px; min-height: 200px; }
  .rc-gallery-area { margin-top: -24px; padding: 0 16px; }
  .rc-gallery-grid { flex-direction: column; gap: 8px; padding: 8px; }
  .rc-gal-left, .rc-gal-right { flex: 1 1 100%; max-width: 100%; }
  .rc-gal-right { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ── "+N more photos" indicator ── */
.rc-gallery-more {
  text-align: center; margin-top: 10px;
  font-size: 13px; color: #888; font-family: var(--font-jost);
}

/* ── Video YouTube section (antara gallery + content) ── */
.rc-video-section {
  max-width: 1180px; margin: 28px auto 0; padding: 0 22px;
}
.rc-video-card {
  background: #fff; border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0,0,0,.08); overflow: hidden;
}
.rc-video-title {
  font-family: var(--font-rubik); font-size: 20px; font-weight: 500;
  letter-spacing: .5px; color: #1E1C18; margin: 0;
  padding: 16px 20px 0; display: flex; align-items: center; gap: 8px;
}
.rc-video-title i { color: #C9A84C; font-size: 22px; }
.rc-video-embed {
  position: relative; width: 100%; padding-top: 56.25%; /* 16:9 */
  background: #000; margin-top: 12px;
}
.rc-video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none;
}
.rc-video-external {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 20px; margin: 14px 20px 18px;
  font-family: var(--font-jost); font-size: 14px; color: #C9A84C;
  text-decoration: none; font-weight: 600; border-radius: 8px;
  background: #F7F5F0; transition: background .2s;
}
.rc-video-external:hover { background: #EDE9E0; }
.rc-video-external i { font-size: 16px; }

@media (max-width: 767px) {
  .rc-video-section { margin-top: 20px; padding: 0 16px; }
  .rc-video-title { font-size: 17px; padding: 12px 14px 0; }
}

/* ── Tag badge (eg-tag2 style, orange brush) ── */
.rc-eg-tag {
  display: inline-block; padding: 6px 22px;
  font-family: var(--font-satisfy); font-size: 18px; line-height: 1.3;
  color: #fff; background-color: #F59E0B;
  border-radius: 4px 20px 4px 20px;
  margin-bottom: 14px; letter-spacing: .72px;
}

/* ── Main title (repeated di content area, bukan banner) ── */
.rc-trip-title-main {
  font-family: var(--font-rubik); font-size: 32px; font-weight: 500;
  line-height: 1.25; letter-spacing: .75px;
  color: #1a1a2e; margin: 0 0 12px;
}

/* ── Tour Planning / Destination section ── */
.rc-tour-planning { margin-top: 32px; margin-bottom: 28px; }

/* ── Description only (tanpa "Overview" heading) ── */
.rc-description-only { margin-bottom: 30px; }
.rc-description-only .rc-trip-description {
  font-family: var(--font-jost); font-size: 15px; line-height: 1.85;
  color: #555; margin: 0;
}

/* ── Organizer info ── */
.rc-trip-organizer { margin: 12px 0 0; color: #777; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.rc-org-logo { width: 26px; height: 26px; object-fit: contain; border-radius: 5px; background: #fff; }

/* ── 2-column layout ── */
.rc-trip-layout {
  max-width: 1180px; margin: 0 auto; padding: 30px 22px 50px;
  display: grid; grid-template-columns: 1fr 340px; gap: 36px;
  align-items: start;
}
.rc-trip-main { min-width: 0; }

/* ── Sections (shared) ── */
.rc-trip-section { margin-bottom: 34px; }
.rc-section-h {
  font-family: var(--font-rubik); font-size: 26px; font-weight: 500; letter-spacing: .75px; color: #1E1C18;
  margin: 0 0 12px; display: flex; align-items: center; gap: 8px;
}
.rc-section-sub { margin: 0 0 18px; font-size: 14px; color: #7D7A70; }
.rc-trip-description { font-size: 15px; line-height: 1.7; color: #3A3730; }
.rc-trip-description :is(h1,h2,h3) { color: #1E1C18; }
.rc-trip-description img { max-width: 100%; height: auto; border-radius: 8px; }

/* ── Tour Planning route visual ── */
.rc-planning-route {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  background: #fff; border: 1px solid #E8E5DF; border-radius: 12px; padding: 16px 18px;
}
.rc-route-point { display: flex; align-items: center; gap: 10px; }
.rc-route-icon {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: #C9A84C; color: #1E1C18;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.rc-route-info { display: flex; flex-direction: column; line-height: 1.3; }
.rc-route-value { font-size: 15px; font-weight: 600; color: #1E1C18; }
.rc-route-country { font-size: 12px; color: #7D7A70; }
.rc-route-arrow { color: #7D7A70; font-size: 18px; }

/* ── 2-column block ── */
.rc-trip-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

/* ── Chips (facilities / travel styles) ── */
.rc-chips-block .rc-section-h { font-size: 22px; }
.rc-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rc-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #F7F5F0; border: 1px solid #E8E5DF; border-radius: 999px;
  padding: 7px 13px; font-size: 13px; color: #3A3730;
}
.rc-chip > i { font-size: 16px; color: #C9A84C; }
.rc-chip-style { background: #1E1C18; color: #F7F5F0; border-color: #1E1C18; }

/* ── Included / Excluded ── */
.rc-feat-block { background: #fff; border: 1px solid #E8E5DF; border-radius: 12px; padding: 18px 20px; }
.rc-feat-block .rc-section-h { font-size: 20px; }
.rc-feat-incl .rc-section-h i { color: #2E7D4F; }
.rc-feat-excl .rc-section-h i { color: #B45309; }
.rc-feat-list { list-style: none; margin: 10px 0 0; padding: 0; }
.rc-feat-list li {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 7px 0; font-size: 14px; line-height: 1.55; color: #3A3730;
  border-bottom: 1px solid #F0EEE9;
}
.rc-feat-list li:last-child { border-bottom: none; }
.rc-feat-list li i { font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.rc-feat-incl .rc-feat-list li i { color: #2E7D4F; }
.rc-feat-excl .rc-feat-list li i { color: #B45309; }

/* ── Highlights ── */
.rc-highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rc-highlights li {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff; border: 1px solid #E8E5DF; border-radius: 10px; padding: 12px 14px;
  font-size: 14px; line-height: 1.55; color: #3A3730;
}
.rc-highlights li i { color: #C9A84C; font-size: 16px; margin-top: 2px; }

/* ── Itinerary timeline ── */
.rc-itinerary { list-style: none; margin: 0; padding: 0; }
/* Segmented itinerary (cruise): header fasa Pre-Cruise / Cruise / Post-Cruise */
.rc-itin-segment { margin-top: 26px; }
.rc-itin-segment:first-of-type { margin-top: 0; }
.rc-itin-seg-head {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 14px; margin-bottom: 20px;
  border-bottom: 1px solid #E8E5DF;
}
.rc-itin-seg-head .ti { font-size: 16px; color: #C9A84C; align-self: center; }
.rc-itin-seg-label {
  margin: 0; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #1E1C18;
}
.rc-itin-seg-days {
  margin-left: auto; flex-shrink: 0;
  font-size: 11px; font-weight: 600; color: #C9A84C;
  padding: 4px 10px; border: 1px solid #C9A84C; border-radius: 999px;
}
.rc-itin-day {
  display: grid; grid-template-columns: 70px 1fr; gap: 18px;
  padding-bottom: 26px; position: relative;
}
.rc-itin-day::before {
  content: ""; position: absolute; left: 34px; top: 28px; bottom: -6px;
  width: 2px; background: #E8E5DF;
}
.rc-itin-day:last-child::before { display: none; }
.rc-itin-marker { position: relative; z-index: 1; text-align: center; }
.rc-itin-marker span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 70px; padding: 8px 6px; border-radius: 10px;
  background: #1E1C18; color: #ffffff; font-size: 11px; font-weight: 600; line-height: 1.3;
}
.rc-itin-card { background: #fff; border: 1px solid #E8E5DF; border-radius: 12px; padding: 15px; }
.rc-itin-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.rc-itin-title { font-size: 18px; font-weight: 600; color: #1E1C18; margin: 0; }
.rc-itin-dest { font-size: 13px; color: #7D7A70; }
.rc-itin-img { width: 100%; height:auto; object-fit: cover; border-radius: 8px; margin: 12px 0; }
.rc-itin-desc { font-size: 14px; line-height: 1.6; color: #3A3730; }
.rc-itin-meals { margin: 10px 0 0; font-size: 13px; color: #5C5850; display: flex; gap: 6px; align-items: center; }
/* Collapsible itinerary — teks more/hide kecil di bucu kanan bawah kad */
.rc-itin-head { cursor: pointer; user-select: none; line-height: 1.1; margin-bottom:10px; }
.rc-itin-head:hover .rc-itin-title { color: #C9A84C; }
.rc-itin-toggle {
  display: block;
  margin-left: auto; margin-top: 12px;
  background: none; border: 0; padding: 0;
  font-size: 11px; line-height: 1;
  color: #7D7A70; cursor: pointer;
}
.rc-itin-toggle:hover { color: #C9A84C; }
.rc-itin-day.rc-itin-collapsed .rc-itin-img,
.rc-itin-day.rc-itin-collapsed .rc-itin-desc,
.rc-itin-day.rc-itin-collapsed .rc-itin-meals { display: none; }
/* Butang global Collapse all / Expand all — sebaris dengan tajuk seksyen */
.rc-itin-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.rc-itin-top .rc-section-sub { margin-bottom: 0; }
.rc-itin-all {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  margin-bottom: 4px;
  background: none; border: 1px solid #E8E5DF; border-radius: 999px;
  padding: 7px 14px; font-size: 12px; font-weight: 600; line-height: 1;
  color: #1E1C18; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.rc-itin-all:hover { border-color: #C9A84C; color: #C9A84C; }
.rc-itin-all .ti { font-size: 14px; }

/* ── FAQ accordion ── */
.rc-faq { border-top: 1px solid #E8E5DF; }
.rc-faq-item { border-bottom: 1px solid #E8E5DF; }
.rc-faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 15px; font-weight: 600; color: #1E1C18;
}
.rc-faq-icon { transition: transform .25s; color: #7D7A70; font-size: 18px; flex-shrink: 0; }
.rc-faq-item.is-open .rc-faq-icon { transform: rotate(180deg); }
.rc-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.rc-faq-a-inner { padding: 0 0 16px; font-size: 14px; line-height: 1.65; color: #3A3730; }

/* ── Sidebar booking card — animated sticky panel di bawah viewport ──
   Sidebar direntang penuh (stretch) dan kandungan ditolak ke penghujung,
   jadi posisi asal card ialah HUJUNG sidebar. position:sticky bottom
   membuat card "menunggang" bawah viewport semasa scroll, kemudian labuh
   semula sejajar dengan hujung content bila user sampai ke bawah. */
.rc-trip-sidebar {
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.rc-booking-card {
  position: sticky; bottom: 24px; z-index: 5;
  background: #fff; border: 1px solid #E8E5DF; border-radius: 14px; padding: 22px;
  box-shadow: 0 4px 18px rgba(30,28,24,.06);
  transition: box-shadow .35s ease;
  /* Guard: card lebih tinggi dari ruang bawah nav → scroll dalaman, bukan
     luncur di bawah header sticky. --rc-nav-h diukur oleh trip_detail.js. */
  max-height: calc(100vh - 36px - var(--rc-nav-h, 76px));
  max-height: calc(100dvh - 36px - var(--rc-nav-h, 76px));
  overflow-y: auto;
}
/* Animasi kemasukan — card naik dari bawah + fade in pada kemunculan pertama
   (class .rc-entrance ditogol oleh trip_detail.js bila card mula terlihat) */
.rc-booking-card.rc-entrance { animation: rcBookingRise .6s cubic-bezier(.22,.9,.34,1) both; }
@keyframes rcBookingRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Keadaan terlekat (menunggang, belum labuh) — bayang lebih dalam. Class
   ditogol oleh trip_detail.js via sentinel di hujung sidebar. */
.rc-booking-card.rc-stuck { box-shadow: 0 20px 46px rgba(30,28,24,.16); }
.rc-sticky-sentinel { height: 1px; flex-shrink: 0; }
/* Mobile drawer (bar + backdrop + butang tutup) — disembunyi di desktop;
   diaktifkan dalam blok media ≤640px di bawah. */
.rc-booking-bar, .rc-drawer-backdrop, .rc-drawer-close { display: none; }
@media (prefers-reduced-motion: reduce) {
  .rc-booking-card, .rc-booking-card.rc-entrance { animation: none; transition: none; }
}
.rc-booking-title { font-family: var(--font-rubik); font-size: 22px; font-weight: 500; letter-spacing: .5px; color: #1E1C18; margin: 0; }
.rc-booking-sub { font-size: 13px; color: #7D7A70; margin: 4px 0 16px; }
.rc-trip-fromprice { font-size: 22px; color: #1E1C18; margin: 0 0 14px; font-weight: 700; }
.rc-trip-fromprice .rc-muted { font-size: 13px; font-weight: 400; color: #7D7A70; }
.rc-booking-meta {
  list-style: none; margin: 0 0 18px; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid #F0EEE9; border-bottom: 1px solid #F0EEE9;
}
.rc-booking-meta li { font-size: 13px; color: #3A3730; display: flex; align-items: center; gap: 6px; }
.rc-booking-meta li i { color: #C9A84C; font-size: 16px; }
.rc-booking-widget .rc-field { display: block; margin-bottom: 14px; }
.rc-field-label { display: block; font-size: 12px; color: #7D7A70; margin-bottom: 5px; font-weight: 600; }
.rc-field select {
  width: 100%; padding: 10px 12px; border: 1px solid #E8E5DF; border-radius: 8px;
  font-size: 14px; color: #1E1C18; background: #fff;
}
.rc-field select:focus { outline: none; border-color: #C9A84C; }

/* ── Group Date Radio Buttons (ganti select dropdown — lebih stabil!) ── */
.rc-date-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Hide actual radio, guna label sebagai card */
.rc-date-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Label sebagai clickable card (sibling of radio) */
.rc-date-radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid #E8E5DF;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rc-date-radio-label:hover {
  border-color: #C9A84C;
  background: #FBFAF7;
}

/* Custom indicator circle (pada label) */
.rc-date-radio-label::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #d4c5a9;
  border-radius: 50%;
  transition: all 0.2s ease;
  background: #fff;
  flex-shrink: 0;
}

/* Selected state (radio:checked + sibling label) */
.rc-date-radio:checked + .rc-date-radio-label {
  border-color: #C9A84C;
  background: #FBFAF7;
}

.rc-date-radio:checked + .rc-date-radio-label::before {
  border-color: #C9A84C;
  background: #C9A84C;
  box-shadow: inset 0 0 0 3px #fff;
}

/* Date text */
.rc-date-radio-text {
  font-size: 14px;
  color: #1E1C18;
  line-height: 1.4;
}

.rc-date-radio-text strong {
  color: #dc2626;
}

/* Focus state untuk accessibility (keyboard nav) */
.rc-date-radio:focus-visible + .rc-date-radio-label {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}

/* Scrollbar styling */
.rc-date-radios::-webkit-scrollbar {
  width: 6px;
}
.rc-date-radios::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}
.rc-date-radios::-webkit-scrollbar-thumb {
  background: #d4c5a9;
  border-radius: 3px;
}

@media (max-width: 480px) {
  .rc-date-radios { max-height: 150px; gap: 6px; }
  .rc-date-radio-label { padding: 10px 12px; }
  .rc-date-radio-text { font-size: 13px; }
}

/* ── Date trigger (>1 tarikh: buka popup date selector) ── */
.rc-date-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border: 2px solid #C9A84C; border-radius: 8px; background: #FEF7E6;
  font-family: var(--font-jost); font-size: 14px; color: #1E1C18; cursor: pointer;
  text-align: left; transition: border-color .2s ease, background .2s ease; box-sizing: border-box;
  font-weight:600;
}
.rc-date-trigger:hover { border-color: #C9A84C; background: #FBFAF7; }
.rc-date-trigger > i { color: #C9A84C; font-size: 16px; flex-shrink: 0; }
.rc-date-trigger-text { min-width: 0; line-height: 1.4; }
.rc-date-trigger-text strong { color: #dc2626; }

/* ── Date selector modal (popup pilihan sailing/departure date) ── */
.rc-datemodal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(30,28,24,.6); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.rc-datemodal-show { opacity: 1; visibility: visible; }
.rc-datemodal-card {
  position: relative; background: #fff; border-radius: 16px;
  width: 420px; max-width: 92vw; max-height: 80vh;
  display: flex; flex-direction: column;
  padding: 22px 20px 14px; box-shadow: 0 12px 48px rgba(0,0,0,.25);
  font-family: var(--font-jost); box-sizing: border-box;
  transform: translateY(14px) scale(.97); transition: transform .25s ease;
}
.rc-datemodal-show .rc-datemodal-card { transform: translateY(0) scale(1); }
.rc-datemodal-close {
  position: absolute; top: 10px; right: 12px; background: none; border: none;
  font-size: 24px; line-height: 1; color: #9C9789; cursor: pointer;
  padding: 4px 8px; border-radius: 6px;
}
.rc-datemodal-close:hover { background: rgba(0,0,0,.05); color: #1E1C18; }
.rc-datemodal-title { font-size: 17px; font-weight: 700; color: #1E1C18; margin: 0 0 14px; }
.rc-datemodal-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; flex-shrink: 0; }
.rc-datemodal-chip {
  padding: 6px 12px; border-radius: 999px; border: 1.5px solid #E8E5DF; background: #fff;
  font-family: var(--font-jost); font-size: 12.5px; font-weight: 600; color: #5C5850;
  cursor: pointer; transition: all .2s ease;
}
.rc-datemodal-chip:hover { border-color: #C9A84C; color: #1E1C18; }
.rc-datemodal-chip-active,
.rc-datemodal-chip-active:hover { background: #C9A84C; border-color: #C9A84C; color: #fff; }
.rc-datemodal-list {
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; min-height: 0; padding: 2px 4px 8px 2px;
}
.rc-datemodal-list::-webkit-scrollbar { width: 6px; }
.rc-datemodal-list::-webkit-scrollbar-track { background: #f5f5f5; border-radius: 3px; }
.rc-datemodal-list::-webkit-scrollbar-thumb { background: #d4c5a9; border-radius: 3px; }
.rc-datemodal-item {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  padding: 12px 14px; border: 2px solid #E8E5DF; border-radius: 10px; background: #fff;
  font-family: var(--font-jost); font-size: 14px; color: #1E1C18; cursor: pointer;
  text-align: left; transition: all .2s ease; box-sizing: border-box;
}
.rc-datemodal-item::before {
  content: ""; width: 18px; height: 18px; min-width: 18px;
  border: 2px solid #d4c5a9; border-radius: 50%; background: #fff; flex-shrink: 0;
  transition: all .2s ease;
}
.rc-datemodal-item:hover { border-color: #C9A84C; background: #FBFAF7; }
.rc-datemodal-item-active,
.rc-datemodal-item-active:hover { border-color: #C9A84C; background: #FBFAF7; }
.rc-datemodal-item-active::before {
  border-color: #C9A84C; background: #C9A84C; box-shadow: inset 0 0 0 3px #fff;
}
.rc-datemodal-item-text { flex: 1; min-width: 0; line-height: 1.4; }
.rc-datemodal-item-text strong { color: #dc2626; }
.rc-datemodal-flight { color: #2E7D32; font-size: 17px; flex-shrink: 0; }
.rc-datemodal-legend {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  margin: 8px 0 4px; font-size: 12px; color: #9C9789;
}
.rc-datemodal-legend i { color: #2E7D32; font-size: 14px; }

@media (max-width: 480px) {
  .rc-datemodal-card { width: 94vw; padding: 18px 14px 12px; }
  .rc-datemodal-item { padding: 10px 12px; }
  .rc-datemodal-item-text { font-size: 13px; }
}

#rcDetailCabins { margin-bottom: 16px; min-height: 40px; }
.rc-cabins-empty, .rc-cabins-loading, .rc-cabins-error { padding: 6px 0; }
.rc-cabin-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.rc-cabin-tbl th {
  text-align: left; padding: 8px 10px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; color: #7D7A70; border-bottom: 1px solid #E8E5DF;
}
.rc-cabin-tbl td { padding: 10px; border-bottom: 1px solid #F0EEE9; vertical-align: top; }
.rc-cabin-tbl tr:hover td { background: #FBFAF7; }
.rc-cabin-type { display: block; font-size: 12px; color: #9C9789; margin-top: 2px; }
.rc-btn-primary {
  display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
  background: #C9A84C; color: #1E1C18; font-weight: 700; font-size: 15px;
  padding: 14px 20px; border-radius: 10px; border: none;
  transition: all .2s ease;
}
.rc-btn-primary:hover { background: #B8983F; }
.rc-btn-share {
  display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
  background: transparent; color: #C9A84C; font-weight: 600; font-size: 13px;
  padding: 10px 20px; border-radius: 10px; border: 1.5px solid #C9A84C;
  margin-top: 8px; transition: all .2s ease;
}
.rc-btn-share:hover { background: rgba(201,168,76,.08); }
.rc-btn-disabled { opacity: .5; pointer-events: none; }

/* ── Share toast ── */
.rc-share-toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1E1C18; color: #fff; font-size: 14px; font-weight: 500;
  padding: 12px 24px; border-radius: 10px; z-index: 9999;
  opacity: 0; transition: all .3s ease; box-shadow: 0 4px 20px rgba(0,0,0,.3);
  max-width: 90vw; text-align: center;
}
.rc-share-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Share modal ── */
.rc-share-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(30,28,24,.6); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease;
}
.rc-share-modal-show { opacity: 1; }
.rc-share-card {
  position: relative; background: #fff; border-radius: 18px;
  padding: 32px 28px 28px; width: 320px; max-width: 90vw;
  text-align: center; box-shadow: 0 12px 48px rgba(0,0,0,.25);
  transform: translateY(16px) scale(.96); transition: transform .3s ease;
}
.rc-share-modal-show .rc-share-card { transform: translateY(0) scale(1); }
.rc-share-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 24px; line-height: 1;
  color: #9C9789; cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.rc-share-close:hover { background: rgba(0,0,0,.05); color: #1E1C18; }
.rc-share-title { font-size: 18px; font-weight: 700; color: #1E1C18; margin: 0 0 20px; }
.rc-share-qr-wrap {
  display: flex; justify-content: center; margin-bottom: 18px;
}
.rc-share-qr { width: 200px; height: 200px; border-radius: 12px; border: 1px solid #eee; }
.rc-share-url {
  font-size: 13px; color: #5C5850; word-break: break-all;
  background: #f5f3ef; padding: 10px 14px; border-radius: 8px;
  margin-bottom: 16px; cursor: text; user-select: all;
}
.rc-share-copy {
  width: 100%; padding: 12px; border-radius: 10px; border: none;
  background: #C9A84C; color: #1E1C18; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: background .2s ease;
}
.rc-share-copy:hover { background: #B8983F; }
.rc-booking-note { font-size: 11px; color: #9C9789; margin: 8px 0 0; text-align: center; }
.rc-empty-inline { padding: 10px 0; color: #5C5850; font-size: 14px; }
.rc-empty-inline a { color: #C9A84C; text-decoration: none; font-weight: 600; }

/* ── Related tours grid ── */
.rc-related { max-width: 1180px; margin: 0 auto; padding: 0 22px 50px; }
.rc-trip-grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

@media (max-width: 980px) {
  .rc-trip-layout { grid-template-columns: 1fr; gap: 28px; }
  .rc-trip-grid-cards { grid-template-columns: 1fr 1fr; }
  .rc-trip-title { font-size: 30px; }
  /* Tablet (641–980px) — card kekal dalam flow (hujung content), tak
     menunggang bawah viewport macam desktop. Telefon ≤640px pula jadi
     drawer (blok media ≤640px di bawah). Offset/max-height kecil tetap
     beri guard. */
  .rc-booking-card {
    bottom: 12px;
    max-height: calc(100vh - 24px - var(--rc-nav-h, 56px));
    max-height: calc(100dvh - 24px - var(--rc-nav-h, 56px));
  }
}
@media (max-width: 640px) {
  .rc-trip-title { font-size: 26px; }
  .rc-trip-grid-2 { grid-template-columns: 1fr; gap: 22px; }
  .rc-trip-grid-cards { grid-template-columns: 1fr; }
  .rc-itin-day { grid-template-columns: 56px 1fr; gap: 12px; }
  .rc-itin-day::before { left: 27px; }
  .rc-itin-marker span { min-width: 56px; font-size: 10px; }
  .rc-planning-route { flex-direction: column; align-items: flex-start; }
  .rc-route-arrow { transform: rotate(90deg); }

  /* ── Mobile booking drawer ──
     Card jadi bottom drawer (fixed, tersembunyi bawah skrin); bar sticky
     "harga + Book Now" di bawah membukanya. Tutup: backdrop, butang X,
     atau leret ke bawah (trip_detail.js). */
  body { padding-bottom: 68px; } /* ruang bar sticky supaya footer tak tertutup */
  /* Chat FAB naik di atas bar — specificity +1 element supaya menang atas
     <style> inline chat_widget.html yang datang lewat dalam document. */
  body #rcwRoot .rcw-fab { bottom: 80px; }
  .rc-booking-card {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9993;
    border-radius: 18px 18px 0 0;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    padding: 26px 16px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -14px 44px rgba(30,28,24,.22);
    transform: translateY(105%);
    transition: transform .38s cubic-bezier(.22,.9,.34,1), box-shadow .35s ease;
  }
  /* Entrance rise tak dipakai dalam mod drawer — conflict dgn transform drawer */
  .rc-booking-card.rc-entrance { animation: none; }
  .rc-booking-card.rc-drawer-open { transform: translateY(0); }
  .rc-booking-card.rc-dragging { transition: none; }
  .rc-booking-card::before { /* grabber */
    content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 4px; border-radius: 2px; background: #D6D2CA;
  }
  .rc-drawer-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 30px; height: 30px; border: none; border-radius: 50%;
    background: #F7F5F0; color: #5C5850; font-size: 15px; cursor: pointer;
  }
  .rc-drawer-backdrop {
    display: block; position: fixed; inset: 0; z-index: 9992;
    background: rgba(30,28,24,.45); opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
  }
  .rc-drawer-backdrop.rc-show { opacity: 1; pointer-events: auto; }
  .rc-booking-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9989;
    width: 100%; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border: none; border-top: 1px solid #E8E5DF;
    box-shadow: 0 -6px 20px rgba(30,28,24,.1);
    font-family: var(--font-jost); text-align: left; cursor: pointer;
    transition: transform .3s ease;
  }
  .rc-booking-bar.rc-hide { transform: translateY(110%); }
  .rc-bar-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
  .rc-bar-price { font-size: 17px; font-weight: 700; color: #1E1C18; }
  .rc-bar-label { font-size: 11px; color: #7D7A70; }
  .rc-bar-cta {
    display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
    background: #C9A84C; color: #fff; font-weight: 700; font-size: 14px;
    padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  }
  html.rc-drawer-lock, html.rc-drawer-lock body { overflow: hidden; }
}

/* ── Package buttons (Radio Card Style — ref design) ── */
.rc-pkg-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rc-pkg-btn {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E8E5DF;
  border-radius: 12px;
  background: #fff;
  color: #1E1C18;
  font-family: var(--font-jost);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  /* Isolate each button — hover/transition tak bocor ke saudara */
  isolation: isolate;
  contain: layout style;
  box-sizing: border-box;
}
/* Radio circle indicator — left of title */
.rc-pkg-btn::before {
  content: "";
  width: 17.9px; height: 17.9px; min-width: 17.9px;
  border: 2px solid #D6D2CA;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  margin-top: 2px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
/* Hover: guna box-shadow (tiada reflow) bukan border-color */
.rc-pkg-btn:hover {
  background: #FDF8EC;
  box-shadow: 0 0 0 2px #C9A84C;
}
.rc-pkg-btn:hover::before { border-color: #C9A84C; }
/* Selected/Active state — spesifik supaya hover saudara tak ganggu */
.rc-pkg-btn.rc-pkg-active {
  border-color: #C9A84C;
  background: #FEF7E6;
  box-shadow: none;
  color: #1E1C18;
}
.rc-pkg-btn.rc-pkg-active::before {
  border-color: #C9A84C;
  background: #C9A84C;
  box-shadow: inset 0 0 0 4px rgba(201,168,76,.18);
}
.rc-pkg-btn.rc-pkg-active b { color: #1E1C18; font-weight: 700; }
.rc-pkg-btn b { font-weight: 600; color: #5C5850; }

/* Content area: title + meta rows stacked */
.rc-pkg-btn > span {
  flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.rc-pkg-btn .rc-pkg-title { font-size: 15px; font-weight: 600; color: #1E1C18; line-height: 1.35; }

/* ── Meta rows INSIDE each button ── */
.rc-pkg-meta {
  display: flex; flex-direction: column; gap: 3px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #F0EEE9;
}
.rc-pkg-meta-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-size: 12.5px; line-height: 1.45;
}
.rc-pkg-meta-label { color: #8A857A; white-space: nowrap; }
.rc-pkg-meta-value { color: #1E1C18; text-align: right; min-width: 0; }
.rc-pkg-meta-value.rc-pkg-included   { color: #2E7D32; }
.rc-pkg-meta-value.rc-pkg-not-included { color: #B0603A; }

@media (max-width: 480px) {
  .rc-pkg-buttons { gap: 8px; }
  .rc-pkg-btn {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* ── Price summary (ganti table kabin) ── */
.rc-cabins-summary { margin-top: 0px;border-top:0.5px solid #dfdfdf; }
.rc-price-summary {
  padding:3px;
  /* background: #faf6ed; */
  /* border: 1px solid #e8dcc8; */
  /* border-radius: 10px; */
  /* padding: 18px 22px; */
}
.rc-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.rc-price-row + .rc-price-row {
  border-top: 1px solid #e8dcc8;
}
.rc-price-label {
  display:inline-block;
  width:fit-content;
  font-size: 14px;
  color: #c9a84c;
  font-weight: 600;
  margin-right:5px;
}
.rc-price-value {
    display: inline-block;
    width: auto;
    font-size: 14px;
    font-weight: 400;
    color: #1E1C18;
    text-transform: uppercase;
}

@media (max-width: 480px) {
  .rc-price-summary { padding: 14px 16px; }
  .rc-price-label { font-size: 14px; }
  .rc-price-value { font-size: 16px; }
}

/* ── Price label group (label + note) ── */
.rc-price-label-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rc-price-note {
    display: block;
    width: 100%;
    font-size: 14px;
    color: #4f4f4f;
    line-height: 1.1;
    margin-top: 3px;
    font-weight: 300;
}
.rc-price-row {
  display:block;
  align-items: flex-start;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height:1.1;
}
