/* MyPark Deals prototype — extends the live usemypark.com stylesheet */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  margin-left: 16px;
  border: 1px solid #e4e5e6;
  border-radius: 999px;
  overflow: hidden;
  font-size: .78rem;
  font-weight: 700;
}
.lang-toggle button {
  background: #fff;
  border: 0;
  color: #525354;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--y);
}

.example-banner {
  background: #fff8dc;
  border-bottom: 1px solid #eadfae;
  color: #6b5600;
  padding: 8px 20px;
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.example-banner strong {
  letter-spacing: .04em;
  text-align: center;
  flex: 1 1 240px;
}
.example-banner .lang-toggle {
  margin-left: 0;
  flex: 0 0 auto;
}

.deals-hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(252,202,20,.28), transparent 60%),
    radial-gradient(700px 400px at 8% 100%, rgba(57,137,183,.12), transparent 60%),
    #fff;
  padding: 72px 0 40px;
}
.deals-hero h1 { max-width: 16ch; }
.deals-hero .lead {
  font-size: 1.2rem;
  max-width: 560px;
  margin: 0 0 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.filters .search {
  flex: 1 1 260px;
  position: relative;
  min-width: 200px;
}
.filters .search input {
  padding-left: 42px;
  min-height: 48px;
  border-radius: 999px;
  background: #fff;
}
.filters .search .ico {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .45;
  pointer-events: none;
}
.seg {
  display: inline-flex;
  background: #f3f3f4;
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--g);
  font: inherit;
  font-weight: 700;
  font-size: .85rem;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.seg button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 1px 3px rgba(82,83,84,.16);
}

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chip {
  border: 1px solid #e4e5e6;
  background: #fff;
  color: var(--g);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  background: var(--g);
  color: #fff;
  border-color: var(--g);
}

.deals-section { padding: 56px 0; }
.deals-section.alt { background: var(--t); }
.deals-section .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 8px;
}
.deals-section .head h2 { margin: 0; }
.deals-section .rail-note {
  font-size: .9rem;
  margin: 0 0 24px;
  max-width: 720px;
}

.aff-note {
  font-size: .82rem; /* > 8 pt */
  color: #525354;
  margin: 0 0 22px;
  max-width: 720px;
  line-height: 1.45;
}
.aff-note .aff-how {
  color: #3989B7;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
  margin: 0 -8px;
}
.rail .deal-card {
  flex: 0 0 min(340px, 84vw);
  scroll-snap-align: start;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.deal-card {
  background: #fff;
  border: 1px solid #e4e5e6;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(82,83,84,.07);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
}
.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(82,83,84,.14);
  transition: transform .3s, box-shadow .3s;
}
.deal-card .art {
  height: 168px;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(160deg, #f6f6f7, #e9eaeb);
}

.monogram {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -.04em;
  color: var(--g);
  box-shadow: 0 10px 30px rgba(40,41,42,.12);
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--y);
  color: var(--g);
}

.badge.online {
  background: #fff;
  border: 1px solid #e4e5e6;
}

.deal-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.deal-card .store {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b6c6d;
  margin: 0 0 6px;
}
.deal-card h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
.deal-card .value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 6px;
  color: #28292a;
}
.deal-card .exp {
  font-size: .82rem;
  color: #6b6c6d;
  margin: 0 0 16px;
}
.deal-card .actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.deal-card .actions .btn { text-align: center; width: 100%; border-radius: 999px; }
.deal-card .actions .btn.copied { background: var(--gr); color: #fff !important; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #28292a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 50;
  max-width: min(520px, 92vw);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty {
  text-align: center;
  padding: 40px 16px;
  color: #6b6c6d;
}

.mall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.mall-hero {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(40,41,42,.15) 0%, rgba(40,41,42,.82) 100%),
    radial-gradient(800px 400px at 80% 0%, rgba(252,202,20,.35), transparent 55%),
    #3d3e3f;
  padding: 120px 0 48px;
}
.mall-hero h1 { color: #fff; max-width: 16ch; }
.mall-hero .lead { color: #eceded; max-width: 560px; font-size: 1.15rem; }
.crumb { font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.crumb a { color: #fff; }

footer .aff-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: .82rem;
  max-width: 820px;
  opacity: .9;
  line-height: 1.5;
}

.hidden { display: none !important; }

@media (max-width: 900px) {
  .deals-hero .lang-toggle { margin: 8px 0 0; }
  .deals-hero { padding: 48px 0 28px; }
  .deals-section { padding: 40px 0; }
  .deal-card .art, 
}

@media (max-width: 900px) {
  .rail .deal-card { flex: 0 0 min(280px, 76vw); }
  .badge { font-size: .65rem; padding: 4px 8px; }
}

.cta-with-tag {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.paid-link {
  display: block;
  font-size: 12px; /* 9 pt; Legal minimum is 8 pt / ~10.7px */
  font-weight: 600;
  line-height: 1.3;
  color: #525354; /* normal contrast, site gray */
  text-transform: none;
  letter-spacing: 0;
}
footer .aff-footer {
  font-size: .82rem; /* > 8 pt */
  opacity: 1;
  color: #f3f3f4;
}
footer .proto-note {
  margin-top: 12px;
  font-size: .78rem;
  opacity: .75;
  max-width: 820px;
}

/* Staging demo additions */
.demo-banner {
  background: #111;
  color: #fcca14;
  font-size: 13px;
  line-height: 1.35;
  padding: 8px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 40;
}
.demo-banner strong { color: #fcca14; letter-spacing: .02em; }
.demo-banner .demo-banner-text { color: #f3f3f4; font-weight: 500; }
.demo-banner .demo-banner-text strong { margin-right: .4em; }
.deal-card .art { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.deal-card .art img.offer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #fff;
}
.deal-card .art img.offer-img.contain {
  object-fit: contain;
  padding: 18px;
  box-sizing: border-box;
}

.cta-with-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.paid-link { font-size: 12px; color: #525354; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn.copy.copied { background: #1f4a3a; color: #fff; }

/* Pending CJ merchant approval (demo only) */
.pending-flag {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  letter-spacing: .04em;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b4a00;
  background: #fff3c4;
  border: 1px solid #e0c56b;
  padding: 1px 6px;
  border-radius: 2px;
  vertical-align: middle;
}
.cta-with-tag .btn.shop { width: auto; }

/* Brand logo tiles — replace letter monograms when a mark is in the library */
.logo-tile {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 18px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(40,41,42,.12);
}
.logo-tile.wide {
  width: 168px;
  height: 88px;
  border-radius: 20px;
  padding: 16px 18px;
}
.logo-tile.dark {
  background: #1c1d1e;
}
.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 900px) {
  .logo-tile { width: 96px; height: 96px; padding: 16px; border-radius: 20px; }
  .logo-tile.wide { width: 148px; height: 80px; padding: 14px 16px; border-radius: 18px; }
}

/* Hidden test-page banner (remove at go-live) */
.demo-banner{background:#3d3e3f;color:#fff;padding:10px 16px;display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;position:sticky;top:0;z-index:40}
.demo-banner-text{margin:0;font-size:13px;line-height:1.4}
.demo-banner-text strong{color:#FCCA14;font-weight:700;margin-right:8px}
.lang-toggle{display:flex;gap:0;border:1px solid #e4e5e6;border-radius:999px;overflow:hidden;background:#fff}
.lang-toggle button{background:#fff;color:#525354;border:0;padding:6px 12px;font:600 12px/1 inherit;cursor:pointer}
.lang-toggle button[aria-pressed="true"]{background:#FCCA14;color:#525354}
.demo-banner .lang-toggle{border-color:rgba(255,255,255,.3);background:transparent}
.demo-banner .lang-toggle button{background:transparent;color:#fff}
.demo-banner .lang-toggle button[aria-pressed="true"]{background:#FCCA14;color:#525354}
.cta-with-tag{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%}
.paid-link{font-size:12px;line-height:1.3;color:#525354;text-align:center}
.aff-note{font-size:13px;color:#525354;margin:0 0 16px}
.aff-how{color:#3989B7;font-weight:600}
.aff-footer{font-size:13px;line-height:1.55;color:#ddd;max-width:820px;margin:28px 0 0}
.proto-note{font-size:12px;opacity:.8;margin:12px 0 0}
.deals-hero{padding:56px 0 28px}
.deals-hero .lead{max-width:720px}
@media(max-width:700px){
  .demo-banner{align-items:flex-start}
  .deals-hero{padding:36px 0 16px}
}

/* Deals-page only (this stylesheet is not used on other live pages).
   Cookie banner: do not change its markup, position, or behavior.
   When it is visible on mobile it sits position:fixed at the top and covers the hero.
   Offset page content only while the banner is shown. */
@media (max-width: 900px) {
  /* Batch J: cookie bar is a bottom overlay. Do not add padding-top (that
     200px rule was the 0.220277 main-shift). Padding-bottom is applied in
     the Batch J block so CTAs can scroll above the bar. */
  body:has(#mp-consent:not([hidden])) {
    padding-top: 0;
  }
  /* Shrink the Parky chat bubble and hide the tooltip so they cover less of the first deals. */
  #parky .pk-tip { display: none !important; }
  #parky .pk-fab {
    width: calc(48px * 67 / 64);
    height: 48px;
  }
  #parky { right: 10px; bottom: 12px; }
}
@media (max-width: 600px) {
  /* Override the site-wide bottom:84px so the smaller bubble stays out of the first cards. */
  #parky { right: 10px; bottom: 12px; }
  #parky .pk-fab {
    width: calc(48px * 67 / 64);
    height: 48px;
  }
}

/* While the cookie banner is visible it pushes the first partner card down into the
   48px Parky FAB at 390px. Hide the bubble until the banner is dismissed; after that
   the first card sits above the FAB. Also reserve a right gutter so a full-width
   partner card cannot sit under the bubble if it reaches the bottom of the viewport. */
@media (max-width: 900px) {
  body:has(#mp-consent:not([hidden])) #parky { display: none !important; }
}
@media (max-width: 600px) {
  #partner-rail.partner-rail,
  .partner-rail {
    padding-right: 58px;
  }
}


/* ——— MyPark Partner treatment: official imagery, premium cards, motion ——— */
.partner-section { padding-top: 56px; }
.partner-section .partner-intro { padding-top: 0; }

.partner-spotlight {
  position: relative;
  color: #fff;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #28292a;
  margin: 0;
}
.partner-spotlight .spot-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.partner-spotlight .spot-media picture,
.partner-spotlight .spot-media img.spot-photo {
  width: 100%;
  height: 100%;
  display: block;
}
.partner-spotlight img.spot-photo {
  object-fit: cover;
  object-position: center 45%;
  transform-origin: 55% 45%;
  animation: mp-kenburns 32s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes mp-kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.6%, -1.2%, 0); }
}
.partner-spotlight .spot-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(40,41,42,.88) 0%, rgba(40,41,42,.62) 42%, rgba(40,41,42,.28) 100%),
    linear-gradient(180deg, rgba(40,41,42,.15) 0%, rgba(40,41,42,.55) 100%);
  pointer-events: none;
}
.partner-spotlight .spot-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 56px;
  max-width: 720px;
}
.partner-spotlight .spot-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.mall-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 8px 12px;
  height: 56px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.mall-logo-chip.dark { background: #1c1d1e; }
.mall-logo-chip img {
  display: block;
  max-height: 40px;
  max-width: 160px;
  width: auto;
  height: auto;
}
.exclusive-badge {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  background: #FCCA14;
  color: #28292A;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: none;
  border-radius: 999px;
  padding: 8px 14px;
  line-height: 1.2;
}
.exclusive-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-120%);
  animation: mp-shine 3.8s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes mp-shine {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(280%); }
}
.partner-spotlight .spot-kicker {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #FCCA14;
  margin: 0 0 10px;
}
.partner-spotlight h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  letter-spacing: -.03em;
  margin: 0 0 12px;
  max-width: 16ch;
  line-height: 1.05;
}
.partner-spotlight .spot-offer {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -.02em;
  color: #fff;
}
.partner-spotlight .spot-legal {
  display: inline-block;
  background: rgba(252,202,20,.95);
  color: #28292A;
  font-weight: 700;
  font-size: .75rem;
  line-height: 1.3;
  padding: 5px 10px;
  border-radius: 999px;
  margin: 0 8px 14px 0;
}
.partner-spotlight .spot-parking,
.partner-spotlight .spot-example-note {
  font-size: .92rem;
  color: #eceded;
  margin: 0 0 8px;
  max-width: 46ch;
  line-height: 1.45;
}
.partner-spotlight .countdown {
  margin: 16px 0 20px;
  color: #fff;
}
.countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 10px;
}
.countdown .cd-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .85;
  margin-right: 4px;
  width: 100%;
}
.countdown .cd-unit {
  min-width: 58px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(252,202,20,.45);
  border-radius: 12px;
  padding: 8px 8px 6px;
  text-align: center;
}
.countdown .cd-unit b {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #FCCA14;
  font-variant-numeric: tabular-nums;
}
.countdown .cd-unit span {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .85;
}
.partner-spotlight .spot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.partner-spotlight .btn.spot-cta {
  background: #FCCA14;
  color: #28292A;
  border: 0;
}
.partner-spotlight .btn.spot-cta:hover { filter: brightness(1.05); }

/* Premium partner cards */
.deal-card.partner {
  border: 1px solid rgba(252,202,20,.55);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(82,83,84,.07), 0 0 0 1px rgba(252,202,20,.25);
  opacity: 1;
  transform: none;
  outline: none;
}
.deal-card.partner.is-inview {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease, box-shadow .3s ease;
}
.deal-card.partner.is-inview:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 50px rgba(82,83,84,.18), 0 0 0 2px #FCCA14;
}
.deal-card.partner .art {
  height: 210px;
  background: #28292a;
}
.deal-card.partner .art-photo,
.deal-card.partner .art picture.art-photo,
.deal-card.partner .art img.art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.deal-card.partner .art img.art-img {
  object-fit: cover;
  object-position: center;
  display: block;
}
.deal-card.partner .art-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40,41,42,.15) 0%, rgba(40,41,42,.2) 40%, rgba(40,41,42,.78) 100%);
  pointer-events: none;
}
.deal-card.partner .partner-ribbon {
  position: absolute;
  top: 14px;
  right: -28px;
  background: #FCCA14;
  color: #28292A;
  font-weight: 800;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 34px;
  transform: rotate(35deg);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  z-index: 2;
  pointer-events: none;
}
.deal-card.partner .badge.partner-legal {
  left: 12px;
  right: auto;
  top: 12px;
  max-width: calc(100% - 86px);
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.deal-card.partner .art .mall-tag {
  left: 12px;
  bottom: 12px;
  background: rgba(255,255,255,.94);
  color: #28292A;
  z-index: 2;
}
.deal-card.partner .art-logos {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.deal-card.partner .art-logos .mall-logo-chip {
  height: 40px;
  padding: 5px 8px;
  border-radius: 10px;
}
.deal-card.partner .art-logos .mall-logo-chip img {
  max-height: 28px;
  max-width: 92px;
}
.deal-card.partner .art-logos .store-chip,
.deal-card.partner .art-logos .monogram {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: .85rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.deal-card.partner .parking-tie {
  font-size: .8rem;
  color: #3989B7;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.4;
}
.deal-card.partner .countdown {
  margin: 0 0 14px;
}
.deal-card.partner .countdown .cd-unit {
  min-width: 46px;
  background: #f6f6f7;
  border: 1px solid #e4e5e6;
  padding: 6px 6px 4px;
  border-radius: 10px;
}
.deal-card.partner .countdown .cd-unit b {
  font-size: 1.05rem;
  color: #28292A;
}
.deal-card.partner .countdown .cd-label { color: #525354; width: auto; margin: 0 6px 0 0; align-self: center; }
.deal-card.partner .exp { margin-bottom: 8px; }

.mall-hero.official {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: #28292a;
}
.mall-hero.official .spot-media { position: absolute; inset: 0; }
.mall-hero.official img.spot-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: mp-kenburns 32s ease-in-out infinite alternate;
  will-change: transform;
}
.mall-hero.official .spot-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40,41,42,.25) 0%, rgba(40,41,42,.78) 100%);
}
.mall-hero.official .wrap { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .partner-spotlight { min-height: 520px; }
  .partner-spotlight .spot-inner { padding: 56px 0 36px; }
  .deal-card.partner .art { height: 180px; }
  .deal-card.partner .partner-ribbon { top: 10px; right: -32px; font-size: .6rem; padding: 4px 30px; }
  .deal-card.partner .art-logos .mall-logo-chip { height: 34px; }
  .countdown .cd-unit { min-width: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .partner-spotlight img.spot-photo,
  .mall-hero.official img.spot-photo,
  .exclusive-badge::after {
    animation: none !important;
  }
  .deal-card.partner,
  .deal-card.partner.is-inview,
  .deal-card.partner.is-inview:hover,
  .deal-card:hover {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.mall-hero.official .spot-logos { margin: 8px 0 16px; }
.mall-hero.official .spot-parking {
  color: #eceded;
  max-width: 46ch;
  font-size: .95rem;
  margin: 0 0 14px;
  line-height: 1.45;
}
.mall-hero.official .spot-legal {
  display: inline-block;
  background: rgba(252,202,20,.95);
  color: #28292A;
  font-weight: 700;
  font-size: .75rem;
  line-height: 1.3;
  padding: 5px 10px;
  border-radius: 999px;
}
.mall-hero.official .btn.spot-cta {
  background: #FCCA14;
  color: #28292A;
  border: 0;
}
.mall-hero.official .kick { color: #FCCA14; }

/* Fixes after visual QA */
#partner-spotlight,
#partner-rail,
#partner-section,
.mall-hero.official {
  scroll-margin-top: 128px;
}
.partner-spotlight .spot-offer,
.partner-spotlight h2 {
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.partner-spotlight .spot-shade {
  background:
    linear-gradient(100deg, rgba(40,41,42,.78) 0%, rgba(40,41,42,.5) 46%, rgba(40,41,42,.22) 100%),
    linear-gradient(180deg, rgba(40,41,42,.08) 0%, rgba(40,41,42,.45) 100%);
}
.deal-card.partner .countdown {
  flex-wrap: wrap;
}
.deal-card.partner .countdown .cd-label {
  width: 100%;
  margin: 0 0 6px;
  align-self: auto;
}
.deal-card.partner .countdown .cd-units,
.countdown-units {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
}
.deal-card.partner .countdown .cd-unit {
  flex: 1 1 0;
  min-width: 0;
}
.deal-card.partner .art-logos .mall-logo-chip {
  height: 44px;
  padding: 5px 10px;
  max-width: 130px;
}
.deal-card.partner .art-logos .mall-logo-chip img {
  max-height: 32px;
  max-width: 112px;
}
@media (max-width: 900px) {
  .partner-spotlight .spot-logos {
    flex-direction: column;
    align-items: flex-start;
  }
  .deal-card.partner .countdown .cd-unit b { font-size: .95rem; }
  .deal-card.partner .countdown .cd-unit { padding: 5px 4px 3px; }
}


/* Equal, fully clickable MyPark Partner cards */
#partner-rail.partner-rail,
.partner-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  overflow: visible;
  scroll-snap-type: none;
  margin: 0;
  padding: 6px 0 8px;
}
.partner-rail .deal-card,
.partner-rail a.deal-card.partner {
  flex: none;
  width: 100%;
  min-width: 0;
  scroll-snap-align: unset;
}
a.deal-card.partner {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.deal-card.partner .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
}
a.deal-card.partner {
  color: #28292a;
}
a.deal-card.partner h3,
a.deal-card.partner .value {
  color: #28292a;
}
a.deal-card.partner .store {
  color: #6b6c6d;
}
a.deal-card.partner:focus {
  outline: none;
}
a.deal-card.partner:focus-visible {
  outline: 3px solid #FCCA14;
  outline-offset: 3px;
  box-shadow: 0 18px 50px rgba(82,83,84,.18), 0 0 0 2px #28292A;
}
a.deal-card.partner .visit-offer {
  display: block;
  margin-top: auto;
  background: #FCCA14;
  color: #28292A;
  font-weight: 800;
  font-size: .85rem;
  padding: 10px 14px;
  border-radius: 999px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
a.deal-card.partner .paid-link {
  display: block;
  margin-top: 8px;
  text-align: center;
  width: 100%;
}
.deal-card.partner .art-logos .mall-logo-chip.square {
  height: 48px;
  width: 48px;
  max-width: 48px;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
}
.deal-card.partner .art-logos .mall-logo-chip.square img {
  max-height: 44px;
  max-width: 44px;
}
@media (max-width: 1200px) {
  #partner-rail.partner-rail, .partner-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  #partner-rail.partner-rail, .partner-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  #partner-rail.partner-rail, .partner-rail { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  a.deal-card.partner:focus-visible {
    outline: 3px solid #FCCA14;
  }
}

/* Partner typography and logo chips — equal narrow cards */
.deal-card.partner .store {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  letter-spacing: .04em;
  font-size: .72rem;
  margin: 0 0 4px;
}
.deal-card.partner .store .inline-ex { margin-right: 0; }
.deal-card.partner .partner-brand { display: block; line-height: 1.3; }
.deal-card.partner .partner-place {
  font-size: .75rem;
  font-weight: 600;
  color: #525354;
  margin: 0 0 8px;
}
.deal-card.partner h3 {
  font-size: 1.02rem;
  line-height: 1.25;
  margin: 0 0 6px;
}
.deal-card.partner .value {
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #28292a;
}
.deal-card.partner .parking-tie {
  font-size: .75rem;
  margin: 0 0 12px;
}
.deal-card.partner .art-logos {
  right: 10px;
  bottom: 10px;
  left: auto;
}
.deal-card.partner .art-logos .mall-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.deal-card.partner .art-logos .mall-logo-chip img {
  object-fit: contain;
  width: auto;
  height: auto;
}
@media (max-width: 560px) {
  .deal-card.partner h3 { font-size: 1.15rem; }
  .deal-card.partner .value { font-size: 1rem; }
  .deal-card.partner .art { height: 200px; }
}

.deal-card.partner .badge.partner-legal {
  font-size: .62rem;
  max-width: calc(100% - 78px);
  line-height: 1.25;
  padding: 5px 8px;
}
.deal-card.partner .value { font-weight: 700; }
.deal-card.partner .art-logos .mall-logo-chip:not(.square) {
  max-width: 148px;
  height: 48px;
}
.deal-card.partner .art-logos .mall-logo-chip:not(.square) img {
  max-width: 128px;
  max-height: 36px;
}
@media (min-width: 801px) {
  .partner-rail a.deal-card.partner { min-height: 100%; }
}


/* Legal minimum: Paid link / Enlace pagado at 12px (9pt). */
.paid-link, a.deal-card.partner .paid-link { font-size: 12px; color: #525354; }

/* Neutral store wordmarks (no Wikimedia / third-party mark files) */
.logo-tile.wordmark {
  width: 168px;
  height: 88px;
  background: #fff;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(40,41,42,.12);
}
.logo-wordmark {
  font-family: inherit;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #28292a;
  line-height: 1.15;
  text-align: center;
}
.offer-notes {
  font-size: 12px;
  line-height: 1.35;
  color: #525354;
  margin: 0 0 10px;
}
.offer-notes span { display: block; }
.tm-notice {
  font-size: 12px;
  line-height: 1.5;
  color: #ddd;
  max-width: 820px;
  margin: 12px 0 0;
}
@media (max-width: 900px) {
  .logo-tile.wordmark { width: 148px; height: 80px; padding: 14px 16px; }
}

.deals-load-error {
  text-align: center;
  padding: 40px 16px;
  color: #28292a;
}
.deals-load-error p {
  margin: 0 0 8px;
}
.deals-load-error .btn {
  margin-top: 12px;
}

.deals-notify { margin: 0 0 28px; max-width: 560px; }
.deals-notify-toggle { margin: 0; }
.deals-notify-form {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #e4e5e6;
  border-radius: 12px;
  background: #fff;
}
.deals-notify-email { display: block; font-weight: 700; font-size: .92rem; }
.deals-notify-email input {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #c8c9ca;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}
.deals-notify-cons { margin: 10px 0 0; font-size: .9rem; line-height: 1.45; color: #525354; }
.deals-notify-cons a { color: inherit; font-weight: 700; text-decoration: underline; }
.deals-notify-actions { margin-top: 14px; }
.deals-notify-status { margin: 12px 0 0; font-weight: 700; }
.deals-notify-status.is-ok { color: #0a7d33; }
.deals-notify-status.is-error { color: #8a1f11; }
.deals-notify-status .btn { margin-top: 10px; display: inline-block; }
@media (max-width: 600px) {
  .deals-notify, .deals-notify-form { max-width: 100%; }
  .deals-notify-toggle { width: 100%; text-align: center; }
}

.deals-notify-form[hidden] { display: none !important; }
.cats .chip[hidden]{display:none!important}


/* ===== Batch B layout (coupon cards / hero / filters only) ===== */
body.deals-page, body.deals-page button, body.deals-page input, body.deals-page a {
  font-family: "Open Sans", "Open Sans Fallback", "Avenir Next", sans-serif;
}
body.deals-page .mcta { display: none !important; }

.deals-hero {
  padding: 28px 0 12px;
}
.deals-hero h1 {
  max-width: none;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 8px;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .deals-hero h1 { white-space: normal; font-size: 1.7rem; }
}
.deals-hero .lead {
  margin: 0 0 8px;
  font-size: 1.02rem;
}
.deals-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  /* padding-top/bottom only so the .wrap 24px side gutter stays. */
  padding-top: 8px;
  padding-bottom: 16px;
}
.deals-toolbar .search-toggle {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #e4e5e6;
  background: #fff;
  color: #525354;
  font-size: 1.1rem;
  cursor: pointer;
}
.deals-toolbar .search {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}
.deals-toolbar .search .ico {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .45;
  pointer-events: none;
  line-height: 1;
  z-index: 1;
}
.deals-toolbar .search input {
  display: block;
  width: 100%;
  padding-left: 42px;
  min-height: 48px;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}
body.deals-search-open .deals-toolbar .search { display: block; }
body.deals-search-open .deals-toolbar .filters-row { display: none; }
@media (min-width: 901px) {
  .deals-toolbar .search-toggle { display: none; }
  .deals-toolbar .search { display: block; flex: 0 1 240px; }
  body.deals-search-open .deals-toolbar .filters-row { display: flex; }
}
.filters-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  flex: 1 1 auto;
  scrollbar-width: thin;
  padding: 2px 0;
}
.filters-row .seg, .filters-row .cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  flex: 0 0 auto;
}
.filters-row .chip, .filters-row .seg button {
  min-height: 44px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.deals-notify-section {
  padding: 28px 0 48px;
}
.deals-notify-section .deals-notify {
  max-width: 560px;
}
.offer-lang-note {
  display: inline;
  font-size: 12px;
  font-weight: 600;
  color: #525354;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 6px;
}
.deal-card:not(.partner) .store .paid-link {
  display: inline;
  margin-left: 8px;
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
  font-weight: 600;
  color: #525354;
}
.empty-wrap { margin: 12px 0; }
.empty-wrap .clear-filters { margin-top: 10px; }

@media (max-width: 600px) {
  .deal-card:not(.partner) {
    display: grid;
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
    min-height: 140px;
    height: auto;
    border-radius: 16px;
  }
  .deal-card:not(.partner) .art {
    grid-row: 1 / span 2;
    width: 64px;
    height: 100%;
    min-height: 140px;
    max-height: 160px;
  }
  .deal-card:not(.partner) .logo-tile {
    width: 52px !important;
    height: 52px !important;
    padding: 6px !important;
    border-radius: 10px;
  }
  .deal-card:not(.partner) .logo-tile img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
  }
  .deal-card:not(.partner) .body {
    padding: 10px 12px 8px;
  }
  .deal-card:not(.partner) .value {
    font-size: 1.02rem;
    margin: 0 0 2px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .deal-card:not(.partner) h3 {
    font-size: .86rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: #525354;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .deal-card:not(.partner) .offer-notes { display: none; }
  .deal-card:not(.partner) .exp {
    margin: 0 0 6px;
    font-size: 12px;
  }
  .deal-card:not(.partner) .actions {
    margin-top: 4px;
  }
  .deal-card:not(.partner) .actions .btn.shop {
    min-height: 40px;
    font-size: .9rem;
  }
  .rail .deal-card:not(.partner) {
    flex: 0 0 min(100%, 100vw - 32px);
  }
}
.aff-how { color: #2d6f96; }

.market-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  /* padding-top only: do not use the padding shorthand, which would
     zero the .wrap 24px gutter and flush the row to the viewport edge. */
  padding-top: 4px;
  padding-bottom: 0;
}
.market-picker-label {
  margin: 0;
  font: 600 13px/1.3 inherit;
  color: #525354;
  white-space: nowrap;
}
.market-picker-opts {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  scrollbar-width: thin;
}
.market-picker-opts button {
  flex: 0 0 auto;
  min-height: 44px;
  border: 1px solid #e4e5e6;
  background: #fff;
  color: #525354;
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  white-space: nowrap;
}
.market-picker-opts button[aria-pressed="true"] {
  background: #FCCA14;
  color: #525354;
  border-color: #FCCA14;
}
.seg button[hidden] { display: none !important; }

/* ===== Batch F: compact cards, chip wrap, Parky offset, contrast ===== */
.aff-note .aff-how,
.aff-how {
  color: #2d6f96;
}

@media (max-width: 700px) {
  /* One horizontal scroll row: every chip can scroll fully into view.
     A right fade signals that more chips are off-screen, so a cut-off label is not mistaken for the end. */
  .deals-toolbar { align-items: center; }
  .filters-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 36px;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 32px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 32px), transparent 100%);
  }
  .filters-row .seg,
  .filters-row .cats {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .deals-section,
  .partner-section {
    padding: 16px 0;
  }
  .deals-section .rail-note,
  .aff-note {
    margin: 0 0 8px;
  }
  .partner-section .rail-note {
    font-size: .82rem;
  }

  /* Online offer rows ~140px */
  .deal-card:not(.partner) {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: stretch;
    min-height: 140px;
    max-height: none;
    height: auto;
    border-radius: 14px;
  }
  .deal-card:not(.partner) .art {
    grid-row: 1;
    grid-column: 1;
    width: 64px;
    height: auto;
    min-height: 0;
    max-height: none;
    align-self: stretch;
  }
  .deal-card:not(.partner) .body {
    grid-row: 1;
    grid-column: 2;
    padding: 8px 10px 8px;
    min-width: 0;
  }
  .deal-card:not(.partner) .store {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px 6px;
    margin: 0 0 2px;
    line-height: 1.2;
    min-width: 0;
  }
  .deal-card:not(.partner) .pending-flag {
    display: inline-block;
    margin-left: 0;
    white-space: nowrap;
    /* Sentence case is shorter than the inherited uppercase and stays fully readable in ES. */
    text-transform: none;
    letter-spacing: 0;
    font-size: 9px;
    padding: 1px 5px;
    flex: 0 0 auto;
  }
  .deal-card:not(.partner) .store .paid-link {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 11px;
  }
  .deal-card:not(.partner) .value {
    font-size: .98rem;
    margin: 0 0 1px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .deal-card:not(.partner) h3 {
    font-size: .8rem;
    margin: 0 0 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .deal-card:not(.partner) .exp {
    margin: 0 0 4px;
    font-size: 11px;
  }
  .deal-card:not(.partner) .actions {
    margin-top: 2px;
  }
  .deal-card:not(.partner) .actions .btn.shop {
    min-height: 36px;
    padding: 6px 12px;
    font-size: .85rem;
  }
  .deal-card:not(.partner) .logo-tile,
  .deal-card:not(.partner) .logo-tile.wide {
    width: 48px !important;
    height: 48px !important;
    padding: 5px !important;
    border-radius: 10px;
    box-shadow: none;
  }

  /* Much shorter, still-equal partner cards; photos stay, smaller */
  .deal-card.partner .art,
  .deal-card.partner .art {
    height: 96px;
  }
  .deal-card.partner .body {
    padding: 8px 12px 10px;
  }
  .deal-card.partner h3 {
    font-size: .95rem;
    margin: 0 0 2px;
  }
  .deal-card.partner .value {
    font-size: .82rem;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .deal-card.partner .partner-place {
    margin: 0 0 2px;
    font-size: .75rem;
  }
  a.deal-card.partner .visit-offer {
    padding: 8px 12px;
    font-size: .82rem;
    margin-top: 4px;
  }
  a.deal-card.partner .paid-link {
    margin-top: 4px;
  }
  .deal-card.partner .art-logos .mall-logo-chip {
    height: 28px;
    padding: 3px 6px;
  }
  .deal-card.partner .badge.partner-legal {
    font-size: .62rem;
    padding: 3px 8px;
    top: 8px;
    left: 8px;
  }

  /* Raise Parky above the first-screen "Visit offer" button at 390×844.
     Photo ends ~y=693; CTA starts ~y=804; FAB (40px) with bottom: 56px sits at y≈748–788.
     Behavior and scripts are unchanged. */
  body.deals-page #parky,
  #parky {
    right: 10px;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
  body.deals-page #parky .pk-fab,
  #parky .pk-fab {
    width: calc(40px * 67 / 64);
    height: 40px;
  }
  #partner-rail.partner-rail,
  .partner-rail {
    padding-right: 0;
  }
  .partner-rail .deal-card.partner,
  .partner-rail a.deal-card.partner {
    min-height: 305px;
  }
}

@media (min-width: 601px) {
  .deal-card.partner .art { height: 150px; }
}


/* ===== Batch H: reserved shells, first-card LCP, tighter fold, partner disclosure at bottom ===== */
.partner-section .partner-aff-note {
  font-size: 12px;
  line-height: 1.45;
  color: #525354;
  margin: 12px 0 0;
  min-height: 36px;
  max-width: 720px;
}
.partner-section .partner-aff-note .aff-how,
.partner-section .partner-aff-note a.aff-how {
  color: #2d6f96;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Per-market first card + reserved partner-rail height so JS fill cannot push main. */
html[data-market="pr"] [data-lcp-card="extra-hand"],
html[data-market="all"] [data-lcp-card="plaza-carolina"],
html[data-market="uae"] [data-lcp-card="plaza-carolina"],
html[data-market="mia"] [data-lcp-card] {
  display: none !important;
}
html[data-market="mia"] #partner-section {
  display: none;
}
html[data-market="uae"] #top10-section {
  display: none;
}

/* 390 / one-column: card 305 + gap 18 + rail pad 6+8. */
@media (max-width: 560px) {
  html[data-market="all"] #partner-rail { min-height: 1611px; }
  html[data-market="pr"] #partner-rail { min-height: 1288px; }
  html[data-market="uae"] #partner-rail { min-height: 319px; }
  #top10-rail { min-height: 168px; }
  #library-grid { min-height: 150px; }
  html[data-market="uae"] #library-grid { min-height: 72px; }
}

@media (min-width: 561px) and (max-width: 800px) {
  html[data-market="all"] #partner-rail { min-height: 628px; } /* 2x305 + 18 + 14, 3rd row on all */
  /* 5 cards / 2 cols = 3 rows: 3*305 + 2*18 + 14 = 968 */
  html[data-market="all"] #partner-rail { min-height: 968px; }
  html[data-market="pr"] #partner-rail { min-height: 642px; } /* 2 rows */
  html[data-market="uae"] #partner-rail { min-height: 319px; }
  #top10-rail { min-height: 168px; }
  #library-grid { min-height: 150px; }
}

@media (min-width: 801px) and (max-width: 1200px) {
  html[data-market="all"] #partner-rail { min-height: 642px; } /* 2 rows of 3 */
  html[data-market="pr"] #partner-rail { min-height: 642px; }
  html[data-market="uae"] #partner-rail { min-height: 319px; }
}

@media (min-width: 1201px) {
  html[data-market="all"] #partner-rail,
  html[data-market="pr"] #partner-rail,
  html[data-market="uae"] #partner-rail { min-height: 330px; }
}

@media (max-width: 700px) {
  /* Trim ~54 px above the first partner card (disclosure moved below the rail = 46 px,
     plus 8 px off section padding-top) so Visit offer sits above the 844 px fold. */
  .partner-section { padding-top: 8px; padding-bottom: 16px; }
  .deals-hero { padding: 28px 0 12px; }
}


/* Batch H2: selected category chip stays dark + white (AA). Do not use yellow + white. */
.filters-row .chip[aria-pressed="true"],
.chip[aria-pressed="true"] {
  background: #525354;
  color: #fff;
  border-color: #525354;
}

/* ===== Batch I: section shells + Parky after partner subtitle removal.
   Blocking CSS is restored in deals.html so first paint matches style.css / deals.css.
   After removing the partner subtitle (~71 px), raise Parky so the FAB sits
   in the gap between the first photo and Visit offer. */
@media (max-width: 700px) {
  body.deals-page #parky,
  #parky {
    right: 10px;
    bottom: calc(200px + env(safe-area-inset-bottom, 0px));
  }
}

#top10-section { min-height: 360px; }
#library-section { min-height: 320px; }
html[data-market="mia"] #library-section { min-height: 360px; }
html[data-market="uae"] #top10-section { min-height: 0; }
html[data-market="uae"] #library-section { min-height: 160px; }


/* ===== Batch I: partner cards without badge/ribbon; Sponsored under every CTA. ===== */
.deal-card.partner .partner-ribbon,
.deal-card.partner .badge.partner-legal {
  display: none !important;
}
body.deals-page .deal-card.partner {
  border: 2px solid #FCCA14;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 28px rgba(82,83,84,.08);
}
.deal-card .paid-link,
a.deal-card.partner .paid-link,
.cta-with-tag .paid-link {
  display: block;
  margin-top: 6px;
  text-align: center;
  width: 100%;
  font-size: 12px; /* Legal minimum 8 pt; 12 px passes */
  font-weight: 600;
  line-height: 1.35;
  color: #525354; /* 7.71:1 on white, WCAG AA */
  letter-spacing: 0;
  text-transform: none;
  min-height: 16px; /* reserved so the label cannot shift the card */
}
/* Library / Top 10 reserved shells: label now sits under the button (~22 px). */
#top10-rail { min-height: 200px; }
#library-grid { min-height: 180px; }
#library-section { min-height: 360px; }
html[data-market="mia"] #library-section { min-height: 400px; }

/* ===== Batch J: bottom cookie bar, chip scroll, compact cards, Parky, typography ===== */

body.deals-page.mp-consent-open,
body.deals-page:has(#mp-consent:not([hidden])) {
  /* Fallback while JS measures the exact bar height. Extra space is at the
     bottom only, so first paint of main / header does not shift. */
  padding-bottom: 220px !important;
}

@media (max-width: 900px) {
  body.deals-page #mp-consent,
  #mp-consent {
    position: fixed;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    max-width: none !important;
    width: 100%;
    margin: 0;
    border-radius: 12px 12px 0 0;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    z-index: 10001;
    font-size: 12px;
    line-height: 1.25;
  }
  /* Title is visually hidden; body text + 3 equal buttons keep Legal strings. */
  body.deals-page #mp-consent b,
  #mp-consent b {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  body.deals-page #mp-consent p,
  #mp-consent p { margin: 0 0 6px; line-height: 1.25; }
  body.deals-page #mp-consent .row,
  #mp-consent .row { display: flex; flex-wrap: nowrap; gap: 6px; }
  body.deals-page #mp-consent .row button,
  #mp-consent .row button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 36px;
    padding: 6px 4px;
    font-size: 11px;
    line-height: 1.15;
    background: #fff;
    border: 2px solid #525354;
    color: #525354;
  }
  body.deals-page #mp-consent .row button.pri,
  #mp-consent .row button.pri {
    background: #fff;
    border-color: #525354;
    color: #525354;
  }
}

/* Hide pending-approval chips on the public page. */
/* Batch K: restore Pending approval as a compact muted pill by the brand name. */
body.deals-page .deal-card .pending-flag,
.pending-flag {
  display: inline-block !important;
  margin: 0 0 0 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: #5c5c5c;
  background: #f0f0f0;
  border: 0;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}
body.deals-page .deal-card:not(.partner) .store {
  flex-wrap: wrap;
  align-items: center;
}

/* Single commission line at the top of the deals area. */
.deals-aff-wrap { padding-top: 4px; padding-bottom: 8px; }
.deals-aff-once {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #525354;
}

/* Brand name heavier and darker than the offer headline. */
body.deals-page .deal-card .store,
body.deals-page .deal-card .partner-brand {
  font-size: 1.08rem;
  font-weight: 800;
  color: #1c1d1e;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 4px;
}
body.deals-page .deal-card .offer-headline,
body.deals-page .deal-card:not(.partner) .value,
body.deals-page .deal-card.partner h3 {
  font-size: 0.92rem;
  font-weight: 500;
  color: #525354;
  line-height: 1.35;
  margin: 0 0 6px;
}

/* Taller photos / larger logos; keep aspect-ratio and intrinsic width/height. */
body.deals-page .deal-card:not(.partner) .art {
  min-height: 120px;
  height: 168px;
  aspect-ratio: 1 / 1;
}
body.deals-page .deal-card:not(.partner) .logo-tile {
  width: 128px;
  height: 128px;
  padding: 16px;
}
body.deals-page .deal-card:not(.partner) .logo-tile.wide {
  width: 196px;
  height: 100px;
  padding: 14px 16px;
}
body.deals-page .deal-card.partner .art,
body.deals-page .deal-card.partner .art {
  height: auto;
  min-height: 160px;
  aspect-ratio: 16 / 10;
}
body.deals-page .deal-card.partner .art-photo,
body.deals-page .deal-card.partner .art img.art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.deals-page .deal-card.partner .art-logos .mall-logo-chip:not(.square) {
  height: 44px;
  padding: 6px 10px;
}
body.deals-page .deal-card.partner .art-logos .mall-logo-chip.square {
  width: 56px;
  height: 56px;
}
body.deals-page .deal-card.partner .art-logos .mall-logo-chip img {
  max-height: 100%;
  width: auto;
}

@media (max-width: 600px) {
  body.deals-page .deal-card:not(.partner) {
    grid-template-columns: 88px 1fr;
    min-height: 160px;
  }
  body.deals-page .deal-card:not(.partner) .art {
    width: 88px;
    min-height: 160px;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
  }
  body.deals-page .deal-card:not(.partner) .logo-tile,
  body.deals-page .deal-card:not(.partner) .logo-tile.wide {
    width: 72px !important;
    height: 72px !important;
    padding: 8px !important;
    border-radius: 12px;
  }
  body.deals-page .deal-card.partner .art,
  body.deals-page .deal-card.partner .art {
    min-height: 160px;
    height: 160px;
    aspect-ratio: auto;
  }
  /* Taller than Batch I's 96px cap, but a fixed 160px so 16/10 of the
     card width cannot push Visit offer under the cookie bar / Parky. */
}

/* Chip rows: 24px gutter comes from .wrap. Constrained scroller + fade + snap. */
body.deals-page .chip-row-label,
body.deals-page .market-picker-label {
  flex: 0 0 100%;
  width: 100%;
  margin: 0 0 6px;
  font: 700 12px/1.3 inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #525354;
}
body.deals-page .market-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}
body.deals-page .filters-block {
  flex: 1 1 auto;
  min-width: 0;
}
body.deals-page .chip-scroll-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}
body.deals-page .chip-scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  padding: 2px 28px 2px 0;
}
body.deals-page .chip-scroll::-webkit-scrollbar { display: none; }
body.deals-page .chip-scroll > *,
body.deals-page .chip-scroll .seg,
body.deals-page .chip-scroll .cats,
body.deals-page .chip-scroll .chip,
body.deals-page .chip-scroll button {
  scroll-snap-align: start;
  flex: 0 0 auto;
}
body.deals-page .filters-row.chip-scroll,
body.deals-page .filters-row .seg,
body.deals-page .filters-row .cats {
  flex-wrap: nowrap;
  overflow: visible;
  mask-image: none;
  -webkit-mask-image: none;
  width: auto;
}
body.deals-page .filters-row.chip-scroll {
  overflow-x: auto;
  overflow-y: hidden;
}
/* Fade lives on the constrained wrap so it sits at the visible edge, not off-screen. */
body.deals-page .chip-scroll-wrap.is-overflow:not(.at-end)::after,
body.deals-page .chip-scroll-wrap.is-overflow:not(.at-start)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  pointer-events: none;
  z-index: 1;
}
body.deals-page .chip-scroll-wrap.is-overflow:not(.at-end)::after {
  right: 28px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff 90%);
}
body.deals-page .chip-scroll-wrap.is-overflow:not(.at-start)::before {
  left: 28px;
  background: linear-gradient(270deg, rgba(255,255,255,0), #fff 90%);
}
body.deals-page .chip-chevron {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid #e4e5e6;
  border-radius: 999px;
  background: #fff;
  color: #525354;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}
body.deals-page .chip-chevron[hidden] { display: none; }
body.deals-page .chip-chevron:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (min-width: 901px) {
  body.deals-page .deals-toolbar {
    align-items: flex-end;
    flex-wrap: wrap;
  }
  body.deals-page .filters-block { flex: 1 1 100%; margin-top: 8px; }
}

/* Icons */
body.deals-page .mp-icon,
body.deals-page .ico-svg .mp-icon,
body.deals-page #menu .mp-icon {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
body.deals-page .btn.shop .mp-icon,
body.deals-page .visit-offer .mp-icon {
  margin-left: 4px;
}
body.deals-page .ddb .mp-icon { margin-left: 4px; }
body.deals-page .search-toggle .ico-svg,
body.deals-page .deals-toolbar .search .ico-svg {
  display: flex;
  align-items: center;
  justify-content: center;
}
body.deals-page .mp-nl .mp-nl-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

/* Parky: keep the 390×844 gap; on taller phones (430×900) raise it above the CTA. */
@media (max-width: 700px) {
  body.deals-page #parky,
  #parky {
    right: 10px;
    bottom: calc(200px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 700px) and (min-height: 860px) {
  body.deals-page #parky,
  #parky {
    right: 10px;
    bottom: calc(260px + env(safe-area-inset-bottom, 0px));
  }
}
/* While the bottom cookie bar is open, keep Parky hidden (same as Batch I). */

/* Reserved shells: retuned after compact cards + taller photos. Extra px so fill cannot shrink-then-grow. */
@media (max-width: 560px) {
  html[data-market="all"] #partner-rail { min-height: 1760px; }
  html[data-market="pr"] #partner-rail { min-height: 1480px; }
  html[data-market="uae"] #partner-rail { min-height: 400px; }
}
#top10-section { min-height: 420px; }
#top10-rail { min-height: 240px; }
#library-grid { min-height: 220px; }
#library-section { min-height: 400px; }
html[data-market="mia"] #library-section { min-height: 440px; }
html[data-market="uae"] #library-section { min-height: 340px; }

/* Batch M2: 56px (FAB 40 + 16) at the END of the Deal Library rail only.
   Do not pad or raise #library-section min-height — that delayed Miami's
   p.rail-note LCP. The lead sits above the grid, so grid padding is safe. */
@media (max-width: 700px) {
  body.deals-page #library-grid {
    padding-bottom: 56px;
  }
}

/* Batch M2: 320×711 PR — Plaza Carolina's taller card put Visit offer +
   Sponsored in the cookie-bar band. Shorten only the first photo at this
   short+narrow viewport so Sponsored clears the bar. 320×568 PR stays
   below the fold (CTA y still >= 600). Other markets/viewports unchanged. */
@media (max-width: 360px) and (min-height: 631px) {
  html[data-market="pr"] body.deals-page #partner-rail a.deal-card.partner:first-child .art {
    height: 128px;
    min-height: 128px;
  }
}

/* Batch M2: 320×568 Miami — Shop Macy's sat in the cookie-bar band.
   Padding (not margin) so it does not collapse with the rail-note.
   Only at this short viewport, so 320×711 Miami is not pushed into the bar. */
@media (max-width: 360px) and (max-height: 630px) {
  html[data-market="mia"] body.deals-page #top10-rail {
    padding-top: 56px;
  }
  html[data-market="mia"] #top10-section {
    min-height: 420px; /* 364 + 56, first-paint reserve */
  }
}


/* Batch J2: compact cookie bar typography; first-card CTA vs bar at 390/430. */
@media (max-width: 900px) {
  body.deals-page #mp-consent p,
  #mp-consent p { font-size: 10px; line-height: 1.2; margin: 0 0 6px; }
  body.deals-page #mp-consent .row button,
  #mp-consent .row button {
    font-size: 10px;
    white-space: nowrap;
    height: 36px;
    min-height: 36px;
    padding: 0 4px;
    line-height: 36px;
  }
}

/* Batch K: all partner photos 160px on small phones (no 220px first-card stretch). */
@media (max-width: 410px) {
  body.deals-page #partner-rail a.deal-card.partner:first-child .art,
  body.deals-page #partner-rail a.deal-card.partner:first-child .art {
    height: 160px;
    min-height: 160px;
  }
}

/* 430: lift Sponsored ~10px so it clears the compact bar on first paint. */
@media (min-width: 411px) and (max-width: 700px) {
  body.deals-page .deal-card.partner h3 { margin-bottom: 2px; }
  body.deals-page .deal-card .store { margin-bottom: 2px; }
  body.deals-page .deal-card .paid-link { margin-top: 2px; }
}

/* Fallback padding tracks the compact bar (~96px), JS still sets the exact height. */
body.deals-page.mp-consent-open,
body.deals-page:has(#mp-consent:not([hidden])) {
  padding-bottom: 120px !important;
}


/* ===== Batch K: dominant logos, content-height cards, Top 10 peek rail ===== */

/* Logos fill most of a 132px brand panel; card height fits content, vertically centered. */
@media (max-width: 700px) {
  body.deals-page .deal-card:not(.partner) {
    display: grid;
    grid-template-columns: 132px 1fr;
    align-items: center;
    min-height: 0 !important;
    height: auto;
  }
  body.deals-page .deal-card:not(.partner) .art {
    width: 132px;
    height: auto;
    min-height: 100%;
    max-height: none;
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
    align-self: stretch;
  }
  body.deals-page .deal-card:not(.partner) .logo-tile,
  body.deals-page .deal-card:not(.partner) .logo-tile.wide {
    width: 88% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    max-width: 116px;
    max-height: 116px;
    padding: 8px !important;
    border-radius: 16px;
    box-shadow: none;
  }
  body.deals-page .deal-card:not(.partner) .logo-tile.wide {
    aspect-ratio: 5 / 3;
    width: 90% !important;
    max-width: 116px;
    max-height: 80px;
  }
  body.deals-page .deal-card:not(.partner) .logo-tile img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  body.deals-page .deal-card:not(.partner) .body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
  }
  body.deals-page .deal-card:not(.partner) .actions {
    margin-top: 6px;
  }
  body.deals-page .deal-grid {
    align-items: start;
  }
}

/* Top 10 is the horizontal card scroller on mobile. Partner rail stays a
   vertical 1-column grid below 600px; library is a wrapping grid. */
@media (max-width: 700px) {
  body.deals-page #top10-rail.rail {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    padding: 4px 16px 8px;
    margin-inline: -24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  body.deals-page #top10-rail.rail::-webkit-scrollbar { display: none; }
  body.deals-page #top10-rail.rail .deal-card,
  body.deals-page #top10-rail.rail .deal-card:not(.partner),
  body.deals-page #top10-rail.rail .mp-skel-card {
    flex: 0 0 82vw;
    width: 82vw;
    max-width: 82vw;
    scroll-snap-align: start;
    min-height: 0;
    height: auto;
  }
  body.deals-page #top10-rail.rail .mp-skel-card {
    min-height: 140px;
    height: 140px;
  }
}

.rail-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 24px; /* reserved so the counter cannot shift the page */
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  color: #525354;
  letter-spacing: 0.02em;
}
.rail-indicator[hidden] { display: none; }

/* Retune reserved Top 10 shell after shorter, peeking cards + 24px indicator. */
@media (max-width: 700px) {
  #top10-section { min-height: 280px; }
  #top10-rail { min-height: 150px; }
}


/* Batch K: hide Parky on mobile until the user scrolls past the first card.
   When shown, sit bottom-right above the cookie bar (or the 12px inset). */
@media (max-width: 700px) {
  body.deals-page:not(.mp-parky-ready) #parky,
  body.deals-page:not(.mp-parky-ready) #parky .pk-fab {
    display: none !important;
  }
  body.deals-page.mp-parky-ready #parky,
  body.deals-page.mp-parky-ready #parky {
    right: 10px;
    bottom: calc(var(--mp-parky-bottom, 12px) + env(safe-area-inset-bottom, 0px) + var(--mp-consent-h, 0px));
  }
}

/* Tighter online-card body so Sponsored isn't followed by empty space. */
@media (max-width: 700px) {
  body.deals-page .deal-card:not(.partner) .body {
    padding: 8px 12px 8px;
  }
  body.deals-page .deal-card:not(.partner) .actions { margin-top: 4px; }
  body.deals-page .deal-card:not(.partner) .paid-link { margin-top: 2px; }
  body.deals-page .cta-with-tag { gap: 2px; }
}

/* Reserved Top 10 shell matches the peeking, shorter cards + 24px indicator. */
@media (max-width: 700px) {
  #top10-section { min-height: 364px; }
  #top10-rail { min-height: 180px; }
}




/* Batch L: compact the mobile chrome so the first card's Visit offer + Sponsored
   sit fully above the ~80px cookie bar at 390×844, without a spacer that pushes
   the card below the fold. Hide the subtitle under 400px; tuck Market/Category
   labels out of the layout (they stay available to assistive tech). */
@media (max-width: 700px) {
  body.deals-page { margin: 0; background: #fff; }
  body.deals-page .deals-hero {
    padding: 12px 0 8px;
  }
  body.deals-page .deals-hero .kick {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.2;
  }
  body.deals-page .deals-hero .bar {
    margin: 4px 0 10px;
    width: 40px;
    height: 4px;
  }
  body.deals-page .deals-hero h1 {
    font-size: 1.45rem;
    line-height: 1.15;
    margin: 0 0 0;
  }
  body.deals-page .deals-hero .lead {
    margin: 6px 0 0;
    font-size: 0.95rem;
    line-height: 1.3;
  }
  body.deals-page .market-picker,
  body.deals-page .filters-block,
  body.deals-page .deals-toolbar {
    position: relative;
  }
  body.deals-page .chip-row-label,
  body.deals-page .market-picker-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  /* Keep wrap gutters: do not use the padding shorthand (it would
     flush the market row to the viewport and clip the selected chip). */
  body.deals-page .market-picker {
    padding-top: 4px;
    padding-bottom: 4px;
  }
  body.deals-page .deals-toolbar {
    padding-top: 4px;
    padding-bottom: 8px;
  }
  body.deals-page .market-picker-opts.chip-scroll {
    padding-left: 8px;
    scroll-padding-inline: 12px;
  }
  body.deals-page .market-picker-opts.chip-scroll > button:first-child {
    scroll-margin-inline-start: 8px;
  }
  body.deals-page .deals-aff-wrap {
    padding-top: 2px;
    padding-bottom: 6px;
  }
}
@media (max-width: 400px) {
  body.deals-page .deals-hero .lead { display: none; }
}

/* Parky: stay inside the viewport; hide when a card photo or CTA is under the FAB. */
@media (max-width: 700px) {
  body.deals-page.mp-parky-ready #parky,
  body.deals-page.mp-parky-ready #parky .pk-fab {
    right: max(16px, env(safe-area-inset-right, 0px));
    left: auto;
    bottom: calc(var(--mp-parky-bottom, 12px) + env(safe-area-inset-bottom, 0px) + var(--mp-consent-h, 0px));
    width: 40px;
    height: 40px;
    max-width: 40px;
    transform: none !important;
  }
  body.deals-page.mp-parky-blocked #parky,
  body.deals-page.mp-parky-blocked #parky .pk-fab {
    display: none !important;
  }
}

/* Shrink Visit offer + Sponsored block height so mid-height 320 viewports
   (bar top ~659) are not clipped, without lifting the CTA into a shorter fold. */
@media (max-width: 410px) {
  body.deals-page .deal-card.partner .visit-offer {
    padding-top: 5px;
    padding-bottom: 5px;
    min-height: 0;
    line-height: 1.15;
  }
  body.deals-page .deal-card.partner .paid-link {
    margin-top: 1px;
    line-height: 1.15;
    font-size: 11px;
  }
}


/* Batch M2: win the cascade over earlier #top10-section min-height retunes. */
@media (max-width: 360px) and (max-height: 630px) {
  html[data-market="mia"] #top10-section {
    min-height: 420px;
  }
}

/* Batch M2: at 320px, ES titles ("Ofertas de socios MyPark",
   "Las 10 Ofertas destacadas") wrapped to two lines and pushed CTA +
   Sponsored into the cookie-bar band at 320×711. Keep them to one line. */
@media (max-width: 360px) {
  html[lang="es"] body.deals-page #partner-section h2,
  html[lang="es"] body.deals-page #top10-section h2,
  html[lang="es"] body.deals-page #library-section h2 {
    font-size: 1.15rem;
    line-height: 1.25;
  }
}

/* Batch M2: 320×711 Miami ES is still ~12px in the bar after the h2
   one-line fix. Tighten only this taller narrow viewport. */
@media (max-width: 360px) and (min-height: 631px) {
  html[data-market="mia"] body.deals-page #top10-section {
    padding-top: 4px;
  }
  html[data-market="mia"] body.deals-page #top10-section .rail-note {
    margin-bottom: 2px;
  }
}
