
/* Homepage Welcome section: the left/right images sit in a column with a
   370px top offset (a legacy stagger effect) that, combined with the image's
   own height, extends well past the section's natural (text-column) height
   and overlaps the Amenities heading that follows. Reduce the offset at the
   source instead of only pushing the next section away. */
.home .elementor-element-546902b > .elementor-element-populated,
.home .elementor-element-70de53d > .elementor-element-populated {
  margin-top: 120px !important;
}
/* Breathing room between the Welcome section and the Amenities heading. */
.home .elementor-element-6bd30ab {
  margin-top: 50px !important;
}

/* Homepage Exclusive Offer row: the slider column replaced two columns that
   together took up 43.4% of the row (a 5.4% feather column + a 38% photo
   column), but was given Elementor's generic 50% column class. That 6.6%
   overflow (26% text + 50% slider + 30.614% services = 106.6%) pushed the
   row past 100% width, squeezing the slider so it hugs the left edge instead
   of sitting centered in its own column. Match the original 43.4%. */
.mar-offer-slider-col {
  width: 43.4% !important;
}
@media (max-width: 1024px) {
  .mar-offer-slider-col {
    width: 100% !important;
  }
}

/* Theme fix: keep text above decorative/background layers */
.qodef-page-title { overflow: hidden; }
.qodef-page-title .qodef-m-content, .qodef-page-title .qodef-m-title { position: relative; z-index: 6; }
.qodef-m-content, .elementor-widget-heading, .qodef-e-content { position: relative; z-index: 3; }
.qodef-m-background, .qodef-e-media-image ~ .qodef-m-background, span.qodef-m-background { z-index: 0 !important; }
.elementor-widget-image img.qodef-e-parallax-item, .qodef-e-parallax { z-index: 1; }

/* Amenities section above the room-section mint background */
section.elementor-section:has(.qodef-amenity-item) { position: relative; z-index: 5; }
.qodef-e.qodef-amenity-item { position: relative; z-index: 5; }
/* Social icons: white glyph on primary-color circle, no hover effect */
.wp-block-social-links .wp-social-link,
.wp-block-social-links .wp-social-link a { background-color: var(--primary-color) !important; }
.wp-block-social-links .wp-social-link svg,
.wp-block-social-links .wp-social-link svg path { fill: #fff !important; color: #fff !important; }
.wp-block-social-links .wp-social-link:hover,
.wp-block-social-links .wp-social-link a:hover { background-color: var(--primary-color) !important; }
.wp-block-social-links .wp-social-link a:hover { transform: none !important; opacity: 1 !important; box-shadow: none !important; }
.wp-block-social-links .wp-social-link:hover { transform: none !important; }
@media (max-width: 1024px) {
  /* modest gap between room section and the next section */
  section.elementor-section:has(.qodef-m-accordion) { margin-bottom: 40px; }
  /* hide the right-side (second) room image on mobile */
  .qodef-e-additional-image { display: none !important; }
  /* one image only: the ACTIVE room's left image — static, centered, full width, below the content */
  .qodef-m-other { display: block !important; position: static !important; transform: none !important; width: 100% !important; height: auto !important; }
  .qodef-e-image-price { display: none !important; }
  .qodef-e-image-price.qodef--show { display: block !important; position: static !important; transform: none !important; float: none !important; width: 100% !important; margin: 24px auto 0 !important; text-align: center; }
  .qodef-e-image-price.qodef--show .qodef-e-media-image { display: block !important; transform: none !important; width: 100% !important; }
  .qodef-e-image-price.qodef--show .qodef-e-media-image a { display: block !important; width: 100% !important; }
  .qodef-e-image-price.qodef--show img { width: 100% !important; height: auto !important; }
  /* hide footer Links column on mobile */
  footer [data-area="footer_top_area_column_2"] { display: none !important; }
  /* bigger social icons on mobile */
  .wp-block-social-links .wp-social-link svg { width: 30px; height: 30px; }
  .wp-block-social-links .wp-social-link a { padding: 8px; }
}

/* Amenities heading section above the welcome section's decorative imagery */
.elementor-element-6bd30ab { position: relative; z-index: 6; }
/* Wide screens: contain the welcome section so its side images/backgrounds don't drift into Amenities */
@media (min-width: 1700px) {
  .elementor-element-5db488d, .elementor-element-3afa020 { padding-left: 10% !important; padding-right: 10% !important; }
  .elementor-element-6bd30ab { margin-top: 100px !important; }
}

/* ---- Accommodation page: uniform, contained room-card images with a hover zoom ---- */
.qodef-room-list .qodef-e-media-image {
  height: 360px;
  overflow: hidden;
  border-radius: 4px;
}
.qodef-room-list .qodef-e-media-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.qodef-room-list .qodef-e-media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
.qodef-room-list .qodef-e-media-image:hover img {
  transform: scale(1.08);
}
@media (max-width: 480px) {
  .qodef-room-list .qodef-e-media-image { height: 260px; }
}

/* ---- Contact page: balanced spacing, content centered with the map ---- */
.page-id-10 #qodef-page-content {
  padding-top: 90px;
  padding-bottom: 110px;
}
.page-id-10 .elementor-element-74446db .qodef-section-title {
  text-align: center;
  justify-content: center;
}
.page-id-10 .elementor-element-56e695d .elementor-container {
  align-items: center;
  column-gap: 70px;
}
.page-id-10 .elementor-element-fc7fa88 {
  text-align: center;
}
.page-id-10 .elementor-element-e446a04 .elementor-custom-embed,
.page-id-10 .elementor-element-e446a04 iframe {
  width: 100%;
  min-height: 420px;
  border-radius: 6px;
}

/* ---- Room single page: gallery arrows, thumbnail strip, current-image counter ---- */
.mar-room-gallery-wrap { position: relative; }
.mar-room-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease;
  user-select: none;
}
.mar-room-nav:hover { background: var(--primary-color); }
.mar-room-prev { left: 16px; }
.mar-room-next { right: 16px; }
.mar-room-counter {
  position: absolute;
  bottom: 12px;
  right: 16px;
  z-index: 10;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 20px;
}
.mar-room-thumbs {
  margin-top: 12px;
  padding: 2px;
}
.mar-room-thumbs .swiper-slide {
  opacity: .55;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity .25s ease;
  height: 90px;
}
.mar-room-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.mar-room-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--primary-color);
}

/* ---- Homepage Amenities grid: align item tops instead of bottoms ----
   The vendor rule uses align-items:flex-end, which bottom-aligns each flex
   item; since amenity descriptions vary in length, shorter items appear
   pushed down relative to taller ones. Top-align instead so every title
   sits on the same baseline regardless of description length. */
.qodef-amenity-list.qodef-layout--columns > .qodef-grid-inner {
  align-items: flex-start !important;
}

/* ---- Shared alternating image/content layout (Facilities + Offers) ---- */
.mar-alt-container {
  display: flex;
  align-items: center;
  gap: 60px;
}
.mar-alt-section--reverse .mar-alt-container {
  flex-direction: row-reverse;
}
.mar-alt-image-col, .mar-alt-content-col {
  flex: 1 1 50%;
  min-width: 0;
  width: 50%;
}
.mar-alt-image {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
}
.mar-alt-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Offers: show the full image, uncropped and unhidden */
.mar-alt-image--contain {
  aspect-ratio: 4 / 3;
}
.mar-alt-image--contain img {
  object-fit: contain;
}
.mar-alt-content { padding: 20px 0; }
@media (max-width: 767px) {
  .mar-alt-container, .mar-alt-section--reverse .mar-alt-container {
    flex-direction: column;
    gap: 24px;
  }
  .mar-alt-image-col, .mar-alt-content-col { width: 100%; }
}

/* ---- Offers page: empty state ---- */
.mar-empty-state {
  text-align: center;
  padding: 100px 20px;
  font-size: 20px;
  color: #505050;
}

/* ---- Homepage offers popup slider ---- */
.mar-offers-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
}
.mar-offers-popup-overlay.mar-is-open { display: flex; }
.mar-offers-popup {
  position: relative;
  width: 90%;
  max-width: 700px;
}
.mar-offers-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.mar-offers-popup-close:hover { background: var(--primary-color); }
.mar-offers-popup-slider { position: relative; }
.mar-offers-popup-slider .mar-popup-prev { left: 12px; }
.mar-offers-popup-slider .mar-popup-next { right: 12px; }

/* ---- Homepage "Exclusive offer" slider ---- */
.mar-home-offers-slider {
  position: relative;
  overflow: hidden;
  height: 80vh;
  background: #fff;
}
.mar-home-offers-slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #fff;
}
.mar-home-offers-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.mar-home-offers-slider .mar-home-offers-prev { left: 12px; }
.mar-home-offers-slider .mar-home-offers-next { right: 12px; }

/* ---- Footer: center the logo, links, and social columns ---- */
[data-area="footer_top_area_column_1"],
[data-area="footer_top_area_column_2"],
[data-area="footer_top_area_column_4"] {
  text-align: center;
}
[data-area="footer_top_area_column_2"] ul.menu {
  display: inline-block;
  text-align: center;
  padding-left: 0;
}
[data-area="footer_top_area_column_4"] ul.wp-block-social-links {
  justify-content: center;
}
.mar-offers-popup-slider {
  height: 80vh;
  background: #fff;
  border: 10px solid #fff;
  border-radius: 12px;
  box-sizing: border-box;
}
.mar-offers-popup .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #fff;
}
.mar-offers-popup .swiper-slide a { display: block; width: 100%; height: 100%; }
.mar-offers-popup .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}
.mar-offers-popup .swiper-pagination {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
}

/* ---- Balanced top/bottom body spacing on secondary pages ----
   These templates zero out the theme's default #qodef-page-inner padding
   (130px 0 100px) to let the banner sit flush, but never add any spacing
   back, so content reads as cramped against both the banner and footer. */
.page-id-6 #qodef-page-content,
.page-id-7 #qodef-page-content,
.page-id-8 #qodef-page-content {
  padding-top: 90px;
  padding-bottom: 110px;
}
.page-id-9 #qodef-page-inner {
  padding: 100px 0 !important;
}
@media (max-width: 1024px) {
  .page-id-6 #qodef-page-content,
  .page-id-7 #qodef-page-content,
  .page-id-8 #qodef-page-content {
    padding-top: 60px;
    padding-bottom: 80px;
  }
  .page-id-9 #qodef-page-inner {
    padding: 60px 30px !important;
  }
}

/* ---- Contact page: title inside left column, tighter info spacing ---- */
.page-id-10 .mar-contact-title {
  margin: 0 0 20px;
}
.page-id-10 [data-area="footer_top_area_column_3"] p {
  margin: 0 0 6px;
}
.page-id-10 [data-area="footer_top_area_column_3"] p br + br {
  display: none;
}

/* ---- HERO BANNER STYLING ---- */

/* 1. REMOVE text shadows from all hero banner text layers */
rs-layer[data-type="text"] {
  text-shadow: none !important;
}

/* 2. Make h1 and h2 WHITE inside hero banners (page-title sections on inner pages) */
/* Inner pages: h1/h2 white inside page-title banner */
body:not(.home) .qodef-page-title h1,
body:not(.home) .qodef-page-title h2 {
  color: #ffffff !important;
}

/* 3. Keep h1 and h2 BLACK in body content areas (not in page-title) */
body:not(.home) #qodef-page-content h1,
body:not(.home) #qodef-page-content h2,
body:not(.home) .elementor-widget-heading h1,
body:not(.home) .elementor-widget-heading h2 {
  color: #000000 !important;
}

/* 4. Add 30% dark overlay to hero banners on inner pages (not homepage) */
body:not(.home) .qodef-page-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 5;
  pointer-events: none;
}

/* ---- HERO BANNER IMAGES: Center background positioning ---- */
/* Center background image positioning (works with dynamic image swaps) */
rs-slide {
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* Center background images on the rev-slidebg element */
.rev-slidebg {
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* Center object-position for image elements */
.rev-slidebg.tp-rs-img {
  object-position: center center !important;
  object-fit: cover !important;
}

/* Ensure img elements use centered positioning */
rs-slide img,
.tp-rs-img img {
  object-position: center center !important;
  object-fit: cover !important;
}

/* ---- HOMEPAGE AMENITIES SECTION: Black header color ---- */
/* Make amenities section title/header black */
.home .elementor-element-6bd30ab h1,
.home .elementor-element-6bd30ab h2,
.home .elementor-element-6bd30ab h3,
.home .elementor-element-6bd30ab .qodef-section-title,
.home section:has(.qodef-amenity-item) h1,
.home section:has(.qodef-amenity-item) h2,
.home section:has(.qodef-amenity-item) h3,
.home section:has(.qodef-amenity-item) .qodef-section-title {
  color: #000000 !important;
}
