/* ============================================
   HUBLIQ MOBILE HOME PAGE - 2026 REDESIGN
   Based on mobhomehub.html design
   ============================================ */

:root {
  /* Dark theme colors - Clean, conversion-focused */
  --bg0: #0B1220; /* Main background */
  --bg1: #0B1220; /* Secondary background (no gradient) */
  --card-bg: #121A2F; /* Card background */
  --navy0: #071a3a;
  --navy1: #0b2a58;
  --text: #ffffff; /* White text on dark */
  --textInv: #0b1430; /* Dark text for light surfaces */
  --glass: rgba(255, 255, 255, 0.08); /* Reduced opacity for cleaner look */
  --glass2: rgba(255, 255, 255, 0.05);
  --stroke: rgba(255, 255, 255, 0.15);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.3); /* Reduced shadow */
  --shadowSoft: 0 4px 12px rgba(0, 0, 0, 0.2);
  --glowCyan: rgba(160, 235, 255, 0.4); /* Muted glows */
  --glowBlue: rgba(90, 170, 255, 0.5);
  --glowViolet: rgba(150, 95, 255, 0.4);
  --glowAmber: rgba(255, 170, 90, 0.4);
  --r: 26px;
  --r2: 18px;
  --pill: 999px;
  --card-r: 28px;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.70);
  --blue-accent: #3b82f6; /* Blue for active states */
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body.mobile-home-active,
html.mobile-home-active,
body.home-page,
html.home-page {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg0); /* Solid dark background - no gradients */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
  padding-bottom: 60px !important; /* Space for fixed nav */
}

.screen {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh; /* Ensure full height for scrolling */
  padding: calc(200px + env(safe-area-inset-top)) 10px calc(120px + env(safe-area-inset-bottom)); /* Extra top padding for fixed header/search/categories, extra bottom for scrolling */
  box-sizing: border-box;
  padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important; /* Ensure bottom padding for scrolling */
  overflow-x: hidden !important; /* Prevent horizontal scroll on screen - BUT allow on discovery page */
  overflow-y: visible !important; /* Allow vertical scrolling */
}

/* Discovery page specific - ensure content is visible */
/* CRITICAL: Must come AFTER .screen rule to override overflow-x: hidden */
/* Use maximum specificity to ensure this wins over base .screen rule */
body.discovery-page .screen.mobile-home-page-2026,
html.discovery-page .screen.mobile-home-page-2026,
body.discovery-page .screen,
html.discovery-page .screen,
.screen.mobile-home-page-2026 {
  overflow-x: visible !important; /* CRITICAL: Allow horizontal scroll rows to overflow - MUST override base .screen rule */
  overflow-y: visible !important;
  min-height: 100vh !important;
  padding-bottom: calc(150px + env(safe-area-inset-bottom)) !important; /* Extra bottom padding for discovery */
  height: auto !important; /* Allow content to determine height */
  max-height: none !important; /* Remove any max-height restrictions */
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Discovery page scrolling - minimal rules, don't interfere with content */
body.discovery-page,
html.discovery-page {
  overflow-x: visible !important; /* CRITICAL: Allow horizontal scroll rows */
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh !important;
  -webkit-overflow-scrolling: touch !important;
}

body.discovery-page .screen.mobile-home-page-2026,
html.discovery-page .screen.mobile-home-page-2026 {
  overflow-x: visible !important; /* CRITICAL: Allow horizontal scroll rows to overflow */
  overflow-y: visible !important;
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
}

/* Tablet - 600px+ */
/* NOTE: Card sizing is now handled by the 598px+ freeze block below */
/* This block only handles non-card layout adjustments */
@media (min-width: 600px) {
  /* Screen width now locked by 598px+ freeze block - no width changes here */
  .screen {
    /* width: min(90%, 800px); REMOVED - locked by 598px+ freeze block */
    padding: 16px 18px calc(78px + env(safe-area-inset-bottom)) !important;
    margin: 0 auto;
  }
  
  .topbar {
    gap: 14px;
    margin-bottom: 16px;
    padding: 0 18px;
  }
  
  .hero {
    padding: 18px;
  }
  
  .heroInner {
    padding: 18px;
    gap: 12px;
  }
  
  /* REMOVED: .deal-card flex-basis that was capping cards to half-width */
  /* Cards now maintain their natural size via the 598px+ freeze block */
  
  .category-item {
    min-width: 100px;
    padding: 10px 14px;
    /* Allow vertical page scroll when touching category items */
    touch-action: pan-y !important; /* Prioritize vertical scrolling */
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto !important; /* Allow vertical scroll to propagate */
  }
}

/* Tablet Large - 768px+ */
/* NOTE: Card sizing is now handled by the 598px+ freeze block below */
/* This block only handles non-card layout adjustments */
@media (min-width: 768px) {
  /* Screen width now locked by 598px+ freeze block - no width changes here */
  .screen {
    /* width: min(95%, 900px); REMOVED - locked by 598px+ freeze block */
    padding: 20px 20px calc(78px + env(safe-area-inset-bottom)) !important;
  }
  
  .topbar {
    gap: 16px;
    margin-bottom: 18px;
  }
  
  .hero {
    padding: 20px;
  }
  
  /* REMOVED: .deal-card flex-basis that was capping cards to half-width */
  /* Cards now maintain their natural size via the 598px+ freeze block */
}

/* Desktop layout - 860px+ */
/* NOTE: Card sizing is now handled by the 598px+ freeze block below */
/* This block only handles non-card layout adjustments */
@media (min-width: 860px) {
  /* Screen width now locked by 598px+ freeze block - no width changes here */
  .screen {
    /* width: min(1120px, calc(100% - 40px)); REMOVED - locked by 598px+ freeze block */
    padding: 24px 20px calc(78px + env(safe-area-inset-bottom)) !important; /* Extra bottom padding for nav */
    margin: 0 auto;
    padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important; /* Ensure nav doesn't overlap */
  }
  
  .topbar {
    gap: 18px;
    margin-bottom: 20px;
  }
  
  /* REMOVED: .deal-card flex-basis that was capping cards to 33.333% width */
  /* Cards now maintain their natural size via the 598px+ freeze block */
  
  .hero {
    padding: 24px;
  }
  
  .heroInner {
    padding: 24px;
    gap: 16px;
  }
  
  /* REMOVED: 1000px+ hero grid layout - kept as flex column via 598px+ freeze block */
  /* Hero layout now stays consistent across all screen sizes */
}

/* Large Desktop - 1200px+ */
@media (min-width: 1200px) {
  /* Screen width now locked by 598px+ freeze block - no width changes here */
  .screen {
    /* width: min(1280px, calc(100% - 60px)); REMOVED - locked by 598px+ freeze block */
    padding: 28px 30px calc(78px + env(safe-area-inset-bottom)) !important;
  }
  
  /* REMOVED: .deal-card flex-basis that was capping cards to 25% width */
  /* Cards now maintain their natural size via the 598px+ freeze block */
}

/* Extra Large Desktop - 1314px+ with 20% growth constraint */
/* NOTE: Card sizing is now handled by the 598px+ freeze block below */
/* This block only handles non-card layout adjustments */
@media (min-width: 1314px) {
  /* Screen width now locked by 598px+ freeze block - no width changes here */
  .screen {
    /* width: min(calc(1314px * 1.2), calc(100% - 80px)); REMOVED - locked by 598px+ freeze block */
    /* max-width: calc(1314px * 1.2); REMOVED - locked by 598px+ freeze block */
    padding: 32px 40px calc(78px + env(safe-area-inset-bottom)) !important;
    margin: 0 auto;
  }
  
  /* REMOVED: .deal-card flex-basis that was capping cards to 25% width */
  /* Cards now maintain their natural size via the 598px+ freeze block */
  
  .hero {
    max-width: 100%;
  }
  
  .topbar {
    max-width: 100%;
  }
}

/* ===== Topbar ===== */
.topbar {
  display: none; /* Hide old topbar - replaced by fixed header */
}

/* Fixed Header */
.home-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg0);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fixed Search Bar - Much Thinner */
.home-search-fixed {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg0);
  padding: 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fixed Categories */
.home-categories-fixed {
  position: fixed;
  top: 140px;
  left: 0;
  right: 0;
  z-index: 997;
  background: var(--bg0);
  padding: 8px 16px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 860px) {
  .topbar {
    gap: 16px;
    margin-bottom: 18px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo {
  font-weight: 950;
  letter-spacing: 0.8px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95); /* White text for dark theme */
  white-space: nowrap;
}

@media (min-width: 860px) {
  .logo {
    font-size: 16px !important; /* Lock to mobile size - prevent growth */
  }
}

.cityBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px; /* Slightly reduced */
  border-radius: var(--pill);
  background: var(--card-bg); /* Card background */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none; /* No shadow */
  cursor: pointer;
  max-width: 52vw;
  min-width: 0;
  transition: all 0.15s ease-out;
  transform: translateZ(0);
  will-change: transform;
}

.cityBtn:active {
  transform: translateY(1px) scale(0.99);
}

.cityBtn span {
  font-weight: 700; /* Reduced from 800 */
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9); /* White text for dark theme */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.iconbtn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--card-bg); /* Card background */
  box-shadow: none; /* No shadow */
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease-out;
  transform: translateZ(0);
  will-change: transform;
  flex: 0 0 auto;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9); /* White icons for dark theme */
}

.iconbtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.iconbtn:active {
  transform: translateY(1px) scale(0.99);
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* ===== Segmented toggle ===== */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: var(--pill);
  background: var(--card-bg); /* Card background */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none; /* No shadow */
  margin: 10px 10px 12px;
  max-width: 100%;
  box-sizing: border-box;
}

.seg button {
  appearance: none;
  border: 0;
  border-radius: var(--pill);
  padding: 10px 12px;
  font-weight: 700; /* Reduced from 900 */
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  color: rgba(255, 255, 255, 0.7); /* White text for dark theme */
  transition: all 0.15s ease;
}

.seg button:active {
  transform: scale(0.99);
}

.seg button.active {
  color: rgba(255, 255, 255, 0.95);
  background: var(--blue-accent); /* Solid blue - no gradient */
  box-shadow: none; /* No shadow */
}

/* ===== Hero section ===== */
.hero {
  position: relative;
  border-radius: calc(var(--r) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
  background: var(--navy0);
  margin-bottom: 12px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: calc(var(--r) + 20px);
  background:
    radial-gradient(240px 160px at 16% 14%, var(--glowAmber), rgba(255, 255, 255, 0) 72%),
    radial-gradient(360px 220px at 78% 34%, rgba(80, 150, 255, 0.60), rgba(255, 255, 255, 0) 75%),
    radial-gradient(420px 260px at 88% 96%, rgba(160, 235, 255, 0.55), rgba(255, 255, 255, 0) 72%),
    radial-gradient(420px 260px at 54% 104%, rgba(150, 95, 255, 0.42), rgba(255, 255, 255, 0) 75%);
  filter: blur(18px);
  opacity: 0.8;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(140deg,
      rgba(255, 255, 255, 0) 35%,
      rgba(255, 255, 255, 0.07) 55%,
      rgba(255, 255, 255, 0) 72%),
    radial-gradient(520px 320px at 94% 92%,
      var(--glowCyan) 0%,
      rgba(110, 205, 255, 0.34) 22%,
      rgba(110, 205, 255, 0.10) 44%,
      rgba(255, 255, 255, 0) 72%),
    radial-gradient(220px 150px at 92% 98%,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(180, 245, 255, 0.26) 22%,
      rgba(120, 210, 255, 0.14) 44%,
      rgba(255, 255, 255, 0) 68%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10) inset,
    0 -10px 42px rgba(120, 210, 255, 0.16) inset;
  opacity: 0.95;
  z-index: 3;
}

.heroBg {
  position: absolute;
  inset: 0;
  background: var(--card-bg); /* Solid card background - no gradients */
  z-index: 0;
}

.heroBloom {
  display: none; /* Remove bloom effect for cleaner look */
}

.heroInner {
  position: relative;
  z-index: 2;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 860px) {
  .heroInner {
    padding: 26px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 22px;
    align-items: stretch;
    min-height: 280px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 10px;
  border-radius: var(--pill);
  background: var(--glass); /* Simplified - no gradient */
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  will-change: backdrop-filter;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  font-size: 12px;
  box-shadow: var(--shadowSoft); /* Reduced shadow */
}

.heroTitle {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.2px;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
}

@media (min-width: 860px) {
  .heroTitle {
    font-size: 18px !important; /* Lock to mobile size - prevent growth */
    margin: 2px 0 0 !important;
  }
}

.heroSub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

@media (min-width: 860px) {
  .heroSub {
    font-size: 12.5px !important; /* Lock to mobile size - prevent growth */
    max-width: none !important;
  }
}

/* ===== Glass panel (always visible, no collapsible) ===== */
.panel {
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: var(--card-bg); /* Solid card background - no gradient */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadowSoft); /* Reduced shadow */
  overflow: hidden;
  margin-top: 10px;
}

.panelSection {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.panelSection:first-child {
  border-top: 0;
}

.panelSectionTitle {
  padding: 12px 12px 8px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 950;
  font-size: 13px;
  user-select: none;
}

.panelBody {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--glass); /* Simplified - no gradient */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  will-change: backdrop-filter;
  box-shadow: var(--shadowSoft); /* Reduced shadow */
  padding: 9px 10px;
  color: rgba(255, 255, 255, 0.95);
}

.field-small {
  padding: 7px 9px;
  gap: 6px;
}

.field input,
.field select {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 700;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.70);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 22px;
  cursor: pointer;
  font-size: 12px;
}

.selectCaret {
  position: absolute;
  right: 10px;
  pointer-events: none;
  opacity: 0.92;
  width: 14px;
  height: 14px;
}

.btnRow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Search row: input and button on same row */
.searchRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.searchRow .field {
  flex: 1;
  min-width: 0;
}

/* Remove border from search field */
.field-no-border {
  border: none !important;
}

/* Inline button: smaller, fits next to inputs */
.btnInline {
  flex-shrink: 0;
  padding: 9px 16px !important;
  font-size: 12px !important;
  white-space: nowrap;
}

.btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px; /* Rounded corners */
  padding: 12px 16px; /* Slightly reduced */
  font-size: 13px;
  font-weight: 700; /* Reduced from 950 */
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  will-change: transform;
  transition: all 0.15s ease;
  user-select: none;
  text-decoration: none;
  display: block;
  text-align: center;
}

.btn:active {
  transform: translateY(1px) scale(0.995);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.22) 52%,
    rgba(255, 255, 255, 0) 70%);
  transform: rotate(-6deg) translateX(-6%);
  opacity: 0.85;
  mix-blend-mode: screen;
  pointer-events: none;
}

.btn::after {
  display: none; /* Remove gradient bloom */
}

.btnPrimary {
  color: #fff;
  background: var(--blue-accent); /* Solid blue - no gradient */
  box-shadow: var(--shadowSoft); /* Reduced shadow */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btnGhost {
  color: rgba(255, 255, 255, 0.9); /* White text for dark theme */
  background: rgba(255, 255, 255, 0.1); /* Subtle background - no gradient */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none; /* No shadow */
}

.pinbtn {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08); /* Simplified - no gradient */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none; /* No shadow */
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  transition: all 0.15s ease-out;
  transform: translateZ(0);
  will-change: transform;
}

.pinbtn:active {
  transform: translateY(1px) scale(0.99);
}

.pinbtn::after {
  display: none; /* Remove gradient bloom */
}

@media (min-width: 860px) {
  .pinbtn {
    width: 54px;
    height: 54px;
  }
}

.locRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.locRow .cityBtnPanel {
  flex: 1;
  min-width: 0;
}

.cityBtnPanel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px; /* Slightly reduced */
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.08); /* Simplified - no gradient */
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  will-change: backdrop-filter;
  box-shadow: none; /* No shadow */
  cursor: pointer;
  position: relative;
  min-width: 0;
  flex: 1;
  transition: all 0.15s ease-out;
  transform: translateZ(0);
  will-change: transform;
}

.cityBtnPanel:active {
  transform: translateY(1px) scale(0.99);
}

.cityBtnPanel span {
  font-weight: 800;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.cityBtnPanel select {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
}

.helper {
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.76);
  margin-top: 2px;
  padding-left: 2px;
}

/* ===== Categories ===== */
.sectionHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 10px 10px;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 860px) {
  .sectionHead {
    margin: 20px 10px 12px;
  }
}

.sectionHead h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.95); /* White text for dark theme */
}

@media (min-width: 860px) {
  .sectionHead h2 {
    font-size: 14px !important; /* Lock to mobile size - prevent growth */
  }
}

.viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85); /* White text for dark theme */
  font-weight: 700; /* Reduced from 950 */
  font-size: 12px;
  padding: 6px 10px; /* Reduced padding */
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); /* Subtle background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none; /* No shadow */
  transition: all 0.15s ease-out;
  transform: translateZ(0);
  will-change: transform;
}

.viewall:active {
  transform: scale(0.99);
}

.chips {
  display: flex !important;
  gap: 10px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 6px 10px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap !important;
  max-width: 100%;
  touch-action: pan-x !important;
  will-change: scroll-position;
  box-sizing: border-box;
  transform: translateZ(0);
  will-change: scroll-position;
  contain: layout style paint;
  /* Allow both horizontal category scroll and vertical page scroll */
  touch-action: pan-x pan-y !important; /* Allow both horizontal and vertical scrolling */
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto !important; /* Allow vertical scroll to propagate to page */
}

.chips::-webkit-scrollbar {
  height: 6px;
}

.chips::-webkit-scrollbar-thumb {
  background: rgba(10, 20, 60, 0.14);
  border-radius: 999px;
}

.chip {
  flex: 0 0 auto !important;
  scroll-snap-align: start;
  border-radius: 999px;
  padding: 6px 12px; /* Reduced height from 10px to 6px */
  font-weight: 950;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85); /* Updated for dark theme */
  background: transparent; /* Transparent for inactive */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
  box-shadow: none; /* Removed shadow */
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease-out;
  transform: translateZ(0);
  will-change: transform;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.chip:active {
  transform: scale(0.99);
}

.chip.active {
  color: var(--blue-accent); /* Blue text for active */
  background: rgba(59, 130, 246, 0.15); /* Soft blue background - no gradient */
  border: 1px solid var(--blue-accent); /* Blue outline */
  box-shadow: none; /* No shadow */
}

/* Desktop: allow wrapping */
@media (min-width: 860px) {
  .chips {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* ===== Simple content toggles - Optimized for instant switching ===== */
.pane {
  display: none;
  transform: translateZ(0);
  will-change: transform;
  contain: layout style paint;
  overflow-x: hidden; /* Prevent horizontal scroll on pane - cards scroll horizontally */
  overflow-y: visible; /* Allow vertical scrolling to propagate to parent */
  -webkit-overflow-scrolling: touch;
  min-height: 100vh; /* Ensure full height for scrolling */
  padding-bottom: 80px; /* Space at bottom for scrolling */
}

.pane.active {
  display: block;
}

/* CRITICAL: Ensure Discover pane is visible by default if it has the active class */
#paneDiscover.pane.active {
  display: block !important;
  overflow-x: visible !important; /* Allow horizontal scroll for card rows */
  overflow-y: visible !important; /* Allow vertical scrolling to propagate to parent */
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
  min-height: 100vh !important; /* Ensure full height for scrolling */
  padding-bottom: 150px !important; /* Extra space at bottom for scrolling */
  height: auto !important; /* Allow content to determine height */
  position: relative !important;
  z-index: 1 !important;
  max-height: none !important; /* Remove max-height restrictions */
}

/* ===== Horizontal scroll rows (for cards) ===== */
.mobile-home-scroll-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  overflow-x: scroll !important; /* Use 'scroll' instead of 'auto' for more reliable scrolling */
  overflow-y: hidden !important;
  /* Consistent left/right inset for all card rows */
  padding: 2px 14px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  max-width: none !important; /* Allow scroll row to expand beyond container */
  min-width: 100% !important; /* At least full width */
  box-sizing: content-box !important; /* Use content-box to allow expansion beyond 100% */
  touch-action: pan-x pan-y !important; /* Enable both horizontal and vertical scrolling */
  overscroll-behavior-x: contain !important; /* Contain horizontal scroll within row */
  overscroll-behavior-y: auto !important; /* Allow vertical scroll to propagate to page */
  position: relative;
  /* Keep container clean; tray is drawn by ::before (prevents "big slab") */
  border-radius: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-bottom: 20px !important; /* Ensure spacing between sections */
  /* Ensure smooth scrolling */
  scroll-behavior: smooth;
  /* Force scroll to work */
  will-change: scroll-position;
  /* CRITICAL: Ensure scroll container can receive touch events */
  pointer-events: auto !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

.mobile-home-scroll-row::-webkit-scrollbar {
  display: none;
}

/* Rounded tray behind the card row (tight + premium) */
.mobile-home-scroll-row::before {
  content: "";
  position: absolute;
  /* Tight tray so it doesn't look like a big white slab */
  inset: 6px;
  border-radius: 18px;
  /* Clip iOS backdrop-filter to rounded corners */
  clip-path: inset(0 round 18px);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 30px rgba(10, 20, 60, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

/* Safari/iOS: ensure blur layer is actually clipped to rounded corners */
@supports (-webkit-touch-callout: none) {
  .mobile-home-scroll-row::before {
    -webkit-mask-image: -webkit-radial-gradient(white, black);
  }
}

.mobile-home-scroll-row > * {
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  scroll-snap-align: start;
  position: relative;
  z-index: 1;
  /* Allow both horizontal card scroll and vertical page scroll */
  touch-action: pan-x pan-y !important; /* Allow both horizontal and vertical scrolling */
  overscroll-behavior-y: auto !important; /* Allow vertical scroll to propagate */
  overscroll-behavior-x: contain !important; /* Contain horizontal scroll */
  pointer-events: auto !important; /* Ensure cards are interactive */
  min-width: 280px !important; /* Ensure cards have minimum width for scrolling */
  width: clamp(280px, 56vw, 320px) !important; /* Responsive width with minimum */
  /* CRITICAL: Ensure cards don't shrink and maintain their width */
  max-width: none !important; /* Allow cards to be their natural width */
  box-sizing: border-box !important;
}

/* Ensure cards don't block vertical scrolling on discovery page */
/* Discovery cards - same as home, no special rules needed */

/* Desktop: keep horizontal scroll - don't wrap */
@media (min-width: 860px) {
  .mobile-home-scroll-row {
    flex-wrap: nowrap !important; /* Keep horizontal scroll */
    overflow-x: scroll !important; /* Keep scrolling enabled */
  }
}

/* Prevent scaling beyond 1442px - keep everything at mobile/tablet size */
/* Professional Details Card - Ensure dark blue background */
.professional-details-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 50%, rgba(15, 23, 42, 0.98) 100%) !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

.professional-details-card h3,
.professional-details-card h4,
.professional-details-card p,
.professional-details-card div,
.professional-details-card span {
  color: rgba(255, 255, 255, 0.9) !important;
}

.professional-details-card a {
  color: rgba(255, 255, 255, 0.95) !important;
}

@media (min-width: 1442px) {
  /* Prevent font-size scaling - keep at mobile base */
  html {
    font-size: 14px !important;
  }
  
  body {
    font-size: 14px !important;
  }
  
  /* Cap clamp() font-sizes at their max values - prevent further growth */
  /* Target specific elements that use clamp() with vw units */
  .deal-card h4,
  .deal-card .content h4 {
    font-size: 12px !important; /* Mobile-friendly smaller size */
  }
  
  .deal-card p,
  .deal-card .content p {
    font-size: 18px !important; /* Cap at reasonable size */
  }
  
  /* Prevent button font-size and padding scaling - keep small */
  .btn,
  button.btn,
  .deal-card .btn,
  .deal-card button,
  .deal-card .deal-actions .btn {
    font-size: 8px !important; /* Keep button text size small */
    padding: 2px 4px !important; /* Keep button padding small */
    max-height: 20px !important;
    line-height: 1.1 !important;
  }
  
  /* Prevent card width scaling - cap at 320px */
  .deal-card {
    width: 320px !important; /* Max from clamp(300px, 56vw, 320px) */
    max-width: 320px !important;
    min-width: 300px !important;
  }
  
  /* Prevent section heading scaling */
  .mobile-home-section-2026 h3 {
    font-size: 18px !important; /* Keep section headings fixed */
  }
}

/* ===== Section headers ===== */
.mobile-home-section-2026 {
  margin: 14px 0 24px 0 !important; /* Ensure spacing between sections */
  padding: 0 10px;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  overflow-x: visible !important; /* Allow scroll rows to overflow */
  overflow-y: visible !important;
}

@media (min-width: 860px) {
  .mobile-home-section-2026 {
    margin: 18px 0;
    padding: 0 10px;
  }
}

.mobile-home-section-2026 h3 {
  margin: 0 0 10px 2px;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.95); /* White text for dark theme */
  font-weight: 900;
}

@media (min-width: 860px) {
  .mobile-home-section-2026 h3 {
    font-size: 14px !important; /* Lock to mobile size - prevent growth */
  }
}

/* ===== CARD - REVOLUTIONIZED DESIGN MATCHING IMAGE ===== */
.deal-card,
.deal-card[style*="cursor"],
article.deal-card {
  /* Card width should scale smoothly on small screens, then stop growing (like Discovery) */
  width: clamp(300px, 56vw, 320px) !important;
  max-width: 320px !important;
  min-width: 300px !important;
  min-height: 300px !important; /* Consistent height for ALL cards - increased to fit all content */
  height: 300px !important; /* Force exact height to ensure all cards are the same size */
  position: relative;
  border-radius: var(--card-r);
  overflow: hidden;
  background: var(--card-bg); /* Use card background color - no gradients */
  /* Clean edge */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadowSoft); /* Reduced shadow */
  isolation: isolate;
  transform: translateZ(0);
  will-change: transform;
  contain: layout style paint;
  display: flex !important; /* Flex layout for side-by-side content and image */
  flex-direction: row !important;
  align-items: stretch !important; /* Ensure both content and media fill card height */
  /* Allow both horizontal row scroll and vertical page scroll when touching cards */
  touch-action: pan-x pan-y !important; /* Allow both horizontal and vertical scrolling */
  overscroll-behavior-y: auto !important; /* Allow vertical scroll to propagate to page */
  overscroll-behavior-x: contain !important; /* Contain horizontal scroll within card row */
  /* Ensure cards don't block page scrolling */
  pointer-events: auto;
}

@media (max-width: 420px) {
  .deal-card {
    /* Keep cards responsive on small screens but capped */
    width: min(92vw, 320px);
    min-width: 260px;
    max-width: 320px;
    min-height: 300px !important; /* Consistent height for ALL cards */
  }
}

@media (max-width: 360px) {
  .deal-card {
    width: min(94vw, 300px);
    min-width: 240px;
    max-width: 300px;
    min-height: 300px !important; /* Consistent height for ALL cards */
  }
}

/* Desktop cards (match Discovery desktop width) - keep same size as discovery at all screen sizes */
@media (min-width: 600px) {
  .deal-card {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
  }
}

@media (min-width: 768px) {
  .deal-card {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
  }
}

@media (min-width: 860px) {
  .deal-card {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
  }
}

@media (min-width: 1000px) {
  .deal-card {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
  }
}

@media (min-width: 1443px) {
  .deal-card {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
  }
}

/* Outer ambient glow - REMOVED for cleaner look */
.deal-card::before {
  display: none; /* Remove gradients */
}

/* Inner rim glow / stroke - REMOVED for cleaner look */
.deal-card::after {
  display: none; /* Remove gradients */
}

/* Hero photo - on right side of card */
.deal-media {
  position: relative;
  width: 140px !important;
  height: 100% !important;
  min-height: 300px !important; /* Match card min-height for consistency */
  flex-shrink: 0;
  z-index: 0;
  overflow: hidden;
  align-self: stretch; /* Ensure media fills card height */
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.deal-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: translateZ(0);
  filter: contrast(1.05) saturate(1.05);
  will-change: transform;
  backface-visibility: hidden;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: block !important;
}

/* Color grading / overlays - removed for side-by-side layout */
.deal-media::before {
  display: none;
}

/* Extra bottom-right "light bloom" - REMOVED */
.deal-media::after {
  display: none; /* Remove bloom effect */
}

/* Pills / badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px; /* Reduced padding */
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); /* Simplified - no gradient */
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  will-change: backdrop-filter;
  box-shadow: none; /* No shadow */
  line-height: 1;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700; /* Reduced from 800 */
  font-size: 12px;
  position: absolute;
  z-index: 4;
}

.badge.hot {
  left: 22px;
  top: 18px;
  padding: 6px 12px; /* Reduced padding for muted look */
  font-weight: 700; /* Reduced from 800 */
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: rgba(239, 68, 68, 0.2); /* Muted - no gradient */
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: none; /* No shadow */
  font-size: 11px; /* Slightly smaller */
}

.badge.cat {
  position: absolute;
  top: 18px;
  right: 22px;
  /* Match the smaller "additional category" pill style */
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.55rem;
  font-weight: 500;
  line-height: 1.2;
  gap: 4px;
  letter-spacing: normal;
  text-transform: none;
  background: rgba(0, 31, 63, 0.85);
  border-color: rgba(255, 255, 255, 0.20);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
}

/* Make the primary category pill match the small stacked pills (no extra height/spacing from the icon). */
.badge.cat svg.icon {
  display: none !important;
}

/* Keep the 6-category stack visually symmetric: remove the extra vertical gap between the top category pill and the next. */
.additional-categories-pills {
  top: 42px !important;
}

/* Discovery results template renders a `.distance-badge` pill inside `.deal-media`.
   Without styling it can appear "missing" even when `distance_miles` is present. */
.distance-badge {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 31, 63, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
  pointer-events: none;
}

.distance-badge svg {
  display: block;
}

.additional-categories-pills .pill,
.additional-categories-pills .additional-category {
  /* `.pill` is position:absolute by default (used for top-level badges).
     Additional category pills must stack, so force them back into normal flow. */
  position: static !important;
}

.additional-categories-pills {
  /* Template sets this inline too, but ensure consistent stacking */
  display: flex;
  flex-direction: column;
}

.pill-ico {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

/* Content layout - on left side */
.content {
  position: relative;
  flex: 1;
  z-index: 4;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0; /* Allow text truncation */
}

/* CRITICAL OVERRIDE: Ensure deal-card content is ALWAYS visible */
.deal-card > .content {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 2 !important;
  position: relative !important;
  flex-direction: column !important;
  min-height: 100% !important;
  height: 100% !important; /* Fill card height completely */
  width: auto !important;
  overflow-y: auto !important; /* Allow scrolling if content exceeds card height */
  overflow-x: visible !important; /* Allow titles to overlap image */
  overflow: visible !important;
  pointer-events: auto !important;
}

.deal-info {
  display: none !important; /* Ensure info popup is hidden by default */
  position: absolute !important;
  inset: auto !important; /* Don't cover when hidden */
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.deal-info.show,
.deal-card.details-open .deal-info {
  display: block !important; /* Show when toggled */
  position: absolute !important;
  inset: 0 !important; /* Cover card when shown */
  width: auto !important;
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  pointer-events: auto !important;
  z-index: 20 !important; /* Above content */
  visibility: visible !important;
  opacity: 1 !important;
  box-sizing: border-box !important;
}

/* CRITICAL: Ensure content is ALWAYS visible - highest priority rules */
.deal-card .content,
.deal-card > .content,
article.deal-card .content,
article.deal-card > .content,
.deal-card:not(.details-open) .content,
.deal-card:not(.details-open) > .content,
article.deal-card:not(.details-open) .content,
article.deal-card:not(.details-open) > .content {
  display: flex !important; /* Always show content */
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 2 !important; /* Above card background, below info popup */
  position: relative !important;
  flex-direction: column !important;
  min-height: 100% !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

/* Force all content children to be visible */
.deal-card .content > * {
  visibility: visible !important;
  opacity: 1 !important;
}

.deal-card .content > div {
  visibility: visible !important;
  opacity: 1 !important;
}

.deal-card .content h4,
.deal-card .content p,
.deal-card .content span {
  visibility: visible !important;
  opacity: 1 !important;
  color: rgba(255, 255, 255, 0.95) !important; /* White text */
}

/* Allow titles to wrap to multiple lines */
.deal-card .content h4 {
  position: relative !important;
  z-index: 15 !important;
  overflow: visible !important;
  /* Allow text to wrap to multiple lines */
  word-break: break-word !important;
  white-space: normal !important;
  font-size: 12px !important;
}

/* Ensure title container allows wrapping */
.deal-card .content > div:first-child {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  z-index: 15 !important;
}

/* Allow first word to overlap image */
.deal-card .content h4::first-word {
  position: relative;
  z-index: 16;
  overflow: visible;
}

.deal-card .content > div:first-child {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.deal-card {
  overflow: visible !important; /* Allow content to overflow card boundaries */
}

.deal-media {
  position: relative !important;
  z-index: 1 !important; /* Below title text */
}

/* Force all card titles to wrap to multiple lines - HIGHEST PRIORITY */
.deal-card .content h4,
.deal-card .content > div:first-child h4,
.deal-card h4,
article.deal-card .content h4,
article.deal-card h4 {
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: normal !important;
  overflow: visible !important;
  word-break: break-word !important;
  position: relative !important;
  z-index: 15 !important;
}

/* Override ALL media queries for mobile - allow wrapping */
@media (max-width: 1442px) {
  .deal-card .content h4,
  .deal-card .content > div:first-child h4,
  .deal-card h4,
  .deal-card .deal-title,
  .deal-card .title,
  article.deal-card .content h4,
  article.deal-card h4 {
    font-size: 12px !important;
    word-break: break-word !important;
    white-space: normal !important;
  }
}

@media (min-width: 598px) {
  .deal-card .content h4,
  .deal-card .content > div:first-child h4,
  .deal-card h4,
  .deal-card .deal-title,
  .deal-card .title,
  article.deal-card .content h4,
  article.deal-card h4 {
    font-size: 12px !important;
    word-break: break-word !important;
    white-space: normal !important;
  }
}

@media (min-width: 1443px) {
  .deal-card .content h4,
  .deal-card .content > div:first-child h4,
  .deal-card h4,
  .deal-card .deal-title,
  .deal-card .title,
  article.deal-card .content h4,
  article.deal-card h4 {
    font-size: 12px !important;
    word-break: break-word !important;
    white-space: normal !important;
  }
}

/* Ensure stars are yellow */
.deal-card .content span[style*="#fbbf24"],
.deal-card .content span[style*="color: #fbbf24"] {
  color: #fbbf24 !important; /* Yellow stars */
}

/* Ensure deal-info doesn't cover content when hidden */
.deal-card:not(.details-open) .deal-info {
  display: none !important;
  pointer-events: none !important;
  z-index: -1 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  position: absolute !important;
  inset: auto !important; /* Remove inset when hidden so it doesn't cover */
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* CRITICAL: Ensure content is visible even when deal-info exists */
.deal-card:not(.details-open) .content,
.deal-card:not(.details-open) > .content {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 2 !important;
  position: relative !important;
}

/* When info is open, content should still be visible behind the overlay */
.deal-card.details-open .content {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1 !important;
}

/* Discovery page - use same rules as home, no special overrides */

.copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateZ(0);
  contain: layout style;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* Ensure deal-info copy container doesn't overflow */
.deal-info .copy {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Constrain pills in deal-info to prevent overflow */
.deal-info .copy > div > div {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

/* Ensure deal-info container constrains content */
.deal-info {
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.deal-info .copy > div {
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.title,
.deal-title {
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 900;
  color: #ffffff !important;
  /* Pure white text with ultra-thin black outline to avoid letter distortion */
  -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.9);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.3px;
  margin: 0;
  line-height: 1.2;
}

/* Home 2026 cards: lock title/subtitle sizes to match Discover exactly.
   This intentionally overrides global h3/p downscaling in small-screen media queries. */
.deal-card .deal-title,
.deal-card .title,
.deal-card h4,
.deal-card .content h4 {
  font-size: 12px !important; /* Fixed size for mobile */
  font-weight: 900 !important;
  letter-spacing: -0.3px !important;
  line-height: 1.2 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  /* Allow text to wrap to multiple lines */
  overflow: visible !important;
  word-break: break-word !important;
  white-space: normal !important;
}

/* Much smaller titles in info popup */
.deal-card .deal-info .deal-title,
.deal-card .deal-info .title,
.deal-card .deal-info h3 {
  font-size: clamp(11px, 1.3vw, 14px) !important;
  font-weight: 800 !important;
  margin-bottom: 4px !important;
}

/* Smaller subtitle in info popup */
.deal-card .deal-info .deal-sub,
.deal-card .deal-info .subtitle,
.deal-card .deal-info p {
  font-size: clamp(10px, 1.2vw, 12px) !important;
  font-weight: 600 !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

.deal-card .deal-sub,
.deal-card .subtitle {
  font-size: clamp(14px, 1.8vw, 20px) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.mobile-home-card-title-overlay,
.mobile-home-deal-card .mobile-home-card-title-overlay,
.mobile-home-pro-card .mobile-home-card-title-overlay,
.mobile-home-org-card .mobile-home-card-title-overlay,
.mobile-home-card-info-overlay .mobile-home-card-title-overlay {
  font-weight: 900 !important;
  font-size: 12px !important; /* Fixed small size for mobile */
  letter-spacing: -0.3px !important;
  color: #ffffff !important;
  margin: 0 0 8px 0 !important;
  /* Allow first word to overlap image */
  overflow: visible !important;
  position: relative;
  z-index: 3;
  word-break: keep-all;
  white-space: normal;
  /* Pure white text with ultra-thin black outline to avoid letter distortion */
  -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.9) !important;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.2) !important;
  line-height: 1.2 !important;
}

.subtitle,
.deal-sub {
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 600;
  color: #ffffff !important;
  /* Pure white text with ultra-thin black outline to avoid letter distortion */
  -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.9);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 1px 4px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2);
  margin: 0;
  line-height: 1.3;
}

/* Fix "squares/triangles" rendering artifacts on iOS Safari:
   Disable -webkit-text-stroke and use a shadow-outline instead. */
@supports (-webkit-touch-callout: none) {
  .deal-card .deal-title,
  .deal-card .title,
  .deal-card .deal-sub,
  .deal-card .subtitle,
  .deal-title,
  .title,
  .deal-sub,
  .subtitle {
    -webkit-text-stroke: 0 !important;
    /* 4-way micro-outline + existing depth shadows (keeps look, avoids artifacts) */
    text-shadow:
      -0.6px 0 rgba(0, 0, 0, 0.90),
       0.6px 0 rgba(0, 0, 0, 0.90),
       0 -0.6px rgba(0, 0, 0, 0.90),
       0  0.6px rgba(0, 0, 0, 0.90),
      0 0 1px rgba(0, 0, 0, 0.9),
      0 2px 8px rgba(0, 0, 0, 0.5),
      0 4px 16px rgba(0, 0, 0, 0.3),
      0 8px 32px rgba(0, 0, 0, 0.2) !important;
  }
}

/* User request: remove shadows/backplate feel behind card title/subtitle.
   Keep typography and stroke intact; just make the text render clean. */
.deal-card .deal-title,
.deal-card .title,
.deal-card .deal-sub,
.deal-card .subtitle,
.mobile-home-card-title-overlay,
.mobile-home-card-subtitle-overlay {
  text-shadow: none !important;
  background: transparent !important;
}

/* iOS Safari: text-stroke is disabled in the existing iOS block (to avoid artifacts),
   so keep a *minimal* micro-outline via text-shadow (no glow/drop shadow). */
@supports (-webkit-touch-callout: none) {
  .deal-card .deal-title,
  .deal-card .title,
  .deal-card .deal-sub,
  .deal-card .subtitle,
  .mobile-home-card-title-overlay,
  .mobile-home-card-subtitle-overlay {
    text-shadow:
      -0.6px 0 rgba(0, 0, 0, 0.92),
       0.6px 0 rgba(0, 0, 0, 0.92),
       0 -0.6px rgba(0, 0, 0, 0.92),
       0  0.6px rgba(0, 0, 0, 0.92) !important;
  }
}

.mobile-home-card-subtitle-overlay {
  color: #ffffff !important;
  font-size: clamp(14px, 1.8vw, 20px) !important;
  font-weight: 700 !important;
  margin: 0 0 8px 0;
  /* Pure white text with ultra-thin black outline to avoid letter distortion */
  -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.9) !important;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 1px 4px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2) !important;
  line-height: 1.3 !important;
}

.mobile-home-card-meta-overlay {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.mobile-home-meta-overlay-item,
.mobile-home-deal-card .mobile-home-meta-overlay-item,
.mobile-home-pro-card .mobile-home-meta-overlay-item,
.mobile-home-org-card .mobile-home-meta-overlay-item,
.mobile-home-card-meta-overlay .mobile-home-meta-overlay-item,
.mobile-home-card-info-overlay .mobile-home-meta-overlay-item {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: clamp(14px, 1.8vw, 20px) !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
  /* Pill-style backing to keep text readable on white/light images */
  width: fit-content !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.42), rgba(20, 24, 32, 0.30)) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.9) !important;
  /* Ensure no distortion */
  transform: none !important;
  clip-path: none !important;
}

.mobile-home-meta-overlay-item span,
.mobile-home-meta-overlay-item > span:not(.mobile-home-meta-overlay-icon),
.mobile-home-deal-card .mobile-home-meta-overlay-item span,
.mobile-home-pro-card .mobile-home-meta-overlay-item span,
.mobile-home-org-card .mobile-home-meta-overlay-item span,
.mobile-home-card-meta-overlay .mobile-home-meta-overlay-item span,
.mobile-home-card-info-overlay .mobile-home-meta-overlay-item span {
  font-size: clamp(14px, 1.8vw, 20px) !important;
  font-weight: 700 !important;
}

.meta,
.deal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  transform: translateZ(0);
  contain: layout style;
}

/* Deal cards: reorder pills when details open - price on left, location on right */
.deal-card.details-open .deal-meta-reorder {
  flex-direction: row-reverse;
}

/* Hide category pill when details is open on non-deal cards (home + discovery). */
.deal-card.details-open:not(:has(.deal-title-pill)) .badge.cat {
  display: none !important;
}

/* Hide additional category pills when details is open (home + discovery). */
.deal-card.details-open .additional-categories-pills {
  display: none !important;
}

/* Home: avoid distance pill clashing with the multi-category stack.
   If a card has multiple categories, hide distance by default and show it when Details is opened
   (Details hides category pills, so distance has room). */
body:not(.discovery-page) .deal-card:has(.additional-categories-pills):not(.details-open) .card-distance-pill {
  display: none !important;
}

body:not(.discovery-page) .deal-card.details-open .card-distance-pill {
  display: flex !important;
}

/* Home: on larger screens, keep DEAL-card (special offer) pills locked to the same small size.
   These deal cards are identified by having a `.deal-title-pill` inside. */
@media (min-width: 860px) {
  /* Keep all pills small - locked to mobile sizes */
  .deal-card:has(.deal-title-pill) .deal-location-pill,
  .deal-card:has(.deal-title-pill) .deal-title-pill,
  .deal-card:has(.deal-title-pill) .deal-professional-pill,
  .deal-card:has(.deal-title-pill) .card-distance-pill {
    padding: 4px 8px !important;
    border-radius: 12px !important;
  }

  .deal-card:has(.deal-title-pill) .deal-location-pill span,
  .deal-card:has(.deal-title-pill) .deal-title-pill span,
  .deal-card:has(.deal-title-pill) .deal-professional-pill span,
  .deal-card:has(.deal-title-pill) .card-distance-pill span {
    font-size: 0.55rem !important;
    line-height: 1.2 !important;
  }

  .deal-card:has(.deal-title-pill) .deal-location-pill svg,
  .deal-card:has(.deal-title-pill) .deal-professional-pill svg,
  .deal-card:has(.deal-title-pill) .card-distance-pill svg {
    width: 10px !important;
    height: 10px !important;
  }

  /* The services list pills shown when Details is open should also stay small on desktop. */
  .deal-card:has(.deal-title-pill) .deal-details-pills-absolute .pill {
    padding: 3px 6px !important;
    border-radius: 8px !important;
    font-size: 0.55rem !important;
    line-height: 1.2 !important;
  }

  /* Ensure all pills stay at mobile sizes */
  .pill,
  .deal-card .pill,
  .deal-card .pill.location {
    font-size: 12px !important;
    padding: 8px 12px !important;
  }

  .deal-card .pill.pricing {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }
}

/* Discovery: stack service price above rating (price is its own mini pill) */
.deal-meta .price-rating-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.pill.pricing.price-pill {
  font-size: 11px;
  padding: 6px 10px;
}

.pill.location {
  position: static;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  /* Darker / greyer glass so white text stays readable even on light backgrounds */
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.42), rgba(20, 24, 32, 0.30));
  border-color: rgba(255, 255, 255, 0.20);
  /* No halo behind pills */
  box-shadow: none;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  contain: layout style paint;
}

.pill.pricing {
  position: static;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  /* Darker / greyer glass so white text stays readable even on light backgrounds */
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.42), rgba(20, 24, 32, 0.30));
  border-color: rgba(255, 255, 255, 0.20);
  /* No halo behind pills */
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  contain: layout style paint;
}

.price {
  font-size: 22px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.30);
  letter-spacing: -0.3px;
}

.divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.25);
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

.star {
  color: #ffc107;
  font-size: 16px;
  opacity: 0.95;
}

.muted {
  font-size: 12px;
  opacity: 0.75;
}

/* Buttons - at bottom of content area */
.deal-card .content {
  padding-bottom: 16px !important;
  min-height: 100% !important; /* Ensure content fills card height */
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important; /* Take up available space */
  justify-content: space-between !important; /* Push buttons to bottom */
}

.deal-actions {
  position: relative !important;
  z-index: 5 !important;
  display: flex !important;
  margin-top: auto !important; /* Push to bottom */
  gap: 4px !important;
  padding: 0 !important;
  opacity: 1 !important; /* Always visible */
  width: 100% !important;
}

/* Ensure buttons are extremely small by default */
.deal-card .deal-actions .btn {
  padding: 2px 4px !important;
  font-size: 8px !important;
  min-height: auto !important;
  line-height: 1.1 !important;
  height: auto !important;
  max-height: 20px !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

.deal-card .deal-actions .btn.btn--primary {
  color: rgba(255, 255, 255, 0.95) !important;
}

.deal-card .deal-actions {
  gap: 4px !important;
  padding-top: 4px !important;
  margin-top: auto !important;
}
  visibility: visible; /* Always visible */
  transform: translateZ(0);
  will-change: transform;
  contain: layout style paint;
}

.btn--primary,
.btn.primary {
  flex: 1;
  padding: 12px 16px; /* Slightly reduced */
  font-size: 13px;
  font-weight: 700; /* Reduced from 900 */
  color: #ffffff;
  background: var(--blue-accent); /* Solid blue - no gradient */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadowSoft); /* Reduced shadow */
  position: relative;
  overflow: hidden;
  border-radius: 12px; /* Rounded corners */
}

.btn--ghost,
.btn.secondary {
  flex: 1;
  padding: 12px 16px; /* Slightly reduced */
  font-size: 13px;
  font-weight: 700; /* Reduced from 900 */
  color: rgba(255, 255, 255, 0.9); /* White text for dark theme */
  background: rgba(255, 255, 255, 0.1); /* Subtle background - no gradient */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none; /* No shadow */
  position: relative;
  overflow: hidden;
  border-radius: 12px; /* Rounded corners */
}

.glint {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.22) 52%,
    rgba(255, 255, 255, 0) 70%);
  transform: rotate(-6deg) translateX(-6%);
  opacity: 0.85;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Small helper spacing */
.spacer {
  height: 10px;
}

/* Responsive adjustments */
@media (max-width: 420px) {
  .deal-card {
    border-radius: 24px;
    min-width: 234px; /* Reduced by 10% from 260px */
    max-width: 270px; /* Reduced by 10% from 300px */
    min-height: 300px !important; /* Consistent height for ALL cards */
  }
  
  .title,
  .deal-title {
    font-size: 24px;
  }
  
  .mobile-home-card-title-overlay {
    font-size: clamp(18px, 2.2vw, 24px) !important;
  }
  
  .mobile-home-meta-overlay-item {
    font-size: clamp(14px, 1.8vw, 20px) !important;
  }
  
  .pill {
    padding: 8px 12px;
    font-size: 11px;
  }
  
  .btn--primary,
  .btn.primary,
  .btn--ghost,
  .btn.secondary {
    padding: 12px 14px;
    font-size: 12px;
  }
}

/* Small screens - 450px and below */
@media (max-width: 450px) {
  .screen {
    padding: calc(10px + env(safe-area-inset-top)) 9px calc(76px + env(safe-area-inset-bottom)) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }
  
  .topbar {
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 9px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .cityBtn {
    padding: 8px 9px;
    max-width: 48vw;
  }
  
  .seg {
    margin: 8px 8px 10px;
    padding: 5px;
    gap: 5px;
    max-width: calc(100% - 18px);
    box-sizing: border-box;
  }
}

/* Fix for 402px and below - smooth transition before 400px */
@media (max-width: 402px) {
  .screen {
    padding: calc(9px + env(safe-area-inset-top)) 7px calc(75px + env(safe-area-inset-bottom)) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: calc(75px + env(safe-area-inset-bottom)) !important;
  }
  
  .topbar {
    gap: 7px;
    margin-bottom: 9px;
    padding: 0 7px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .cityBtn {
    padding: 7.5px 8.5px;
    max-width: 47vw;
  }
  
  .cityBtn span {
    font-size: 10.5px;
  }
  
  .seg {
    margin: 7px 7px 9px;
    padding: 4.5px;
    gap: 4.5px;
    max-width: calc(100% - 14px);
    box-sizing: border-box;
  }
  
  .seg button {
    padding: 8.5px 9.5px;
    font-size: 10.5px;
  }
  
  .hero {
    border-radius: calc(var(--r) + 1.5px);
  }
  
  .heroInner {
    padding: 11px;
    gap: 7px;
  }
  
  .panel {
    margin-top: 7px;
  }
  
  .panelBody {
    padding: 0 9px 9px;
    gap: 7px;
  }
}

@media (max-width: 400px) {
  .screen {
    padding: calc(10px + env(safe-area-inset-top)) 8px calc(76px + env(safe-area-inset-bottom)) !important; /* Extra bottom padding for nav */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important; /* Ensure nav doesn't overlap */
  }
  
  .topbar {
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 8px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .logo {
    font-size: 14px;
  }
  
  .cityBtn {
    padding: 8px 9px;
    max-width: 48vw;
  }
  
  .cityBtn span {
    font-size: 11px;
  }
  
  .iconbtn {
    width: 38px;
    height: 38px;
  }
  
  .icon {
    width: 16px;
    height: 16px;
  }
  
  .seg {
    margin: 8px 8px 10px;
    padding: 5px;
    gap: 5px;
    max-width: calc(100% - 16px);
    box-sizing: border-box;
  }
  
  .seg button {
    padding: 9px 10px;
    font-size: 11px;
  }
  
  .hero {
    border-radius: calc(var(--r) + 2px);
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .heroInner {
    padding: 12px;
    gap: 8px;
  }
  
  .eyebrow {
    padding: 7px 9px;
    font-size: 11px;
  }
  
  .heroTitle {
    font-size: 16px;
  }
  
  .heroSub {
    font-size: 11.5px;
  }
  
  .panel {
    border-radius: 18px;
    margin-top: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .panelSectionTitle {
    padding: 10px 10px 6px;
    font-size: 12px;
  }
  
  .panelBody {
    padding: 0 10px 10px;
    gap: 8px;
  }
  
  .field {
    padding: 7px 9px;
    border-radius: 14px;
    gap: 6px;
  }
  
  .field-small {
    padding: 6px 8px;
    gap: 5px;
  }
  
  .field input,
  .field select {
    font-size: 11px;
  }
  
  .btn {
    padding: 11px 12px;
    font-size: 11px;
  }
  
  .pinbtn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex-shrink: 0;
  }
  
  .cityBtnPanel {
    padding: 8px 9px;
    gap: 6px;
    min-width: 0;
  }
  
  .cityBtnPanel span {
    font-size: 11px;
  }
  
  .locRow {
    gap: 8px;
  }
  
  .sectionHead {
    margin: 12px 8px 8px;
    gap: 10px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .sectionHead h2 {
    font-size: 13px;
  }
  
  .viewall {
    padding: 8px 9px;
    font-size: 11px;
  }
  
  .chips {
    padding: 5px 8px 2px;
    gap: 8px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .chip {
    padding: 9px 11px;
    font-size: 11px;
  }
  
  .mobile-home-section-2026 {
    padding: 0 8px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .mobile-home-scroll-row {
    /* Match the consistent row inset on smaller screens */
    padding: 2px 12px 10px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .deal-card {
    min-width: 240px;
    border-radius: 20px;
  }
  
  .title,
  .deal-title {
    font-size: clamp(18px, 2.2vw, 24px);
  }
  
  .mobile-home-card-title-overlay {
    font-size: clamp(18px, 2.2vw, 24px) !important;
  }
  
  .subtitle,
  .deal-sub {
    font-size: clamp(14px, 1.8vw, 20px);
  }
  
  .mobile-home-meta-overlay-item {
    font-size: clamp(14px, 1.8vw, 20px) !important;
  }
  
  .content {
    padding: 0 18px 18px;
    gap: 10px;
  }
  
  .deal-info {
    padding: 0 18px 90px;
    gap: 10px;
  }
  
  .deal-actions {
    padding: 0 18px 18px;
  }
  
  .pill {
    padding: 7px 10px;
    font-size: 10px;
  }
  
  .price {
    font-size: 20px;
  }
  
  .btn--primary,
  .btn.primary,
  .btn--ghost,
  .btn.secondary {
    padding: 11px 13px;
    font-size: 11px;
  }
}

@media (min-width: 860px) {
  .heroInner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 22px;
    align-items: stretch;
    min-height: 280px;
  }
  
  .panel {
    margin-top: 0;
  }
}

/* Notification Panel */
.notification-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 80px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: none;
  flex-direction: column;
}

.notification-panel.active {
  display: flex;
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
}

.notification-panel-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #0b1430;
}

.notification-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #0b1430;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-panel-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
}

.notification-item {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.notification-item.unread {
  background: rgba(37, 99, 235, 0.04);
}

.notification-title {
  font-size: 14px;
  font-weight: 800;
  color: #0b1430;
  margin-bottom: 4px;
}

.notification-message {
  font-size: 13px;
  color: rgba(11, 20, 48, 0.75);
}

.notification-loading,
.notification-empty,
.notification-error {
  padding: 40px 20px;
  text-align: center;
  color: rgba(11, 20, 48, 0.6);
  font-size: 14px;
}

@media (max-width: 400px) {
  .notification-panel {
    bottom: 70px;
  }
}

/* Extra small screens - 380px and below */
@media (max-width: 380px) {
  .screen {
    padding: calc(8px + env(safe-area-inset-top)) 6px calc(74px + env(safe-area-inset-bottom)) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: calc(74px + env(safe-area-inset-bottom)) !important;
  }
  
  .topbar {
    gap: 6px;
    margin-bottom: 8px;
    padding: 0 6px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .logo {
    font-size: 13px;
  }
  
  .cityBtn {
    padding: 7px 8px;
    max-width: 45vw;
    font-size: 10px;
  }
  
  .cityBtn span {
    font-size: 10px;
  }
  
  .iconbtn {
    width: 36px;
    height: 36px;
  }
  
  .icon {
    width: 15px;
    height: 15px;
  }
  
  .seg {
    margin: 6px 6px 8px;
    padding: 4px;
    gap: 4px;
    max-width: calc(100% - 12px);
    box-sizing: border-box;
  }
  
  .seg button {
    padding: 8px 9px;
    font-size: 10px;
  }
  
  .hero {
    border-radius: calc(var(--r) + 1px);
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .heroInner {
    padding: 10px;
    gap: 6px;
  }
  
  .eyebrow {
    padding: 6px 8px;
    font-size: 10px;
  }
  
  .heroTitle {
    font-size: 15px;
  }
  
  .heroSub {
    font-size: 11px;
  }
  
  .panel {
    border-radius: 16px;
    margin-top: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .panelSectionTitle {
    padding: 8px 8px 5px;
    font-size: 11px;
  }
  
  .panelBody {
    padding: 0 8px 8px;
    gap: 6px;
  }
  
  .field {
    padding: 6px 8px;
    font-size: 11px;
  }
  
  .fieldLabel {
    font-size: 10px;
  }
  
  .deal-card {
    flex: 0 0 98%;
    min-width: 198px; /* Reduced by 10% from 220px */
    max-width: 270px; /* Reduced by 10% from 300px */
    min-height: 300px !important; /* Consistent height for ALL cards */
  }
  
  .category-item {
    min-width: 80px;
    padding: 8px 10px;
    font-size: 11px;
  }
  
  .category-icon {
    width: 32px;
    height: 32px;
  }
  
  .avatar-item {
    min-width: 60px;
    /* Allow vertical page scroll when touching avatar items */
    touch-action: pan-y !important; /* Prioritize vertical scrolling */
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto !important; /* Allow vertical scroll to propagate */
  }
  
  .avatar-photo {
    width: 50px;
    height: 50px;
  }
  
  .notification-panel {
    bottom: 68px;
    max-height: calc(100vh - 68px);
  }
  
  /* Ensure all containers respect viewport */
  .cards-scroll,
  .categories-scroll,
  .avatars-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    /* Allow vertical page scroll while horizontal card scroll works */
    touch-action: pan-y !important; /* Prioritize vertical scrolling */
    /* Allow vertical scroll to propagate to page */
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto !important; /* Allow vertical scroll to propagate to page */
  }
  
  /* Text sizing adjustments */
  h1, .h1 {
    font-size: 18px;
  }
  
  h2, .h2 {
    font-size: 16px;
  }
  
  h3, .h3 {
    font-size: 14px;
  }
  
  p, .p {
    font-size: 12px;
  }
  
  /* Button adjustments */
  button, .btn {
    padding: 8px 12px;
    font-size: 11px;
  }
  
  /* Input adjustments */
  input, select, textarea {
    font-size: 11px;
    padding: 8px;
  }

/* Very small screens - 320px and below */
@media (max-width: 320px) {
  .screen {
    padding: calc(6px + env(safe-area-inset-top)) 5px calc(72px + env(safe-area-inset-bottom)) !important;
    padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }
  
  .topbar {
    gap: 5px;
    margin-bottom: 6px;
    padding: 0 5px;
  }
  
  .logo {
    font-size: 12px;
  }
  
  .cityBtn {
    padding: 6px 7px;
    max-width: 42vw;
    font-size: 9px;
  }
  
  .cityBtn span {
    font-size: 9px;
  }
  
  .iconbtn {
    width: 34px;
    height: 34px;
  }
  
  .icon {
    width: 14px;
    height: 14px;
  }
  
  .seg {
    margin: 5px 5px 6px;
    padding: 3px;
    gap: 3px;
    max-width: calc(100% - 10px);
  }
  
  .seg button {
    padding: 7px 8px;
    font-size: 9px;
  }
  
  .heroInner {
    padding: 8px;
    gap: 5px;
  }
  
  .eyebrow {
    padding: 5px 7px;
    font-size: 9px;
  }
  
  .heroTitle {
    font-size: 14px;
  }
  
  .heroSub {
    font-size: 10px;
  }
  
  .panel {
    margin-top: 5px;
    border-radius: 14px;
  }
  
  .panelSectionTitle {
    padding: 7px 7px 4px;
    font-size: 10px;
  }
  
  .panelBody {
    padding: 0 7px 7px;
    gap: 5px;
  }
  
  .field {
    padding: 5px 7px;
    font-size: 10px;
  }
  
  .fieldLabel {
    font-size: 9px;
  }
  
  .deal-card {
    flex: 0 0 99%;
    min-width: 180px; /* Reduced by 10% from 200px */
    max-width: 270px; /* Reduced by 10% from 300px */
    min-height: 300px !important; /* Consistent height for ALL cards */
  }
  
  .category-item {
    min-width: 70px;
    padding: 7px 9px;
    font-size: 10px;
  }
  
  .category-icon {
    width: 28px;
    height: 28px;
  }
  
  .avatar-photo {
    width: 45px;
    height: 45px;
  }
  
  h1, .h1 { font-size: 16px; }
  h2, .h2 { font-size: 14px; }
  h3, .h3 { font-size: 12px; }
  p, .p { font-size: 11px; }
  
  button, .btn {
    padding: 7px 10px;
    font-size: 10px;
  }
  
  input, select, textarea {
    font-size: 10px;
    padding: 7px;
  }
}

/* Ultra small screens - 280px and below */
@media (max-width: 280px) {
  .screen {
    padding: calc(5px + env(safe-area-inset-top)) 4px calc(70px + env(safe-area-inset-bottom)) !important;
    padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
  }
  
  .topbar {
    gap: 4px;
    margin-bottom: 5px;
    padding: 0 4px;
  }
  
  .logo {
    font-size: 11px;
  }
  
  .cityBtn {
    padding: 5px 6px;
    max-width: 40vw;
    font-size: 8px;
  }
  
  .cityBtn span {
    font-size: 8px;
  }
  
  .iconbtn {
    width: 32px;
    height: 32px;
  }
  
  .icon {
    width: 13px;
    height: 13px;
  }
  
  .seg {
    margin: 4px 4px 5px;
    padding: 2px;
    gap: 2px;
    max-width: calc(100% - 8px);
  }
  
  .seg button {
    padding: 6px 7px;
    font-size: 8px;
  }
  
  .heroInner {
    padding: 6px;
    gap: 4px;
  }
  
  .eyebrow {
    padding: 4px 6px;
    font-size: 8px;
  }
  
  .heroTitle {
    font-size: 13px;
  }
  
  .heroSub {
    font-size: 9px;
  }
  
  .panel {
    margin-top: 4px;
    border-radius: 12px;
  }
  
  .panelSectionTitle {
    padding: 6px 6px 3px;
    font-size: 9px;
  }
  
  .panelBody {
    padding: 0 6px 6px;
    gap: 4px;
  }
  
  .field {
    padding: 4px 6px;
    font-size: 9px;
  }
  
  .fieldLabel {
    font-size: 8px;
  }
  
  .deal-card {
    flex: 0 0 100%;
    min-width: 162px; /* Reduced by 10% from 180px */
    max-width: 270px; /* Reduced by 10% from 300px */
    min-height: 300px !important; /* Consistent height for ALL cards */
  }
  
  .category-item {
    min-width: 60px;
    padding: 6px 8px;
    font-size: 9px;
  }
  
  .category-icon {
    width: 24px;
    height: 24px;
  }
  
  .avatar-photo {
    width: 40px;
    height: 40px;
  }
  
  h1, .h1 { font-size: 14px; }
  h2, .h2 { font-size: 12px; }
  h3, .h3 { font-size: 10px; }
  p, .p { font-size: 10px; }
  
  button, .btn {
    padding: 6px 9px;
    font-size: 9px;
  }
  
  input, select, textarea {
    font-size: 9px;
    padding: 6px;
  }
}

/* Minimum screens - 200px and below */
@media (max-width: 200px) {
  .screen {
    padding: calc(4px + env(safe-area-inset-top)) 3px calc(68px + env(safe-area-inset-bottom)) !important;
    padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important;
  }
  
  .topbar {
    gap: 3px;
    margin-bottom: 4px;
    padding: 0 3px;
  }
  
  .logo {
    font-size: 10px;
  }
  
  .cityBtn {
    padding: 4px 5px;
    max-width: 38vw;
    font-size: 7px;
  }
  
  .cityBtn span {
    font-size: 7px;
  }
  
  .iconbtn {
    width: 30px;
    height: 30px;
  }
  
  .icon {
    width: 12px;
    height: 12px;
  }
  
  .seg {
    margin: 3px 3px 4px;
    padding: 2px;
    gap: 2px;
    max-width: calc(100% - 6px);
  }
  
  .seg button {
    padding: 5px 6px;
    font-size: 7px;
  }
  
  .heroInner {
    padding: 5px;
    gap: 3px;
  }
  
  .eyebrow {
    padding: 3px 5px;
    font-size: 7px;
  }
  
  .heroTitle {
    font-size: 12px;
  }
  
  .heroSub {
    font-size: 8px;
  }
  
  .panel {
    margin-top: 3px;
    border-radius: 10px;
  }
  
  .panelSectionTitle {
    padding: 5px 5px 2px;
    font-size: 8px;
  }
  
  .panelBody {
    padding: 0 5px 5px;
    gap: 3px;
  }
  
  .field {
    padding: 3px 5px;
    font-size: 8px;
  }
  
  .fieldLabel {
    font-size: 7px;
  }
  
  .deal-card {
    flex: 0 0 100%;
    min-width: 144px; /* Reduced by 10% from 160px */
    max-width: 270px; /* Reduced by 10% from 300px */
    min-height: 300px !important; /* Consistent height for ALL cards */
  }
  
  .category-item {
    min-width: 50px;
    padding: 5px 7px;
    font-size: 8px;
  }
  
  .category-icon {
    width: 20px;
    height: 20px;
  }
  
  .avatar-photo {
    width: 35px;
    height: 35px;
  }
  
  h1, .h1 { font-size: 12px; }
  h2, .h2 { font-size: 10px; }
  h3, .h3 { font-size: 8px; }
  p, .p { font-size: 9px; }
  
  button, .btn {
    padding: 5px 8px;
    font-size: 8px;
  }
  
  input, select, textarea {
    font-size: 8px;
    padding: 5px;
  }
}
  
  .topbar {
    gap: 6px;
    margin-bottom: 8px;
    padding: 0 6px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .logo {
    font-size: 13px;
  }
  
  .cityBtn {
    padding: 7px 8px;
    max-width: 45vw;
    font-size: 10px;
  }
  
  .cityBtn span {
    font-size: 10px;
  }
  
  .iconbtn {
    width: 36px;
    height: 36px;
  }
  
  .icon {
    width: 15px;
    height: 15px;
  }
  
  .seg {
    margin: 6px 6px 8px;
    padding: 4px;
    gap: 4px;
    max-width: calc(100% - 12px);
    box-sizing: border-box;
  }
  
  .seg button {
    padding: 8px 9px;
    font-size: 10px;
  }
  
  .hero {
    border-radius: calc(var(--r) + 1px);
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .heroInner {
    padding: 10px;
    gap: 6px;
  }
  
  .eyebrow {
    padding: 6px 8px;
    font-size: 10px;
  }
  
  .heroTitle {
    font-size: 15px;
  }
  
  .heroSub {
    font-size: 11px;
  }
  
  .panel {
    border-radius: 16px;
    margin-top: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .panelSectionTitle {
    padding: 8px 8px 5px;
    font-size: 11px;
  }
  
  .panelBody {
    padding: 0 8px 8px;
    gap: 6px;
  }
  
  .field {
    padding: 6px 8px;
    font-size: 11px;
  }
  
  .fieldLabel {
    font-size: 10px;
  }
  
  .deal-card {
    flex: 0 0 98%;
    min-width: 198px; /* Reduced by 10% from 220px */
    max-width: 270px; /* Reduced by 10% from 300px */
    min-height: 300px !important; /* Consistent height for ALL cards */
  }
  
  .category-item {
    min-width: 80px;
    padding: 8px 10px;
    font-size: 11px;
  }
  
  .category-icon {
    width: 32px;
    height: 32px;
  }
  
  .avatar-item {
    min-width: 60px;
    /* Allow vertical page scroll when touching avatar items */
    touch-action: pan-y !important; /* Prioritize vertical scrolling */
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto !important; /* Allow vertical scroll to propagate */
  }
  
  .avatar-photo {
    width: 50px;
    height: 50px;
  }
  
  .notification-panel {
    bottom: 68px;
    max-height: calc(100vh - 68px);
  }
  
  /* Ensure all containers respect viewport */
  .cards-scroll,
  .categories-scroll,
  .avatars-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    /* Allow vertical page scroll while horizontal card scroll works */
    touch-action: pan-y !important; /* Prioritize vertical scrolling */
    /* Allow vertical scroll to propagate to page */
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto !important; /* Allow vertical scroll to propagate to page */
  }
  
  /* Text sizing adjustments */
  h1, .h1 {
    font-size: 18px;
  }
  
  h2, .h2 {
    font-size: 16px;
  }
  
  h3, .h3 {
    font-size: 14px;
  }
  
  p, .p {
    font-size: 12px;
  }
  
  /* Button adjustments */
  button, .btn {
    padding: 8px 12px;
    font-size: 11px;
  }
  
  /* Input adjustments */
  input, select, textarea {
    font-size: 11px;
    padding: 8px;
  }
}

/* === Freeze mobile design at >=598px (keep the 597px look) === */
/* This prevents ALL scaling, layout changes, and text growth after 597px */
/* Maintaining the sleek mobile look across all screen sizes - no ugly transitions */
@media (min-width: 598px) {
  /* Keep page responsive but accommodate larger cards */
  /* Mobile: allow natural width for 320px cards */
  .screen {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: calc(12px + env(safe-area-inset-top)) 10px calc(78px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
  }

  /* NOTE: Do NOT set card widths here. Card sizing is handled by the base rules above.
     (Nested @media blocks are invalid in plain CSS; keep this block typography-only.) */

  /* Lock ALL clamp() functions to their minimum values - prevent any growth */
  .title,
  .deal-title {
    font-size: 12px !important; /* Lock clamp(12px, 1.5vw, 16px) to 12px */
  }

  .deal-card .deal-sub,
  .deal-card .subtitle {
    font-size: 14px !important; /* Lock clamp(14px, 1.8vw, 20px) to 14px */
  }

  .subtitle,
  .deal-sub {
    font-size: 10px !important; /* Lock clamp(10px, 1.2vw, 12px) to 10px */
  }

  .deal-card .deal-info .deal-title,
  .deal-card .deal-info .title,
  .deal-card .deal-info h3 {
    font-size: 11px !important; /* Lock clamp(11px, 1.3vw, 14px) to 11px */
  }

  .deal-card .deal-info .deal-sub,
  .deal-card .deal-info .subtitle,
  .deal-card .deal-info p {
    font-size: 10px !important; /* Lock clamp(10px, 1.2vw, 12px) to 10px */
  }

  /* Lock card typography to fixed sizes matching discovery - prevent growth */
  .deal-card .deal-title,
  .deal-card .title,
  .mobile-home-card-title-overlay {
    font-size: 12px !important; /* Mobile-friendly smaller size */
    line-height: 1.2 !important;
  }

  .mobile-home-meta-overlay-item,
  .mobile-home-meta-overlay-item span {
    font-size: 14px !important; /* Fixed size matching discovery */
    line-height: 1.3 !important;
  }

  /* Lock pills and badges to fixed sizes matching discovery */
  .deal-card .pill,
  .deal-card .pill.location,
  .pill {
    font-size: 12px !important; /* Fixed size matching discovery */
    padding: 8px 12px !important; /* Fixed padding matching discovery */
  }

  /* Pricing pill - smaller to match discovery exactly */
  .deal-card .pill.pricing {
    font-size: 11px !important; /* Smaller pill text matching discovery */
    padding: 6px 10px !important; /* Smaller padding matching discovery */
  }

  /* Price text inside pricing pill - much smaller to fit within pill */
  .deal-card .pill.pricing .price {
    font-size: 11px !important; /* Much smaller to fit within pill container */
    font-weight: 700 !important;
  }

  /* Standalone price (if not in pill) - smaller */
  .deal-card .price {
    font-size: 11px !important; /* Smaller matching discovery */
  }

  /* Rating text - smaller matching discovery */
  .deal-card .rating {
    font-size: 11px !important; /* Smaller matching discovery */
  }

  /* Keep HOT badge prominent; only shrink the category badge */
  .deal-card .badge.hot {
    font-size: 12px !important;
    padding: 9px 14px !important;
  }

  .deal-card .badge.cat {
    font-size: 0.55rem !important;
    padding: 4px 8px !important;
  }

  .deal-card .pill-ico {
    width: 16px !important; /* Fixed size matching discovery */
    height: 16px !important;
  }

  .deal-card .star {
    font-size: 16px !important;
  }

  .deal-card .muted {
    font-size: 12px !important;
  }

  /* Lock ALL buttons to mobile sizes - prevent growth */
  .deal-card .btn--primary,
  .deal-card .btn.primary,
  .deal-card .btn--ghost,
  .deal-card .btn.secondary,
  .deal-card .btn,
  .btn--primary,
  .btn.primary,
  .btn--ghost,
  .btn.secondary,
  .btn,
  button.btn {
    font-size: 13px !important;
    padding: 12px 16px !important;
  }

  /* Lock chip sizes */
  .chip {
    padding: 9px 11px !important;
    font-size: 11px !important;
  }

  /* Stop 860px+ hero "desktop" upgrade (grid + larger text) */
  .heroInner {
    padding: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    grid-template-columns: none !important;
    align-items: stretch !important;
    min-height: auto !important;
  }

  /* Lock hero title - override clamp() and media query */
  .heroTitle {
    font-size: 18px !important; /* Lock clamp(22px, 3vw, 34px) to mobile size */
    margin: 2px 0 0 !important;
  }

  /* Lock hero subtitle - override media query */
  .heroSub {
    font-size: 12.5px !important; /* Lock to mobile size, override 14px at 860px+ */
    max-width: none !important;
  }

  /* Stop 860px+ wrapping changes (chips + card rows) */
  .chips,
  .mobile-home-scroll-row {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
  }

  /* Stop 860px+ section header font bump */
  .mobile-home-section-2026 h3,
  .sectionHead h2 {
    font-size: 14px !important; /* Lock to mobile size, override 16px at 860px+ */
  }

  /* Prevent header/logo scaling */
  .logo {
    font-size: 16px !important; /* Lock to mobile size, override 18px at 860px+ */
  }

  /* Lock all other text elements that might scale */
  .eyebrow {
    font-size: 12px !important;
  }

  .cityBtn {
    font-size: 12px !important;
    padding: 8px 10px !important;
  }
}

/* === Lock all text/pill sizes above 1443px === */
/* Prevent any clamp() functions from growing text/pills beyond this point */
@media (min-width: 1443px) {
  /* Lock ALL clamp() functions to their minimum values */
  .title,
  .deal-title {
    font-size: 12px !important; /* Lock clamp(12px, 1.5vw, 16px) to 12px */
  }

  .deal-card .deal-sub,
  .deal-card .subtitle {
    font-size: 14px !important; /* Lock clamp(14px, 1.8vw, 20px) to 14px */
  }

  .subtitle,
  .deal-sub {
    font-size: 10px !important; /* Lock clamp(10px, 1.2vw, 12px) to 10px */
  }

  .deal-card .deal-info .deal-title,
  .deal-card .deal-info .title,
  .deal-card .deal-info h3 {
    font-size: 11px !important; /* Lock clamp(11px, 1.3vw, 14px) to 11px */
  }

  .deal-card .deal-info .deal-sub,
  .deal-card .deal-info .subtitle,
  .deal-card .deal-info p {
    font-size: 10px !important; /* Lock clamp(10px, 1.2vw, 12px) to 10px */
  }

  /* Lock all card text to fixed sizes - prevent any growth */
  .deal-card .deal-title,
  .deal-card .title,
  .mobile-home-card-title-overlay {
    font-size: 12px !important; /* Mobile-friendly smaller size */
  }

  .deal-card .deal-sub,
  .deal-card .subtitle,
  .mobile-home-meta-overlay-item,
  .mobile-home-meta-overlay-item span,
  .mobile-home-card-subtitle-overlay {
    font-size: 14px !important; /* Lock to fixed size */
  }

  /* Lock all pills and badges */
  .deal-card .pill,
  .deal-card .pill.location,
  .pill {
    font-size: 12px !important;
    padding: 8px 12px !important;
  }

  /* Pricing pill - smaller to match discovery exactly */
  .deal-card .pill.pricing {
    font-size: 11px !important; /* Smaller pill text matching discovery */
    padding: 6px 10px !important; /* Smaller padding matching discovery */
  }

  /* Price text inside pricing pill - much smaller to fit within pill */
  .deal-card .pill.pricing .price {
    font-size: 11px !important; /* Much smaller to fit within pill container */
    font-weight: 700 !important;
  }

  /* Standalone price (if not in pill) - smaller */
  .deal-card .price {
    font-size: 11px !important; /* Smaller matching discovery */
  }

  /* Rating text - smaller matching discovery */
  .deal-card .rating {
    font-size: 11px !important; /* Smaller matching discovery */
  }

  /* Keep HOT badge prominent; only shrink the category badge */
  .deal-card .badge.hot {
    font-size: 12px !important;
    padding: 9px 14px !important;
  }

  .deal-card .badge.cat {
    font-size: 0.55rem !important;
    padding: 4px 8px !important;
  }

  .deal-card .pill-ico {
    width: 16px !important;
    height: 16px !important;
  }

  .deal-card .star {
    font-size: 16px !important;
  }

  .deal-card .muted {
    font-size: 12px !important;
  }

  /* Lock ALL buttons to mobile sizes */
  .deal-card .btn--primary,
  .deal-card .btn.primary,
  .deal-card .btn--ghost,
  .deal-card .btn.secondary,
  .deal-card .btn,
  .btn--primary,
  .btn.primary,
  .btn--ghost,
  .btn.secondary,
  .btn,
  button.btn {
    font-size: 13px !important;
    padding: 12px 16px !important;
  }

  /* Lock chip sizes */
  .chip {
    padding: 9px 11px !important;
    font-size: 11px !important;
  }

  /* Lock hero elements */
  .heroTitle {
    font-size: 18px !important;
  }

  .heroSub {
    font-size: 12.5px !important;
  }

  /* Lock section headers */
  .mobile-home-section-2026 h3,
  .sectionHead h2 {
    font-size: 14px !important;
  }

  /* Lock logo */
  .logo {
    font-size: 16px !important;
  }
}
