/* ==========================================================================
   MAVUNQO — WARM CARIBBEAN MINIMALIST + MODERN SAAS HYBRID
   Deep Teal, Warm Amber, Warm Ivory, High Ergonomics, Fast Mobile Navigation
   ========================================================================== */

:root {
  /* Warm Caribbean Minimalist Palette */
  --teal-primary: #116B62;
  --teal-hover: #0D524B;
  --teal-light: #E7F3F1;
  --amber-secondary: #F3A64A;
  --amber-hover: #E09234;
  --amber-light: #FDF3E7;
  
  --bg-page: #FAFAF7;       /* Warm Ivory */
  --surface: #FFFFFF;
  --surface-subtle: #F4F4EE;
  --border: #E5E5DC;
  --border-focus: #116B62;

  --black: #111827;          /* Rich Charcoal Black */
  --text-primary: #1C2421;  /* Deep Forest Black */
  --text-secondary: #5C6B66;/* Sage / Warm Gray */
  --text-muted: #84948F;

  --whatsapp: #25D366;
  --whatsapp-hover: #20BA5A;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(28, 36, 33, 0.05);
  --shadow-card: 0 4px 14px rgba(28, 36, 33, 0.07);
  --shadow-hover: 0 10px 28px rgba(17, 107, 98, 0.12);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  padding-bottom: 4.5rem; /* Room for bottom mobile nav */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   NAVBAR (Warm Caribbean Header)
   ========================================================================== */
header.navbar {
  background: linear-gradient(135deg, #116B62 0%, #09433D 100%);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2.5px solid var(--amber-secondary);
  box-shadow: 0 2px 12px rgba(9, 67, 61, 0.22);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.65rem;
  font-weight: 950;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-logo span.dot {
  color: var(--amber-secondary);
}
.brand-pill {
  font-size: 0.72rem;
  font-weight: 750;
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.mvq-lang-select {
  display: none;
}
.lang-btn {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn.active {
  background-color: var(--surface);
  color: var(--teal-primary);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  text-decoration: none !important;
  transition: var(--transition);
}
.btn-primary {
  background-color: var(--teal-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--teal-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(17, 107, 98, 0.25);
}
.btn-amber {
  background-color: var(--amber-secondary);
  color: #111827;
  font-weight: 850;
}
.btn-amber:hover {
  background-color: var(--amber-hover);
}
.btn-white {
  background-color: #ffffff;
  color: var(--teal-primary);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  background-color: #F8F9FA;
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-outline:hover {
  background-color: var(--surface-subtle);
  border-color: var(--teal-primary);
  color: var(--teal-primary);
}
.btn-outline-white {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}
.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}
.btn-success {
  background-color: var(--whatsapp);
  color: #ffffff;
}
.btn-success:hover {
  background-color: var(--whatsapp-hover);
}

/* ==========================================================================
   CARIBBEAN HERO SECTION & SEARCH
   ========================================================================== */
.uber-hero {
  background-color: transparent;
  padding: 3rem 1.5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.uber-hero-headline {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--teal-primary);
  margin-bottom: 0.75rem;
}
.uber-hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 450;
  max-width: 650px;
}

/* ==========================================================================
   SEARCH & FILTER BAR
   ========================================================================== */
.uber-search-card {
  background-color: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}
.uber-search-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  gap: 0.75rem;
}
@media (max-width: 850px) {
  .uber-hero-headline {
    font-size: 2.3rem;
  }
  .uber-search-grid {
    grid-template-columns: 1fr;
  }
}

.uber-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.uber-input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}
.uber-input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}
.uber-input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}
select.uber-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Category Quick-Chips (Uber Eats / Services style) */
.category-chips-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
}
.category-chips-scroll::-webkit-scrollbar {
  display: none;
}
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}
.category-chip:hover, .category-chip.active {
  background-color: var(--black);
  color: #ffffff;
  border-color: var(--black);
}

/* ==========================================================================
   LISTINGS GRID (Uber Clean Cards)
   ========================================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  width: 100%;
}

.listings-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.results-count-badge {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.uber-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
}

.uber-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.uber-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #000000;
}

.uber-card-top {
  padding: 1.5rem 1.5rem 0.75rem;
}
.uber-card-title {
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.uber-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.uber-badge {
  background-color: var(--bg-subtle);
  color: var(--black);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.uber-card-body {
  padding: 0 1.5rem 1.25rem;
  flex: 1;
}
.uber-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.uber-services-mini {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}
.uber-services-mini-header {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.uber-service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.uber-service-row:last-child {
  border-bottom: none;
}
.uber-service-price {
  font-weight: 800;
  color: var(--black);
}

.uber-card-actions {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  background-color: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   STOREFRONT PAGE (Uber Storefront / Uber Eats style)
   ========================================================================== */
.uber-storefront-hero {
  background-color: var(--black);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  margin-bottom: 2.5rem;
}
.uber-storefront-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}
.uber-storefront-desc {
  font-size: 1.15rem;
  color: #cccccc;
  max-width: 750px;
  line-height: 1.6;
}
.uber-storefront-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.uber-storefront-badge {
  background-color: #222222;
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
}

.uber-storefront-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 900px) {
  .uber-storefront-layout {
    grid-template-columns: 1fr;
  }
}

.uber-menu-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  transition: var(--transition);
}
.uber-menu-card:hover {
  border-color: var(--black);
  box-shadow: var(--shadow-sm);
}
.uber-menu-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 0.3rem;
}
.uber-menu-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.uber-menu-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--black);
  white-space: nowrap;
}

.uber-sidebar-panel {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.uber-sidebar-title {
  font-size: 1.15rem;
  font-weight: 850;
  margin-bottom: 1.25rem;
  color: var(--black);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

/* ==========================================================================
   FOOTER (Uber Black minimal)
   ========================================================================== */
footer.footer {
  background-color: var(--black);
  color: #888888;
  padding: 3rem 1.5rem;
  margin-top: auto;
  border-top: 1px solid #222222;
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer a {
  color: #cccccc;
  text-decoration: none;
}
.footer a:hover {
  color: #ffffff;
}

/* ==========================================================================
   STATE BOXES & FORMS
   ========================================================================== */
.state-box {
  text-align: center;
  padding: 4rem 1.5rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  max-width: 600px;
  margin: 2rem auto;
}
.state-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.state-box p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.form-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
  max-width: 750px;
  margin: 2rem auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.form-card label {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: block;
}
.input-field, select.input-field {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
}
.input-field:focus {
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px var(--teal-light);
}

.table-responsive {
  overflow-x: auto;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data-table th {
  background-color: var(--surface-subtle);
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  color: var(--text-secondary);
}

/* ==========================================================================
   BOTTOM MOBILE NAVIGATION (Warm Caribbean Ergonomics)
   ========================================================================== */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 99;
  justify-content: space-around;
  padding: 0.5rem 0.25rem 0.6rem;
}

@media (min-width: 769px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.2rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.bottom-nav-item.active, .bottom-nav-item:hover {
  color: var(--teal-primary);
}
.bottom-nav-item .icon {
  font-size: 1.25rem;
}

/* ==========================================================================
   FLOATING AI CONCIERGE WIDGET
   ========================================================================== */
.ai-concierge-pill {
  position: fixed;
  bottom: 5.2rem;
  right: 1.25rem;
  background-color: var(--teal-primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(17, 107, 98, 0.35);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  z-index: 98;
  font-weight: 800;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}
@media (min-width: 769px) {
  .ai-concierge-pill {
    bottom: 2rem;
    right: 2rem;
  }
}
.ai-concierge-pill:hover {
  background-color: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17, 107, 98, 0.45);
}

.ai-drawer {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 540px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -4px 32px rgba(28, 36, 33, 0.18);
  display: flex;
  flex-direction: column;
  z-index: 101;
  transform: translateY(105%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 769px) {
  .ai-drawer {
    bottom: 2rem;
    right: 2rem;
    border-radius: var(--radius-xl);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }
  .ai-drawer.open {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
    pointer-events: all !important;
  }
}
.ai-drawer.open {
  transform: translateY(0);
}
.ai-drawer-header {
  background: var(--teal-primary);
  color: #ffffff;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.ai-drawer-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ai-bubble-bot {
  background: var(--surface-subtle);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  max-width: 85%;
  align-self: flex-start;
  border: 1px solid var(--border);
}
.ai-bubble-user {
  background: var(--teal-light);
  color: var(--teal-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  max-width: 85%;
  align-self: flex-end;
  font-weight: 600;
}
.ai-drawer-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}
table.data-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   MOBILE-FIRST PHONE ERGONOMICS & OPTIMIZATION (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Compact top navbar on mobile */
  .nav-container {
    padding: 0.65rem 1rem;
  }
  .brand-logo {
    font-size: 1.35rem;
  }
  .brand-pill {
    display: none; /* Keep header clean on phones */
  }
  /* Hide desktop register/login buttons in top navbar on mobile (bottom nav handles it) */
  .nav-actions a.btn {
    display: none;
  }

  /* Hero Section (Zero Edge Bleed on Mobile) */
  .uber-hero {
    padding: 1.25rem 0.85rem 0.75rem !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .uber-hero-headline {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.4rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  .uber-hero-subtitle {
    font-size: 0.88rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }

  /* Mobile Search Card (Zero Horizontal Cutoff) */
  .uber-search-card {
    padding: 0.85rem !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 1rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .uber-search-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.6rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .uber-input-wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
  }
  .uber-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.7rem 0.75rem 0.7rem 2.4rem !important;
    font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
    border: 1px solid var(--border) !important;
    background-color: #ffffff !important;
    min-height: 44px !important;
  }
  select.uber-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-right: 2rem !important;
  }
  .uber-search-grid .btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-height: 44px !important;
    padding: 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 850 !important;
  }

  /* Mobile Category Chips Bar (Contained within screen width) */
  .category-chips-scroll {
    display: flex !important;
    gap: 0.5rem !important;
    margin-bottom: 1.25rem !important;
    padding: 0.25rem 0 0.5rem 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .category-chips-scroll::-webkit-scrollbar {
    display: none !important;
  }
  .category-chip {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Directory & Store Cards */
  .uber-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .uber-card {
    border-radius: var(--radius-lg);
  }
  .uber-card-top {
    padding: 1.1rem 1.1rem 0.5rem;
  }
  .uber-card-title {
    font-size: 1.18rem;
  }
  .uber-card-body {
    padding: 0 1.1rem 1rem;
  }
  .uber-card-desc {
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }
  .uber-card-actions {
    padding: 0.75rem 1.1rem;
  }

  /* Storefront Hero */
  .uber-storefront-hero {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
  }
  .uber-storefront-title {
    font-size: 1.85rem !important;
  }
  .uber-storefront-desc {
    font-size: 0.95rem;
  }

  /* Menu Items (Food, Groceries, Services) */
  .uber-menu-card {
    padding: 1rem;
    gap: 0.75rem;
  }
  .uber-menu-name {
    font-size: 1.02rem;
  }
  .uber-menu-desc {
    font-size: 0.85rem;
  }
  .uber-menu-price {
    font-size: 1.1rem;
  }

  /* AI Concierge Pill & Drawer on Phone */
  .ai-concierge-pill {
    bottom: 4.5rem !important;
    right: 0.85rem !important;
    padding: 0.55rem 0.9rem !important;
    font-size: 0.82rem !important;
    box-shadow: 0 4px 14px rgba(17, 107, 98, 0.4);
    z-index: 95;
  }
  .ai-drawer {
    height: 75vh !important;
    max-height: 80vh !important;
    border-radius: 20px 20px 0 0 !important;
  }

  /* Floating Order Cart Bar for Mobile */
  #restaurantCartBar {
    bottom: 4.8rem !important;
    width: 94% !important;
    padding: 0.75rem 1.1rem !important;
  }

  /* Touch Targets (Minimum 44px for thumb tap ergonomics) */
  .btn, button, select, input {
    min-height: 44px;
  }
  .btn-sm {
    min-height: 38px;
  }
}


/* Responsive Catalog & Menu Product Cards */
.catalog-product-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.catalog-product-main {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.catalog-product-actions {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}
.catalog-product-price {
  font-weight: 850;
  font-size: 1.05rem;
  color: var(--text-primary);
  white-space: nowrap;
}
.catalog-add-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .catalog-product-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
    padding: 1rem !important;
  }
  .catalog-product-main {
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  .catalog-product-actions {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding-top: 0.6rem !important;
    border-top: 1px dashed var(--border) !important;
  }
  .catalog-add-btn {
    width: auto !important;
    padding: 0.5rem 1.1rem !important;
    font-size: 0.88rem !important;
  }
}

/* ==========================================================================
   GLOBAL MOBILE FORM, TABLE & CONTAINER RESPONSIVENESS (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Prevent horizontal screen cut-offs */
  *, *::before, *::after {
    box-sizing: border-box !important;
  }
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Universal container margin normalization */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Form cards & panels */
  .form-card, .uber-panel, .state-box, .status-card, .merchant-card, .ops-card, .staff-card, .outreach-lead-card, .order-card {
    padding: 1.25rem 1rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-md) !important;
    box-sizing: border-box !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .input-field, select.input-field, textarea.input-field, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
  }

  /* Admin & Dashboard header cards */
  .uber-admin-header {
    padding: 1.25rem 1rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
  }
  .uber-admin-header .nav-actions, .uber-admin-header div {
    width: 100% !important;
  }
  .uber-admin-stats {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  /* Catalog items in dashboard */
  .catalog-item-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
  }
  .catalog-item-card .catalog-thumb {
    width: 100% !important;
    height: 120px !important;
  }
  .catalog-item-card .item-info {
    width: 100% !important;
  }
  .catalog-item-card > div:last-child {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px dashed var(--border) !important;
    padding-top: 0.6rem !important;
  }

  /* Operations & Dispatch rows */
  .order-dispatch-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
  }
  .order-dispatch-row > div:last-child {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .order-dispatch-row .btn {
    width: 100% !important;
  }

  /* Tables horizontal scrolling without cutting off screen */
  .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
  }
  table.data-table {
    min-width: 550px !important;
  }

  /* WhatsApp Simulator Responsive sizing */
  .wa-container {
    height: 85vh !important;
    margin: 0.5rem auto !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Staff & Outreach tabs */
  .staff-tab-bar {
    flex-direction: column !important;
    border-radius: var(--radius-md) !important;
  }
  .staff-tab-btn {
    width: 100% !important;
    border-radius: var(--radius-sm) !important;
  }

  /* Order details rows */
  .detail-row {
    flex-direction: column !important;
    gap: 0.25rem !important;
    align-items: flex-start !important;
  }

  /* Cross-Device Android & Small-Phone Safeguards */
  html, body {
    overflow-x: clip !important;
    max-width: 100% !important;
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
  .nav-container {
    gap: 0.4rem;
    padding: 0.6rem 0.75rem !important;
  }
  .nav-actions {
    gap: 0.35rem !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
  }
  .lang-btn {
    padding: 0.24rem 0.48rem !important;
    font-size: 0.74rem !important;
  }
  .lang-switch .lang-btn {
    display: none !important;
  }
  .mvq-lang-select {
    display: inline-block !important;
    background: rgba(0, 0, 0, 0.24);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 9999px;
    padding: 0.24rem 0.55rem;
    font-size: 0.78rem !important;
    font-weight: 800;
    cursor: pointer;
    outline: none;
  }
  .mvq-lang-select option {
    color: #0f172a;
    background: #ffffff;
  }
  #mvqNavRefreshBtn, #mvqNavBackBtn {
    padding: 0.22rem 0.5rem !important;
    font-size: 0.74rem !important;
    white-space: nowrap;
  }
  input, select, textarea {
    max-width: 100% !important;
    min-width: 0 !important;
  }
  [style*="position: fixed"] > div {
    max-height: 90dvh !important;
    overscroll-behavior: contain;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    font-size: 1.15rem !important;
  }
  .input-field, input[type="date"], input[type="datetime-local"], input[type="tel"], input[type="text"], select, textarea {
    font-size: 16px !important;
  }
  form [style*="display: flex"][style*="gap: 0.5rem"] {
    flex-wrap: wrap !important;
  }
  form [style*="display: flex"][style*="gap: 0.5rem"] > div {
    min-width: 140px !important;
  }
}
