/* ===================== HERO COMPONENT ===================== */
.hero {
  position: relative;
  background: var(--inverse-surface);
  color: var(--paper);
  padding: calc(80px + var(--safe-area-top)) var(--gutter) var(--spacing-md);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 15, 10, 0.85) 0%, rgba(29, 20, 16, 0.82) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.hero-header {
  margin-bottom: var(--spacing-sm);
}

.hero-title {
  font: var(--text-display-lg-mobile);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #FFFFFF;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-title {
    font: var(--text-display-lg);
  }
}

.hero-title span {
  color: var(--primary);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.arabic-badge {
  font-size: 1rem;
  color: var(--accent-light);
  font-family: 'Traditional Arabic', serif;
}

/* Icon styling */
.filter-icon,
.location-icon,
.meta-icon,
.restaurant-icon {
  width: 16px;
  height: 16px;
  color: inherit;
}

.location-icon {
  color: rgba(255, 255, 255, 0.6);
}

.meta-icon {
  color: var(--accent);
}

/* ===================== CAROUSEL (Integrated) ===================== */
.hero-carousel-wrapper {
  margin-top: var(--spacing-md);
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.carousel-title {
  font: var(--text-label-sm);
  letter-spacing: 0.05em;
  color: var(--accent);
}

.carousel-indicator {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--border-color);
}

/* Filter Lines */
.filter-line {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--spacing-xs) 4px var(--spacing-xs);
  margin: 0 -4px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.filter-line::-webkit-scrollbar {
  display: none;
}

.location-filters {
  margin-bottom: 12px;
}

.cuisine-filters {
  margin-bottom: var(--spacing-xs);
}

.filter-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--inverse-on-surface);
  cursor: pointer;
  transition: all var(--transition-fast);
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, border-color;
}

.filter-chip:hover {
  transform: translateY(-2px);
  background: rgba(247, 242, 231, 0.12);
  border-color: rgba(224, 163, 23, 0.4);
}

.filter-chip:active {
  transform: translateY(0) scale(0.98);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(200, 52, 26, 0.4);
  animation: bump 0.3s var(--ease-bounce);
}

.filter-chip.active .filter-icon {
  filter: brightness(1.5);
}

.filter-icon {
  width: 18px;
  height: 18px;
  line-height: 1;
  flex-shrink: 0;
  color: inherit;
}

.filter-text {
  white-space: nowrap;
}

.filter-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #FFFFFF;
}

.filter-chip.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
}

.restaurant-carousel {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: var(--spacing-xs) 4px var(--spacing-md);
  margin: 0 -4px calc(var(--spacing-md) * -1);
  scrollbar-width: none;
}

.restaurant-carousel::-webkit-scrollbar {
  display: none;
}

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

/* Restaurant Card */
.restaurant-card-swipe {
  flex: 0 0 85%;
  max-width: 320px;
  scroll-snap-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.restaurant-card-swipe:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.restaurant-card-swipe:active {
  transform: scale(0.98);
}

.restaurant-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.restaurant-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.restaurant-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.r-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.r-icon svg {
  width: 28px;
  height: 28px;
  color: #FFFFFF;
}

.r-logo {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  background: #FFFFFF;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.r-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback for cards without images */
.restaurant-card-swipe:not(:has(.restaurant-card-bg)) {
  aspect-ratio: auto;
  padding: 20px;
}

.restaurant-card-swipe:not(:has(.restaurant-card-bg)) .restaurant-card-content {
  padding: 0;
  justify-content: flex-start;
}

.r-name {
  font: var(--text-headline-md);
  margin: 0 0 4px;
  color: #FFFFFF;
}

.r-location {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.r-meta {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

.r-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.r-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(224, 163, 23, 0.2);
  color: var(--accent-light);
  border: 1px solid rgba(224, 163, 23, 0.3);
}

.r-rating {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.3);
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ===================== HOW IT WORKS CARD ===================== */
.how-it-works-card {
  background: var(--surface-pure);
  border: var(--border-warm);
  border-radius: var(--radius-xl);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-soft);
  margin-top: var(--spacing-lg);
}

.how-title {
  font: var(--text-headline-md);
  text-align: center;
  margin: 0 0 var(--spacing-md);
  color: var(--on-surface);
}

.how-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.how-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-container-high);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font: var(--text-headline-md);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.how-marker-primary {
  background: rgba(200, 52, 26, 0.1);
}

.how-content {
  flex: 1;
  padding-top: 2px;
}

.how-content h3 {
  font: var(--text-label-sm);
  font-size: 16px;
  margin: 0 0 var(--spacing-xs);
  color: var(--on-surface);
  font-weight: 600;
  line-height: 1.3;
}

.how-content p {
  font: var(--text-body-md);
  font-size: 14px;
  color: var(--on-surface-variant);
  margin: 0;
  line-height: 1.5;
}

.how-connector {
  width: 1px;
  height: 24px;
  background: var(--outline);
  margin-left: 16px;
}
