/* ============================================
   Hotel Gallery — matches packages page design
   ============================================ */

.pm-gallery {
  margin-bottom: 26px;
}

.pm-gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  background: #0f172a;
}

.pm-gallery-main .pm-gal-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}

.pm-gallery-main .pm-gal-slide.on {
  opacity: 1;
}

/* --- Modern circular arrows (exact packages-page look) --- */
.pm-gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.82);
  color: #1e293b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: background .15s, transform .15s;
}

.pm-gal-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.pm-gal-nav svg {
  width: 22px;
  height: 22px;
}

/* RTL-aware positioning (works for Arabic site) */
.pm-gal-nav.prev {
  inset-inline-end: 14px;
}

.pm-gal-nav.next {
  inset-inline-start: 14px;
}

/* Photo counter badge */
.pm-gal-count {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  font-variant-numeric: tabular-nums;
}

/* --- Thumbnail strip --- */
.pm-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.pm-thumbs .pm-thumb {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
  background: #0f172a;
  transition: border-color .15s, transform .15s;
}

.pm-thumbs .pm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pm-thumbs .pm-thumb:hover {
  transform: translateY(-2px);
}

.pm-thumbs .pm-thumb.on {
  border-color: #16a6c4;
}

/* --- Mobile --- */
@media (max-width: 760px) {
  .pm-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .pm-gal-nav {
    width: 38px;
    height: 38px;
  }
  .pm-gal-nav svg {
    width: 18px;
    height: 18px;
  }
  .pm-gal-nav.prev {
    inset-inline-end: 8px;
  }
  .pm-gal-nav.next {
    inset-inline-start: 8px;
  }
  .pm-gal-count {
    bottom: 10px;
    inset-inline-start: 10px;
    font-size: 12px;
    padding: 4px 10px;
  }
}
/* ============================================
   Modern pill tabs — FORCE OVERRIDE
   ============================================ */

/* Gallery tabs (PHOTOS / MAP / VIDEO) */
#hotel-main-content > ul.tabs,
/* Feature tabs (وصف / الخدمات / etc) */
#hotel-features > ul.tabs {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    padding: 6px !important;
    margin: 0 0 26px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9999px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
    list-style: none !important;
    overflow: visible !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
}

#hotel-main-content > ul.tabs > li,
#hotel-features > ul.tabs > li {
    float: none !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
    display: inline-flex !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

#hotel-main-content > ul.tabs > li > a,
#hotel-features > ul.tabs > li > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 11px 22px !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #475569 !important;
    border-radius: 9999px !important;
    white-space: nowrap !important;
    transition: background .15s, color .15s !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

#hotel-main-content > ul.tabs > li > a:hover,
#hotel-features > ul.tabs > li > a:hover {
    background: #e0f2fe !important;
    color: #0f172a !important;
    text-decoration: none !important;
}

#hotel-main-content > ul.tabs > li.active > a,
#hotel-main-content > ul.tabs > li > a.active,
#hotel-features > ul.tabs > li.active > a,
#hotel-features > ul.tabs > li > a.active {
    background: #0f172a !important;
    color: #fff !important;
}

/* Pull-right button (like "Book Now") inside tabs */
#hotel-main-content > ul.tabs > li.pull-right,
#hotel-features > ul.tabs > li.pull-right {
    margin-inline-start: auto !important;
    float: none !important;
}

/* Mobile */
@media (max-width: 760px) {
    #hotel-main-content > ul.tabs,
    #hotel-features > ul.tabs {
        border-radius: 16px !important;
    }
    #hotel-main-content > ul.tabs > li > a,
    #hotel-features > ul.tabs > li > a {
        padding: 9px 16px !important;
        font-size: 14px !important;
    }
}