/* ========================================
   Solana Travel - Global Styles
   Premium design system with glassmorphism
   ======================================== */

/* Design Tokens */
:root {
  --page-gutter: clamp(26px, 5.5vw, 96px);
  --shell-gutter: var(--page-gutter);
  --brand-accent-400: #fbbf24;
  --brand-accent-500: #f59e0b;
  --brand-accent-600: #d97706;
  --brand-accent-400-rgb: 251 191 36;
  --brand-accent-500-rgb: 245 158 11;
  --brand-accent-600-rgb: 217 119 6;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  --amber-400: var(--brand-accent-400);
  --amber-500: var(--brand-accent-500);
  --amber-600: var(--brand-accent-600);

  --green-500: #22c55e;
  --green-600: #16a34a;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --site-bg: #e1f2fe;
  --bg-orb-1-rgb: 59 130 246;
  --bg-orb-2-rgb: 251 191 36;
  --bg-orb-3-rgb: 16 185 129;
  --seasonal-banner-highlight: rgba(255, 231, 172, 0.95);
  --seasonal-banner-grad-start: #0f3d8f;
  --seasonal-banner-grad-mid: #1d4ed8;
  --seasonal-banner-grad-end: #0ea5e9;
  --seasonal-banner-shadow-rgb: 14 56 122;
  --seasonal-link-bg: #0f3d8f;
  --seasonal-link-hover-bg: #0a2f6f;
  --deals-page-bg-start: #e6f3ff;
  --deals-page-bg-mid: #f8fbff;
  --deals-page-bg-end: #eff6ff;
  --feature-icon-grad-start: #dbeafe;
  --feature-icon-grad-end: #bfdbfe;
  --cta-grad-start: #1e40af;
  --cta-grad-end: #3b82f6;
  --cta-shadow-rgb: 59 130 246;

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Tajawal', 'Inter', sans-serif;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

:root[data-brand="latoia"] {
  --brand-accent-400: #f97316;
  --brand-accent-500: #ef4444;
  --brand-accent-600: #be123c;
  --brand-accent-400-rgb: 249 115 22;
  --brand-accent-500-rgb: 239 68 68;
  --brand-accent-600-rgb: 190 18 60;
  --site-bg: #fff1eb;
  --bg-orb-1-rgb: 249 115 22;
  --bg-orb-2-rgb: 239 68 68;
  --bg-orb-3-rgb: 190 24 93;
  --seasonal-banner-highlight: rgba(255, 220, 182, 0.95);
  --seasonal-banner-grad-start: #9f1239;
  --seasonal-banner-grad-mid: #dc2626;
  --seasonal-banner-grad-end: #f97316;
  --seasonal-banner-shadow-rgb: 159 18 57;
  --seasonal-link-bg: #be123c;
  --seasonal-link-hover-bg: #9f1239;
  --deals-page-bg-start: #fff4ed;
  --deals-page-bg-mid: #fff8f4;
  --deals-page-bg-end: #ffeade;
  --feature-icon-grad-start: #ffe4d6;
  --feature-icon-grad-end: #ffd2c1;
  --cta-grad-start: #be123c;
  --cta-grad-end: #f97316;
  --cta-shadow-rgb: 190 24 60;
}

/* Box sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base enhancements */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
}

body[dir="rtl"] {
  font-family: var(--font-arabic);
}

/* Hide original lang switcher */
.lang-switcher {
  display: none;
}

/* Premium Language Button */
.lang-btn {
  margin: 0 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
}

.lang-btn:hover {
  background: var(--gray-200);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--amber-400) 0%, var(--amber-500) 100%);
  color: var(--gray-900);
  box-shadow: 0 4px 12px rgb(var(--brand-accent-400-rgb) / 0.35);
}

/* Premium Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

/* Glassmorphism card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
}

/* Header Glass Effect */
.header-glass {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--site-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}

.header-glass .max-w-7xl,
.footer-glass .max-w-7xl {
  max-width: none;
  padding-left: var(--shell-gutter);
  padding-right: var(--shell-gutter);
}

/* Brand block in navbar: clean spacing for LTR and RTL */
.header-glass .navbar-brand {
  text-decoration: none;
  gap: clamp(0.85rem, 1.3vw, 1.25rem);
}

/* Neutralize space-x margins and rely on gap so logo/title spacing is consistent */
.header-glass .navbar-brand > * + * {
  margin-left: 0;
}

[dir="rtl"] .header-glass .navbar-brand > * + * {
  margin-right: 0;
}

.header-glass .navbar-brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.header-glass .brand-title {
  margin: 0;
  line-height: 1.12;
}

.header-glass .brand-tagline {
  margin: 0;
  line-height: 1.25;
}

/* Navigation Links */
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  color: var(--gray-600);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-base);
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

.nav-link.active {
  color: var(--primary-700);
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
  font-weight: 600;
}

/* Navigation link for hotels page (button style) */
.nav-link-hotels {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: white;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition-base);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.nav-link-hotels:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Mobile menu refinement */
#mobile-menu {
  background: var(--site-bg);
  border-top: none;
  transform-origin: top;
  will-change: transform, opacity;
}

#mobile-menu:not(.hidden) {
  animation: mobileMenuIn 180ms ease;
}

.mobile-menu-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--gray-700);
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: rgba(148, 163, 184, 0.16);
}

.mobile-menu-btn:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 2px;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

@keyframes mobileMenuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation utilities */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out;
}

/* ========================================
   Animated Background (shared)
   ======================================== */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgb(var(--bg-orb-1-rgb) / 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgb(var(--bg-orb-2-rgb) / 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 20%, rgb(var(--bg-orb-3-rgb) / 0.08) 0%, transparent 50%);
  animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-2%, 2%) scale(1.02);
  }
  66% {
    transform: translate(2%, -2%) scale(0.98);
  }
}

.bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgb(var(--bg-orb-1-rgb) / 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgb(var(--bg-orb-2-rgb) / 0.03) 0%, transparent 50%);
  background-size: 100px 100px;
}

body.hotels-page .bg-gradient,
body.hotels-page .bg-pattern,
body.hotel-detail-page .bg-gradient,
body.hotel-detail-page .bg-pattern {
  display: none;
}

/* ========================================
   Footer (shared)
   ======================================== */
.footer-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  padding: 12px 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 56px;
  width: auto;
}

.footer-brand p {
  color: var(--gray-500);
  font-size: 1.125rem;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 1.0625rem;
  transition: var(--transition-base);
}

.footer-link:hover {
  color: var(--primary-600);
}

.footer-link svg {
  width: 22px;
  height: 22px;
}

.footer-copyright {
  color: var(--gray-400);
  font-size: 1rem;
}

.footer-dev-cards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 760px);
  align-items: stretch;
}

.footer-dev {
  margin: 0;
  width: 100%;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 132px;
  align-self: stretch;
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  letter-spacing: 0.3px;
  text-align: center;
  line-height: 1.45;
}

.footer-dev-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-dev-city {
  color: rgba(255, 255, 255, 0.92);
}

.footer-dev-primary a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.footer-dev-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.2);
  color: #bfdbfe;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.footer-dev-contact svg {
  width: 16px;
  height: 16px;
}

.footer-dev-primary a:hover {
  color: #93c5fd;
}

.footer-dev-contact:hover {
  color: #ffffff;
  background: rgba(147, 197, 253, 0.36);
  transform: translateY(-1px);
}

.footer-dev-accounting {
  text-decoration: none;
  color: #dbeafe;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-dev-accounting-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.footer-dev-accounting-head svg {
  width: 18px;
  height: 18px;
  color: #93c5fd;
}

.footer-dev-domain {
  font-weight: 700;
}

.footer-dev-accounting:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .footer-dev-cards {
    grid-template-columns: 1fr;
    width: min(100%, 420px);
  }
}

/* ========================================
   Utility Classes (Tailwind CDN replacement)
   Only the ~60 utilities actually used by navbar/footer.
   ======================================== */
.sticky { position: sticky; }
.absolute { position: absolute; }
.relative { position: relative; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.z-50 { z-index: 50; }
.flex { display: flex; }
.hidden { display: none; }
.block { display: block; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-6 { gap: 1.5rem; }
.space-x-2 > * + * { margin-inline-start: 0.5rem; }
.space-x-3 > * + * { margin-inline-start: 0.75rem; }
.space-x-4 > * + * { margin-inline-start: 1rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.p-2 { padding: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.h-12 { height: 3rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-900 { color: #1e3a8a; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-blue-50 { background-color: #eff6ff; }
.border-b { border-bottom: 1px solid; }
.border-t { border-top: 1px solid; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.transition-all { transition-property: all; transition-duration: 150ms; }

/* Hover utilities */
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:text-blue-700:hover { color: #1d4ed8; }

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:h-16 { height: 4rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
