/* ============================================================
   Catalogue sheet — decorel-gallery.css  (v24)
   ------------------------------------------------------------
   v24: .amb-next now repeats for three extra viewers (Hyundai, Thar, BMW); no CSS rule changed.
   v23: Second ambient viewer (Mahindra Thar) below the CARDI K4 one: .amb-next divider + spacing, own hint, mobile
        edge-to-edge like the first.
   v22: Ambient 360 viewer mobile hardening: 40 px zoom / fullscreen buttons on touch screens, safe-area insets for
        notched phones, "Swipe to look around" hint support, retry card (.amb-err / .amb-retry) for the hardened
        loader in main.js v45, soft fade-in of the rendered panorama, landscape-phone viewer height, and the zone
        label steps aside below 360 px so the select keeps its room.
   v21: Ambient page rebuilt as a 360 viewer (.amb-pano, .amb-ctl, .amb-pin ...); old picture-swap explorer styles removed.
   v20: Lighting hub made brighter (blue hero with light beams, colour-coded cards, brand marquee, 4 categories incl.
        Ambient) + the CARDI K4 ambient explorer (.amb-*).
   v19: Lighting hub page redesigned (dark hero with headlight-ring motif, feature cards with product counts,
        brands strip, WhatsApp / call band). Same palette and tokens as the rest of the site.
   v18: Lighting hub page (.lt-hub / .lt-card): three category cards (LED Bulbs, Headlights, Projectors),
        3 across on desktop / tablet, one row per card on phones.

   Category pages now use:

   • A filter panel on the LEFT (radio list for Seat covers /
     Interior, brand checkboxes for Car audio / Car care)
   • A product GRID on the right: 4 cards per row on desktop,
     3 on tablets, 2 on phones (filter moves above the grid)
   • Uniform white product cards (4:3 image area, object-fit
     contain, white background — no cropping, no distortion)
   • Dashcam page: a wide FEATURED card (.fc-*) for the local-brand
     "4G Cam With Live Feed" model, shown above the grid
   • v17: filter panel can hold several groups (.flt-groups wraps the .flt-group fieldsets; Lighting has
     Categories + Brands) and an empty-result message (.pc-empty).
   • Lighting page: section heading (.cat-sec) + a FEATURED card whose picture
     is a scroll-snap gallery (.fc-gal: front / back pictures, prev / next arrows, swipe)

   Colours / font come from style.css (--accent, --ink, --line ...).
   The expand icon (.pc-zoom) and the lightbox (.lb-*) are styled by
   the <style id="dg-zoom-styles"> block that main.js injects, so they
   are not repeated here.

   Load AFTER style.css. All rules are namespaced with
   `flt-` / `dg-` (filters), `cat-` (layout) and `pc-` (product
   card / grid) so nothing in style.css is clobbered.
   ============================================================ */

/* ============================================================
   Page layout: [ filter | product grid ]
   ============================================================ */
/* Category pages use a wider container than the 1200px default so the
   4-per-row cards are larger (about 265px each at full width). */
.page-body > .wrap { width: min(1380px, 100% - 40px); }

.cat-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.cat-main {
  min-width: 0;
}

.cat-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 14px;
}

.cat-count {
  margin: 0;
  font: 600 14px var(--body);
  color: var(--ink2);
}

/* Filter button + sheet extras: only used on phones / tablets */
.flt-toggle,
.flt-x,
.flt-foot,
.flt-backdrop { display: none; }

.flt-toggle {
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent-d);
  color: #fff;
  font: 600 14.5px var(--body);
  box-shadow: 0 3px 10px rgba(47, 102, 224, .25);
  transition: background .2s;
}

.flt-toggle:hover { background: var(--accent-dd); }
.flt-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.flt-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.flt-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-d);
  font: 700 12px var(--body);
}

.flt-badge[hidden] { display: none; }

/* ============================================================
   Filter panel (left)
   ============================================================ */
.flt {
  position: sticky;
  top: 92px; /* below the sticky header */
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-s);
  padding: 18px 16px 12px;
  max-height: calc(100vh - 112px);
  max-height: calc(100dvh - 112px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.flt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.flt-title {
  font-family: var(--head);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}

.flt-clear {
  font: 600 13px var(--body);
  color: var(--accent-d);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}

.flt-clear:hover:not(:disabled) {
  background: var(--accent-t);
}

.flt-clear:disabled {
  color: var(--mute);
  cursor: default;
  opacity: .6;
}

.flt-group {
  border: 0;
  min-width: 0;
  padding: 14px 0 4px;
}

.flt-groups {
  min-width: 0;
}

.flt-group + .flt-group {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.pc-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 36px 16px;
  text-align: center;
  font: 600 15px var(--body);
  color: var(--mute);
}

.flt-legend {
  padding: 0;
  margin-bottom: 6px;
  font: 700 12px var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}

.flt-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flt-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  font: 600 14.5px var(--body);
  color: var(--ink);
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}

.flt-opt:hover {
  background: var(--bg);
}

.flt-input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent-d);
  cursor: pointer;
}

.flt-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.flt-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

/* Colour swatch beside a colour name */
.dg-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .15);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}

/* Product-count badge */
.dg-count {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(1, 6, 17, .07);
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--ink2);
}

/* ---------- Grid fade-in (played when a filter changes) ---------- */
@keyframes dgFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dg-fade-in {
  animation: dgFadeIn .4s cubic-bezier(.2, .8, .2, 1) both;
}

/* ============================================================
   Product grid — 4 cards per row
   ============================================================ */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  /* Every row is as tall as the tallest row, so ALL cards end up exactly the same size */
  grid-auto-rows: 1fr;
  gap: 16px;
}

/* ============================================================
   Product card
   ------------------------------------------------------------
   White card, fills its grid cell, fixed 4:3 image area.
   object-fit: contain on a white background means images of
   any aspect ratio stay undistorted — portrait shots simply
   letterbox into white, which blends with the card.
   ============================================================ */
.pc-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(1, 6, 17, .05);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}

.pc-card:hover {
  border-color: #D3D5DB;
  box-shadow: 0 10px 24px rgba(1, 6, 17, .08);
}

/* Image container: reserved space, no layout shift */
.pc-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* The photo is shown whole (object-fit: contain) and never distorted */
.pc-img img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

/* "Best Seller" tag on a card's image (top-left; the enlarge icon stays top-right) */
.pc-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFC83D, #FF9F1C);
  color: #1d1300;
  font: 800 11.5px/1 var(--body);
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255, 159, 28, .4);
  pointer-events: none;
}

.pc-tag svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Fallback label if a file is missing */
.pc-img .ph {
  padding: 12px;
  text-align: center;
  font: 600 13px/1.4 var(--body);
  color: var(--mute);
}

/* Card body: aligned name + button along the bottom */
.pc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 12px 12px;
}

.pc-name {
  margin: 12px 0 12px;
  font: 600 14px/1.35 var(--body);
  color: var(--ink);
  letter-spacing: -.005em;
  /* Show the full name: wrap onto up to 3 lines, always reserving 2 lines
     so every card's button lines up. */
  min-height: 2.7em;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.pc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: auto;
  border-radius: 999px;
  background: var(--accent-d);
  color: #fff;
  font: 600 13.5px var(--body);
  transition: background .2s;
}

.pc-cta:hover {
  background: var(--accent-dd);
  color: #fff;
}

.pc-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 999px;
}

/* ============================================================
   Featured card (Dashcam page) — local-brand 4G model
   ------------------------------------------------------------
   Wide card above the grid: image left, text right. On phones it
   stacks (image on top). The badge carries the key selling point.
   ============================================================ */
.fc-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: stretch;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-t) 100%);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(47, 102, 224, .14);
  overflow: hidden;
}

.fc-img {
  position: relative;
  aspect-ratio: 1200 / 896;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fc-img img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.fc-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(20px, 3vw, 40px);
}

.fc-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 800 clamp(13px, 1.3vw, 16px) var(--body);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Pulsing "live" dot */
.fc-live {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FF3B30;
  flex: none;
}

.fc-live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #FF3B30;
  animation: fcPulse 1.6s ease-out infinite;
}

@keyframes fcPulse {
  from { transform: scale(1); opacity: .7; }
  to   { transform: scale(2.8); opacity: 0; }
}

.fc-title {
  font-family: var(--head);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--ink);
}

.fc-sub {
  max-width: 46ch;
  font-size: clamp(15px, 1.25vw, 17px);
  color: var(--ink2);
}

.fc-cta {
  width: auto;
  min-width: 190px;
  min-height: 48px;
  margin-top: 6px;
  padding: 0 28px;
  font-size: 15.5px;
}

/* ============================================================
   Section heading above a category's products (Lighting > "LED Headlight Bulbs")
   ============================================================ */
.cat-sec {
  margin: 4px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  font-family: var(--head);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* ============================================================
   Featured card with a scrollable picture gallery (Lighting / Hella)
   ------------------------------------------------------------
   The picture column is a horizontal scroll-snap track: one picture
   per "page" (front of the box, then the back with packaging + specs).
   Swipe on touch screens; on desktop use the arrows, the trackpad or
   the arrow keys.
   ============================================================ */
.fc-gal {
  position: relative;
  min-width: 0;
  background: #fff;
}

.fc-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.fc-track::-webkit-scrollbar { display: none; }

.fc-track:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

/* Each picture is one full-width "page" (it reuses the .fc-img frame, so the
   expand icon, lightbox and loading shimmer work exactly as on other cards) */
.fc-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.fc-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(1, 6, 17, .16);
  transition: background .2s, color .2s, opacity .2s, transform .2s;
}

.fc-arrow.prev { left: 10px; }
.fc-arrow.next { right: 10px; }
.fc-arrow:hover { background: var(--ink); color: #fff; }
.fc-arrow:active { transform: scale(.94); }
.fc-arrow:disabled { opacity: .35; pointer-events: none; }
.fc-arrow:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.fc-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   Responsive — tablet / mobile
   ============================================================ */
@media (max-width: 1100px) {
  .cat-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 20px; }
  .pc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Tablet + phone: the sidebar becomes a slide-up sheet opened by the Filter button */
@media (max-width: 860px) {
  .cat-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }

  .flt-toggle { display: inline-flex; }
  .cat-bar { margin: 0 0 14px; }

  .flt-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(1, 6, 17, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .25s;
  }

  .flt {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 1101;
    display: flex;
    flex-direction: column;
    max-height: 82vh;
    max-height: 82dvh;
    padding: 18px 18px 0;
    border: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 40px rgba(1, 6, 17, .25);
    overflow: hidden;
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
  }

  .cat-layout.flt-open .flt-backdrop {
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease;
  }

  .cat-layout.flt-open .flt {
    transform: none;
    visibility: visible;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  }

  .flt-head { flex: none; }
  .flt-title { font-size: 21px; margin-right: auto; }

  .flt-x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--ink);
  }

  .flt-x svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
  }

  /* All filter groups scroll together inside one wrapper */
  .flt-groups {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .flt-group { padding-bottom: 6px; }

  .flt-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 8px;
  }

  /* Each option is a tappable pill; ticked pills turn blue */
  .flt-opt {
    position: relative;
    min-height: 44px;
    padding: 8px 14px;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-size: 14.5px;
  }

  .flt-opt:has(.flt-input:checked) {
    background: var(--accent-t);
    border-color: var(--accent-d);
    color: var(--accent-d);
  }

  .flt-input { width: 18px; height: 18px; }
  .flt-name { flex: none; }

  .flt-foot {
    display: block;
    flex: none;
    padding: 12px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 1px solid var(--line);
  }

  .flt-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    background: var(--accent-d);
    color: #fff;
    font: 700 15.5px var(--body);
  }

  .flt-apply:hover { background: var(--accent-dd); }

  .pc-grid { gap: 14px; }

  /* Featured card stacks: image on top, text below */
  .fc-card { grid-template-columns: minmax(0, 1fr); }
  .fc-body { align-items: stretch; }
  .fc-cta { width: 100%; }
}

/* Phones: two columns would make cards small, so show one big card per row
   (full-width image, larger name and button). */
@media (max-width: 640px) {
  .page-body > .wrap { width: calc(100% - 24px); }
  .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pc-body { padding: 0 10px 10px; }
  .pc-name { font-size: 14px; margin: 10px 0; }
  .pc-cta { min-height: 40px; font-size: 14px; }
  .pc-tag { top: 8px; left: 8px; padding: 4px 8px 4px 6px; font-size: 10.5px; }
  .fc-card { border-radius: 16px; margin-bottom: 16px; }
  .fc-img img { padding: 10px; }
  .fc-body { gap: 12px; padding: 18px 16px 20px; }
  .fc-cta { min-height: 48px; font-size: 15px; }
}

@media (max-width: 480px) {
  .pc-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pc-body { padding: 0 14px 14px; }
  .pc-name { font-size: 16px; margin: 14px 0; }
  .pc-cta { min-height: 46px; font-size: 15px; }
}

/* Gallery + section heading on small screens */
@media (max-width: 860px) {
  /* the stacked featured card: the gallery is full width on top */
  .fc-gallery .fc-img img { padding: 10px; }
}
@media (max-width: 640px) {
  .cat-sec { margin-bottom: 12px; font-size: 21px; }
  .fc-arrow { width: 36px; height: 36px; margin-top: -18px; }
  .fc-arrow.prev { left: 6px; }
  .fc-arrow.next { right: 6px; }
  .fc-arrow svg { width: 16px; height: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .dg-fade-in { animation: none; }
  .fc-live::after { animation: none; display: none; }
  .fc-arrow { transition: none; }
  .flt,
  .flt-backdrop { transition: none; }
  .flt-opt,
  .flt-clear,
  .flt-toggle,
  .pc-cta { transition: none; }
}

/* ============================================================
   Lighting hub (lighting.html) - bright hero, four colour-coded category cards, brand marquee, contact band
   Palette: accent blue (#4580FE), gold (--gold), WhatsApp green (--wa), ink. Tokens come from style.css.
   ============================================================ */
@keyframes ltUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ltBeam { from { transform: translateX(-60%) skewX(-22deg); } to { transform: translateX(260%) skewX(-22deg); } }
@keyframes ltFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes ltMarq { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---- Hero ---- */
.lt-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(125deg, #1B47C9 0%, #4580FE 52%, #7FA8FF 100%);
  color: #fff;
  padding: 26px 0 clamp(88px, 11vw, 150px);
}

.lt-hero::before {               /* lens rings */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 86% 44%,
    transparent 0 90px, rgba(255, 255, 255, .28) 91px 93px,
    transparent 94px 150px, rgba(255, 255, 255, .18) 151px 153px,
    transparent 154px 216px, rgba(255, 255, 255, .12) 217px 219px,
    transparent 220px);
}

.lt-hero::after {                /* soft gold glow */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px 360px at 92% 4%, rgba(255, 211, 110, .55), transparent 70%),
    radial-gradient(420px 300px at 0% 100%, rgba(1, 6, 17, .35), transparent 70%);
}

.lt-beam {
  position: absolute;
  inset: -10% auto -10% 0;
  z-index: -1;
  width: 22%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  animation: ltBeam 7s ease-in-out infinite;
}
.lt-beam.b { width: 10%; animation-delay: 2.4s; opacity: .7; }

.lt-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  animation: ltFloat 7s ease-in-out infinite;
}
.lt-orb.a { right: 9%; bottom: 18%; width: 74px; height: 74px; background: radial-gradient(circle at 35% 30%, #FFF0C2, var(--gold) 70%); box-shadow: 0 0 60px 12px rgba(255, 211, 110, .55); }
.lt-orb.b { right: 24%; top: 16%; width: 26px; height: 26px; background: #fff; box-shadow: 0 0 40px 10px rgba(255, 255, 255, .7); animation-delay: 1.6s; }

.lt-hero .crumbs { color: rgba(255, 255, 255, .75); }
.lt-hero .crumbs a { color: #fff; }
.lt-hero .crumbs a:hover { text-decoration: underline; }
.lt-hero .crumbs [aria-current="page"] { color: #fff; font-weight: 700; }

.lt-hero h1 {
  margin-top: 6px;
  font-size: clamp(44px, 7vw, 80px);
  letter-spacing: -.025em;
  line-height: 1.02;
  color: #fff;
  text-shadow: 0 6px 30px rgba(1, 6, 17, .25);
}

.lt-hero h1::after {
  content: "";
  display: block;
  width: 84px;
  height: 6px;
  margin-top: 18px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gold), #FFE3A0);
  box-shadow: 0 0 22px rgba(255, 211, 110, .8);
}

.lt-lead {
  max-width: 580px;
  margin-top: 20px;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .94);
}

.lt-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.lt-stats li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 14px;
  color: rgba(255, 255, 255, .92);
}

.lt-stats b { font-family: var(--head); font-size: 22px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

.lt-hero .crumbs, .lt-hero h1, .lt-hero .lt-lead, .lt-hero .lt-stats { animation: ltUp .7s both; }
.lt-hero h1 { animation-delay: .08s; }
.lt-hero .lt-lead { animation-delay: .16s; }
.lt-hero .lt-stats { animation-delay: .24s; }

/* ---- Category cards ---- */
.lt-sec {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * clamp(56px, 8vw, 104px));
  padding-bottom: var(--sec-y);
}

.lt-hub {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.lt-hub > li { display: flex; min-width: 0; animation: ltUp .7s both; animation-delay: calc(.2s + var(--i, 0) * .12s); }

.lt-blue   { --c1: #2F66E0; --c2: #7FA8FF; --glow: rgba(69, 128, 254, .5);  --tint: #EAF1FF; --ink-c: #2557C4; }
.lt-gold   { --c1: #E39A00; --c2: #FFD36E; --glow: rgba(223, 166, 42, .55); --tint: #FFF4DC; --ink-c: #9A6B00; }
.lt-green  { --c1: #12A150; --c2: #6CEB9F; --glow: rgba(37, 211, 102, .5);  --tint: #E3F8EC; --ink-c: #0B7A3B; }
.lt-violet { --c1: #3B5BFF; --c2: #C25CFF; --glow: rgba(176, 77, 255, .5);  --tint: #F1E8FF; --ink-c: #6E2BD1; }

.lt-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 4px);
  box-shadow: 0 14px 34px -10px var(--glow);
  transition: transform .3s, box-shadow .3s;
}

.lt-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(26px, 3vw, 38px) 20px;
  background: linear-gradient(145deg, var(--c1), var(--c2));
}

.lt-media::before {             /* lens rings behind the icon */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%,
    transparent 0 62px, rgba(255, 255, 255, .35) 63px 64px,
    transparent 65px 92px, rgba(255, 255, 255, .22) 93px 94px,
    transparent 95px 126px, rgba(255, 255, 255, .14) 127px 128px, transparent 129px);
}

.lt-media::after {              /* shine */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 48%, transparent 60%);
  transform: translateX(-70%);
  transition: transform .8s;
}

.lt-no {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  font-family: var(--head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink-c);
}

.lt-new {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 1;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(255, 211, 110, .9);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}

.lt-pic {
  position: relative;
  z-index: 1;
  width: min(74%, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 14px 34px rgba(1, 6, 17, .28), 0 0 0 7px rgba(255, 255, 255, .35);
  transition: transform .45s;
}
.lt-pic img { object-fit: contain; padding: 9%; border-radius: 50%; }

.lt-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: clamp(18px, 2vw, 24px); }

.lt-title { margin: 0; font-family: var(--head); font-size: clamp(20px, 1.9vw, 25px); font-weight: 700; line-height: 1.2; color: var(--ink); }
.lt-sub { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink2); overflow-wrap: anywhere; }

.lt-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-top: auto; padding-top: 20px; }

.lt-count { padding: 5px 12px; border-radius: 999px; background: var(--tint); font-size: 14px; font-weight: 700; color: var(--ink-c); white-space: nowrap; }
.lt-count span { font-weight: 800; }

.lt-go { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--ink-c); }
.lt-arr { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(145deg, var(--c1), var(--c2)); color: #fff; box-shadow: 0 6px 16px -4px var(--glow); transition: transform .3s; }
.lt-arr .ico { width: 18px; height: 18px; }

.lt-card:focus-visible { outline-offset: 4px; border-radius: calc(var(--r) + 4px); }
.lt-card:focus-visible .lt-media::after { transform: translateX(70%); }

@media (hover: hover) {
  .lt-card:hover { transform: translateY(-8px); box-shadow: 0 28px 52px -12px var(--glow); }
  .lt-card:hover .lt-media::after { transform: translateX(70%); }
  .lt-card:hover .lt-pic { transform: scale(1.08) rotate(-2deg); }
  .lt-card:hover .lt-arr { transform: translateX(5px); }
}

/* ---- Brand marquee ---- */
.lt-brands { padding: clamp(36px, 5vw, 64px) 0; background: var(--surface); border-block: 1px solid var(--line); overflow: hidden; }
.lt-brands .sh { margin-bottom: clamp(18px, 2.4vw, 28px); }

.lt-marq { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lt-marq:hover .lt-chips { animation-play-state: paused; }

.lt-chips { flex: none; display: flex; gap: 12px; padding-right: 12px; list-style: none; margin: 0; animation: ltMarq 32s linear infinite; }

.lt-chips li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--head);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.lt-chips li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.lt-chips li:nth-child(4n+2)::before { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.lt-chips li:nth-child(4n+3)::before { background: var(--wa); box-shadow: 0 0 12px var(--wa); }
.lt-chips li:nth-child(4n)::before { background: #B04DFF; box-shadow: 0 0 12px #B04DFF; }

/* ---- Contact band ---- */
.lt-cta-sec { padding: var(--sec-y) 0; }

.lt-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  padding: clamp(30px, 5vw, 60px);
  border-radius: calc(var(--r) + 8px);
  background: linear-gradient(125deg, #1B47C9, #4580FE 60%, #7FA8FF);
  color: #fff;
  box-shadow: 0 24px 56px -16px rgba(69, 128, 254, .6);
}

.lt-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 92% 50%, transparent 0 70px, rgba(255, 255, 255, .3) 71px 73px, transparent 74px 120px, rgba(255, 255, 255, .18) 121px 123px, transparent 124px),
    radial-gradient(420px 260px at 100% 0%, rgba(255, 211, 110, .6), transparent 70%);
}

.lt-cta-txt { flex: 1 1 320px; min-width: 0; }
.lt-cta h2 { font-size: clamp(25px, 3.2vw, 38px); color: #fff; }
.lt-cta p { max-width: 520px; margin-top: 10px; color: rgba(255, 255, 255, .92); }
.lt-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.lt-cta .btn.wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .7); }
.lt-cta .btn.wa:hover { background: var(--wa-d); }
.lt-cta .btn.ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.lt-cta .btn.ghost:hover { background: #fff; color: var(--accent-dd); }
.lt-cta .btn .ico { width: 20px; height: 20px; }

/* ---- Tablet: 2 x 2 ---- */
@media (max-width: 1099px) { .lt-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Phones and small tablets: one card per row, colour panel on the left ---- */
@media (max-width: 820px) {
  .lt-hub { grid-template-columns: 1fr; gap: 14px; }
  .lt-card { flex-direction: row; }
  .lt-media { flex: 0 0 clamp(112px, 32vw, 170px); padding: 14px 10px; }
  .lt-media::before { background: radial-gradient(circle at 50% 50%, transparent 0 40px, rgba(255, 255, 255, .35) 41px 42px, transparent 43px 62px, rgba(255, 255, 255, .2) 63px 64px, transparent 65px); }
  .lt-no { display: none; }
  .lt-new { top: 8px; right: auto; left: 8px; font-size: 10px; padding: 2px 8px; }
  .lt-pic { width: 100%; box-shadow: 0 8px 18px rgba(1, 6, 17, .25), 0 0 0 4px rgba(255, 255, 255, .35); }
  .lt-pic .ph { font-size: 11px; padding: 6px; }
  .lt-body { padding: 14px 16px; justify-content: center; }
  .lt-title { font-size: 19px; }
  .lt-sub { margin-top: 4px; font-size: 14px; }
  .lt-foot { padding-top: 12px; }
  .lt-orb.b { display: none; }
}

@media (max-width: 560px) {
  .lt-hero { padding-bottom: 96px; }
  .lt-stats li { padding: 7px 14px; }
  .lt-cta-btns { width: 100%; }
  .lt-cta-btns .btn { flex: 1 1 100%; }
  .lt-go span:first-child { display: none; }
  .lt-chips li { padding: 10px 18px; font-size: 15px; }
  .lt-orb.a { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lt-hero .crumbs, .lt-hero h1, .lt-hero .lt-lead, .lt-hero .lt-stats, .lt-hub > li { animation: none; }
  .lt-beam, .lt-orb { animation: none; }
  .lt-beam { display: none; }
  .lt-marq { -webkit-mask-image: none; mask-image: none; }
  .lt-chips { animation: none; flex-wrap: wrap; padding-right: 0; }
  .lt-chips[aria-hidden="true"] { display: none; }
  .lt-card, .lt-pic, .lt-arr, .lt-media::after { transition: none; }
  .lt-card:hover, .lt-card:hover .lt-pic, .lt-card:hover .lt-arr { transform: none; }
}

/* ============================================================
   Ambient lighting 360 viewer (lighting_ambient.html) - CARDI K4
   Night-drive mood: deep charcoal page, translucent dark controls, purple-magenta accents. The photograph is the colour.
   ============================================================ */
.amb {
  --amb-bg: #0D0F13;
  --amb-line: rgba(255, 255, 255, .12);
  --amb-glow: #D98BFF;
  --amb-glass: rgba(15, 17, 21, .68);
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(124, 58, 237, .20), transparent 70%),
    var(--amb-bg);
  color: #fff;
  padding: 26px 0 clamp(48px, 7vw, 96px);
}
.amb .crumbs { color: #8B93A1; }
.amb .crumbs a { color: #C9CED8; }
.amb .crumbs a:hover { color: #fff; }
.amb .crumbs [aria-current="page"] { color: #fff; }

.amb-head { max-width: 720px; margin: clamp(14px, 3vw, 32px) 0 clamp(20px, 3vw, 34px); }
.amb-head h1 { font-size: clamp(32px, 5.2vw, 58px); line-height: 1.05; letter-spacing: -.02em; color: #fff; }
.amb-lead { margin-top: 14px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; color: #B7BCC6; }

/* ---- the 360 view ---- */
.amb-viewer { position: relative; border-radius: clamp(12px, 1.6vw, 20px); overflow: hidden; background: #0A0B0E; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px var(--amb-line); }
.amb-viewer .amb-pano { width: 100%; height: clamp(380px, 62vh, 680px); background: radial-gradient(circle at 50% 60%, #2A1A3A, #0A0B0E 70%); }
.amb-pano.is-failed { display: grid; place-items: center; padding: 24px; text-align: center; font-size: 15px; color: #B7BCC6; }
.amb-err { display: grid; gap: 16px; justify-items: center; max-width: 460px; }
.amb-err p { margin: 0; }
.amb-retry { min-height: 44px; padding: 10px 28px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: var(--amb-glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.amb-retry:hover { border-color: rgba(217, 139, 255, .65); background: rgba(217, 139, 255, .25); }
.amb-retry:active { transform: translateY(1px); }
.amb-retry:focus-visible { outline: 2px solid var(--amb-glow); outline-offset: 2px; }

/* the rendered panorama fades in softly once it has loaded */
.amb-pano .pnlm-render-container { opacity: 0; transition: opacity .5s ease; }
.amb-pano.is-ready .pnlm-render-container { opacity: 1; }

/* Pannellum's own chrome, restyled: dark translucent controls, tucked into the top-right corner */
.amb-pano .pnlm-load-box { background: var(--amb-glass); border-radius: 14px; }
.amb-pano .pnlm-lbar { border-color: rgba(255, 255, 255, .5); }
.amb-pano .pnlm-lbar-fill { background: var(--amb-glow); }
.amb-pano .pnlm-controls-container { top: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); left: auto; }
.amb-pano .pnlm-zoom-controls,
.amb-pano .pnlm-fullscreen-toggle-button { position: relative; top: auto; left: auto; margin: 0 0 8px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; background-color: var(--amb-glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.amb-pano .pnlm-zoom-controls { overflow: hidden; }
.amb-pano .pnlm-zoom-controls .pnlm-controls { margin: 0; border: 0; background-color: transparent; }
.amb-pano .pnlm-zoom-controls .pnlm-zoom-in { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.amb-pano .pnlm-controls:hover { background-color: rgba(217, 139, 255, .35); }
.amb-pano .pnlm-fullscreen-toggle-button.pnlm-controls { margin: 0; }

/* Touch screens: 40 px zoom / fullscreen buttons (44 px-class targets). The sprite scales with them. */
@media (pointer: coarse) {
  .amb-pano .pnlm-zoom-controls { width: 40px; height: 80px; box-sizing: content-box; }
  .amb-pano .pnlm-zoom-controls .pnlm-control { background-size: 40px 320px; }
  .amb-pano .pnlm-zoom-controls .pnlm-zoom-out { background-position: 0 -40px; }
  .amb-pano .pnlm-fullscreen-toggle-button { width: 40px; height: 40px; background-size: 40px 320px; }
  .amb-pano .pnlm-fullscreen-toggle-button.pnlm-fullscreen-toggle-button-inactive { background-position: 0 -80px; }
  .amb-pano .pnlm-fullscreen-toggle-button.pnlm-fullscreen-toggle-button-active { background-position: 0 -120px; }
}

/* pins inside the scene */
.amb-pano .amb-pin { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: none; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.amb-pin i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), 0 0 18px 4px rgba(217, 139, 255, .9); transition: transform .25s; }
.amb-pin::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); animation: ambPulse 2.4s ease-out infinite; }
.amb-pin span { position: absolute; bottom: calc(100% - 2px); left: 50%; transform: translate(-50%, 4px); padding: 4px 10px; border-radius: 999px; background: var(--amb-glass); font-size: 12px; font-weight: 700; white-space: nowrap; color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.amb-pin:hover i, .amb-pin:focus-visible i, .amb-pin.is-active i { transform: scale(1.5); }
.amb-pin:hover span, .amb-pin:focus-visible span, .amb-pin.is-active span { opacity: 1; transform: translate(-50%, 0); }
.amb-pin:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes ambPulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

/* zone dropdown, floating over the bottom of the view */
.amb-ctl { position: absolute; left: 16px; top: 16px; z-index: 5; }
.amb-sel { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: var(--amb-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.amb-lab { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amb-glow); }
.amb-sel select {
  appearance: none; -webkit-appearance: none; min-height: 40px; padding: 0 40px 0 16px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; max-width: 100%;
}
.amb-sel select option { background: #16181D; color: #fff; }
.amb-sel select:hover { background: rgba(217, 139, 255, .22); }
.amb-sel select:focus-visible { outline: 2px solid var(--amb-glow); outline-offset: 2px; }
.amb-sel::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }

.amb-hint { position: absolute; left: 50%; bottom: 16px; z-index: 4; margin: 0; padding: 6px 16px; border-radius: 999px; background: var(--amb-glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; color: #F1F2F5; transform: translateX(-50%); pointer-events: none; transition: opacity .6s; }
.amb-hint.is-gone, .amb-hint[hidden] { opacity: 0; }

.amb-desc { max-width: 640px; margin: 18px 0 0; min-height: 3em; font-size: 16px; line-height: 1.6; color: #B7BCC6; }

.amb-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: clamp(22px, 3.4vw, 40px); padding-top: clamp(20px, 3vw, 30px); border-top: 1px solid var(--amb-line); }
.amb-info > div { flex: 1 1 340px; min-width: 0; }
.amb-info h2 { font-size: clamp(18px, 2vw, 22px); color: #fff; }
.amb-info p { margin-top: 6px; max-width: 620px; font-size: 14.5px; line-height: 1.55; color: #9BA1AD; }
.amb-info .btn.wa { background: var(--wa); color: #fff; }
.amb-info .btn.wa:hover { background: var(--wa-d); }

/* ---- Phones: the view runs edge to edge, the dropdown spans the bottom ---- */
@media (max-width: 760px) {
  .amb-viewer { margin-inline: calc(var(--gutter) * -1); border-radius: 0; box-shadow: 0 0 0 1px var(--amb-line); }
  .amb-viewer .amb-pano { height: min(112vw, 540px); min-height: 340px; }
  .amb-ctl { left: 10px; right: 10px; top: auto; bottom: 10px; /* safe-area doubles for fullscreen on notched phones */
    left: calc(10px + env(safe-area-inset-left, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .amb-hint { top: 12px; bottom: auto; top: calc(12px + env(safe-area-inset-top, 0px)); }
  .amb-sel { width: 100%; padding-left: 14px; }
  .amb-sel select { flex: 1; min-width: 0; }
  .amb-desc { min-height: 0; margin-top: 16px; }
  .amb-pin span { display: none; }
}

/* ---- Landscape phones: a shorter view so the controls stay within reach ---- */
@media (max-height: 480px) and (orientation: landscape) {
  .amb-viewer .amb-pano { height: min(86vh, 520px); min-height: 240px; }
}

/* ---- Very narrow phones: the "View" label steps aside (the select keeps its aria-label) ---- */
@media (max-width: 360px) {
  .amb-sel { gap: 8px; padding-left: 12px; }
  .amb-lab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .amb-pin::before { animation: none; opacity: .7; transform: none; }
  .amb-pin i, .amb-pin span, .amb-hint { transition: none; }
  .amb-pano .pnlm-render-container { transition: none; }
}

/* ---- Second 360 viewer (Mahindra Thar) below the CARDI K4 block ---- */
.amb-next { margin-top: clamp(40px, 7vw, 88px); padding-top: clamp(28px, 5vw, 56px); border-top: 1px solid var(--amb-line); }
.amb-next .amb-head { margin-top: 0; }
.amb-next .amb-head h2 { font-size: clamp(26px, 4vw, 44px); line-height: 1.08; letter-spacing: -.02em; color: #fff; }
.amb-next .amb-info { margin-top: clamp(18px, 3vw, 30px); }
@media (max-width: 760px) {
  /* the viewer has no dropdown here, so the swipe hint sits at the bottom, clear of the zoom buttons at the top */
  .amb-next .amb-hint { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .amb-next .amb-viewer .amb-pano { min-height: 300px; }
}