/* Omnipack parity override: loaded last on purpose. */

/* ===============================
   Mobile menu overlay hard fix
   =============================== */
.mobile-menu-overlay-wrapper {
  display: none !important;
}

@media screen and (max-width: 1199px) {
  .mobile-menu-overlay-wrapper {
    display: block !important;
  }
  /* Match <991 layout behavior across tablet/laptop widths */
  .head {
    display: none !important;
  }
  .top-header .container,
  .navbar .container {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 8px !important;
    padding-right: 4px !important;
  }
  .navbar {
    height: 76px !important;
  }
  .navbar-brand {
    min-height: 60px !important;
  }
  .navbar-brand > img,
  .navbar-brand .navbar-logo {
    height: 40px !important;
  }
  .navbar-header {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 60px !important;
    width: 100% !important;
  }
  .navbar-brand {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 0 0 15px !important;
    margin-right: 0 !important;
  }
  .navbar-toggle {
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-left: auto !important;
    float: right !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 44px !important;
    padding: 8px 6px !important;
  }
  #menu-toggle-button {
    margin-right: 0 !important;
  }
  #menu-toggle-button .hamburger-title {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #menu-toggle-button #menu-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 28px !important;
    min-height: 28px !important;
    vertical-align: middle !important;
  }
  #menu-toggle-button #menu-button::before {
    line-height: 1 !important;
    margin-top: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
  }
  /* Activate burger navigation below 1200px */
  .navbar-toggle {
    display: inline-flex !important;
  }
  .navbar-responsive-collapse,
  .navbar-responsive-collapse.in {
    display: none !important;
    visibility: hidden !important;
  }
  /* Sticky below 1200: transparent at top, gray on scroll */
  #topNav.navbar-fixed-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1030 !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }
  #topNav.navbar-fixed-top.navbar-transparent {
    background-color: transparent !important;
    box-shadow: none !important;
  }
  #topNav.navbar-fixed-top:not(.navbar-transparent) {
    background-color: #EEF2F2 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  }
}

#mobile-menu-overlay {
  position: fixed !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #eef2f2;
  display: none !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mobile-menu-overlay.open {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 20px;
}

/* Ulikett brand accent color */
#mobile-menu-overlay .mobile-menu-nav > a:hover,
#mobile-menu-overlay .mobile-menu-nav > a:focus,
#mobile-menu-overlay .mobile-menu-nav > a.active,
#mobile-menu-overlay .mobile-menu-lang a:hover,
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #0098DC !important;
}

#mobile-menu-overlay .mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 320px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mobile-menu-overlay .mobile-menu-nav > a {
  display: block;
  width: 100%;
  padding: clamp(12px, 2.3vh, 20px) 12px;
  font-size: clamp(1.02rem, 2.5vh, 1.32rem);
  line-height: 1.2;
  text-align: center;
}

#mobile-menu-overlay .mobile-menu-lang {
  gap: 12px;
  margin-top: 22px;
  font-size: clamp(0.9rem, 1.9vh, 1.05rem);
}

@media screen and (max-height: 760px) {
  #mobile-menu-overlay.open {
    padding-top: 64px;
    justify-content: flex-start;
  }
  #mobile-menu-overlay .mobile-menu-nav > a {
    padding: 11px 10px;
    font-size: 1rem;
  }
  #mobile-menu-overlay .mobile-menu-lang {
    margin-top: 12px;
  }
}

@media screen and (max-height: 640px) {
  #mobile-menu-overlay.open {
    padding-top: 56px;
  }
  #mobile-menu-overlay .mobile-menu-nav {
    max-height: calc(100vh - 86px);
  }
  #mobile-menu-overlay .mobile-menu-nav > a {
    padding: 9px 8px;
    font-size: 0.94rem;
    line-height: 1.15;
  }
  #mobile-menu-overlay .mobile-menu-lang {
    font-size: 0.86rem;
    margin-top: 8px;
  }
}

/* Narrow phones: keep rows comfortably tall/readable */
@media screen and (max-width: 430px) {
  #mobile-menu-overlay .mobile-menu-nav {
    max-width: 92vw;
  }
  #mobile-menu-overlay .mobile-menu-nav > a {
    padding: 12px 10px !important;
    font-size: 1.06rem !important;
    line-height: 1.22 !important;
  }
  #mobile-menu-overlay .mobile-menu-lang {
    font-size: 0.94rem !important;
  }
}

/* iPhone-class fallback: force larger menu typography if still tiny */
@media screen and (max-width: 600px), (hover: none) and (pointer: coarse) {
  #mobile-menu-overlay .mobile-menu-nav {
    max-width: 96vw !important;
  }
  #mobile-menu-overlay .mobile-menu-nav > a {
    padding: 14px 10px !important;
    font-size: 19px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.2px;
  }
  #mobile-menu-overlay .mobile-menu-lang {
    font-size: 16px !important;
    margin-top: 14px !important;
  }
}

/* Contact staff cards: match live vertical layout */
.staff-card {
  min-height: 100%;
}

.staff-card .staff-card-body {
  padding: 12px 16px 6px;
}

.staff-card .staff-card-body h4 {
  font-size: 1.06rem;
  margin-bottom: 4px;
}

.staff-card img.staff {
  width: 150px;
  margin: 10px 0 12px;
}

/* Footer live parity adjustments */
.footer-products-columns .col-xs-6 {
  padding-left: 15px;
  padding-right: 15px;
}

.footer-products-columns a,
footer .footer-content .col-md-5 a {
  display: inline-block;
  line-height: 1.45;
}

/* Product detail in-content image: match live larger size */
.product-detail-main-image-wrap {
  margin-top: 6px;
}

.product-detail-main-image-wrap .product-detail-main-image {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
}

@media screen and (max-width: 991px) {
  /* Keep original clickable hotspots on tablet and scale them */
  .btn-produkt-tickets-pos { right: 341px !important; bottom: 2px !important; }
  .btn-produkt-tickets { width: 120px !important; height: 53px !important; }

  .btn-produkt-duo-pos { right: 260px !important; bottom: 2px !important; }
  .btn-produkt-duo { width: 71px !important; height: 70px !important; }

  .btn-produkt-booklets-pos { right: 148px !important; bottom: 2px !important; }
  .btn-produkt-booklets { width: 107px !important; height: 100px !important; }

  .btn-produkt-flex-pos { right: 60px !important; bottom: 2px !important; }
  .btn-produkt-flex { width: 81px !important; height: 113px !important; }

  .btn-produkt-self-pos { right: 0 !important; bottom: 2px !important; }
  .btn-produkt-self { width: 66px !important; height: 190px !important; }
}

@media screen and (max-width: 767px) {
  /* Further scale hotspots for phones to keep taps aligned */
  .btn-produkt-tickets-pos { right: 214px !important; bottom: 2px !important; }
  .btn-produkt-tickets { width: 75px !important; height: 33px !important; }

  .btn-produkt-duo-pos { right: 162px !important; bottom: 2px !important; }
  .btn-produkt-duo { width: 45px !important; height: 44px !important; }

  .btn-produkt-booklets-pos { right: 92px !important; bottom: 2px !important; }
  .btn-produkt-booklets { width: 67px !important; height: 63px !important; }

  .btn-produkt-flex-pos { right: 38px !important; bottom: 2px !important; }
  .btn-produkt-flex { width: 51px !important; height: 71px !important; }

  .btn-produkt-self-pos { right: 0 !important; bottom: 2px !important; }
  .btn-produkt-self { width: 41px !important; height: 118px !important; }
}

@media screen and (max-width: 430px) {
  /* iPhone-class: use explicit left-based hitboxes to avoid one-item shift */
  .btn-produkt-tickets-pos { left: 34% !important; right: auto !important; bottom: 1px !important; z-index: 20 !important; }
  .btn-produkt-tickets { width: 15% !important; height: 16% !important; }

  .btn-produkt-duo-pos { left: 49% !important; right: auto !important; bottom: 1px !important; z-index: 20 !important; }
  .btn-produkt-duo { width: 10% !important; height: 21% !important; }

  .btn-produkt-booklets-pos { left: 59% !important; right: auto !important; bottom: 1px !important; z-index: 20 !important; }
  .btn-produkt-booklets { width: 14% !important; height: 30% !important; }

  .btn-produkt-flex-pos { left: 73% !important; right: auto !important; bottom: 1px !important; z-index: 20 !important; }
  .btn-produkt-flex { width: 12% !important; height: 34% !important; }

  .btn-produkt-self-pos { left: 85% !important; right: auto !important; bottom: 1px !important; z-index: 20 !important; }
  .btn-produkt-self { width: 10% !important; height: 56% !important; }
}

/* Global color parity: use Ulikett blue for interactions */
a:hover,
a:focus,
a:active {
  color: #0098DC !important;
}

.btn-colored:hover,
.btn-colored:focus,
.btn-colored:active,
.btn-colored.active,
.open > .dropdown-toggle.btn-colored {
  background-color: #0098DC !important;
  border-color: #0098DC !important;
  color: #ffffff !important;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #0098DC !important;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
  color: #0098DC !important;
  background-color: #ffffff !important;
}

/* ===============================
   Hero carousel omnipack parity
   =============================== */
.carousel-hero-wrapper {
  overflow: hidden;
  padding-bottom: 50px;
  margin-bottom: 30px;
}

.carousel-hero-wrapper .carousel {
  margin-bottom: 0 !important;
}

.carousel-hero-wrapper .carousel h3 {
  max-width: 400px;
  font-size: 1rem;
  font-weight: 600;
}

.carousel-hero-wrapper .carousel-caption {
  left: auto;
  right: auto;
  padding-bottom: 60px;
  padding-left: 65px;
  bottom: 20px;
  text-align: left;
  color: #292726;
  text-shadow: none;
}

.carousel-hero-wrapper .carousel .item {
  height: 576px !important;
  background-color: #e8ecf0;
}

/* Keep Bootstrap slide states intact so incoming slides animate correctly */
.carousel-hero-wrapper .carousel-inner > .item.next,
.carousel-hero-wrapper .carousel-inner > .item.prev {
  position: absolute;
  top: 0;
  width: 100%;
}

.carousel-hero-wrapper .carousel-inner > .item > img {
  position: absolute !important;
  top: 0;
  left: 0;
  min-width: 100%;
  max-width: none;
  width: auto;
  height: 576px !important;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .carousel-hero-wrapper .carousel-inner > .item > img {
    left: 50%;
    -moz-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}

.carousel-hero-wrapper .carousel .carousel-indicators {
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0;
}

/* tablet + smartphone (max 991) */
@media screen and (max-width: 991px) {
  .carousel-hero-wrapper .carousel {
    height: 730px !important;
  }

  .carousel-hero-wrapper .carousel .item {
    height: 728px !important;
    background-color: #fff;
  }

  .carousel-hero-wrapper .carousel .carousel-indicators {
    bottom: 300px;
  }

  .carousel-hero-wrapper .carousel-inner .item .carousel-caption {
    top: 420px;
    bottom: auto;
    padding: 0 15px 0 0;
  }

  .carousel-hero-wrapper .carousel h3 {
    max-width: 500px;
    font-size: 1rem;
    font-weight: 600;
  }

  .carousel-hero-wrapper .carousel-inner > .item > img {
    height: 420px !important;
  }
}

/* smartphone (max 767) */
@media screen and (max-width: 767px) {
  .carousel-hero-wrapper .carousel {
    height: 630px !important;
    overflow: visible;
  }

  .carousel-hero-wrapper .carousel .carousel-indicators {
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
  }

  .carousel-hero-wrapper .carousel-inner .item .carousel-caption {
    top: 360px;
    bottom: auto;
    padding: 0 15px 0 0;
  }

  .carousel-hero-wrapper .carousel-inner > .item > img {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    height: 350px !important;
    min-width: 0 !important;
    object-fit: cover;
  }
}

/* small smartphones (max 414) */
@media screen and (max-width: 414px) {
  .carousel-hero-wrapper .carousel {
    height: 510px !important;
  }

  .carousel-hero-wrapper .carousel .item {
    background-color: #fff;
  }

  .carousel-hero-wrapper .carousel-inner .item .carousel-caption {
    top: 230px;
    bottom: auto;
  }

  .carousel-hero-wrapper .carousel-inner > .item > img {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    height: 220px !important;
    min-width: 0 !important;
    object-fit: cover;
  }
}


/* Mobile map details: stable bottom-sheet popover */
@media screen and (max-width: 767px) {
  .popover {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 12px !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 24px) !important;
    max-width: 420px !important;
    margin: 0 !important;
    z-index: 2000 !important;
  }
  .popover .arrow {
    display: none !important;
  }
  .popover-content {
    max-height: 45vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
