/* NaN Booking Pro — العروض الموسمية */

.nbp-offers {
  --nbp-accent: #0E7C7B;
  --nbp-o-ink: #13232A;
  --nbp-o-muted: #5B6B70;
  --nbp-o-line: #DCE4E5;
  --nbp-o-surface: #FFFFFF;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  direction: rtl;
  color: var(--nbp-o-ink);
  margin: 0 0 1.5em;
}
.nbp-offers *, .nbp-ov * { box-sizing: border-box; }
.nbp-offers-title { font-size: 1.5em; margin: 0 0 .7em; }
.nbp-offers-empty { color: #5B6B70; }

.nbp-offers-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.nbp-offers-row .nbp-offers-list {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.nbp-offers-row .nbp-offer { flex: 0 0 min(62vw, 230px); scroll-snap-align: start; }

.nbp-offer {
  background: var(--nbp-o-surface); border: 1px solid var(--nbp-o-line); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; min-width: 0;
}
.nbp-offer-media {
  all: unset; box-sizing: border-box; position: relative; display: block; width: 100%; aspect-ratio: 9 / 16;
  background: #E9EFEF; cursor: zoom-in; overflow: hidden;
}
.nbp-offer-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.nbp-offer-media:hover img { transform: scale(1.03); }
.nbp-offer-media:focus-visible { outline: 3px solid var(--nbp-accent); outline-offset: -3px; }
.nbp-offer-badge {
  position: absolute; top: 12px; right: 12px; background: var(--nbp-accent); color: #fff; font-weight: 700; font-size: 13px;
  padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); max-width: calc(100% - 24px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nbp-offer-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nbp-offer-name { font-size: 15.5px; line-height: 1.45; margin: 0; font-weight: 700; color: var(--nbp-o-ink); }
.nbp-offer-ends { margin: 0; font-size: 13px; color: var(--nbp-o-muted); }
.nbp-offer-cta {
  margin-top: auto; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--nbp-accent); color: #fff;
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.nbp-offer-body > :nth-last-child(2) { margin-bottom: 8px; }
.nbp-offer-cta:hover { filter: brightness(1.06); }
.nbp-offer-cta:focus-visible { outline: 3px solid color-mix(in srgb, var(--nbp-accent) 40%, transparent); outline-offset: 2px; }

/* ---------------- العارض ---------------- */
.nbp-ov {
  --nbp-accent: #0E7C7B;
  position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; direction: rtl; color: #fff;
  opacity: 0; transition: opacity .18s ease;
}
.nbp-ov.is-open { opacity: 1; }
.nbp-ov-backdrop { position: absolute; inset: 0; background: rgba(6, 14, 17, .92); }
.nbp-ov-stage {
  position: relative; height: min(100dvh, 100vh); max-height: 100%; aspect-ratio: 9 / 16; max-width: 100vw;
  display: flex; align-items: center; justify-content: center; background: #000; overflow: hidden;
}
@media (min-width: 700px) { .nbp-ov-stage { height: calc(100vh - 40px); border-radius: 18px; } }
.nbp-ov-img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }

.nbp-ov-bars { position: absolute; top: 10px; right: 12px; left: 12px; display: flex; gap: 4px; z-index: 2; }
.nbp-ov-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.nbp-ov-bars span.is-seen, .nbp-ov-bars span.is-current { background: #fff; }

.nbp-ov-close, .nbp-ov-nav {
  position: absolute; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; font-size: 22px; backdrop-filter: blur(4px);
}
.nbp-ov-close { top: 22px; left: 12px; }
.nbp-ov-nav { top: 50%; transform: translateY(-50%); }
.nbp-ov-prev { right: 10px; }
.nbp-ov-next { left: 10px; }
.nbp-ov-close:focus-visible, .nbp-ov-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nbp-ov [hidden] { display: none !important; }

.nbp-ov-panel {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 56px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, .88) 55%, rgba(0, 0, 0, 0));
  display: flex; flex-direction: column; gap: 6px;
}
.nbp-ov-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nbp-ov-badge { background: var(--nbp-accent); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 12px; border-radius: 999px; }
.nbp-ov-ends { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .8); }
.nbp-ov-title { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 700; color: #fff; }
.nbp-ov-details { margin: 0; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .9); white-space: pre-line; max-height: 34vh; overflow-y: auto; }
.nbp-ov-more {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: rgba(255, 255, 255, .85);
  font: inherit; font-size: 13.5px; padding: 2px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.nbp-ov-more .ti { transition: transform .2s; }
.nbp-ov.is-expanded .nbp-ov-more .ti { transform: rotate(180deg); }
.nbp-ov-actions { display: flex; gap: 8px; margin-top: 6px; }
.nbp-ov-book, .nbp-ov-ask {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 10px; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; border: 0;
}
.nbp-ov-book { background: var(--nbp-accent); color: #fff; }
.nbp-ov-ask { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.nbp-ov-book:focus-visible, .nbp-ov-ask:focus-visible, .nbp-ov-more:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nbp-ov .nbp-sr, .nbp-offers .nbp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 420px) { .nbp-ov-actions { flex-direction: column; } .nbp-ov-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .nbp-ov, .nbp-offer-media img { transition: none; } }
