/* ===================================================
   Rahhal (رحّال) - Global Styles & Micro-Interactions
   =================================================== */

:root {
  --brand-navy: #0B1E36;
  --brand-deep: #071322;
  --brand-card: #122640;
  --brand-accent: #E5A93C;
  --brand-terracotta: #D9534F;
  --brand-sand: #F8F0E5;
}

/* Smooth Scrolling & Font Anti-Aliasing */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--brand-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(229, 169, 60, 0.3);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(229, 169, 60, 0.6);
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Navigation Tabs */
.nav-tab.active {
  background-color: var(--brand-accent);
  color: var(--brand-deep);
  box-shadow: 0 4px 12px rgba(229, 169, 60, 0.3);
}

/* Filter Chips */
.chip-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  background-color: rgba(18, 38, 64, 0.8);
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.chip-btn:hover {
  border-color: rgba(229, 169, 60, 0.4);
  color: #ffffff;
}
.chip-btn.active {
  background-color: var(--brand-accent);
  color: var(--brand-deep);
  border-color: var(--brand-accent);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(229, 169, 60, 0.25);
}

.sub-chip-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
  background-color: rgba(7, 19, 34, 0.7);
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.sub-chip-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}
.sub-chip-btn.active {
  background-color: rgba(229, 169, 60, 0.15);
  color: var(--brand-accent);
  border-color: rgba(229, 169, 60, 0.4);
  font-weight: 600;
}

/* Destination Card Glass & Lift */
.destination-card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(8px);
}
.destination-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 169, 60, 0.5);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

/* Lightbox Animation */
#photo-lightbox {
  animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Calculator Style Selector Active */
.calc-style-btn.active {
  border-color: var(--brand-accent);
  background-color: rgba(229, 169, 60, 0.12);
}

/* Pulse Glow & Keyframes */
@keyframes subtlePulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
.pulse-slow {
  animation: subtlePulse 4s infinite ease-in-out;
}

/* Modal Entrance */
#dest-modal:not(.hidden) #dest-modal-card {
  animation: modalEnter 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}