@font-face {
  font-family: ForsaArabic;
  src: url('assets/arabic-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: ForsaArabic;
  src: url('assets/arabic-bold.ttf') format('truetype');
  font-weight: 600 900;
  font-display: swap;
}

:root {
  --forest: #092f22;
  --forest-dark: #072319;
  --forest-light: #124432;
  --lime: #c4f47d;
  --lime-hover: #b1e564;
  --paper: #fcfcfb;
  --card-bg: #ffffff;
  --ink: #10291e;
  --muted: #6e7d73;
  --line: #edf0ea;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ForsaArabic, 'IBM Plex Sans Arabic', -apple-system, sans-serif;
  overflow-x: hidden;
}

button, a, input, select, textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   REFERENCE HOME CONTAINER
   ========================================================================== */
.reference-home {
  background: #fcfcfb;
  color: #10291e;
  font-family: ForsaArabic, 'IBM Plex Sans Arabic', sans-serif;
  padding-bottom: 40px;
}

.reference-home > .announcement,
.reference-home > header,
.reference-home main > :not(.reference-page) {
  display: none !important;
}

.reference-home main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0;
}

.reference-page {
  margin: 0;
  padding: 0;
}

.reference-page svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.reference-page a {
  text-decoration: none;
  color: inherit;
}

.reference-page button {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

/* ==========================================================================
   DESKTOP TOP HEADER (MATCHING MASTER MOCKUP)
   ========================================================================== */
.ref-desktop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 36px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  width: 100%;
  position: relative;
  z-index: 10;
}

.ref-nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.ref-nav-brand {
  display: flex;
  align-items: center;
}

.ref-nav-brand img {
  height: 38px;
  width: auto;
  display: block;
}

.ref-desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
  color: #3b4b41;
}

.ref-desktop-nav a {
  padding: 6px 0;
  position: relative;
  transition: color 0.15s;
}

.ref-desktop-nav a:hover {
  color: #123a27;
}

.ref-desktop-nav a.active {
  color: #0c2b1d;
  font-weight: 700;
}

.ref-desktop-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--lime);
  border-radius: 2px;
}

.ref-more-link span {
  font-size: 12px;
  margin-right: 2px;
}

.ref-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ref-header-sell-btn {
  background: #0d2c1e;
  color: #ffffff !important;
  padding: 9px 20px;
  border-radius: 22px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(13, 44, 30, 0.18);
  transition: transform 0.2s, background 0.2s;
}

.ref-header-sell-btn:hover {
  transform: translateY(-2px);
  background: #153e2b;
}

.ref-header-login-btn {
  color: #2b3a32;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 8px;
  transition: color 0.15s;
}

.ref-header-login-btn:hover {
  color: #103222;
}

.ref-header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e1e7df;
  background: #ffffff;
  color: #2d3b33;
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s;
}

.ref-header-icon-btn:hover {
  background: #f4f7f2;
  border-color: #c4f47d;
}

.ref-header-icon-btn svg {
  width: 18px;
  height: 18px;
}

.ref-header-loc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2b3a32;
  padding: 6px 10px;
  border-radius: 12px;
  transition: background 0.15s;
}

.ref-header-loc-btn:hover {
  background: #f0f4ec;
}

.ref-header-loc-btn svg {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   HERO SECTION (DESKTOP MASTER VIEW)
   ========================================================================== */
.ref-hero {
  position: relative;
  aspect-ratio: 1440/630;
  min-height: 520px;
  background: url('assets/dubai-hero.webp') center 24% / cover no-repeat;
  isolation: isolate;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 42px;
}

.ref-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Hidden on desktop since included in header bar */
.ref-top-actions,
.ref-logo,
.ref-benefits {
  display: none;
}

/* Dubai Calligraphy */
.ref-dubai {
  position: absolute;
  top: 16%;
  left: 7%;
  color: #122b20;
  z-index: 2;
}

.ref-dubai strong {
  font: italic 52px 'Brush Script MT', 'Segoe Script', cursive;
  letter-spacing: -3px;
  display: block;
}

.ref-dubai > span {
  display: block;
  margin: 3px 0 0 16px;
  line-height: 1.45;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 700;
}

/* Promise & Subtitle */
.ref-promise {
  position: absolute;
  top: 9%;
  right: 50%;
  transform: translateX(50%);
  text-align: center;
  z-index: 3;
  width: 100%;
  max-width: 680px;
}

.ref-promise > span {
  font-size: 15px;
  color: #233c2e;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.ref-promise h1 {
  font-size: 40px;
  color: #103322;
  margin: 0 0 4px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.ref-sub-promise {
  font-size: 15px;
  color: #3b5745;
  font-weight: 600;
  display: block;
}

/* Search Box Widget */
.ref-search-box {
  position: relative;
  z-index: 4;
  width: 90%;
  max-width: 820px;
  border-radius: 26px;
  background: #0b3424;
  padding: 18px 24px 14px;
  color: white;
  box-shadow: 0 18px 48px rgba(7, 33, 21, 0.38);
  border: 1px solid rgba(196, 244, 125, 0.22);
}

.ref-search-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 11px;
  margin-bottom: 13px;
}

.ref-tab-btn {
  background: transparent;
  border: 0;
  color: #c4d7cd;
  font-size: 14px;
  font-weight: 600;
  padding: 3px 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: color 0.15s;
}

.ref-tab-btn:hover {
  color: #ffffff;
}

.ref-tab-btn.active {
  color: #ffffff;
  font-weight: 700;
}

.ref-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--lime);
  border-radius: 2px;
}

.ref-tab-btn svg {
  width: 17px;
  height: 17px;
}

.ref-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ref-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--lime);
  color: #0b2d1e;
  border: 0;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(196, 244, 125, 0.35);
}

.ref-submit-btn:hover {
  background: var(--lime-hover);
  transform: scale(1.02);
}

.ref-submit-btn svg {
  width: 17px;
  height: 17px;
}

.ref-filter-pill-slot .ref-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  height: 48px;
}

.ref-city-pill-slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0 14px;
  color: #ffffff;
  height: 48px;
}

.ref-city-pill-slot select {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 14px;
  outline: 0;
  cursor: pointer;
}

.ref-city-pill-slot option {
  color: #122b20;
  background: #ffffff;
}

.ref-pill-icon svg {
  width: 17px;
  height: 17px;
  color: #c4f47d;
}

.ref-search-input {
  flex: 1;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 14px;
  height: 48px;
  padding: 0 14px;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ref-search-input input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: #152c20;
  direction: rtl;
}

.ref-search-icon svg {
  color: #586f62;
  width: 18px;
  height: 18px;
}

#ref-filter-panel {
  position: absolute;
  z-index: 15;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 18px;
  border-radius: 18px;
  background: #0f3c2b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

#ref-filter-panel[hidden] {
  display: none;
}

#ref-filter-panel label {
  display: grid;
  gap: 6px;
  margin-bottom: 9px;
  font-size: 14px;
}

#ref-filter-panel select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  color: #163a27;
  background: white;
  border: 0;
}

#ref-clear {
  border: 0;
  background: #c4f47d;
  border-radius: 8px;
  padding: 8px 15px;
  color: #123624;
  font-weight: 700;
  cursor: pointer;
}

.ref-search-bottom-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 14px;
  font-size: 13px;
}

.ref-search-bottom-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #bcd2c6;
  font-weight: 600;
  transition: color 0.15s;
}

.ref-search-bottom-links a:hover {
  color: #c4f47d;
}

.ref-search-bottom-links svg {
  width: 16px;
  height: 16px;
  color: #c4f47d;
}

/* ==========================================================================
   PAGE BODY & 5 CATEGORIES
   ========================================================================== */
.ref-body {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 36px;
}

.ref-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.ref-category {
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  height: 110px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.ref-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ref-category svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.7;
}

.ref-category span {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: #15241b;
}

.blue { background: #e3f1fb; }
.green { background: #e1f1d7; }
.mint { background: #d7ebe0; }
.sand { background: #faf0dc; color: #8e6819; }
.gray { background: #f0f1ef; color: #626965; }

/* ==========================================================================
   SIDE-BY-SIDE DESKTOP GRID: PROMO BANNER + DEALS SECTION
   ========================================================================== */
.ref-desktop-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 26px;
}

.ref-promo {
  height: 100%;
  min-height: 275px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: #eae8df;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  isolation: isolate;
}

.ref-promo > img {
  position: absolute;
  right: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
}

.ref-promo-caption {
  position: absolute;
  right: 4%;
  bottom: 12%;
  color: white;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  z-index: 2;
}

.ref-promo-caption span {
  display: block;
  width: 44px;
  height: 5px;
  background: var(--lime);
  border-radius: 6px;
  margin-top: 10px;
}

.ref-promo-copy {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  background: linear-gradient(110deg, #f3eee3, #ece5d3);
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.ref-promo h2 {
  font-size: 23px;
  font-weight: 800;
  color: #0e3021;
  margin: 0 0 5px;
  line-height: 1.3;
}

.ref-promo h2 span {
  font-size: 18px;
  color: #17261d;
  font-weight: 600;
  display: block;
}

.ref-promo p {
  font-size: 12px;
  color: #4b574e;
  margin: 0 0 14px;
  white-space: nowrap;
}

.ref-promo a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0b3223;
  color: white;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
  transition: background 0.15s, transform 0.15s;
}

.ref-promo a:hover {
  background: #144330;
  transform: translateY(-2px);
}

.ref-promo a svg {
  width: 14px;
  height: 14px;
}

/* Deals Section */
.reference-home #deals {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reference-home #deals .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.reference-home #deals .section-heading h2 {
  font-size: 21px;
  font-weight: 800;
  color: #123524;
  margin: 0;
}

.reference-home #deals .section-heading button {
  color: #375b37;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reference-home #deals .filterbar,
.reference-home #deals .result-line {
  display: none;
}

.reference-home #cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.reference-home #deals:not(.ref-expanded) .card:nth-child(n+4) {
  display: none;
}

.reference-home #cards .card {
  border: 1px solid #edf0ea;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.reference-home #cards .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.reference-home #cards .card-media {
  height: 115px;
  position: relative;
  background: #f0f3eb;
  overflow: hidden;
}

.reference-home #cards .card-media > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.reference-home #cards .card-label,
.reference-home #cards .specs,
.reference-home #cards .card-bottom,
.reference-home #cards .saving,
.reference-home #cards .price small,
.reference-home #cards .card-category > span:nth-child(2),
.reference-home #cards .media-bottom > span:nth-child(2) {
  display: none;
}

.reference-home #cards .heart {
  z-index: 4;
  right: 6px;
  left: auto;
  top: 6px;
  color: white;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  border: 0;
  font-size: 20px;
  width: 28px;
  height: 28px;
  line-height: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.reference-home #cards .heart[aria-pressed=true] {
  color: var(--lime);
}

.reference-home #cards .media-bottom {
  bottom: 6px;
  left: 6px;
  right: auto;
  background: none;
  padding: 0;
  position: absolute;
}

.reference-home #cards .media-bottom > span:first-child {
  display: flex;
  align-items: center;
  gap: 3px;
  border-radius: 12px;
  background: white;
  color: #27352d;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.reference-home #cards .media-bottom svg {
  width: 12px;
  height: 12px;
}

.reference-home #cards .card-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.reference-home #cards .card-category {
  display: flex;
  justify-content: flex-start;
  font-size: 11px;
  margin: 0;
}

.reference-home #cards .card-category > span {
  padding: 2px 8px;
  border-radius: 8px;
  color: #23402c;
  font-weight: 600;
  font-size: 11px;
}

.reference-home #cards h3 {
  font-size: 14px;
  margin: 6px 0;
  line-height: 1.35;
  color: #16201a;
  font-weight: 700;
}

.reference-home #cards .price-row {
  margin: 6px 0 0;
  border: 0;
  padding: 0;
}

.reference-home #cards .price strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 16px;
  color: #123524;
  direction: ltr;
  justify-content: flex-end;
  font-weight: 800;
}

.reference-home #cards .price strong > span {
  font-size: 12px;
  font-weight: 700;
}

.ref-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.reference-home #cards .plate-stage {
  height: 100%;
  padding: 8px;
  background: radial-gradient(ellipse at center, #f4f5ef, #d6ddd1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reference-home #cards .plate {
  width: 92%;
  padding: 6px 10px;
  background: #fff;
  border: 1.5px solid #222;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  direction: ltr;
}

.reference-home #cards .plate b {
  font-size: 24px;
  font-weight: 800;
}

/* ==========================================================================
   TRUST SECTION
   ========================================================================== */
.ref-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.ref-trust a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  padding: 14px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s, border-color 0.15s;
}

.ref-trust a:hover {
  transform: translateY(-2px);
  border-color: #c4f47d;
}

.ref-trust svg {
  width: 34px;
  height: 34px;
  color: #143e2e;
}

.ref-trust strong {
  font-size: 15px;
  display: block;
  color: #1b251f;
  font-weight: 700;
}

.ref-trust span {
  font-size: 12px;
  display: block;
  color: #727c75;
  white-space: nowrap;
}

/* ==========================================================================
   FULL-WIDTH BOTTOM SELL BANNER
   ========================================================================== */
.ref-sell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(110deg, #092c1e, #0e3827);
  color: white;
  border-radius: 18px;
  padding: 20px 32px;
  box-shadow: 0 8px 24px rgba(9, 44, 30, 0.12);
}

.ref-sell-left h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}

.ref-sell-left p {
  font-size: 13px;
  color: #bcd2c4;
  margin: 0;
}

.ref-sell-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--lime);
  color: #0b2d1d;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 14px rgba(196, 244, 125, 0.35);
}

.ref-sell-btn:hover {
  transform: scale(1.02);
  background: var(--lime-hover);
}

.ref-sell-right span {
  font-size: 14px;
  color: #c0d5c8;
  line-height: 1.4;
  display: block;
  text-align: left;
}

.ref-demo {
  font-size: 12px;
  color: #758076;
  margin: 14px 0 0;
  text-align: center;
}

/* ==========================================================================
   MOBILE VIEW (MAINTAINING BELOVED MOBILE LAYOUT)
   ========================================================================== */
@media (max-width: 800px) {
  .ref-desktop-header {
    display: none !important;
  }

  .ref-hero {
    aspect-ratio: 737/565;
    min-height: auto;
    padding-bottom: 0;
    justify-content: flex-start;
  }

  .ref-top-actions {
    display: flex;
    position: absolute;
    top: 6%;
    left: 4%;
    gap: 12px;
    direction: ltr;
    z-index: 3;
  }

  .ref-top-actions button {
    font-size: 11px;
    padding: 2px 4px;
    gap: 3px;
    display: flex;
    align-items: center;
    color: var(--forest);
  }

  .ref-top-actions #ref-menu svg { width: 24px; height: 24px; }
  .ref-top-actions #ref-location svg { width: 14px; height: 14px; }

  .ref-logo {
    display: block;
    position: absolute;
    right: 2%;
    top: 1%;
    width: 37%;
    z-index: 3;
  }

  .ref-logo img {
    width: 100%;
    height: auto;
  }

  .ref-dubai {
    display: block;
    top: 22%;
    left: 6%;
  }

  .ref-dubai strong {
    font-size: 28px;
    letter-spacing: -2px;
  }

  .ref-dubai > span {
    font-size: 6.5px;
    letter-spacing: 1.5px;
    margin: 2px 0 0 9px;
  }

  .ref-promise {
    position: absolute;
    top: 25%;
    right: 3%;
    transform: none;
    text-align: right;
    max-width: 50%;
  }

  .ref-promise > span { font-size: 3.2vw; }
  .ref-promise h1 { font-size: 4.4vw; }
  .ref-sub-promise { display: none; }

  .ref-search-box {
    position: absolute;
    top: 44.5%;
    right: 3.6%;
    transform: none;
    width: 52%;
    padding: 10px 11px;
    border-radius: 16px;
  }

  .ref-search-tabs,
  .ref-search-bottom-links {
    display: none;
  }

  .ref-search-row {
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
  }

  .ref-submit-btn {
    display: none;
  }

  .ref-filter-pill-slot .ref-filter-trigger {
    height: 28px;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 14px;
    width: 100%;
    justify-content: center;
  }

  .ref-city-pill-slot {
    height: 28px;
    padding: 0 6px;
    border-radius: 14px;
    width: 100%;
    justify-content: center;
  }

  .ref-city-pill-slot select {
    font-size: 10px;
  }

  .ref-search-input {
    height: 32px;
    border-radius: 8px;
    padding: 0 8px;
  }

  .ref-search-input input {
    font-size: 12px;
  }

  .ref-benefits {
    display: flex;
    position: absolute;
    bottom: 5.5%;
    right: 5%;
    width: 48%;
    justify-content: space-between;
    gap: 6px;
  }

  .ref-benefits a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: #12291d;
    white-space: nowrap;
  }

  .ref-benefits svg {
    width: 20px;
    height: 20px;
  }

  /* Body on Mobile */
  .ref-body {
    padding: 16px 14px 0;
  }

  .ref-categories {
    gap: 8px;
    margin-bottom: 16px;
  }

  .ref-category {
    height: 76px;
    border-radius: 10px;
    gap: 6px;
  }

  .ref-category svg {
    width: 28px;
    height: 28px;
  }

  .ref-category span {
    font-size: 10px;
  }

  .ref-desktop-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
  }

  .ref-promo {
    min-height: 130px;
    border-radius: 12px;
  }

  .ref-promo h2 { font-size: 16px; }
  .ref-promo h2 span { font-size: 13px; }
  .ref-promo p { font-size: 10px; margin-bottom: 8px; }
  .ref-promo a { font-size: 10px; padding: 5px 14px; }
  .ref-promo-caption { font-size: 12px; }

  .reference-home #cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .reference-home #cards .card-media {
    height: 75px;
  }

  .reference-home #cards h3 {
    font-size: 11px;
    margin: 4px 0;
  }

  .reference-home #cards .price strong {
    font-size: 12px;
  }

  .ref-trust {
    gap: 8px;
    margin-bottom: 16px;
  }

  .ref-trust a {
    padding: 8px;
    border-radius: 8px;
  }

  .ref-trust strong { font-size: 10px; }
  .ref-trust span { font-size: 8px; }
  .ref-trust svg { width: 22px; height: 22px; }

  .ref-sell {
    padding: 14px 16px;
    border-radius: 12px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .ref-sell-left h2 { font-size: 14px; }
  .ref-sell-left p { font-size: 10px; }
  .ref-sell-btn { font-size: 12px; padding: 8px 18px; }
  .ref-sell-right { display: none; }

  .reference-home > .mobile-bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid #e7ebe3;
    height: 66px;
    padding: 6px 10px max(6px, env(safe-area-inset-bottom));
    z-index: 30;
    justify-content: space-around;
  }

  .reference-home > .mobile-bottom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: #727e74;
  }

  .reference-home > .mobile-bottom svg {
    width: 22px;
    height: 22px;
  }

  .reference-home > .mobile-bottom a[aria-current=page] {
    color: #16402d;
    font-weight: 700;
  }

  .reference-home > .mobile-bottom a[href="?page=sell"] svg {
    background: var(--lime);
    color: #123422;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    padding: 6px;
    margin-top: -12px;
    box-shadow: 0 4px 10px rgba(196, 244, 125, 0.4);
  }
}
