/* 
Theme Name: S99 Child
Theme URI: https://studio99.sm
Description: S99 Child is a child theme of S99, created by Studio99 team
Author: Studio99 Team
Author URI: https://studio99.sm
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* ==========================================================================
   S99 Header – Scroll effect (desktop only)
   ========================================================================== */

:root {
  --s99-transition: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --s99-color-primary: #1d4152;
  --s99-logo-dark: url("https://maharajaboutiquehotel.com/wp-content/uploads/2026/12/maharaja-boutique-hotel-resort-zanzibar-15-300x120-1.jpg");
}

@media (min-width: 1025px) {

  /* ---------- Default state (top of the page) ---------- */

  .s99-header {
    min-height: 90px;
    background-color: transparent;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition:
      background-color var(--s99-transition),
      min-height var(--s99-transition),
      box-shadow var(--s99-transition);
  }

  /* Logo (white version) */
  .s99-logo {
    position: relative;
  }

  .s99-logo img {
    height: 80px;
    width: auto;
    max-width: none;
    opacity: 1;
    transition:
      height var(--s99-transition),
      opacity var(--s99-transition);
  }

  /* Logo (dark version), stacked on top of the white one */
  .s99-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--s99-logo-dark) no-repeat left center / contain;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--s99-transition);
  }

  /* Menu */
  .s99-header .elementor-nav-menu--main .elementor-item {
    transition: color var(--s99-transition);
  }

  /* Book Now button */
  .s99-book-now .elementor-button {
    transition:
      background-color var(--s99-transition),
      color var(--s99-transition);
  }

  /* ---------- Scrolled state ---------- */

  .s99-header.is-scrolled {
    min-height: 60px !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  /* Logo swap */
  .s99-header.is-scrolled .s99-logo img {
    height: 54px;
    opacity: 0;
  }

  .s99-header.is-scrolled .s99-logo::after {
    opacity: 1;
  }

  /* Menu text color */
  .s99-header.is-scrolled .elementor-nav-menu--main .elementor-item,
  .s99-header.is-scrolled .elementor-nav-menu--main .elementor-item:hover,
  .s99-header.is-scrolled .elementor-nav-menu--main .elementor-item.elementor-item-active {
    color: #000000 !important;
  }

  /* Underline pointer color (Elementor hover/active indicator) */
  .s99-header.is-scrolled .e--pointer-underline .elementor-item::after {
    background-color: #000000 !important;
  }

  /* Book Now button */
  .s99-header.is-scrolled .s99-book-now .elementor-button {
    background-color: var(--s99-color-primary) !important;
  }
}



/* ==========================================================================
   S99 Image Hover – Luxury effect with five stars
   Usage: add the class "s99-hover" to any Elementor image widget
   ========================================================================== */

:root {
  --s99-hover-duration: 1.2s;
  --s99-hover-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --s99-hover-zoom: 1.06;
  --s99-hover-frame-color: rgba(255, 255, 255, 0.75);
  --s99-hover-frame-offset: -28px;
  --s99-hover-frame-offset-active: -16px;
  --s99-hover-stars-width: clamp(84px, 24%, 124px);
  --s99-hover-stars-bottom: 38px;
  --s99-hover-stars-delay: 0.35s;
}

.s99-hover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- Image ---------- */

.s99-hover img {
  display: block;
  transform: scale(1);
  transform-origin: center center;
  filter: brightness(1) saturate(1);
  transition:
    transform var(--s99-hover-duration) var(--s99-hover-ease),
    filter var(--s99-hover-duration) var(--s99-hover-ease);
  will-change: transform;
  backface-visibility: hidden;
}

/* ---------- Overlay: soft gradient + thin elegant frame ---------- */

.s99-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.1) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  outline: 1px solid var(--s99-hover-frame-color);
  outline-offset: var(--s99-hover-frame-offset);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--s99-hover-duration) var(--s99-hover-ease),
    outline-offset var(--s99-hover-duration) var(--s99-hover-ease);
}

/* ---------- Five stars (drawn from left to right) ---------- */

.s99-hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: var(--s99-hover-stars-bottom);
  z-index: 2;
  width: var(--s99-hover-stars-width);
  aspect-ratio: 6 / 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20'%3E%3Cg fill='%23ffffff'%3E%3Cpath id='s' d='M10 1l2.6 6.2 6.7.5-5.1 4.3 1.6 6.6L10 15l-5.8 3.6 1.6-6.6L.7 7.7l6.7-.5z'/%3E%3Cpath d='M35 1l2.6 6.2 6.7.5-5.1 4.3 1.6 6.6L35 15l-5.8 3.6 1.6-6.6-5.1-4.3 6.7-.5z'/%3E%3Cpath d='M60 1l2.6 6.2 6.7.5-5.1 4.3 1.6 6.6L60 15l-5.8 3.6 1.6-6.6-5.1-4.3 6.7-.5z'/%3E%3Cpath d='M85 1l2.6 6.2 6.7.5-5.1 4.3 1.6 6.6L85 15l-5.8 3.6 1.6-6.6-5.1-4.3 6.7-.5z'/%3E%3Cpath d='M110 1l2.6 6.2 6.7.5-5.1 4.3 1.6 6.6L110 15l-5.8 3.6 1.6-6.6-5.1-4.3 6.7-.5z'/%3E%3C/g%3E%3C/svg%3E")
    no-repeat center / 100% 100%;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition:
    clip-path calc(var(--s99-hover-duration) * 1.1) var(--s99-hover-ease),
    opacity var(--s99-hover-duration) var(--s99-hover-ease),
    transform var(--s99-hover-duration) var(--s99-hover-ease);
}

/* ---------- Hover state (only on devices that support hover) ---------- */

@media (hover: hover) {

  .s99-hover:hover img {
    transform: scale(var(--s99-hover-zoom));
    filter: brightness(1.04) saturate(1.08);
  }

  .s99-hover:hover::before {
    opacity: 1;
    outline-offset: var(--s99-hover-frame-offset-active);
  }

  .s99-hover:hover::after {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    transform: translate(-50%, 0);
    transition-delay: var(--s99-hover-stars-delay);
  }
}

/* ---------- Accessibility: respect reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {

  .s99-hover img,
  .s99-hover::before,
  .s99-hover::after {
    transition-duration: 0.04ms;
    transition-delay: 0s;
  }
}

/* ---------- Hiden tittle picture gallery ---------- */

.elementor-slideshow__title {
    display: none !important;
}