.dm-deals-page {
  padding-bottom: 1rem;
}

/* Each DB section (Visa, Tourism, …) hangs as its own gallery wall —
   alternating light/dark canvas, posters as the only real content. */
.dm-gallery-section {
  padding: 3.5rem 0;
  background: #f7f5f0;
  transition: background 0.2s ease;
}

.dm-gallery-section--dark {
  background: var(--dm-primary-hover, #1f225c);
}

.dm-gallery-section__head {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 2.25rem;
}

.dm-gallery-section__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dm-orange, #db3630);
}

.dm-gallery-section--dark .dm-gallery-section__eyebrow {
  color: #f0b94f;
}

.dm-gallery-section__title {
  margin: 0;
  font-family: var(--dm-font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--dm-navy-dark);
}

.dm-gallery-section--dark .dm-gallery-section__title {
  color: #fff;
}

.dm-gallery-section__rule {
  display: block;
  width: 3rem;
  height: 2px;
  margin: 1rem auto;
  background: var(--dm-orange, #db3630);
}

.dm-gallery-section--dark .dm-gallery-section__rule {
  background: #f0b94f;
}

.dm-gallery-section__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--dm-slate);
}

.dm-gallery-section--dark .dm-gallery-section__hint {
  color: rgba(255, 255, 255, 0.68);
}

/* Masonry columns — a genuine gallery wall: each poster keeps its own
   natural aspect ratio, which is what produces the staggered, salon-style
   hang of different shapes and sizes. */
.dm-deals-masonry {
  columns: 1;
  column-gap: 1.5rem;
}

@media (min-width: 560px) {
  .dm-deals-masonry {
    columns: 2;
  }
}

@media (min-width: 1000px) {
  .dm-deals-masonry {
    columns: 3;
  }
}

.dm-deals-masonry__item {
  break-inside: avoid;
  margin-bottom: 1.1rem;
}

/* Each poster sits like a matted print — a white frame around the image
   so it reads the same whether it's hanging on a light or dark wall. */
.dm-deal-card {
  display: block;
  min-width: 0;
  padding: 0.5rem 0.5rem 0.65rem;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dm-deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
}

.dm-deal-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1px;
  background: #eee;
}

.dm-deal-card__media-link {
  display: block;
}

.dm-deal-card__media-btn {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}

.dm-deal-card__media img {
  display: block;
  width: 100%;
  height: auto;
}

.dm-deal-card__tag {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  max-width: calc(100% - 1rem);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.dm-deal-card__info {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.dm-deal-card__info:hover {
  background: rgba(15, 23, 42, 0.78);
  transform: scale(1.06);
}

.dm-deal-card__info .dm-dash-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.dm-deals-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  margin-top: 2rem;
  border: 1px dashed var(--dm-border);
  border-radius: 20px;
  background: #fafbfc;
}

.dm-deals-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dm-navy-dark);
}

.dm-deals-empty__text {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  color: var(--dm-slate);
  line-height: 1.55;
}

/* Contact details modal, triggered from the info icon on a poster */
.dm-deal-contact {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.dm-deal-contact.is-open {
  visibility: visible;
  pointer-events: auto;
}

.dm-deal-contact__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.dm-deal-contact.is-visible .dm-deal-contact__backdrop {
  opacity: 1;
}

.dm-deal-contact__sheet {
  position: relative;
  width: 100%;
  max-width: 30rem;
  max-height: 90vh;
  overflow: hidden auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--dm-border, #e2e8f0);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.dm-deal-contact.is-visible .dm-deal-contact__sheet {
  transform: translateY(0);
}

@media (min-width: 576px) {
  .dm-deal-contact {
    align-items: center;
    padding: 1rem;
  }

  .dm-deal-contact__sheet {
    border-radius: 16px;
    transform: translateY(1.5rem) scale(0.97);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  }

  .dm-deal-contact.is-visible .dm-deal-contact__sheet {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.dm-deal-contact__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  backdrop-filter: blur(2px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.dm-deal-contact__close:hover {
  background: rgba(15, 23, 42, 0.78);
}

.dm-deal-contact__close .dm-dash-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.dm-deal-contact__media {
  position: relative;
  display: block;
  background: #eee;
}

.dm-deal-contact__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.dm-deal-contact__media-tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}

.dm-deal-contact__body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.dm-deal-contact__title {
  margin: 0;
  font-family: var(--dm-font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dm-navy-dark);
}

.dm-deal-contact__desc {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--dm-slate);
  white-space: pre-line;
}

.dm-deal-contact__contact {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--dm-border, #eef2f7);
}

.dm-deal-contact__contact-label {
  margin: 0 0 0.6rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dm-slate);
}

.dm-deal-contact__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.dm-deal-contact__row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.dm-deal-contact__row-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dm-slate);
}

.dm-deal-contact__row-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dm-navy-dark);
}

.dm-deal-contact__row a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dm-primary);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.dm-deal-contact__row a:hover {
  text-decoration: underline;
}

.dm-deal-contact__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: var(--dm-primary);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.dm-deal-contact__cta:hover {
  background: var(--dm-primary-hover, #1f225c);
  color: #fff;
}

/* Full-size flyer lightbox */
.dm-deal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  pointer-events: none;
}

.dm-deal-lightbox.is-open {
  visibility: visible;
  pointer-events: auto;
}

.dm-deal-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.dm-deal-lightbox.is-visible .dm-deal-lightbox__backdrop {
  opacity: 1;
}

.dm-deal-lightbox__panel {
  position: relative;
  width: min(100%, 56rem);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.dm-deal-lightbox.is-visible .dm-deal-lightbox__panel {
  transform: scale(1);
  opacity: 1;
}

.dm-deal-lightbox__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 1;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dm-deal-lightbox__close:hover {
  background: rgba(15, 23, 42, 0.85);
}

.dm-deal-lightbox__close .dm-dash-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.dm-deal-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
}

.dm-deal-lightbox__title {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dm-navy-dark);
  text-align: center;
}

/* Mobile money payment options (deals & offers) */
.dm-deals-payments {
  padding: 3rem 0 3.5rem;
  background: #f7f5f0;
}

.dm-deals-payments__head {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.dm-deals-payments__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dm-orange, #db3630);
}

.dm-deals-payments__title {
  margin: 0;
  font-family: var(--dm-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dm-navy-dark);
}

.dm-deals-payments__rule {
  display: block;
  width: 3rem;
  height: 2px;
  margin: 1rem auto;
  background: var(--dm-orange, #db3630);
}

.dm-deals-payments__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--dm-slate);
}

.dm-deals-payments__grid {
  display: grid;
  gap: 0.85rem;
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .dm-deals-payments__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dm-deals-payment-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.dm-deals-payment-card__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
}

.dm-deals-payment-card__summary::-webkit-details-marker {
  display: none;
}

.dm-deals-payment-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.dm-deals-payment-card__icon {
  width: 3rem;
  height: 2rem;
  object-fit: contain;
  flex-shrink: 0;
}

.dm-deals-payment-card__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--dm-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dm-deals-payment-card__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dm-navy-dark);
}

.dm-deals-payment-card__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(var(--dm-primary-rgb, 41, 44, 122), 0.08);
  color: var(--dm-primary);
  transition: transform 0.2s ease;
}

.dm-deals-payment-card[open] .dm-deals-payment-card__toggle {
  transform: rotate(180deg);
}

.dm-deals-payment-card__toggle .dm-dash-icon {
  width: 1rem;
  height: 1rem;
}

.dm-deals-payment-card__body {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.dm-deals-payment-card__row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0.85rem 0 0;
}

@media (min-width: 480px) {
  .dm-deals-payment-card__row {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
  }
}

.dm-deals-payment-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dm-slate);
}

.dm-deals-payment-card__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dm-navy-dark);
  word-break: break-word;
}

.dm-deals-payment-card__value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dm-deals-payment-card__instructions {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(var(--dm-primary-rgb, 41, 44, 122), 0.05);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--dm-slate);
}

.dm-deals-payment-card--pending {
  opacity: 0.88;
  background: #fafaf8;
}

.dm-deals-payment-card__pending {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--dm-slate);
}

.dm-deals-payment-card__pending a {
  color: var(--dm-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.dm-payment-options__note {
  padding: 0 0 3rem;
  text-align: center;
}

.dm-payment-options__note p {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--dm-slate);
}

.dm-payment-options__note a {
  color: var(--dm-primary);
  font-weight: 600;
}
