/* ============================================================
   Fodindin Premium Theming v2
   Layered animations, glass effects, sticky CTAs, scroll polish
   ============================================================ */

/* Smoother scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ff8d2d, #00a86b); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ff6b00, #007e50); }

/* Selection */
::selection { background: rgba(255, 107, 0, 0.22); color: #0f172a; }

/* Animated gradient utility */
@keyframes premium-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.text-gradient {
  background-size: 220% 220%;
  animation: premium-shimmer 8s ease-in-out infinite;
}

/* Card hover lift + sheen */
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12); }

.listing-card { isolation: isolate; }
.listing-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  transform: translateX(-110%); transition: transform .7s ease;
  pointer-events: none; z-index: 1;
}
.listing-card:hover::after { transform: translateX(110%); }

/* Floating CTA on mobile */
.sticky-cta {
  position: fixed; right: 18px; bottom: 18px;
  z-index: 900; display: none;
  background: linear-gradient(135deg, #ff6b00, #ff8d2d);
  color: #fff; border: none; border-radius: 999px;
  padding: 14px 22px; font-weight: 800;
  box-shadow: 0 22px 48px rgba(255, 107, 0, 0.35);
  text-decoration: none;
}
@media (max-width: 760px) {
  .sticky-cta { display: inline-flex; align-items: center; gap: 8px; }
}

/* Section reveal */
@keyframes section-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.section { animation: section-rise .6s ease both; }

/* Premium chips */
.chip-list span,
.hero-tags span,
.detail-features span {
  transition: transform .2s ease, background .2s ease;
}
.chip-list span:hover,
.hero-tags span:hover,
.detail-features span:hover {
  background: #fff1df;
  transform: translateY(-1px);
}

/* Stepper */
.stepper {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap;
}
.stepper-step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(15, 23, 42, 0.08);
  color: #64748b; font-weight: 700;
}
.stepper-step.active {
  background: linear-gradient(135deg, #ff6b00, #ff8d2d);
  color: #fff; border-color: transparent;
  box-shadow: 0 12px 26px rgba(255, 107, 0, 0.25);
}
.stepper-step.done {
  background: #ecfdf5; color: #0f9d58; border-color: #bbf7d0;
}
.stepper-step .num {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.08); font-weight: 900; font-size: .9rem;
}
.stepper-step.active .num { background: rgba(255, 255, 255, 0.2); }
.stepper-divider { flex: 1; height: 2px; background: rgba(15, 23, 42, 0.06); border-radius: 2px; }

.step-panel { display: none; }
.step-panel.active { display: block; animation: section-rise .4s ease both; }

.stepper-actions {
  display: flex; justify-content: space-between;
  gap: 12px; margin-top: 22px; flex-wrap: wrap;
}

/* Draft saved indicator */
.draft-indicator {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; color: #0f9d58; font-weight: 700;
  background: #ecfdf5; padding: 6px 12px; border-radius: 999px;
  margin-left: 10px; opacity: 0; transition: opacity .3s ease;
}
.draft-indicator.visible { opacity: 1; }
.draft-indicator::before {
  content: ""; width: 8px; height: 8px;
  border-radius: 50%; background: #0f9d58;
  animation: draft-pulse 1.4s ease-in-out infinite;
}
@keyframes draft-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* KPI mini-charts (admin) */
.mini-chart {
  display: flex; align-items: end; gap: 4px;
  height: 48px; margin-top: 10px;
}
.mini-chart span {
  flex: 1; background: linear-gradient(180deg, #ff8d2d, #ff6b00);
  border-radius: 4px 4px 0 0; min-height: 6px;
  transition: transform .2s ease;
}
.mini-chart span:hover { transform: scaleY(1.05); }

/* Range slider styling */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, #ff6b00 var(--range-pct, 50%), #e5e7eb var(--range-pct, 50%));
  outline: none; padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid #ff6b00;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.30);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid #ff6b00;
  cursor: pointer;
}

/* Filter group */
.filter-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.filter-group strong { font-size: .82rem; color: #64748b; text-transform: uppercase; letter-spacing: .5px; font-weight: 800; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-pill {
  padding: 8px 12px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: .85rem; font-weight: 700; color: #334155;
  cursor: pointer; transition: all .2s ease;
}
.filter-pill:hover { border-color: rgba(255, 107, 0, 0.45); color: #ff6b00; }
.filter-pill.active {
  background: #ff6b00; color: #fff; border-color: #ff6b00;
}

/* Empty state */
.empty-state-card {
  padding: 60px 24px; text-align: center;
  background: #fff; border-radius: 24px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  color: #64748b;
}
.empty-state-card h3 { color: #0f172a; margin-bottom: 8px; }

/* Hotelier dashboard rooms */
.rooms-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 14px;
}
.room-card {
  padding: 16px; border-radius: 18px;
  background: #fff; border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  display: flex; flex-direction: column; gap: 8px;
}
.room-card .room-status {
  align-self: flex-start;
  padding: 4px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 800;
}
.room-status.free { background: #dcfce7; color: #166534; }
.room-status.booked { background: #fee2e2; color: #991b1b; }
.room-status.maintenance { background: #fef3c7; color: #92400e; }

/* Share card */
.share-card .share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.share-btn {
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.share-btn span {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid; place-items: center;
  font-weight: 900; font-size: .9rem;
}
.share-whatsapp { background: #25D366; box-shadow: 0 10px 22px rgba(37, 211, 102, 0.30); }
.share-facebook { background: #1877F2; box-shadow: 0 10px 22px rgba(24, 119, 242, 0.30); }
.share-native   { background: #0f172a; box-shadow: 0 10px 22px rgba(15, 23, 42, 0.30); }
.share-copy     { background: #ff6b00; box-shadow: 0 10px 22px rgba(255, 107, 0, 0.30); }
@media (max-width: 400px) {
  .share-card .share-grid { grid-template-columns: 1fr; }
}
