/* Promo banner slider (js/promo-slider.js) — the public "Bugungi takliflar"
   strip under the search box on the homepage, /hotels and /tours.

   Each banner is the affiliate campaign picture (hamkor/campaigns.js) drawn
   in HTML: destination photo anchored right, ONE colour wash from the left
   (--pc, per product, from js/campaign-look.js), the logo on a white chip,
   a short line, a headline + the number in yellow, one white button, and a
   yellow fact tag top-right when the data backs one. Sizes follow the card's
   own width (container units), so the same banner reads on a 360px phone and
   three across on desktop. No shadows (owner): the wash and the 1px edge do
   the separating. Every class pms- prefixed and every value literal — the
   block sits on top of stylesheets whose tokens do not agree. */

.pms { padding: 32px 0 8px; }
.pms[hidden] { display: none !important; }
.pms-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; }

.pms-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.pms-title { margin: 0; font: 800 24px/1.2 Inter, system-ui, sans-serif; color: #0B3AD6; letter-spacing: -.02em; }
.pms-sub { margin: 4px 0 0; font: 400 14px/1.45 Inter, system-ui, sans-serif; color: #6b7280; }
.pms-all {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; min-height: 36px;
  font: 600 14px/1 Inter, system-ui, sans-serif; color: #0B5BD3; text-decoration: none; white-space: nowrap;
  padding: 0 14px; border-radius: 999px; background: #eef4fd; transition: background .15s ease;
}
@media (hover: hover) { .pms-all:hover { background: #e0ebfb; } }

.pms-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 4px 0 12px;
}
.pms-track::-webkit-scrollbar { display: none; }

/* ── The banner ───────────────────────────────────────────────────────── */
.pms-card {
  --pc: #d9480f;
  position: relative; display: block; overflow: hidden; isolation: isolate;
  container-type: inline-size;
  /* min-width:0 — otherwise the min-height is carried through the aspect
     ratio into a 392px minimum width and the third card spills off the row. */
  aspect-ratio: 2 / 1; min-height: 190px; min-width: 0;
  border-radius: 12px; border: 1px solid rgba(15, 23, 42, .08);
  scroll-snap-align: start;
  background: var(--pc); color: #fff; text-decoration: none;
}
.pms-card:focus-visible { outline: 3px solid #0B5BD3; outline-offset: 2px; }

/* Photo across the frame, anchored right: the left sits under the text. */
.pms-img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
  transition: transform .5s ease;
}
/* One wash from the left that carries the text (the canvas's stops). */
.pms-wash {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--pc) 97%, transparent) 0%,
    color-mix(in srgb, var(--pc) 88%, transparent) 40%,
    color-mix(in srgb, var(--pc) 0%, transparent) 70%);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .pms-wash { background: linear-gradient(90deg, var(--pc) 0%, var(--pc) 34%, rgba(0,0,0,0) 70%); opacity: .94; }
}

.pms-logo {
  position: absolute; top: 5cqw; left: 5cqw; top: max(12px, 4.4cqw); left: max(14px, 5cqw);
  display: inline-flex; align-items: center; height: 26px; height: max(24px, 7cqw);
  padding: 0 11px; border-radius: 999px; background: #fff;
  font: 900 14px/1 Inter, system-ui, sans-serif; font-size: max(13px, 3.7cqw); letter-spacing: -.02em;
}
.pms-logo .o { color: #0B5BD3; }
.pms-logo .b { color: #FF6A1A; }

/* The one backed fact (operator discount / direct flight), top-right. */
.pms-tag {
  position: absolute; top: max(12px, 4.4cqw); right: max(12px, 4.4cqw);
  display: inline-flex; align-items: center; height: max(24px, 7cqw); max-width: 44%;
  padding: 0 11px; border-radius: 999px; background: #FFD43B; color: #1a1206;
  font: 800 12px/1 Inter, system-ui, sans-serif; font-size: max(12px, 3.3cqw);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Text column: the left ~62%, vertically centred under the logo. */
.pms-body {
  position: absolute; left: max(14px, 5cqw); bottom: max(12px, 4.4cqw);
  top: calc(max(12px, 4.4cqw) + max(24px, 7cqw) + 4px);
  width: 60%; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.pms-line, .pms-h1, .pms-h2 { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; }
.pms-line.wrap, .pms-h1.wrap, .pms-h2.wrap { white-space: normal; overflow-wrap: anywhere; }
.pms-line {
  font: 600 13px/1.3 Inter, system-ui, sans-serif; font-size: max(12px, 3.3cqw);
  color: rgba(255,255,255,.95);
}
.pms-h1 {
  margin-top: 2px;
  font: 900 27px/1.08 Inter, system-ui, sans-serif; font-size: max(18px, 7cqw);
  letter-spacing: -.02em; color: #fff;
}
.pms-h2 {
  font: 900 33px/1.08 Inter, system-ui, sans-serif; font-size: max(20px, 8.6cqw);
  letter-spacing: -.02em; color: #fff;
}
.pms-h2 b { color: #FFD43B; font-weight: 900; }
.pms-btn {
  margin-top: max(8px, 2.6cqw);
  display: inline-flex; align-items: center; height: max(30px, 8.4cqw);
  padding: 0 max(14px, 4.4cqw); border-radius: 999px; background: #fff; color: var(--pc);
  font: 800 13px/1 Inter, system-ui, sans-serif; font-size: max(12px, 3.4cqw); white-space: nowrap;
}
/* "Narx <date> holatiga" — small, over the photo, bottom-right. */
.pms-note {
  position: absolute; right: max(10px, 3cqw); bottom: max(10px, 3cqw);
  font: 600 11px/1 Inter, system-ui, sans-serif; color: #fff; white-space: nowrap;
  background: rgba(15, 23, 42, .55); border-radius: 999px; padding: 5px 9px;
}

@media (hover: hover) {
  .pms-card:hover .pms-img { transform: scale(1.04); }
  .pms-card:hover .pms-btn { background: #f1f5f9; }
}

/* ── Arrows / dots / skeleton ─────────────────────────────────────────── */
.pms-arrow {
  position: absolute; z-index: 3; width: 44px; height: 44px;
  border: 1px solid #e2e8f0; border-radius: 50%; background: #fff; color: #0f172a; cursor: pointer;
  display: grid; place-items: center; transition: opacity .2s ease, background .15s ease;
}
@media (hover: hover) { .pms-arrow:hover { background: #f5f7fb; } }
.pms-arrow svg { width: 20px; height: 20px; }
.pms-arrow.prev { left: 2px; }
.pms-arrow.next { right: 2px; }
.pms-arrow[disabled] { opacity: 0; pointer-events: none; }
.pms-arrow:focus-visible { outline: 3px solid #0B5BD3; outline-offset: 2px; }

.pms-dots { display: none; justify-content: center; gap: 6px; margin-top: 2px; }
.pms-dots i { width: 6px; height: 6px; border-radius: 3px; background: #d1d5db; transition: width .2s ease, background .2s ease; }
.pms-dots i.on { width: 20px; background: #0B5BD3; }

.pms-skel { aspect-ratio: 2 / 1; min-height: 190px; min-width: 0; border-radius: 12px; background: linear-gradient(90deg, #eef1f6 0%, #f6f8fb 50%, #eef1f6 100%); background-size: 200% 100%; animation: pms-sh 1.2s linear infinite; }
@keyframes pms-sh { to { background-position: -200% 0; } }

@media (max-width: 1024px) {
  .pms-track { grid-auto-columns: calc((100% - 16px) / 2); }
}

/* ── Phone: the same banner, a little taller, next one peeking in ────── */
@media (max-width: 760px) {
  .pms { padding: 20px 0 4px; }
  .pms-wrap { padding: 0; }
  .pms-head { padding: 0 16px; margin-bottom: 10px; align-items: center; }
  .pms-title { font-size: 20px; }
  .pms-sub { display: none; }
  .pms-all { font-size: 13px; min-height: 44px; padding: 0 14px; }
  .pms-track { grid-auto-columns: 86%; gap: 12px; padding: 4px 16px 12px; scroll-padding: 0 16px; }
  .pms-arrow { display: none; }
  .pms-dots { display: flex; }
  .pms-card, .pms-skel { aspect-ratio: 1.6 / 1; min-height: 180px; }
  .pms-body { width: 66%; }
  .pms-wash {
    background: linear-gradient(90deg,
      color-mix(in srgb, var(--pc) 97%, transparent) 0%,
      color-mix(in srgb, var(--pc) 90%, transparent) 50%,
      color-mix(in srgb, var(--pc) 0%, transparent) 80%);
  }
  .pms-note { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pms-track { scroll-behavior: auto; }
  .pms-img, .pms-skel { transition: none; animation: none; }
}
