/* ============================================================
   Components CSS - Additional UI Elements
   ============================================================ */

/* ---- Offline Page ---- */
.offline-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy-dark); color: white; text-align: center; padding: 40px 20px; }

/* ---- Range Slider ---- */
input[type="range"] { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--mid-gray); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); cursor: pointer; box-shadow: 0 2px 6px rgba(15,52,96,0.3); }

/* ---- Rating Stars Input ---- */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-rating input { display: none; }
.star-rating label { font-size: 28px; color: var(--mid-gray); cursor: pointer; transition: color 0.15s; }
.star-rating label:hover, .star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: var(--gold); }

/* ---- Progress Steps ---- */
.steps-progress { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 40px; }
.step-item { display: flex; align-items: center; }
.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--mid-gray);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  position: relative; z-index: 1;
  transition: var(--transition);
}
.step-circle.active   { background: var(--navy); }
.step-circle.done     { background: var(--gold); color: var(--navy-dark); }
.step-label { font-size: 12px; font-weight: 600; text-align: center; margin-top: 6px; color: var(--text-light); }
.step-line { flex: 1; height: 2px; background: var(--mid-gray); min-width: 40px; }
.step-line.done { background: var(--gold); }

/* ---- Sticky Booking Bar (Mobile) ---- */
.sticky-book-bar {
  display: none;
  position: fixed;
  bottom: 64px; left: 0; right: 0;
  z-index: 900;
  background: white;
  border-top: 1px solid var(--mid-gray);
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(15,52,96,0.12);
}
@media (max-width: 991px) {
  .sticky-book-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
}
.sticky-book-price { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--navy); }

/* ---- Loading Skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.sk-line { height: 14px; margin-bottom: 10px; }
.sk-card { height: 280px; border-radius: var(--border-radius-lg); }
.sk-title { height: 20px; width: 70%; }
.sk-text  { height: 12px; }

/* ---- Tooltip ---- */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26,26,46,0.9);
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ---- Back to Top Button ---- */
#scrollTop { display: none; }
#scrollTop.show { display: flex !important; }

/* ---- PWA Install Banner ---- */
.pwa-banner {
  position: fixed;
  bottom: 80px; left: 16px; right: 16px;
  z-index: 1000;
  background: white;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--mid-gray);
}
.pwa-banner-icon { font-size: 32px; flex-shrink: 0; }
.pwa-banner-text .title { font-weight: 700; font-size: 14px; color: var(--text-dark); }
.pwa-banner-text .desc { font-size: 12px; color: var(--text-light); }
.pwa-banner-actions { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }
@media (min-width: 992px) { .pwa-banner { max-width: 380px; left: auto; right: 30px; bottom: 90px; } }

/* ---- Invoice Styles ---- */
.invoice-wrap { max-width: 820px; margin: 0 auto; background: white; }
.invoice-header { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); padding: 36px 40px; color: white; display: flex; justify-content: space-between; align-items: flex-start; }
.invoice-logo { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.invoice-logo span { color: var(--gold); }
.invoice-number { text-align: right; }
.invoice-number h3 { font-size: 24px; color: var(--gold); margin: 0; }
.invoice-body { padding: 36px 40px; }
.invoice-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.invoice-table th { background: var(--off-white); padding: 10px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.invoice-table td { padding: 12px 14px; border-bottom: 1px solid var(--mid-gray); font-size: 14px; }
.invoice-total { text-align: right; margin-top: 16px; }
.invoice-total table { display: inline-table; min-width: 260px; }
.invoice-total td { padding: 6px 0; font-size: 14px; }
.invoice-total .total-row td { font-size: 18px; font-weight: 700; color: var(--navy); border-top: 2px solid var(--navy); padding-top: 10px; }

/* ---- Social Proof Ribbon ---- */
.social-proof {
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  color: var(--navy-dark);
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 16px 24px;
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  border-top: 2px solid rgba(232,184,109,0.3);
}
@media (min-width: 992px) { .cookie-banner { padding-bottom: 16px; } }

/* ---- Print Styles ---- */
@media print {
  .main-navbar, .mobile-bottom-nav, .whatsapp-float, footer, .btn, .detail-card:not(.invoice-wrap) { display: none !important; }
  body { padding: 0; font-size: 12px; }
  .invoice-wrap { box-shadow: none; }
}
