/* ============================================================
   NOWTIVA - Apple 2025 Design System
   Based on iOS 26 / macOS Tahoe Liquid Glass HIG
   SF Pro Typography • Dynamic Vibrancy • Spring Physics
   ============================================================ */

/* ============================================
   SF PRO FONT STACK
   On Apple devices, SF Pro is the system font and loads automatically
   via -apple-system. No external font loading needed.
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES - 2025 SPEC
   ============================================ */
:root {
  /* Typography Scale (SF Pro) */
  --apple-font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --apple-font-text: 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --apple-font-mono: 'SF Mono', ui-monospace, SFMono-Regular, monospace;

  /* Apple Blue Palette */
  --apple-blue: #007AFF;
  --apple-blue-dark: #0066CC;
  --apple-blue-light: #5AC8FA;
  --apple-blue-vibrant: #00A1FF;

  /* System Colors */
  --apple-green: #30D158;
  --apple-orange: #FF9F0A;
  --apple-red: #FF3B30;
  --apple-purple: #BF5AF2;
  --apple-pink: #FF375F;
  --apple-teal: #64D2FF;
  --apple-indigo: #5E5CE6;

  /* Semantic Colors - Light */
  --apple-label: rgba(0, 0, 0, 0.85);
  --apple-label-secondary: rgba(0, 0, 0, 0.55);
  --apple-label-tertiary: rgba(0, 0, 0, 0.35);
  --apple-label-quaternary: rgba(0, 0, 0, 0.20);

  /* Backgrounds - Light */
  --apple-bg-primary: #FFFFFF;
  --apple-bg-secondary: #F2F2F7;
  --apple-bg-tertiary: #E5E5EA;
  --apple-bg-grouped: #F2F2F7;

  /* Fills - Light */
  --apple-fill-primary: rgba(120, 120, 128, 0.20);
  --apple-fill-secondary: rgba(120, 120, 128, 0.16);
  --apple-fill-tertiary: rgba(120, 120, 128, 0.12);
  --apple-fill-quaternary: rgba(120, 120, 128, 0.08);

  /* Separators */
  --apple-separator: rgba(60, 60, 67, 0.29);
  --apple-separator-opaque: #C6C6C8;

  /* Liquid Glass - 2025 Spec */
  --glass-blur: 50px;
  --glass-saturation: 200%;
  --glass-brightness: 1.15;
  --glass-contrast: 1.05;

  /* Glass Materials (Light) */
  --glass-ultra-thin: rgba(255, 255, 255, 0.35);
  --glass-thin: rgba(255, 255, 255, 0.55);
  --glass-regular: rgba(255, 255, 255, 0.72);
  --glass-thick: rgba(255, 255, 255, 0.85);
  --glass-chrome: rgba(255, 255, 255, 0.92);

  /* Glass Borders */
  --glass-border-light: rgba(255, 255, 255, 0.45);
  --glass-border-separator: rgba(255, 255, 255, 0.25);

  /* Depth & Shadows (2025 Spec) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.20);
  --shadow-2xl: 0 32px 80px rgba(0, 0, 0, 0.25);

  /* Glow Effects */
  --glow-blue: 0 0 20px rgba(0, 122, 255, 0.35);
  --glow-success: 0 0 20px rgba(48, 209, 88, 0.35);

  /* Border Radius (2025 Spec) */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 9999px;

  /* Spring Animation */
  --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-snappy: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Timing */
  --duration-instant: 100ms;
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;
}

/* ============================================
   DARK MODE OVERRIDES
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root {
    /* Apple Blue - Dark Mode */
    --apple-blue: #0A84FF;
    --apple-blue-dark: #0066CC;
    --apple-blue-light: #64D2FF;

    /* System Colors - Dark */
    --apple-green: #30D158;
    --apple-orange: #FF9F0A;
    --apple-red: #FF453A;
    --apple-purple: #BF5AF2;

    /* Labels - Dark */
    --apple-label: rgba(255, 255, 255, 0.85);
    --apple-label-secondary: rgba(255, 255, 255, 0.60);
    --apple-label-tertiary: rgba(255, 255, 255, 0.40);
    --apple-label-quaternary: rgba(255, 255, 255, 0.20);

    /* Backgrounds - Dark */
    --apple-bg-primary: #000000;
    --apple-bg-secondary: #1C1C1E;
    --apple-bg-tertiary: #2C2C2E;
    --apple-bg-grouped: #1C1C1E;

    /* Fills - Dark */
    --apple-fill-primary: rgba(120, 120, 128, 0.36);
    --apple-fill-secondary: rgba(120, 120, 128, 0.32);
    --apple-fill-tertiary: rgba(120, 120, 128, 0.24);

    /* Separators - Dark */
    --apple-separator: rgba(84, 84, 88, 0.65);

    /* Glass Materials - Dark */
    --glass-ultra-thin: rgba(30, 30, 30, 0.45);
    --glass-thin: rgba(35, 35, 35, 0.60);
    --glass-regular: rgba(40, 40, 40, 0.75);
    --glass-thick: rgba(50, 50, 50, 0.88);
    --glass-chrome: rgba(60, 60, 60, 0.95);

    /* Glass Borders - Dark */
    --glass-border-light: rgba(255, 255, 255, 0.15);
    --glass-border-separator: rgba(255, 255, 255, 0.10);

    /* Shadows - Dark */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.40);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.50);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.60);
  }
}

/* ============================================
   BASE STYLES - APPLE DEVICE ONLY
   ============================================ */
html.apple-device {
  font-family: var(--apple-font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.apple-device body {
  font-family: var(--apple-font-text);
  color: var(--apple-label);
  background: var(--apple-bg-secondary);
  line-height: 1.47059;
  letter-spacing: -0.022em;
}

/* ============================================
   TYPOGRAPHY CLASSES
   ============================================ */
.apple-large-title {
  font-family: var(--apple-font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.37px;
}

.apple-title1 {
  font-family: var(--apple-font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.36px;
}

.apple-title2 {
  font-family: var(--apple-font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.35px;
}

.apple-title3 {
  font-family: var(--apple-font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.38px;
}

.apple-headline {
  font-family: var(--apple-font-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.41px;
}

.apple-body {
  font-family: var(--apple-font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47059;
  letter-spacing: -0.41px;
}

.apple-callout {
  font-family: var(--apple-font-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.32px;
}

.apple-subheadline {
  font-family: var(--apple-font-text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.24px;
}

.apple-footnote {
  font-family: var(--apple-font-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.08px;
}

.apple-caption1 {
  font-family: var(--apple-font-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.apple-caption2 {
  font-family: var(--apple-font-text);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.07px;
}

/* ============================================
   LIQUID GLASS MATERIALS
   ============================================ */
.glass-material {
  background: var(--glass-regular);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)) brightness(var(--glass-brightness));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)) brightness(var(--glass-brightness));
  border: 0.5px solid var(--glass-border-light);
  border-radius: var(--radius-lg);
}

.glass-ultra-thin {
  background: var(--glass-ultra-thin);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.glass-thin {
  background: var(--glass-thin);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
}

.glass-thick {
  background: var(--glass-thick);
  backdrop-filter: blur(60px) saturate(200%) brightness(1.1);
  -webkit-backdrop-filter: blur(60px) saturate(200%) brightness(1.1);
}

.glass-chrome {
  background: var(--glass-chrome);
  backdrop-filter: blur(80px) saturate(220%) brightness(1.15);
  -webkit-backdrop-filter: blur(80px) saturate(220%) brightness(1.15);
  border: 0.5px solid rgba(255, 255, 255, 0.6);
}

/* ============================================
   NAVIGATION BAR (iOS Style)
   ============================================ */
.apple-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--glass-thin);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border-bottom: 0.5px solid var(--glass-border-separator);
  transition: all var(--duration-normal) var(--spring-smooth);
}

.apple-navbar.scrolled {
  background: var(--glass-thick);
  box-shadow: var(--shadow-sm);
}

.apple-navbar-title {
  font-family: var(--apple-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--apple-label);
  letter-spacing: -0.41px;
}

.apple-navbar-large-title {
  font-family: var(--apple-font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--apple-label);
  padding: 0 16px 8px;
}

/* ============================================
   BUTTONS (iOS 2025 Style)
   ============================================ */
.apple-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--apple-font-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.41px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--spring-snappy);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.apple-button:active {
  transform: scale(0.97);
}

/* Primary Button */
.apple-button-primary {
  background: var(--apple-blue);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.apple-button-primary:hover {
  background: var(--apple-blue-dark);
  box-shadow: var(--shadow-md), var(--glow-blue);
}

.apple-button-primary:active {
  background: var(--apple-blue-dark);
}

/* Secondary Button */
.apple-button-secondary {
  background: var(--apple-fill-secondary);
  color: var(--apple-blue);
}

.apple-button-secondary:hover {
  background: var(--apple-fill-primary);
}

/* Glass Button */
.apple-button-glass {
  background: var(--glass-thin);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--apple-label);
  border: 0.5px solid var(--glass-border-light);
  box-shadow: var(--shadow-xs);
}

.apple-button-glass:hover {
  background: var(--glass-regular);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Pill Button */
.apple-button-pill {
  border-radius: var(--radius-full);
  padding: 12px 20px;
}

/* Icon Button */
.apple-button-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ============================================
   CARDS
   ============================================ */
.apple-card {
  background: var(--glass-regular);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border: 0.5px solid var(--glass-border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--duration-normal) var(--spring-bounce);
}

.apple-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.apple-card-content {
  padding: 16px;
}

.apple-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ============================================
   SHOP CARD (Lokali Specific)
   ============================================ */
.apple-shop-card {
  background: var(--glass-regular);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border: 0.5px solid var(--glass-border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration-normal) var(--spring-bounce);
}

.apple-shop-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.apple-shop-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.apple-shop-card-content {
  padding: 16px;
}

.apple-shop-card-name {
  font-family: var(--apple-font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--apple-label);
  margin-bottom: 4px;
}

.apple-shop-card-category {
  font-size: 14px;
  color: var(--apple-blue);
  font-weight: 500;
  margin-bottom: 8px;
}

.apple-shop-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--apple-orange);
  font-size: 14px;
  font-weight: 500;
}

.apple-shop-card-distance {
  font-size: 14px;
  color: var(--apple-label-secondary);
}

.apple-shop-card-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 0.5px solid var(--glass-border-separator);
}

/* ============================================
   INPUT FIELDS
   ============================================ */
.apple-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--apple-font-text);
  font-size: 17px;
  line-height: 1.3;
  color: var(--apple-label);
  background: var(--glass-ultra-thin);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0.5px solid var(--glass-border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--duration-fast) var(--spring-snappy);
}

.apple-input:focus {
  background: var(--glass-thin);
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
}

.apple-input::placeholder {
  color: var(--apple-label-tertiary);
}

/* Search Input */
.apple-search-input {
  padding-left: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%238E8E93' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' stroke='%238E8E93' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}

/* ============================================
   MAP CONTAINER
   ============================================ */
.apple-map-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.apple-map-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 0.5px solid var(--glass-border-light);
  border-radius: var(--radius-xl);
  pointer-events: none;
  z-index: 1;
}

/* Map Overlay Panel */
.apple-map-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--glass-thick);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border: 0.5px solid var(--glass-border-light);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-xl);
  z-index: 100;
}

/* ============================================
   CHIPS / FILTERS
   ============================================ */
.apple-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--apple-font-text);
  font-size: 15px;
  font-weight: 500;
  color: var(--apple-label);
  background: var(--glass-thin);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid var(--glass-border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) var(--spring-snappy);
  -webkit-tap-highlight-color: transparent;
}

.apple-chip:hover {
  background: var(--glass-regular);
  transform: scale(1.03);
}

.apple-chip.active {
  background: var(--apple-blue);
  color: #FFFFFF;
  border-color: transparent;
}

.apple-chip-icon {
  font-size: 18px;
}

/* Category chips with colors */
.apple-chip-category {
  padding: 10px 16px;
  border-width: 1.5px;
  font-size: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.apple-chip-category:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.apple-chip-category.active {
  background: linear-gradient(135deg, var(--apple-blue) 0%, #0066CC 100%) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4) !important;
}

/* ============================================
   MODALS / SHEETS
   ============================================ */
.apple-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--spring-smooth);
}

.apple-modal-backdrop.visible {
  opacity: 1;
}

.apple-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--glass-chrome);
  backdrop-filter: blur(80px) saturate(220%);
  -webkit-backdrop-filter: blur(80px) saturate(220%);
  border: 0.5px solid var(--glass-border-light);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  z-index: 10000;
  opacity: 0;
  transition: all var(--duration-normal) var(--spring-bounce);
}

.apple-modal.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Sheet (Bottom) */
.apple-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass-chrome);
  backdrop-filter: blur(80px) saturate(220%);
  -webkit-backdrop-filter: blur(80px) saturate(220%);
  border: 0.5px solid var(--glass-border-light);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  box-shadow: var(--shadow-2xl);
  max-height: 90vh;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--spring-bounce);
}

.apple-sheet.visible {
  transform: translateY(0);
}

.apple-sheet-handle {
  width: 36px;
  height: 5px;
  background: var(--apple-fill-tertiary);
  border-radius: 3px;
  margin: 8px auto 16px;
}

/* ============================================
   BADGES
   ============================================ */
.apple-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-family: var(--apple-font-text);
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--apple-red);
  border-radius: var(--radius-full);
}

.apple-badge-success {
  background: var(--apple-green);
}

.apple-badge-blue {
  background: var(--apple-blue);
}

/* ============================================
   RATING STARS
   ============================================ */
.apple-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

.apple-star {
  color: var(--apple-orange);
  font-size: 16px;
}

.apple-star.empty {
  color: var(--apple-fill-tertiary);
}

/* ============================================
   LOADING STATES
   ============================================ */
.apple-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--apple-fill-tertiary);
  border-top-color: var(--apple-blue);
  border-radius: 50%;
  animation: apple-spin 0.8s linear infinite;
}

@keyframes apple-spin {
  to { transform: rotate(360deg); }
}

.apple-skeleton {
  background: linear-gradient(90deg, var(--apple-fill-quaternary) 25%, var(--apple-fill-tertiary) 50%, var(--apple-fill-quaternary) 75%);
  background-size: 200% 100%;
  animation: apple-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes apple-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   SPRING ANIMATIONS
   ============================================ */
@keyframes apple-bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  50% {
    transform: scale(1.03) translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes apple-slide-up {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes apple-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.animate-bounce-in {
  animation: apple-bounce-in var(--duration-normal) var(--spring-bounce) forwards;
}

.animate-slide-up {
  animation: apple-slide-up var(--duration-normal) var(--spring-bounce) forwards;
}

.animate-fade-in {
  animation: apple-fade-in var(--duration-fast) var(--spring-smooth) forwards;
}

/* Staggered animations */
.stagger-1 { animation-delay: 50ms; }
.stagger-2 { animation-delay: 100ms; }
.stagger-3 { animation-delay: 150ms; }
.stagger-4 { animation-delay: 200ms; }
.stagger-5 { animation-delay: 250ms; }

/* ============================================
   FOOTER
   ============================================ */
.apple-footer {
  background: linear-gradient(180deg, var(--apple-bg-tertiary) 0%, var(--apple-bg-secondary) 100%);
  padding: 40px 20px 24px;
}

.apple-footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.apple-footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.apple-footer-section-title {
  font-family: var(--apple-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-label);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.apple-footer-link {
  display: block;
  font-size: 13px;
  color: var(--apple-label-secondary);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--duration-fast) var(--spring-snappy);
}

.apple-footer-link:hover {
  color: var(--apple-blue);
}

.apple-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 0.5px solid var(--apple-separator);
}

.apple-footer-copyright {
  font-size: 12px;
  color: var(--apple-label-tertiary);
}

.apple-footer-socials {
  display: flex;
  gap: 12px;
}

.apple-social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--glass-thin);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid var(--glass-border-light);
  border-radius: var(--radius-sm);
  color: var(--apple-label-secondary);
  text-decoration: none;
  transition: all var(--duration-fast) var(--spring-snappy);
}

.apple-social-button:hover {
  background: var(--apple-blue);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 768px) {
  .apple-large-title {
    font-size: 28px;
  }

  .apple-navbar {
    height: 48px;
  }

  .apple-card {
    border-radius: var(--radius-lg);
  }

  .apple-map-overlay {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }

.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.my-4 { margin-top: 16px; margin-bottom: 16px; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
