/* ==========================================================================
   THE TRAVEL NORTHEAST — LUXURY BLAZE DESIGN SYSTEM
   Pixel-perfect implementation of Jiro Blaze Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..800;1,9..40,300..800&family=Instrument+Serif:ital@0;1&family=Sora:wght@300;400;500;600;700;800&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');

:root {
  /* Apple/Linear Fluid Spring Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: #111111;
  background-color: #ffffff;
  overflow-x: hidden;
  transition: opacity 0.35s var(--ease-smooth);
}

.font-sora {
  font-family: 'Sora', sans-serif;
}

.font-satoshi {
  font-family: 'Satoshi', sans-serif;
}

.font-serif-quote {
  font-family: 'Instrument Serif', Georgia, serif;
}

::selection {
  background: #111111;
  color: #ffffff;
}

/* ==========================================================================
   1. ANIMATIONS & EASING
   ========================================================================== */

@keyframes spinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spinClockwise 8s linear infinite;
}

/* Marquee Animations (identical to Blaze) */
@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-25%); }
  100% { transform: translateX(0); }
}

@keyframes marquee-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.marquee-left-track {
  display: flex;
  white-space: nowrap;
  min-width: 100%;
  animation: marquee-left 35s linear infinite;
}

.marquee-right-track {
  display: flex;
  white-space: nowrap;
  min-width: 100%;
  animation: marquee-right 30s linear infinite;
}

.marquee-up-track {
  display: flex;
  flex-direction: column;
  animation: marquee-up 30s linear infinite;
}

.marquee-container:hover .marquee-left-track,
.marquee-container:hover .marquee-right-track,
.marquee-container:hover .marquee-up-track {
  animation-play-state: paused;
}

/* ==========================================================================
   2. BUTTONS & MICRO-INTERACTIONS
   ========================================================================== */

.btn-arrow-slide {
  transition: transform 0.3s var(--ease-out-expo), background-color 0.3s var(--ease-out-expo);
}

.group:hover .btn-arrow-icon {
  transform: translateX(-4px);
}

.btn-arrow-icon {
  transition: transform 0.3s var(--ease-out-expo);
}

/* Fluid Hover & Micro-Animations */
.card-image-zoom img {
  transition: transform 0.8s var(--ease-out-expo);
}

.card-image-zoom:hover img {
  transform: scale(1.05);
}

.card-elevation {
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.card-elevation:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.09);
}

.btn-magnetic {
  transition: transform 0.25s var(--ease-spring), background-color 0.25s var(--ease-smooth), color 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
}

.btn-magnetic:hover {
  transform: translateY(-1.5px);
}

.btn-magnetic:active {
  transform: scale(0.97);
}

/* Kinetic Typography Highlighting */
.kinetic-word {
  display: inline-block;
  margin-right: 0.28em;
  color: #c7c7c7;
  transition: color 0.4s var(--ease-smooth);
}

.kinetic-word.active {
  color: #111111;
}

/* ==========================================================================
   3. STICKY STACKING TOUR CARDS
   ========================================================================== */

.sticky-stack-card {
  position: sticky;
  transition: transform 0.4s var(--ease-out-expo);
}

/* ==========================================================================
   4. MODAL & DRAWER SYSTEM
   ========================================================================== */

.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-smooth);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s var(--ease-smooth);
  opacity: 0;
}

.modal-backdrop.open .modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo);
}

.accordion-content.open {
  max-height: 600px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f4f4f4;
}

::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999999;
}

/* ==========================================================================
   5. MOBILE-FIRST RESPONSIVE ARCHITECTURE
   ========================================================================== */

/* Hide scrollbars for horizontal pill rows and carousels */
.no-scrollbar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

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

/* Smooth Touch Scroll Snapping on Mobile */
.scroll-snap-x {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 1.5rem;
}

.scroll-snap-item {
  scroll-snap-align: center;
  scroll-snap-stop: normal;
}

/* Mobile Sticky Card Offset Adaptation (clear sticky header) */
@media (max-width: 768px) {
  .sticky-stack-card {
    top: 72px !important;
    margin-bottom: 20px;
  }
}

/* Mobile Bottom-Sheet Modal Transformation (index.html & app.js) */
@media (max-width: 640px) {
  .modal-backdrop,
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  
  .modal-box,
  .modal-content-box {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 28px !important;
    border-top-right-radius: 28px !important;
    max-height: 90vh !important;
    width: 100% !important;
    transform: translateY(100%);
  }
  
  .modal-backdrop.open .modal-box,
  .modal-overlay.open .modal-content-box {
    transform: translateY(0);
  }
}

/* Touch targets and safe area insets */
@media (max-width: 640px) {
  .btn-touch-target {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Prevent iOS Safari 16px auto-zoom on input focus */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Form Controls Polish */
select.bg-slate-50\/80,
select.bg-slate-50 {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.75rem;
  appearance: none;
  -webkit-appearance: none;
}

.pb-safe {
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

/* ==========================================================================
   Editorial Luxury Navigation Links (No Clunky AI Pills)
   ========================================================================== */
.nav-link {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: #4b5563;
  padding: 6px 0;
  transition: color 0.2s var(--ease-smooth);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.nav-link:hover {
  color: #111111;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #111111;
  transition: width 0.25s var(--ease-out-expo);
  border-radius: 9999px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #111111;
  font-weight: 700;
}


