/* ============================================================
   IND ASIA HOLIDAYS — Advertising Band Styles
   File: ads.css
   Right-side sticky ad band with 2+ configurable slots.
   Hidden on screens < 1024px.
   ============================================================ */

.ad-band {
  width: var(--ad-band-width, 160px);
  min-height: 100vh;
  background: -webkit-linear-gradient(top, var(--dark-bg) 0%, var(--primary-deep) 50%, var(--dark-bg) 100%);
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--primary-deep) 50%, var(--dark-bg) 100%);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 120px 8px 20px;
  gap: 24px;
  border-left: 1px solid rgba(255,255,255,0.06);
  z-index: 50;
}

.ad-band .ad-label {
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  -webkit-text-orientation: mixed;
  text-orientation: mixed;
  position: absolute;
  top: 80px;
  right: 6px;
}

.ad-slot {
  width: 140px;
  height: 350px;
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius, 12px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  font-size: 11px;
  text-align: center;
  padding: 10px;
  font-family: var(--font-mono, 'Courier New', monospace);
  -webkit-transition: border-color 0.3s;
  transition: border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.ad-slot::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: -webkit-linear-gradient(315deg, rgba(232,168,56,0.05), rgba(23,181,160,0.05));
  background: linear-gradient(135deg, rgba(232,168,56,0.05), rgba(23,181,160,0.05));
  border-radius: var(--radius, 12px);
}

.ad-slot:hover {
  border-color: rgba(255,255,255,0.3);
}

/* When an ad image is loaded */
.ad-slot.has-ad {
  border-style: solid;
  border-color: rgba(255,255,255,0.08);
}

.ad-slot.has-ad::before {
  display: none;
}

.ad-slot img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: calc(var(--radius, 12px) - 2px);
}

.ad-slot a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Placeholder text inside empty ad slots */
.ad-slot .ad-placeholder {
  position: relative;
  z-index: 1;
}

/* Hide ad band on tablet and below */
@media (max-width: 1024px) {
  .ad-band {
    display: none !important;
  }
}

@media print {
  .ad-band {
    display: none !important;
  }
}
