/* ============================================================
   Oletro Marketplace (index.html)
   Slideshow, category icon grid, subcategory drill-down, and
   curated product sections. Sits on top of general.css +
   Navigationbar.css.
   ============================================================ */

:root {
  --mk-navy: #012a46;
  --mk-navy-2: #06426e;
  --mk-ink: #0b1f31;
  --mk-accent: #ff8a2b;
  --mk-accent-2: #ffb463;
  --mk-gold: #ffd166;
  --mk-bg: #f4f7fb;
  --mk-card: #ffffff;
  --mk-line: #e3eaf2;
  --mk-text: #24344a;
  --mk-muted: #6b7d95;
  --mk-green: #1fbf75;
  --mk-red: #e5484d;
}

body {
  background: var(--mk-bg);
  color: var(--mk-text);
}

main {
  overflow-x: hidden;
}

/* current nav link highlight */
.nav-bar .nav-links.current a {
  color: var(--mk-accent-2);
  font-weight: 600;
}

/* ============ Hero / Announcement slideshow ============ */
.mk-hero {
  padding: 22px clamp(14px, 4vw, 44px) 4px;
}

.mk-announce {
  position: relative;
  height: clamp(220px, 34vw, 360px);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(120deg, #01304f, #06426e 55%, #0b5a8f);
  box-shadow: 0 18px 45px rgba(1, 42, 70, 0.28);
}

.mk-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 4vw, 52px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s;
}

.mk-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 2;
}

.mk-slide.has-img .mk-slide-text {
  max-width: 58%;
}

.mk-slide-text {
  position: relative;
  z-index: 2;
  color: #fff;
}

.mk-slide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-right: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  vertical-align: middle;
}

.mk-slide-chip {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.mk-slide h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
}

.mk-slide p {
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  line-height: 1.65;
  margin: 0 0 22px;
}

.mk-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--mk-accent-2), var(--mk-accent));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(255, 138, 43, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mk-slide-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 138, 43, 0.5);
}

.mk-slide-img {
  position: relative;
  z-index: 1;
  width: 34%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

/* --- Announcement images render as a large full-bleed background --- */
.mk-slide {
  isolation: isolate;
}

.mk-slide.has-img .mk-slide-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  opacity: 0.92;
}

/* Video announcement slides — same full-bleed treatment as images. */
.mk-slide-video {
  display: block;
  background: #0b1a2a;
}

.mk-slide.has-img .mk-slide-video {
  object-fit: cover;
}

/* Mute / unmute toggle for announcement videos (revealed on hover). */
.mk-video-toggle {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(1, 20, 36, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mk-slide:hover .mk-video-toggle,
.mk-video-toggle:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.mk-video-toggle:hover {
  background: rgba(1, 20, 36, 0.8);
}

.mk-video-toggle .mk-vt-live {
  display: none;
}

.mk-video-toggle.unmuted .mk-vt-muted {
  display: none;
}

.mk-video-toggle.unmuted .mk-vt-live {
  display: inline-block;
}

/* Touch devices have no hover — keep the toggle visible. */
@media (hover: none) {
  .mk-video-toggle {
    opacity: 1;
    transform: none;
  }
}

.mk-slide.has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(1, 30, 52, 0.5) 0%,
    rgba(1, 30, 52, 0.28) 45%,
    rgba(1, 30, 52, 0.06) 100%
  );
}

.mk-slide.has-img .mk-slide-text {
  max-width: 100%;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.mk-announce {
  height: clamp(260px, 38vw, 420px);
}

.mk-announce-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.mk-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.mk-dot.active {
  width: 26px;
  background: var(--mk-accent);
}

.mk-announce-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mk-announce-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-50%) scale(1.06);
}

.mk-announce-arrow.prev {
  left: 16px;
}

.mk-announce-arrow.next {
  right: 16px;
}

.mk-hero .mk-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  height: 100%;
  padding: 0 clamp(22px, 4vw, 52px);
}

.mk-hero .mk-empty h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin: 0 0 8px;
}

.mk-hero .mk-empty p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ============ Search ============ */
.mk-search {
  padding: 18px clamp(14px, 4vw, 44px) 4px;
  scroll-margin-top: 90px;
}

.mk-search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  background: var(--mk-card);
  border: 1px solid var(--mk-line);
  border-radius: 16px;
  padding: 6px 18px;
  color: var(--mk-muted);
  box-shadow: 0 6px 22px rgba(11, 31, 49, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mk-search-box:focus-within {
  border-color: var(--mk-accent);
  box-shadow: 0 8px 26px rgba(255, 138, 43, 0.18);
}

.mk-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 1.06rem;
  padding: 12px 0;
  padding-right: 48px;
  color: var(--mk-ink);
}

/* Hide the native search chrome (magnifier / clear "x") so it can't overlap
   the voice-search button that sits inside the bar. */
.mk-search-box input[type="search"]::-webkit-search-cancel-button,
.mk-search-box input[type="search"]::-webkit-search-decoration,
.mk-search-box input[type="search"]::-webkit-search-results-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.mk-search-box input[type="search"]::-ms-clear,
.mk-search-box input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

/* Voice search button — sits inside the bar, right of the text. */
.mk-search-box .voice-search-btn {
  position: absolute;
  right: 8px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: var(--mk-muted);
  cursor: pointer;
  z-index: 2;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.mk-search-box .voice-search-btn:hover {
  color: var(--mk-accent);
  background: rgba(255, 138, 43, 0.12);
}
.mk-search-box .voice-search-btn.voice-active {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  animation: voice-pulse 1.2s ease-in-out infinite;
}
@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* "Save this search" toggle — appears after a non-empty search runs. */
.mk-save-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 10px auto 0;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mk-accent);
  background: var(--mk-card);
  border: 1.5px solid var(--mk-line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.mk-save-search[hidden] {
  display: none;
}
.mk-save-search:hover {
  border-color: var(--mk-accent);
}
.mk-save-search.saved {
  color: #fff;
  background: var(--mk-accent);
  border-color: var(--mk-accent);
}

/* ============ Live search suggestions ============ */
.mk-search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--mk-card);
  border: 1.5px solid var(--mk-line);
  border-radius: 16px;
  box-shadow: 0 24px 54px rgba(11, 31, 49, 0.22);
  padding: 6px;
  display: grid;
  gap: 2px;
  max-height: min(420px, 60vh);
  overflow-y: auto;
}

.mk-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 9px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.mk-suggest-item:hover,
.mk-suggest-item.active {
  background: rgba(255, 138, 43, 0.1);
}

.mk-suggest-item img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef3f9;
}

.mk-suggest-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mk-suggest-main b {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--mk-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mk-suggest-main small {
  font-size: 0.86rem;
  color: var(--mk-muted);
}

.mk-suggest-item em {
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
  color: var(--mk-accent);
  white-space: nowrap;
}

/* ============ Section heads ============ */
.mk-section-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 16px;
}

.mk-section-head h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--mk-ink);
  font-weight: 700;
  margin: 0;
  position: relative;
  padding-left: 14px;
}

.mk-section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 5px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--mk-accent), var(--mk-accent-2));
}

.mk-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 138, 43, 0.16), rgba(255, 180, 99, 0.28));
  color: var(--mk-accent);
  flex-shrink: 0;
  vertical-align: middle;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mk-section-head h2:hover .mk-emoji {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 6px 16px rgba(255, 138, 43, 0.35);
}

.mk-head-sub {
  color: var(--mk-muted);
  font-size: 0.9rem;
}

.mk-viewall {
  margin-left: auto;
  color: var(--mk-accent);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mk-viewall:hover {
  color: var(--mk-navy-2);
  transform: translateX(3px);
}

/* ============ Category grid ============ */
.mk-cats,
.mk-cat-results,
.mk-section {
  padding: 26px clamp(14px, 4vw, 44px) 4px;
}

.mk-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}

.mk-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--mk-card);
  border: 1px solid var(--mk-line);
  border-radius: 18px;
  padding: 18px 12px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--mk-text);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.mk-cat:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(11, 31, 49, 0.12);
  border-color: var(--mk-accent-2);
}

.mk-cat.active {
  border-color: var(--mk-accent);
  background: linear-gradient(180deg, #fffdf8, #fff3e4);
  box-shadow: 0 10px 26px rgba(255, 138, 43, 0.2);
}

.mk-cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eaf3fb, #d7e9f8);
  color: var(--mk-navy-2);
  transition: transform 0.25s ease;
}

.mk-cat:hover .mk-cat-icon {
  transform: scale(1.08) rotate(-3deg);
}

.mk-cat.active .mk-cat-icon {
  background: linear-gradient(135deg, #fff1de, #ffe0bb);
  color: var(--mk-accent);
}

.mk-cat span {
  text-align: center;
  line-height: 1.25;
}

/* Subcategory chips */
.mk-subcats {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mk-subcat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--mk-line);
  background: var(--mk-card);
  color: var(--mk-text);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mk-subcat svg {
  color: var(--mk-accent);
  flex-shrink: 0;
}

.mk-subcat:hover {
  border-color: var(--mk-accent-2);
  transform: translateY(-2px);
}

.mk-subcat.active {
  background: var(--mk-navy);
  border-color: var(--mk-navy);
  color: #fff;
}

.mk-subcat.active svg {
  color: var(--mk-accent-2);
}

/* ============ Category results ============ */
.mk-count {
  color: var(--mk-muted);
  font-size: 0.9rem;
}

.mk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 28px;
}

/* ============ Product cards ============ */
.mk-card {
  position: relative;
  background: var(--mk-card);
  border: 1.5px solid var(--mk-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(11, 31, 49, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* Media wrapper anchors the wishlist heart over the image regardless of how
   tall the chips band above it is (chips wrap to fit their container). */
.mk-card-media {
  position: relative;
}

.mk-card:hover {
  transform: translateY(-8px);
  border-color: var(--mk-accent-2);
  box-shadow:
    0 26px 52px rgba(11, 31, 49, 0.2),
    0 0 0 1.5px rgba(255, 138, 43, 0.4),
    0 12px 34px rgba(255, 138, 43, 0.2);
}

.mk-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mk-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eef3f9;
}

.mk-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.mk-card:hover .mk-card-img img {
  transform: scale(1.06);
}

/* Chips live in their own designed band at the top of the card (region,
   category, Deal, Negotiable…), so the image below gets a clean full-width
   section instead of chips floating over it. The band is a single row:
   chips shrink and ellipsize (text-overflow) instead of wrapping, so the
   card height stays fixed and nothing ever spills out. Light theme uses the
   inverted look — white pill, blue text, blue-black border. */
.mk-card-chips {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 8px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: linear-gradient(180deg, #f8fbfe, #eef3f9);
  border-bottom: 1px solid var(--mk-line);
}
.mk-card-chips::-webkit-scrollbar { display: none; }

.mk-chip {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #ffffff;
  color: #0b3c5d;
  border: 1px solid #14395d;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.35;
  vertical-align: middle;
  line-height: 1.35;
}
.mk-chip svg.ic {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
}
.mk-chip.feat svg.ic {
  width: 12px;
  height: 12px;
}

.mk-chip.deal {
  background: linear-gradient(135deg, #ff5f6d, #ff2d55);
  border-color: #e11d48;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Discount badge on the price line */
.mk-discount-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff5f6d, #ff2d55);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.mk-price-orig {
  text-decoration: line-through;
  color: var(--mk-muted, #999);
  font-weight: 400;
  font-size: 0.85em;
  margin-right: 2px;
}

.mk-chip.feat {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-color: #d97706;
  color: #1c1917;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mk-featured {
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.12);
}

.mk-card-body {
  padding: 15px 16px 18px;
}

/* Delivery line on cards (fee · ETA · coverage).
   Always a single row — long text truncates so a wrapped delivery line
   never makes some cards taller than their neighbours (stretches the row). */
.mk-card-del {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 7px 10px;
  background: rgba(31, 191, 117, 0.08);
  border: 1px solid rgba(31, 191, 117, 0.28);
  border-radius: 10px;
  font-size: 0.82rem;
  color: #0f7a44;
  overflow: hidden;
  white-space: nowrap;
}

.mk-card-del-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #0f7a44;
  flex-shrink: 0;
}

.mk-card-del-text {
  font-weight: 600;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mk-card-del em {
  font-style: normal;
  font-weight: 600;
  margin-left: auto;
  font-size: 0.76rem;
  color: #2b9d68;
  background: rgba(31, 191, 117, 0.12);
  padding: 2px 9px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}

.mk-card-title {
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--mk-ink);
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mk-card-desc {
  font-size: 0.86rem;
  color: var(--mk-muted);
  line-height: 1.5;
  height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0 0 12px;
}

.mk-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.mk-card-price {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--mk-accent);
  flex-shrink: 0;
}  .mk-card-seller {
    font-size: 0.7rem;
    color: var(--mk-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.01em;
  }

.mk-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #1d8cf8;
  font-weight: 600;
}

/* Wishlist heart on cards — anchored to .mk-card-media so it always sits over
   the image (below the chips band), whatever height that band is. */
/* ============ Card action buttons (wishlist, share, report) ============ */
.mk-card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.mk-wish,
.mk-share,
.mk-report {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 10px rgba(11, 31, 49, 0.16);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #9aa8ba;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.mk-wish:hover,
.mk-share:hover,
.mk-report:hover {
  transform: scale(1.12);
}

.mk-wish:hover { color: var(--mk-red); }
.mk-share:hover { color: #1fbf75; }
.mk-report:hover { color: var(--mk-accent); }

.mk-wish.active {
  color: var(--mk-red);
  background: #ffeef0;
}

/* ============ Secure Buy chip ============ */
.mk-chip.secure-buy {
  background: rgba(31, 191, 117, 0.13);
  border-color: rgba(31, 191, 117, 0.5);
  color: #0d9e63;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============ Image carousel (multi-image cards) ============ */
.mk-card-img {
  position: relative;
}

.mk-card-img-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.mk-card-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 6px 0 0;
}

.mk-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mk-line);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.mk-card-dot.active {
  background: var(--mk-accent);
  transform: scale(1.3);
}

/* ============ Empty state illustrations ============ */
.mk-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--mk-muted);
}

.mk-empty svg {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  opacity: 0.45;
}

.mk-empty p {
  font-size: 1rem;
  margin: 0 0 12px;
}

.mk-empty .mk-empty-cta {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mk-accent), var(--mk-accent-2));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}

.mk-empty .mk-empty-cta:hover {
  transform: translateY(-2px);
}

/* ============ Skeleton loaders ============ */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.mk-skeleton-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--mk-line);
}

.mk-skeleton-card .skel-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
}

.mk-skeleton-card .skel-body {
  padding: 14px;
}

.mk-skeleton-card .skel-line {
  height: 14px;
  border-radius: 7px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
}

.mk-skeleton-card .skel-line.w60 { width: 60%; }
.mk-skeleton-card .skel-line.w40 { width: 40%; }
.mk-skeleton-card .skel-line.w80 { width: 80%; }

/* ============ Dark mode overrides for new elements ============ */
[data-theme="dark"] .mk-card-actions .mk-wish,
[data-theme="dark"] .mk-card-actions .mk-share,
[data-theme="dark"] .mk-card-actions .mk-report,
[data-theme="dark"] .mk-card-actions .mk-compare {
  background: rgba(20, 30, 48, 0.88);
  color: #7a8fa8;
}

[data-theme="dark"] .mk-skeleton-card { background: #141e30; border-color: #1e2d42; }
[data-theme="dark"] .mk-skeleton-card .skel-img,
[data-theme="dark"] .mk-skeleton-card .skel-line {
  background: linear-gradient(90deg, #1e2d42 25%, #243650 50%, #1e2d42 75%);
  background-size: 800px 100%;
}

[data-theme="dark"] .mk-empty svg { opacity: 0.35; }

/* ============ Horizontal scroll sections ============ */
.mk-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--mk-accent-2) transparent;
}

.mk-scroll::-webkit-scrollbar {
  height: 8px;
}

.mk-scroll::-webkit-scrollbar-thumb {
  background: var(--mk-accent-2);
  border-radius: 999px;
}

.mk-scroll .mk-card {
  flex: 0 0 276px;
  scroll-snap-align: start;
}

/* Compact chips band on the horizontal preview cards — one row; long chips
   ellipsize instead of wrapping so preview cards stay short. */
.mk-scroll .mk-card-chips {
  padding: 6px 8px;
  gap: 4px;
}

/* All chip bands — single row, long chips ellipsize. */
.js-sec-recently-viewed .mk-card-chips {
  flex-wrap: nowrap;
}

.mk-scroll .mk-card-chips .mk-chip {
  font-size: 0.58rem;
  padding: 3px 8px;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}  .mk-scroll .mk-card-actions {
    top: 8px;
    right: 8px;
    gap: 4px;
  }

  .mk-scroll .mk-card-actions .mk-wish,
  .mk-scroll .mk-card-actions .mk-share,
  .mk-scroll .mk-card-actions .mk-report,
  .mk-scroll .mk-card-actions .mk-compare {
    width: 28px;
    height: 28px;
  }

  .mk-scroll .mk-card-actions svg {
    width: 14px;
    height: 14px;
  }

  .mk-scroll .mk-wish svg {
    width: 15px;
    height: 15px;
  }

@media (max-width: 480px) {
  .mk-scroll .mk-card {
    flex-basis: 240px;
  }
}

.mk-scroll-empty {
  width: 100%;
  text-align: center;
  color: var(--mk-muted);
  padding: 30px 10px;
}

/* ============ Region tabs ============ */
.mk-region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.mk-region-tab {
  border: 1px solid var(--mk-line);
  background: var(--mk-card);
  color: var(--mk-text);
  border-radius: 999px;
  padding: 7px 15px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mk-region-tab:hover {
  border-color: var(--mk-accent-2);
}

.mk-region-tab.active {
  background: var(--mk-navy);
  border-color: var(--mk-navy);
  color: #fff;
}

/* ============ Responsive ============ */
@media (max-width: 760px) {
  .mk-slide {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .mk-slide.has-img .mk-slide-text {
    max-width: 100%;
  }

  /* On mobile, let BOTH static images AND videos render as full-bleed
     backgrounds (the .has-img rule handles this). The previous rule
     hid static images, which is why announcement images didn't show. */
  .mk-slide.has-img .mk-slide-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    opacity: 0.92;
  }

  .mk-slide p {
    margin-left: auto;
    margin-right: auto;
  }

  .mk-announce-arrow {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }

  .mk-region-tabs {
    margin-left: 0;
    width: 100%;
  }

  .mk-section-head {
    align-items: flex-start;
  }

  .mk-cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
  }

  .mk-cat {
    padding: 13px 8px 11px;
    font-size: 0.82rem;
  }

  .mk-cat-icon {
    width: 46px;
    height: 46px;
  }
}

/* ============ Active filter chips row ============ */
.mk-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 clamp(14px, 4vw, 44px) 12px;
  max-width: 900px;
  margin: 0 auto;
}
.mk-active-filters[hidden] {
  display: none;
}
.mk-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0b3c5d;
  background: #ffffff;
  border: 1px solid #c8d6e5;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mk-filter-chip:hover {
  background: #f0f6ff;
  border-color: #4f9cf7;
}
.mk-filter-chip .chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(11, 29, 49, 0.08);
  font-size: 0.65rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.mk-filter-chip .chip-x:hover {
  background: rgba(229, 72, 77, 0.2);
  color: #e5484d;
}
.mk-clear-all {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e5484d;
  background: none;
  border: none;
  padding: 5px 8px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mk-clear-all:hover {
  color: #c41c22;
}
@media (max-width: 560px) {
  .mk-active-filters {
    gap: 6px;
    padding: 0 clamp(14px, 4vw, 44px) 8px;
  }
  .mk-filter-chip {
    font-size: 0.72rem;
    padding: 4px 8px;
    min-height: 28px;
  }
}

/* ============ Browse All (search + sort + filters) ============ */
.mk-browse {
  padding: 34px clamp(14px, 4vw, 44px) 60px;
  scroll-margin-top: 90px;
}

/* When all sections are hidden (search mode), give extra top padding so the
   results never start underneath the fixed, translucent nav bar. 96px clears
   the 60px nav + breathing room on every viewport. */
.mk-browse.search-mode {
  padding-top: 96px;
}

/* ============ Breadcrumbs (search results + category drill-down) ============ */
.mk-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--mk-muted, #6b7d95);
}

.mk-crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #14395d;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mk-crumbs a:hover {
  color: var(--mk-accent, #ff8a2b);
}

.mk-crumb-sep {
  display: inline-flex;
  align-items: center;
  color: #b0c4d8;
}

.mk-crumb-current {
  color: var(--mk-ink, #0b1f3a);
  font-weight: 600;
  overflow-wrap: anywhere;
}

[data-theme="dark"] .mk-crumbs a {
  color: #9fc3e2;
}

[data-theme="dark"] .mk-crumb-current {
  color: #e6eef7;
}

/* Search results header with cancel button */
.mk-search-results-label {
  font-weight: 700;
  font-size: inherit;
  color: var(--mk-text, #1e293b);
}

.mk-search-cancel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 14px;
  padding: 6px 16px;
  border: 1.5px solid var(--mk-line, #e2e8f0);
  border-radius: 999px;
  background: var(--mk-card, #fff);
  color: var(--mk-text, #475569);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s ease;
  vertical-align: middle;
  line-height: 1;
}
.mk-search-cancel:hover {
  background: var(--accent, #ff7f11);
  color: #1a0d00;
  border-color: var(--accent, #ff7f11);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,127,17,.25);
}
.mk-search-cancel:active {
  transform: translateY(0);
}
.mk-search-cancel svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

[data-theme="dark"] .mk-search-results-label {
  color: #e0e8f3;
}
[data-theme="dark"] .mk-search-cancel {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #94a3b8;
}
[data-theme="dark"] .mk-search-cancel:hover {
  background: var(--accent, #ff7f11);
  color: #1a0d00;
  border-color: var(--accent, #ff7f11);
}

@media (max-width: 600px) {
  .mk-search-cancel {
    margin-left: 8px;
    padding: 5px 12px;
    font-size: 0.75rem;
  }
  .mk-search-results-label {
    font-size: 0.95rem;
  }
}

.mk-browse-bar {
  margin-bottom: 22px;
}

/* Filter toggle (mobile only) */
.mk-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--mk-line);
  background: var(--mk-card);
  color: var(--mk-text);
  border-radius: 12px;
  padding: 11px 18px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 31, 49, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mk-filter-toggle:hover {
  border-color: var(--mk-accent-2);
}

.mk-filter-toggle.active {
  border-color: var(--mk-accent);
  color: var(--mk-accent);
}

.mk-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
  background: var(--mk-card);
  border: 1px solid var(--mk-line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(11, 31, 49, 0.07);
}

.mk-filter-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mk-muted);
  margin-bottom: 6px;
}

.mk-filter-field select,
.mk-filter-field input[type="number"] {
  width: 100%;
  border: 1.5px solid var(--mk-line);
  background: var(--mk-bg);
  color: var(--mk-text);
  border-radius: 11px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mk-filter-field select:focus,
.mk-filter-field input[type="number"]:focus {
  border-color: var(--mk-accent);
  box-shadow: 0 0 0 3px rgba(255, 138, 43, 0.15);
}

.mk-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pet-detail filters (Animals & Pets) — shown when that category is picked.
   The three controls share one full-width row so the extra criteria never
   crowd the other filter fields. */
.mk-filter-pets { grid-column: 1 / -1; }
.mk-filter-pets .mk-opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--mk-muted);
}
/* Ensure the [hidden] attribute always wins over any display rule on the
   filter-field wrapper (grid/flex parents can otherwise resurrect it). */
.mk-filter-field[hidden] {
  display: none !important;
}

.mk-pet-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mk-pet-filters select,
.mk-pet-filters input[type="text"] {
  flex: 1;
  min-width: 130px;
  border: 1.5px solid var(--mk-line);
  background: var(--mk-bg);
  color: var(--mk-text);
  border-radius: 11px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mk-pet-filters select:focus,
.mk-pet-filters input[type="text"]:focus {
  border-color: var(--mk-accent);
  box-shadow: 0 0 0 3px rgba(255, 138, 43, 0.15);
}
.mk-pet-filters input[type="text"]::placeholder {
  color: var(--mk-muted);
  opacity: 0.8;
}

.mk-price-inputs span {
  color: var(--mk-muted);
  flex-shrink: 0;
}

.mk-price-inputs input {
  min-width: 0;
}

.mk-filter-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.mk-filter-btn {
  border: none;
  border-radius: 11px;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--mk-accent-2), var(--mk-accent));
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 138, 43, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mk-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 138, 43, 0.38);
}

.mk-filter-btn.ghost {
  background: transparent;
  color: var(--mk-text);
  border: 1.5px solid var(--mk-line);
  box-shadow: none;
}

.mk-filter-btn.ghost:hover {
  border-color: var(--mk-accent);
  color: var(--mk-accent);
}

@media (max-width: 760px) {
  .mk-filter-toggle {
    display: inline-flex;
    margin-bottom: 12px;
  }

  .mk-filter-form {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .mk-filter-form.show {
    display: grid;
  }

  .mk-filter-field.mk-filter-price,
  .mk-filter-actions {
    grid-column: 1 / -1;
  }

  .mk-filter-actions {
    justify-content: stretch;
  }

  .mk-filter-btn {
    flex: 1;
  }
}

@media (max-width: 420px) {
  .mk-filter-form {
    grid-template-columns: 1fr;
  }
}

/* ===== Products | Services mode switch ===== */
.mk-mode-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 16px 0;
}

.mk-mode-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(560px, 100%);
  background: rgba(13, 43, 66, 0.07);
  border: 1px solid rgba(13, 43, 66, 0.14);
  border-radius: 999px;
  padding: 5px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mk-mode-btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #2b4a63;
  font: 600 1.05rem/1 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  transition: color 0.3s ease;
}

.mk-mode-btn svg {
  flex-shrink: 0;
}

.mk-mode-slider {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 5px;
  width: calc((100% - 10px) / 3);
  height: calc(100% - 10px);
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a00, #ff9d2e);
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.45);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mk-mode-switch[data-mode="services"] .mk-mode-slider {
  transform: translateX(100%);
}

.mk-mode-switch[data-mode="institutions"] .mk-mode-slider {
  transform: translateX(200%);
}

.mk-mode-btn.active {
  color: #fff;
}

@media (max-width: 480px) {
  .mk-mode-btn {
    font-size: 0.92rem;
    padding: 9px 8px;
    gap: 5px;
  }
}

/* ============================================================
   Institutions mode (Stays & Hotels | Schools & Institutions | Jobs)
   ============================================================ */
.mk-inst {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 8px;
}

.mk-inst-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 26px;
}

.mk-inst-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(13, 43, 66, 0.16);
  background: rgba(255, 255, 255, 0.85);
  color: #2b4a63;
  font: 600 0.95rem/1 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(2, 42, 70, 0.08);
}

.mk-inst-tab svg {
  flex-shrink: 0;
}

.mk-compare {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 10px rgba(11, 31, 49, 0.16);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #9aa8ba;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.mk-compare:hover {
  transform: scale(1.12);
  color: #1d8cf8;
}

.mk-inst-tab:hover {
  transform: translateY(-2px);
  border-color: #ff7a00;
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.18);
}

.mk-inst-tab.active {
  background: linear-gradient(135deg, #ff7a00, #ff9d2e);
  border-color: #ff7a00;
  color: #1a0d00;
  box-shadow: 0 8px 22px rgba(255, 122, 0, 0.35);
}

.mk-inst-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.mk-inst-bar .mk-section-head {
  margin: 0;
}

.mk-inst-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mk-inst-filters select {
  padding: 10px 34px 10px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(13, 43, 66, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #123047;
  font: 500 0.9rem/1 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 42, 70, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mk-inst-filters select:focus {
  outline: none;
  border-color: #ff7a00;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.18);
}

/* Institution / job chip accents */
.mk-chip.inst {
  background: rgba(47, 128, 237, 0.14);
  border-color: rgba(47, 128, 237, 0.45);
  color: #1d6fd1;
}

.mk-chip.job {
  background: rgba(31, 191, 117, 0.14);
  border-color: rgba(31, 191, 117, 0.45);
  color: #0d9e63;
}

.mk-chip.neg {
  background: rgba(255, 127, 17, 0.13);
  border-color: rgba(255, 127, 17, 0.5);
  color: #d95f00;
  font-size: 0.7rem;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Negotiable tag on seller-storefront listing cards (emitted by
   utils/listings.js as .neg-badge) — kept small to match the shrunken
   detail-page .neg-tag scale. */
.neg-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: 1px;
  background: rgba(255, 127, 17, 0.12);
  border: 1px solid rgba(255, 127, 17, 0.4);
  color: #d95f00;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 5px;
  white-space: nowrap;
}

.neg-badge svg {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
}

[data-theme="dark"] .neg-badge {
  background: rgba(255, 127, 17, 0.14);
  border-color: rgba(255, 157, 46, 0.5);
  color: #ff9d2e;
}

.inst-rooms {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0d9e63;
  background: rgba(31, 191, 117, 0.12);
  border: 1px solid rgba(31, 191, 117, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.job-card .mk-card-desc {
  min-height: 2.4em;
}

@media (max-width: 640px) {
  .mk-inst-tab {
    padding: 9px 14px;
    font-size: 0.86rem;
  }
  .mk-inst-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .mk-inst-filters {
    justify-content: space-between;
  }
  .mk-inst-filters select {
    flex: 1;
  }
}

/* ============================================================
   Services mode — card arrangement (restyled)
   Service cards sit side by side in responsive columns in every
   services grid (category results + Browse All), with equal
   heights per row so the layout reads as clean columns.
   ============================================================ */
body.mode-services .mk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px 22px;
  align-items: stretch;
}

/* Equal-height cards so each row of side-by-side cards lines up
   (price rows align across the row). Scoped to the result grids so
   the horizontal preview strips keep their compact internals. */
body.mode-services .mk-grid .mk-card {
  display: flex;
  flex-direction: column;
}

body.mode-services .mk-grid .mk-card-media {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.mode-services .mk-grid .mk-card-media > a {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

body.mode-services .mk-grid .mk-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

body.mode-services .mk-grid .mk-card-foot {
  margin-top: auto;
}

/* Tablet: 3 across */
@media (max-width: 1024px) {
  body.mode-services .mk-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 14px;
  }
}

/* Small tablets / large phones: 2 across */
@media (max-width: 768px) {
  body.mode-services .mk-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
  }
}

/* Phones: stay 2 across, just tighter */
@media (max-width: 480px) {
  body.mode-services .mk-grid {
    gap: 10px 8px;
  }
}

/* ---- Card internals matched to the column widths above ----
   The generic ≤900px / ≤560px compaction below was written for 3–4-up
   product tiles (~85–170px wide). Services mode shows fewer, wider
   cards (2–3 columns ≈ 170–400px), so restore the roomier internals
   there — chips, description, delivery line and seller all stay — and
   only drop to the compact tile treatment at ≤480px. */

/* 2–3-up service cards (≤900px): roomy internals, just slightly scaled */
@media (max-width: 900px) {
  body.mode-services .mk-card-body {
    padding: 12px 14px 14px;
  }

  body.mode-services .mk-card-title {
    font-size: 1.02rem;
  }

  body.mode-services .mk-card-desc {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  body.mode-services .mk-card-del {
    font-size: 0.72rem;
    padding: 6px 8px;
    margin-bottom: 10px;
  }

  /* Keep the price + seller on one row — the cards are wide enough */
  body.mode-services .mk-card-foot {
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
  }

  body.mode-services .mk-card-price {
    font-size: 1.15rem;
    width: auto;
  }

  body.mode-services .mk-card-seller {
    display: flex;
  }

  body.mode-services .mk-card-chips {
    padding: 7px 9px;
  }

  body.mode-services .mk-chip {
    font-size: 0.58rem;
    padding: 3px 8px;
  }
}

/* ≤560px (2-up, ~260px cards): keep the description + delivery line —
   unlike the 3-up product tiles, these cards have the room for both. */
@media (max-width: 560px) {
  body.mode-services .mk-card-body {
    padding: 10px 11px 12px;
  }

  body.mode-services .mk-card-title {
    font-size: 0.95rem;
  }

  body.mode-services .mk-card-desc {
    display: -webkit-box;
    font-size: 0.74rem;
    line-height: 1.4;
    height: 2.8em;
    margin-bottom: 8px;
  }

  body.mode-services .mk-card-del {
    display: flex;
    font-size: 0.66rem;
    padding: 5px 7px;
    margin-bottom: 8px;
  }

  body.mode-services .mk-card-del em {
    font-size: 0.6rem;
    padding: 1px 6px;
  }

  body.mode-services .mk-chip {
    font-size: 0.56rem;
    padding: 2px 7px;
  }
}

/* ≤480px phone tiles (~160px): adopt the compact tile treatment —
   drop the description + delivery line, stack the foot, hide seller. */
@media (max-width: 480px) {
  body.mode-services .mk-card-desc,
  body.mode-services .mk-card-del {
    display: none;
  }

  body.mode-services .mk-card-body {
    padding: 7px 8px 9px;
  }

  body.mode-services .mk-card-title {
    font-size: 0.92rem;
  }

  body.mode-services .mk-card-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  body.mode-services .mk-card-price {
    font-size: 1.1rem;
    width: 100%;
  }

  body.mode-services .mk-card-seller {
    display: none;
  }

  body.mode-services .mk-chip {
    font-size: 0.5rem;
    padding: 2px 5px;
  }
}

/* ============================================================
   Short screens: keep the announcement slideshow + mode switch
   from sliding under the fixed navbar (60px tall).
   ============================================================ */
@media (max-height: 700px) and (min-width: 481px) {
  .mk-hero {
    padding-top: 64px;
  }
}

@media (max-height: 700px) and (max-width: 480px) {
  .mk-hero {
    padding-top: 56px;
  }
}

/* ============================================================
   Mobile product cards — 2-up on phones, 4-up on small tablets
   (>=2 and up to 4 cards per viewport). Cards get compact
   internals so the smaller tiles stay readable.
   ============================================================ */
@media (max-width: 900px) {
  /* Hide card action buttons on mobile — users tap the card to go to detail page */
  .mk-card-actions {
    display: none;
  }

  .mk-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .mk-card {
    border-radius: 14px;
    border-width: 1px;
  }

  .mk-card-body {
    padding: 9px 10px 12px;
  }

  .mk-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
  }

  .mk-card-desc {
    font-size: 0.72rem;
    line-height: 1.4;
    height: 2.8em;
    margin-bottom: 8px;
  }

  .mk-card-del {
    font-size: 0.68rem;
    padding: 4px 6px;
    margin-bottom: 8px;
    gap: 4px;
  }

  .mk-card-del em {
    font-size: 0.62rem;
    padding: 1px 6px;
  }

  .mk-card-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  .mk-card-price {
    font-size: 1.3rem;
    font-weight: 700;
    width: 100%;
  }

  .mk-card-seller {
    display: none;
  }

  .mk-verified svg {
    width: 10px;
    height: 10px;
  }

  .mk-card-actions {
    top: 8px;
    right: 8px;
    gap: 4px;
  }  .mk-wish,
  .mk-share,
  .mk-report,
  .mk-compare {
    width: 30px;
    height: 30px;
  }

  .mk-wish svg,
  .mk-compare svg {
    width: 15px;
    height: 15px;
  }




  .mk-share svg,
  .mk-report svg {
    width: 14px;
    height: 14px;
  }

  /* Chips single row, horizontally scrollable on mobile */
  .mk-card-chips {
    padding: 6px 8px;
    gap: 4px 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mk-card-chips::-webkit-scrollbar { display: none; }

  .mk-chip {
    font-size: 0.58rem;
    padding: 3px 7px;
    min-height: 18px;
    line-height: 1.3;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    min-width: 0;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  /* 3 product cards per row on phones — cards get compact internals below so
     the smaller tiles stay readable. */
  .mk-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Horizontal scroll previews shrink so ~3 cards fit per row on phones.
     flex-basis ~110px + 8px gap ≈ 3 across a 360px viewport. */
  .mk-scroll .mk-card {
    flex-basis: 110px;
  }

  /* Shorter cards on phones: a 1:1 image keeps them compact and 3-up still
     reads well; the "Made for you" / "Exclusive deals" rows stay tidy. */
  .mk-scroll .mk-card-img {
    aspect-ratio: 1 / 1;
  }

  .mk-scroll .mk-card-body {
    padding: 5px 6px 7px;
  }

  .mk-scroll .mk-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .mk-scroll .mk-card-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mk-accent);
  }

  .mk-scroll .mk-card-desc {
    display: none;
  }

  .mk-scroll .mk-card-actions {
    top: 6px;
    right: 6px;
    gap: 3px;
  }

  .mk-scroll .mk-wish,
  .mk-scroll .mk-share,
  .mk-scroll .mk-report,
  .mk-scroll .mk-compare {
    width: 22px;
    height: 22px;
  }

  .mk-scroll .mk-wish svg,
  .mk-scroll .mk-compare svg {
    width: 11px;
    height: 11px;
  }

  .mk-scroll .mk-share svg,
  .mk-scroll .mk-report svg {
    width: 11px;
    height: 11px;
  }

  /* Compact chips band on tiny preview cards — single row scrollable */
  .mk-scroll .mk-card-chips {
    padding: 5px 6px;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mk-scroll .mk-card-chips::-webkit-scrollbar { display: none; }

  .mk-scroll .mk-chip {
    font-size: 0.58rem;
    padding: 3px 7px;
  }

  /* Compact 3-up card internals: drop the long description + delivery line
     and shrink text so three tiles fit comfortably on one phone row. */
  .mk-card-body {
    padding: 6px 7px 9px;
  }

  .mk-card-title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 3px;
  }

  .mk-card-desc,
  .mk-card-del {
    display: none;
  }

  .mk-card-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  /* Owner name off the card on phones — price/name get the space instead */
  .mk-card-seller {
    display: none;
  }

  .mk-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    color: var(--mk-accent);
  }

  .mk-card-title {
    font-size: 0.92rem;
    font-weight: 600;
  }
}

/* ============ ≤480px: 2-up grid, tighter cards ============ */
@media (max-width: 480px) {
  .mk-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .mk-card {
    border-radius: 12px;
    border-width: 1px;
  }

  /* Square image keeps the 2-up card compact — the chips band already adds
     its own row, so a taller-than-square image would make the card taller
     than it needs to be on phones. */
  .mk-card-img {
    aspect-ratio: 1 / 1;
  }

  .mk-card-body {
    padding: 5px 6px 7px;
  }

  .mk-card-title {
    font-size: 0.92rem;
    margin-bottom: 2px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
  }

  .mk-card-desc,
  .mk-card-del {
    display: none;
  }

  .mk-card-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  /* Hide owner name on mobile cards — frees space for price/name prominence */
  .mk-card-seller {
    display: none;
  }

  /* Price is the most visually dominant text on mobile cards */
  .mk-card-price {
    font-size: 1.22rem;
    font-weight: 700;
    width: 100%;
    color: var(--mk-accent);
  }

  .mk-card-price .mk-price-orig {
    font-size: 0.72em;
  }

  .mk-card-price .mk-discount-badge {
    font-size: 0.62rem;
    padding: 1px 5px;
    margin-left: 3px;
  }

  /* Single row of chips on phones — horizontally scrollable */
  .mk-card-chips {
    padding: 5px 7px;
    gap: 4px 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mk-card-chips::-webkit-scrollbar { display: none; }

  .mk-chip {
    font-size: 0.6rem;
    padding: 3px 7px;
    min-height: 18px;
    line-height: 1.35;
    display: inline-block;
    flex-shrink: 0;
    min-width: 0;
    white-space: nowrap;
  }

  /* Horizontal scroll sections: smaller peek cards (3 fit comfortably) */
  .mk-scroll .mk-card {
    flex-basis: 104px;
  }

  .mk-scroll .mk-card-img {
    aspect-ratio: 1 / 1;
  }

  .mk-scroll .mk-card-body {
    padding: 4px 5px 6px;
  }

  .mk-scroll .mk-card-title {
    font-size: 0.64rem;
  }

  .mk-scroll .mk-card-price {
    font-size: 0.68rem;
  }
}

/* ============ ≤380px: extra-compact 2-up ============ */
@media (max-width: 380px) {
  .mk-grid {
    gap: 4px;
  }

  .mk-card {
    border-radius: 10px;
  }

  .mk-card-body {
    padding: 4px 5px 5px;
  }

  .mk-card-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  .mk-card-seller {
    display: none;
  }

  .mk-card-price {
    font-size: 1.08rem;
  }

  .mk-card-title {
    font-size: 0.86rem;
    max-width: 100%;
  }  .mk-wish,
  .mk-share,
  .mk-report,
  .mk-compare {
    width: 24px;
    height: 24px;
  }

  .mk-wish svg,
  .mk-compare svg {
    width: 11px;
    height: 11px;
  }




  .mk-share svg,
  .mk-report svg {
    width: 11px;
    height: 11px;
  }

  .mk-card-chips {
    padding: 3px 5px;
    gap: 3px 4px;
  }

  .mk-chip {
    font-size: 0.5rem;
    padding: 2px 5px;
  }
}

/* ============ Seller storefront link on cards ============ */
.mk-seller-link {
  color: inherit;
  text-decoration: none;
  font-size: 10px;
  line-height: 1;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
  transition: color 0.15s;
}
.mk-seller-link:hover {
  color: var(--mk-accent);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════
   Pay-to-See section
   ═══════════════════════════════════════════════════════ */
.pts-card {
  background: var(--card-bg, #fff);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.pts-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.pts-card.pts-unlocked { border: 2px solid #16a34a33; }
.pts-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f1f5f9;
}
.pts-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pts-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}
.pts-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  backdrop-filter: blur(2px);
}
.pts-unlocked-badge {
  background: rgba(22, 163, 74, 0.85);
  backdrop-filter: none;
}
.pts-body {
  padding: 14px 16px 16px;
}
.pts-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #e0f2fe;
  color: #0369a1;
  margin-bottom: 6px;
}
.pts-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pts-teaser {
  font-size: 0.82rem;
  color: var(--text-secondary, #64748b);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pts-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.pts-price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent, #ff7f11);
  display: flex;
  align-items: center;
  gap: 4px;
}
.pts-price svg { flex-shrink: 0; }
.pts-cat {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--chip-bg, #f1f5f9);
  color: var(--text-secondary, #64748b);
}
.pts-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 10px;
}
.pts-seller { font-weight: 500; }
.pts-unlock-btn {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: var(--accent, #ff7f11);
  color: #1a0d00;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.pts-unlock-btn:hover { background: var(--accent-hover, #e56a00); }
.pts-view-btn {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: #16a34a15;
  color: #16a34a;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.pts-view-btn:hover { background: #16a34a25; }
.pts-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary, #94a3b8);
}
.pts-skeleton .skel-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.6s infinite;
}
.pts-skeleton .pts-body { padding: 14px 16px; }
.pts-skeleton .skel-line {
  height: 14px;
  border-radius: 4px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.6s infinite;
}

@media (max-width: 640px) {
  .pts-card { border-radius: 10px; }
  .pts-body { padding: 10px 12px 12px; }
  .pts-title { font-size: 0.92rem; }
}

/* ═══════════════════════════════════════════════════════
   WHOLESALE MEMBERSHIP BANNER
   ═══════════════════════════════════════════════════════ */
/* ============ Wholesale popup modal ============ */
.ws-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 30, 52, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: ws-fadeIn 0.3s ease;
}
.ws-popup-overlay[hidden] {
  display: none;
}
@keyframes ws-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ws-popup {
  position: relative;
  width: min(480px, 92vw);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 32px 64px rgba(1, 42, 70, 0.35);
  overflow: hidden;
  animation: ws-slideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes ws-slideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ws-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(11, 31, 49, 0.08);
  color: #6b7d95;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.ws-popup-close:hover {
  background: rgba(229, 72, 77, 0.12);
  color: #e5484d;
}
.ws-popup-header {
  padding: 32px 28px 16px;
  background: linear-gradient(135deg, #01304f, #06426e);
  color: #fff;
}
.ws-popup-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.ws-popup-header p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
}
.ws-popup-body {
  padding: 24px 28px 28px;
}
.ws-popup-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}
.ws-popup-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #24344a;
  font-weight: 500;
}
.ws-perk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a2b, #ffb463);
  flex-shrink: 0;
}
.ws-popup-cta {
  text-align: center;
}
.ws-popup-btn {
  display: inline-block;
  width: 100%;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff8a2b, #ffb463);
  color: #1a0d00;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 138, 43, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ws-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 138, 43, 0.45);
}
.ws-popup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.ws-popup-price {
  font-size: 0.88rem;
  color: #6b7d95;
  margin: 10px 0 0;
}
.ws-popup-media {
  margin: 0 0 18px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(1, 42, 70, 0.06);
}
.ws-popup-media-el {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}
[data-theme="dark"] .ws-popup {
  background: #141e30;
}
[data-theme="dark"] .ws-popup-close {
  background: rgba(255, 255, 255, 0.1);
  color: #9aa8ba;
}
[data-theme="dark"] .ws-popup-close:hover {
  background: rgba(229, 72, 77, 0.2);
  color: #e5484d;
}
[data-theme="dark"] .ws-popup-perks li {
  color: #c8d6e5;
}

/* ============================================================
   Admin-managed Ad Banners
   ============================================================ */
.mk-ad-banners {
  padding: 0 clamp(14px, 4vw, 44px);
}

.mk-ad-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 36px;
  margin: 16px 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #01304f, #06426e 55%, #0b5a8f);
  box-shadow: 0 10px 30px rgba(1, 42, 70, 0.22);
  color: #fff;
  min-height: 140px;
}

.mk-ad-banner-text {
  flex: 1;
  min-width: 0;
}

.mk-ad-banner-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
}

.mk-ad-banner-subtext {
  margin: 0 0 16px;
  font-size: .95rem;
  line-height: 1.6;
  opacity: .88;
}

.mk-ad-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7a00, #ff8a2b);
  color: #1a0d00;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}

.mk-ad-banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 122, 0, .35);
}

.mk-ad-banner-img {
  width: 220px;
  height: 130px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Media — promos can carry a looping video instead of the still image. */
video.mk-ad-banner-img {
  display: block;
  background: rgba(0, 0, 0, .35);
}

/* CTA + join row */
.mk-ad-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Payment badge */
.mk-ad-banner-payment {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .15);
  font-size: .82rem;
  font-weight: 600;
}

.mk-ad-banner-spots {
  opacity: .78;
  font-weight: 500;
}

/* Join button for payment-gated promos */
.mk-ad-banner-join {
  padding: 9px 20px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: background .15s, transform .15s;
}

.mk-ad-banner-join:hover:not(:disabled) {
  background: rgba(255, 255, 255, .16);
  transform: translateY(-2px);
}

.mk-ad-banner-join:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Already a member of this promo */
.mk-ad-banner-joined {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(34, 197, 94, .22);
  border: 1px solid rgba(34, 197, 94, .5);
  font-size: .82rem;
  font-weight: 700;
}

/* Dark mode */
[data-theme="dark"] .mk-ad-banner {
  background: linear-gradient(135deg, #0a1e30, #0f2d45 55%, #143d5e);
}

/* Responsive */
@media (max-width: 640px) {
  .mk-ad-banner {
    flex-direction: column-reverse;
    text-align: center;
    padding: 24px 20px;
  }
  .mk-ad-banner-img {
    width: 100%;
    height: 160px;
  }
  .mk-ad-banner-title {
    font-size: 1.15rem;
  }
}

/* ============================================================
   Advanced Filter Drawer
   ============================================================ */

/* Floating action button — bottom left corner */
.mk-filter-fab {
  position: fixed;
  bottom: 28px;
  left: 24px;
  z-index: 9990;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #012a46, #06426e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(1, 42, 70, 0.35);
  transition: transform .2s, box-shadow .2s;
}

.mk-filter-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(1, 42, 70, 0.45);
}

/* Overlay */
.mk-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9991;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.mk-drawer-overlay:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer panel */
.mk-filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(380px, 85vw);
  z-index: 9992;
  background: var(--card-bg, #fff);
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.mk-filter-drawer:not([hidden]) {
  transform: translateX(0);
}

.mk-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line, #e3eaf2);
}

.mk-drawer-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text, #24344a);
}

.mk-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted, #6b7d95);
  padding: 4px;
  border-radius: 6px;
  transition: color .2s;
}

.mk-drawer-close:hover {
  color: var(--text, #24344a);
}

/* Body — scrollable */
.mk-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
}

.mk-drawer-section {
  margin-bottom: 20px;
}

.mk-drawer-section h4 {
  margin: 0 0 10px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text, #24344a);
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* Checkboxes */
.mk-drawer-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mk-drawer-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: .88rem;
  color: var(--text, #24344a);
  cursor: pointer;
  transition: background .15s;
}

.mk-drawer-checks label:hover {
  background: var(--tag-bg, #eef2f6);
}

.mk-drawer-checks input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent, #ff8a2b);
  flex-shrink: 0;
}

/* Region / Town selects */
.mk-drawer-section select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line, #dde3eb);
  border-radius: 10px;
  font-size: .88rem;
  font-family: inherit;
  background: var(--input-bg, #f7f9fc);
  color: var(--text, #24344a);
}

.mk-drawer-section select:focus {
  outline: none;
  border-color: var(--accent, #ff8a2b);
}

/* Dual price range slider */
.mk-price-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mk-price-val {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent, #ff8a2b);
  min-width: 70px;
}

.mk-price-range input[type="range"] {
  flex: 1;
  min-width: 80px;
  accent-color: var(--accent, #ff8a2b);
  height: 4px;
}

/* Drawer ads */
.mk-drawer-ad-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mk-drawer-ad-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--tag-bg, #eef2f6);
}

.mk-drawer-ad-item img,
.mk-drawer-ad-item video {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.mk-drawer-ad-item .ad-text {
  flex: 1;
  min-width: 0;
}

.mk-drawer-ad-item .ad-text h5 {
  margin: 0 0 2px;
  font-size: .82rem;
  color: var(--text, #24344a);
}

.mk-drawer-ad-item .ad-text p {
  margin: 0;
  font-size: .75rem;
  color: var(--muted, #6b7d95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer */
.mk-drawer-footer {
  display: flex;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--line, #e3eaf2);
}

.mk-drawer-reset {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--line, #dde3eb);
  border-radius: 10px;
  background: transparent;
  color: var(--muted, #6b7d95);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
}

.mk-drawer-apply {
  flex: 1.5;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7a00, #ff8a2b);
  color: #1a0d00;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.mk-drawer-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.3);
}

/* Dark mode */
[data-theme="dark"] .mk-filter-drawer {
  background: var(--card-bg, #162232);
}

[data-theme="dark"] .mk-drawer-header {
  border-bottom-color: var(--line, #2a3a4d);
}

[data-theme="dark"] .mk-drawer-section select {
  background: var(--input-bg, #1e2d3e);
  border-color: var(--line, #2a3a4d);
  color: var(--text, #e0e6ed);
}

[data-theme="dark"] .mk-drawer-footer {
  border-top-color: var(--line, #2a3a4d);
}

[data-theme="dark"] .mk-drawer-reset {
  border-color: var(--line, #2a3a4d);
  color: var(--muted, #8a9bb0);
}

[data-theme="dark"] .mk-drawer-ad-item {
  background: var(--tag-bg, #1e2d3e);
}

[data-theme="dark"] .mk-filter-fab {
  background: linear-gradient(135deg, #0a1e30, #143d5e);
}

/* Responsive */
@media (max-width: 480px) {
  .mk-filter-fab {
    bottom: 18px;
    left: 14px;
    width: 46px;
    height: 46px;
  }
  .mk-filter-drawer {
    width: 100vw;
    max-width: 100vw;
  }
  .mk-drawer-header {
    padding: 16px 18px 12px;
  }
  .mk-drawer-body {
    padding: 14px 18px;
  }
  .mk-drawer-footer {
    padding: 12px 18px;
  }
}
@media (min-width: 481px) and (max-width: 768px) {
  .mk-filter-drawer {
    width: min(340px, 80vw);
  }
}

/* Payment-gated promo CTAs (rendered as <button>) reuse the anchor CTA
   styles but need the native button chrome reset. */
.mk-slide-cta.mk-pay-btn,
.mk-ad-banner-cta.mk-pay-btn {
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.mk-slide-cta.mk-pay-btn:disabled,
.mk-ad-banner-cta.mk-pay-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.mk-slide-cta.mk-slide-joined {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: default;
}

.mk-slide-cta.mk-slide-joined:hover {
  transform: none;
  box-shadow: none;
}

.mk-ad-banner-payment.joined {
  color: var(--mk-accent);
  font-weight: 700;
}

.mk-drawer-ad-item {
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════
   SECTION SEARCH RESULTS
   Results grouped by section when searching
   ═══════════════════════════════════════════════════ */
.mk-section-results {
  padding: 0 24px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.mk-section-result-group {
  margin-bottom: 28px;
}
.mk-section-result-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.mk-section-result-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary, #0b3c5d);
}
.mk-section-result-count {
  font-size: .8rem;
  color: var(--text-secondary, #6b7b8d);
  background: var(--bg-secondary, #f0f2f5);
  padding: 2px 8px;
  border-radius: 10px;
}
[data-theme="dark"] .mk-section-result-label {
  color: var(--text-primary, #e8eef4);
}
[data-theme="dark"] .mk-section-result-count {
  background: var(--bg-secondary, #0f1923);
  color: var(--text-secondary, #8899aa);
}

/* ═══════════════════════════════════════════════════
   COOKIE CONSENT SETTINGS LINK
   ═══════════════════════════════════════════════════ */
.footer-cookie-link {
  font-size: .8rem;
  color: var(--text-secondary, #6b7b8d);
  text-decoration: underline;
  cursor: pointer;
  margin-left: 8px;
}

/* ============================================================
   Services mode — curated sections side-by-side grid
   Override the horizontal-scroll mk-scroll rows so services
   cards render as a proper responsive grid (same as Browse All).
   ============================================================ */
body.mode-services .mk-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px 22px;
  overflow-x: visible;
  padding: 4px 0 16px;
}

/* Scroll-strip card sizing no longer applies in services grid */
body.mode-services .mk-scroll .mk-card {
  flex: none;
  width: auto;
}

/* Tablet: 3 across */
@media (max-width: 1024px) {
  body.mode-services .mk-scroll {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 14px;
  }
}

/* Small tablets / large phones: 2 across */
@media (max-width: 768px) {
  body.mode-services .mk-scroll {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
  }
}

/* Phones: stay 2 across, just tighter */
@media (max-width: 480px) {
  body.mode-services .mk-scroll {
    gap: 10px 8px;
  }
}
.footer-cookie-link:hover {
  color: var(--accent, #ff7a00);
}

/* ============ Mobile View Toggle (Grid ↔ List) ============ */
.mk-section-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.mk-view-toggle {
  display: none; /* hidden on desktop */
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--mk-line, #e3eaf2);
  border-radius: 10px;
  background: var(--mk-card, #fff);
  color: var(--mk-ink);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.mk-view-toggle:hover {
  border-color: var(--mk-accent, #ff7a00);
  background: rgba(255, 122, 0, 0.05);
}
.mk-view-toggle svg {
  width: 18px;
  height: 18px;
}

/* List view mode */
body.mk-list-view .mk-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.mk-list-view .mk-grid .mk-card {
  display: flex;
  flex-direction: row;
  border-radius: 14px;
  overflow: hidden;
}
body.mk-list-view .mk-grid .mk-card-media {
  width: 140px;
  min-width: 140px;
  height: auto;
  flex: none;
}
body.mk-list-view .mk-grid .mk-card-media img {
  height: 100%;
  min-height: 120px;
  object-fit: cover;
}
body.mk-list-view .mk-grid .mk-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.mk-list-view .mk-grid .mk-card-chips {
  border-bottom: none;
  padding: 8px 12px 4px;
}
body.mk-list-view .mk-grid .mk-card-foot {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 10px;
}

@media (max-width: 720px) {
  .mk-view-toggle {
    display: flex;
  }
}
@media (max-width: 480px) {
  body.mk-list-view .mk-grid .mk-card-media {
    width: 110px;
    min-width: 110px;
  }
  body.mk-list-view .mk-grid .mk-card-body {
    padding: 8px 10px;
  }
}

[data-theme="dark"] .mk-view-toggle {
  background: var(--mk-card-dark, #121a2b);
  border-color: var(--mk-line-dark, #24314b);
  color: var(--mk-ink-dark, #eef4fb);
}
[data-theme="dark"] .mk-view-toggle:hover {
  border-color: var(--mk-accent);
  background: rgba(255, 122, 0, 0.1);
}
