/* ========================================
   GENERAL LAYOUT & CONTAINER STYLES
   ======================================== */

/* App container base styles */
#app-container {
  padding: 0 !important;
}

/* Container hero image */
.container-hero img.img-responsive {
  filter: none;
}

/* ========================================
   HERO SECTIONS
   ======================================== */

/* Hero container base styles */
.hero-container-top,
.hero-container-center,
.hero-container-bottom {
  height: 70vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Hero container positioning variants */
.hero-container-top {
  background-position: top;
}

.hero-container-bottom {
  background-position: bottom;
}

/* Hero text content */
.text-hero-container img {
  max-width: 230px;
  height: auto;
}

p.title-text-hero {
  font-size: 24px;
  font-weight: 500;
}

/* Black Friday hero specific styles */
body:has(.hero-bf) .top-bf {
  display: none !important;
}

/* ========================================
   BANNER SECTIONS
   ======================================== */

/* Main offer banner */
.banner-offer {
  padding: 40px;
  margin-top: 80px;
}

.banner-offer .title-banner-offer {
  font-size: 32px;
  font-weight: 600;
}

.banner-offer .subtitle-banner-offer {
  font-size: 24px;
}

/* Small banner */
.banner-small p {
  padding: 12px;
  margin-bottom: 0 !important;
  font-size: 20px;
  font-weight: 600;
}

/* february offer text banner */
.banner-offer.feb_title_banner {
  background: #faf8f4;
}
.banner-offer.feb_title_banner .title-banner-offer {
  color: #6a0437;
}

/* offer golf punta cana */
.banner-offer.golf-punta-cana_title_banner {
  background: #0b2463;
}
.banner-offer.golf-punta-cana_title_banner .title-banner-offer {
  color: #fff;
}

/* offer golf mirage */
.banner-offer.offer-golf-mirage_title_banner {
  background: #0b2463;
}
.banner-offer.offer-golf-mirage_title_banner .title-banner-offer {
  color: #fff;
}

/* ========================================
   TYPOGRAPHY STYLES
   ======================================== */

/* Main headings and titles */
.banner-offer .title-banner-offer,
body h1:not(body .general-section-offer h1, body .section-loyalty h1),
body h2:not(body .general-section-offer h2, body .section-loyalty h2) {
  font-family: var(--fontTitles);
  line-height: 1.2;
  text-transform: capitalize;
}

body .banner-offer h1.title-banner-offer,
body h1:not(body .general-section-offer h1, body .section-loyalty h1) {
  font-size: 48px;
  font-weight: 600;
}

body h2 {
  font-size: 40px;
  font-weight: 400;
}

body h3 {
  font-size: 32px;
  font-weight: 400;
}

.regular {
  font-weight: 400 !important;
}

/* ========================================
   RESORT OFFER CARDS
   ======================================== */

/* Resort offer container */
.resort-offer {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid var(--colorCaribbean);
}

/* Extra discount badge */
.extra-discount {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--colorPrimary);
  color: #fff;
  padding: 10px 20px;
}

/* Remove border radius when discount badge present */
.resort-offer:has(.extra-discount),
.resort-offer:has(.extra-discount) .img-resort-offer img {
  border-radius: 0;
}

/* Resort offer image */
.resort-offer .img-resort-offer img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Resort offer text content */
.text-resort-offer {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.text-resort-offer p:last-child {
  display: flex;
  align-items: flex-end;
  flex-grow: 1;
}

.resort-offer .text-resort-offer {
  padding: 5%;
}

.resort-offer .text-resort-offer h3 {
  font-size: 32px;
  font-family: var(--fontTitles);
  line-height: 1.2;
  text-transform: none;
}

.resort-offer .text-resort-offer p span {
  font-style: italic;
  font-weight: 600;
}

/* Resort grid layout */
.grid-resorts-offer > .row > div > .htt-text-image,
.grid-resorts-offer > .row > div > .htt-text-image > .resort-offer {
  height: 100%;
}

.grid-overlay-bottom > div {
  margin-top: 20px;
}

/* ========================================
   ACCORDION STYLES (TERMS & CONDITIONS)
   ======================================== */

.accordion-item {
  border: none !important;
}

.accordion-item .accordion-button {
  border-radius: 0 !important;
  padding: 10px 15px;
  color: var(--color-body);
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--colorSand) !important;
  font-size: 23px;
  padding-left: 0;
}

.accordion-button::after {
  transform: rotate(180deg);
}

.accordion-button.collapsed::after {
  transform: none;
}

#offer-terms .accordion-body {
  padding-left: 0;
}

/* ========================================
   ALERT & NOTICE SECTIONS
   ======================================== */

/* Alert offer container */



.alert-offer .flex-center {
  border: 1px solid var(--colorSand) !important;
  border-radius: 0px !important;
  padding: 5%;
  background: var(--colorSandLight);
}

.alert-offer p.white {
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 700;
}

.alert-offer .flex-center > div:last-child {
  padding: 30px 20px;
}

/* Alert list styles */
.alert-offer ul {
  list-style-type: disc;
  padding-left: 1.1rem;
}

.alert-offer ul li {
  margin-top: 5px;
}

.alert-offer ul li::marker {
  font-size: 10px;
}

/* ========================================
   BOX COMPONENTS
   ======================================== */

.box {
  border: 1px solid var(--colorCaribbean);
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.box > div img.img-responsive {
  margin-bottom: 20px;
}

.box > div:last-child {
  flex: 1;
  padding: 5%;
}

.htt-text-image:has(.box) {
  height: 100%;
}

/* ========================================
   GRID DISCOUNT COMPARISON
   ======================================== */

.grid-ic {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.grid-ic > div:first-child,
.grid-ic > div:last-child {
  border-radius: 10px;
  border: 1px solid var(--colorCaribbean);
  background: #fff;
  padding: 20px;
  width: calc(48% - 30px);
}

.grid-ic > div:nth-child(2) {
  width: calc(4% - 30px);
}

.grid-ic > div:nth-child(2) p {
  font-size: 48px;
}

.grid-ic p.subtitle-grid-ic {
  font-size: 32px;
}

.grid-ic p.discount {
  font-size: 110px;
  line-height: 0.7em;
}

.grid-ic > div:last-child p.discount {
  font-size: 56px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.htt-text-image:has(.two-cols) {
  display: flex;
  justify-content: center;
}

/* ========================================
   MEDIA QUERIES - DESKTOP & LARGE SCREENS
   ======================================== */

/* Desktop two-column lists */
@media (min-width: 1025px) {
  body:has(.banner-offer) ul.two-cols {
    transform: translate(8%, 0%);
  }
}

/* Desktop alert offer layout */
@media (min-width: 1025px) {
  .alert-offer {
    max-width: 80%;
    margin: 0 auto;
  }
  .alert-offer .flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
  .alert-offer .flex-center > div {
    flex: 1;
  }
  .alert-offer .flex-center > div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }
}

/* Desktop grid overlay */
@media (min-width: 992px) {
  .grid-overlay-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
}

/* ========================================
   MEDIA QUERIES - TABLETS
   ======================================== */

/* Tablet layout adjustments */
@media only screen and (max-width: 1024px) {
  /* Hero container adjustments */
  .hero-container-center,
  .hero-container-top,
  .hero-container-bottom {
    justify-content: center;
    align-items: flex-start;
    padding: 80px 0px 0px 0px;
  }

  /* Flex center image */
  .flex-center > div > .img-responsive {
    height: 100%;
  }

  /* Grid discount comparison - stack vertically */
  .grid-ic {
    flex-direction: column;
  }
  .grid-ic > div:first-child,
  .grid-ic > div:last-child {
    width: 100%;
  }
}

/* Tablet resort grid spacing */
@media (max-width: 991px) {
  .grid-resorts-offer > .row > div:has(.img-resort-offer) {
    margin-top: 20px;
  }
  .alert-offer > div:first-child {
    padding: 15px;
  }
}

/* ========================================
   MEDIA QUERIES - MOBILE DEVICES
   ======================================== */

/* Mobile layout adjustments */
@media only screen and (max-width: 767px) {
  /* Hero container mobile sizing */
  .hero-container-top,
  .hero-container-center,
  .hero-container-bottom {
    height: 80vh;
  }

  .hero-container-top.hero-m5:has(.text-hero-container) {
    height: 85vh;
    padding: 15px !important;
  }

  /* Banner mobile flex direction */
  .banner-offer .d-flex {
    flex-direction: column;
  }

  /* Discount grid mobile sizing */
  .grid-ic > div:last-child p.discount {
    font-size: 44px;
    line-height: 1em;
  }

  /* Hero text content mobile sizing */
  .text-hero-container img {
    max-width: 200px;
  }

  p.title-text-hero {
    line-height: 125%;
    font-size: 22px;
  }
}

/* ========================================
   SWIPER & SLIDER VISIBILITY
   ======================================== */

/* Hide specific offer slides */
.swiper-offers .swiper-slide:has(.offer#offer-savings-on-elegance),
.swiper-offers .swiper-slide:has(.offer#christmas-july),
.swiper-offers .swiper-slide:has(.offer#offer-lowest-rates) {
  display: none;
}

/* ========================================
   MMCM - Majestic Mirage Costa Mujeres Open
   ======================================== */

.mmcm_offer_banner {
  background-image: url("/dam/multiHotel-majesticresorts/offers/opening-mmcm/hero-desktop-opening-majestic-mirage-costa-mujeres-all-suite-resort.webp");
}
@media (max-width: 768px) {
  .mmcm_offer_banner {
    background-image: url("/dam/multiHotel-majesticresorts/offers/opening-mmcm/hero-mobile-opening-offer-majestic-mirage-costa-mujeres-all-suite-resort.webp");
  }
}

/* ========================================
   FEBRUARY - Majestic Resorts Offer
   ======================================== */
.february_offer_banner {
  background-image: url("/dam/multiHotel-majesticresorts/offers/february-offer/hero-desktop-february-offer-majestic-resorts.webp");
}

@media (max-width: 768px) {
  .february_offer_banner {
    background-image: url("/dam/multiHotel-majesticresorts/offers/opening-mmcm/mobile-hero-desktop-february-offer-majestic-resorts.webp");
  }
}

/* ========================================
   Bottom offers banners
   ======================================== */
.col:has(.bottom_offers_banner) {
  padding-left: 0;
  padding-right: 0;
}
.bottom_offers_banner {
  background-position: 45%;
  display: flex;
  align-items: center;
  justify-content: end;
  padding-left: 5%;
  height: 85vh;
  background-size: cover;
}

.bottom_offers_banner .text_box img {
  max-width: 230px;
  height: auto;
}

.bottom_offers_banner .text_box {
  width: 45%;
}
/* Bottom offer banner - February offer */
.february_offer-bottom-banner {
  background-image: url(/dam/multiHotel-majesticresorts/offers/february-offer/banner-february-offer-majestic-mirage-costa-mujeres-all-suite-resort.webp);
}

.february_offer-bottom-banner .text_box .title-text-hero {
  color: #fff;
  padding: 0 3rem;
}

.february_offer-bottom-banner .btn-transparent {
  color: var(--colorSand);
}

@media (max-width: 768px) {
  .february_offer-bottom-banner {
    background-image: url(/dam/multiHotel-majesticresorts/offers/festive-feels/banner-offer-majestic-mirage-costa-mujeres-2.webp);
    background-position: 28% center;
  }
}

@media (max-width: 1024px) {
  .february_offer-bottom-banner {
    justify-content: center;
    align-items: flex-end;
    padding: 20px !important;
  }

  .february_offer-bottom-banner .text_box {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
  }

  .february_offer-bottom-banner .text_box .title-text-hero {
    color: #02090b;
    padding: 0;
  }
}
