/* ── Promo Banner Carousel – Elementor Widget ── */

.pbc-carousel-wrapper {
  width: 100%;
  padding-bottom: 40px;
  position: relative;
}

.pbc-swiper {
  padding-bottom: 36px !important;
}

/* ── Slide inner card ── */
.pbc-slide-inner {
  display: flex;
  align-items: stretch;
  border-radius: 20px;
  min-height: 180px;
  overflow: hidden;
  position: relative;
  text-decoration: none !important;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.pbc-slide-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* ── Background image (right side) ── */
.pbc-bg-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  height: 100%;
  background-size: cover;
  background-position: center;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
}

/* ── Circle inset image ── */
.pbc-circle-img {
  position: absolute;
  right: 28%;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.pbc-circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Content area ── */
.pbc-content {
  position: relative;
  z-index: 3;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  max-width: 58%;
}

/* ── Typography ── */
.pbc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.pbc-promo-title {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pbc-subtitle {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ── Price ── */
.pbc-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pbc-price-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pbc-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: #f9ca24;
  line-height: 1;
}

.pbc-price-suffix {
  font-size: 0.7rem;
  font-weight: 600;
  color: #f9ca24;
}

/* ── Badge ── */
.pbc-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a1a2e;
  background: #00b894;
  width: fit-content;
}

.pbc-note {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

/* ── Promo badge (circle) ── */
.pbc-promo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #0984e3;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 4px 16px rgba(9, 132, 227, 0.5);
  padding: 8px;
}

/* ── CTA ── */
.pbc-cta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a1a2e;
  background: #fff;
  border-radius: 4px;
  padding: 5px 14px;
  margin-top: 4px;
  width: fit-content;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ── Promo-type full-bleed layout ── */
.pbc-type-promo .pbc-content {
  max-width: 60%;
}

/* ── Swiper pagination ── */
.pbc-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ccc;
  opacity: 1;
}

.pbc-swiper .swiper-pagination-bullet-active {
  background: #0984e3;
  width: 28px;
  border-radius: 5px;
}

.pbc-swiper .swiper-pagination {
  bottom: 4px;
}

/* ── Navigation arrows ── */
.pbc-swiper .swiper-button-prev,
.pbc-swiper .swiper-button-next {
  color: #0984e3;
  background: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  top: calc(50% - 20px);
}

.pbc-swiper .swiper-button-prev::after,
.pbc-swiper .swiper-button-next::after {
  font-size: 14px;
  font-weight: 900;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .pbc-title {
    font-size: 0.95rem;
  }
  .pbc-price {
    font-size: 1.1rem;
  }
  .pbc-content {
    padding: 14px 16px;
  }
  .pbc-circle-img {
    width: 60px;
    height: 60px;
  }
}

/* ════════════════════════════════════════════
   Image Grid Carousel (IGC) Widget
════════════════════════════════════════════ */

.pbc-igc-wrapper {
  width: 100%;
  padding-bottom: 44px;
  position: relative;
}

.pbc-igc-swiper {
  padding-bottom: 38px !important;
}

/* ── Card ── */
.igc-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  width: 100%;
}

.igc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

/* ── BG image ── */
.igc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.pbc-igc-wrapper.igc-hover-zoom .igc-card:hover .igc-bg {
  transform: scale(1.07);
}

.igc-bg-fallback {
  opacity: 0.9;
}

/* ── Dark overlay ── */
.igc-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.35s ease;
}

.igc-card:hover .igc-overlay {
  opacity: 0.75;
}

/* ── Body content ── */
.igc-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 16px;
  gap: 4px;
}

.igc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.igc-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.3;
}

/* ── Footer row (price + badge) ── */
.igc-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.igc-price {
  font-size: 1rem;
  font-weight: 900;
  color: #f9ca24;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.igc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  background: #00b894;
  color: #fff;
  letter-spacing: 0.3px;
}

/* ── Nav arrows for IGC ── */
.pbc-igc-swiper .swiper-button-prev,
.pbc-igc-swiper .swiper-button-next {
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  top: calc(50% - 22px);
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.pbc-igc-swiper .swiper-button-prev:hover,
.pbc-igc-swiper .swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.pbc-igc-swiper .swiper-button-prev::after,
.pbc-igc-swiper .swiper-button-next::after {
  font-size: 13px;
  font-weight: 900;
}

/* ── Pagination ── */
.pbc-igc-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #bbb;
  opacity: 1;
}

.pbc-igc-swiper .swiper-pagination-bullet-active {
  background: #0984e3;
  width: 24px;
  border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .igc-title {
    font-size: 0.95rem;
  }
  .igc-price {
    font-size: 0.85rem;
  }
  .igc-body {
    padding: 12px;
  }
}

/* ════════════════════════════════════════════
   Photo Gallery Widget (PGW)
   Pure-image cards, no overlay text.
   ≤ N images → CSS grid  |  > N → Swiper carousel
════════════════════════════════════════════ */

/* ── Shared wrapper ── */
.pgw-wrapper {
  width: 100%;
  position: relative;
}

/* ── Grid mode ── */
.pgw-grid {
  display: grid;
  grid-template-columns: repeat(var(--pgw-cols, 3), 1fr);
  gap: var(--pgw-gap, 16px);
}

/* ── Carousel mode wrapper ── */
.pgw-carousel {
  padding-bottom: 44px;
}

.pgw-swiper {
  padding-bottom: 38px !important;
}

/* ── Individual photo card ── */
.pgw-photo-card {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.13);
  width: 100%;
  background: #e0e0e0; /* placeholder bg while image loads */
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  text-decoration: none; /* when rendered as <a> */
  position: relative;
}

/* Show pointer cursor when the card is a link */
a.pgw-photo-card {
  cursor: pointer;
}

/* ── Image fills the card completely ── */
.pgw-photo-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s ease;
}

/* ── Hover zoom ── */
.pgw-hover-zoom .pgw-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.pgw-hover-zoom .pgw-photo-card:hover img {
  transform: scale(1.07);
}

/* ── Carousel navigation arrows ── */
.pgw-swiper .swiper-button-prev,
.pgw-swiper .swiper-button-next {
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  top: calc(50% - 22px);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.pgw-swiper .swiper-button-prev:hover,
.pgw-swiper .swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.72);
}

.pgw-swiper .swiper-button-prev::after,
.pgw-swiper .swiper-button-next::after {
  font-size: 13px;
  font-weight: 900;
}

/* ── Carousel pagination dots ── */
.pgw-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #bbb;
  opacity: 1;
}

.pgw-swiper .swiper-pagination-bullet-active {
  background: #0984e3;
  width: 24px;
  border-radius: 4px;
}

.pgw-swiper .swiper-pagination {
  bottom: 6px;
}

/* ── Responsive grid ── */
@media (max-width: 1023px) {
  .pgw-grid {
    grid-template-columns: repeat(min(var(--pgw-cols, 3), 2), 1fr);
  }
}

@media (max-width: 767px) {
  .pgw-grid {
    grid-template-columns: 1fr;
  }

  .pgw-swiper .swiper-button-prev,
  .pgw-swiper .swiper-button-next {
    width: 32px;
    height: 32px;
  }

  .pgw-swiper .swiper-button-prev::after,
  .pgw-swiper .swiper-button-next::after {
    font-size: 11px;
  }
}
