/* ==========================================================================
   Rooms mega menu (desktop header). Markup: includes/header.php,
   script: assets/js/mega-menu.js. Scoped to .header_content, which the theme
   swaps for .header_mobile on small screens, where the drawer menu is used.
   ========================================================================== */
.header_content .container { position: relative; }
.header_content .menu > li.has-mega { position: static; }

.header_content .mega {
  position: absolute;
  top: 100%;
  left: 15px;
  right: 15px;
  z-index: 1000;
  padding: 20px 22px 0;
  border-top: 3px solid #f19202;
  border-radius: 0 0 16px 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .15s, transform .15s, visibility 0s linear .15s;
}
/* A short delay before opening stops the panel flashing as the mouse crosses the menu. */
.header_content .has-mega:hover > .mega,
.header_content .has-mega:focus-within > .mega,
.header_content .has-mega.is-open > .mega {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .2s .1s, transform .2s .1s, visibility 0s linear .1s;
}
.header_content .has-mega.is-closed > .mega { visibility: hidden; opacity: 0; transition: none; }

.mega__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mega__card { display: block; color: #232323; text-decoration: none !important; }
.mega__img {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 10px;
  background: #eef4f0;
}
.mega__img picture,
.mega__img img { display: block; width: 100%; height: 100%; }
.mega__img img { object-fit: cover; transition: transform .35s ease; }
.mega__card:hover .mega__img img,
.mega__card:focus-visible .mega__img img { transform: scale(1.05); }
.mega__name {
  display: block;
  margin: 10px 0 2px;
  font: 600 20px/1.15 var(--font-display);
  color: #115c3f;
  transition: color .2s;
}
.mega__card:hover .mega__name { color: #f19202; }
.mega__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  color: #6b6b6b;
}
.mega__card.is-current .mega__img { box-shadow: 0 0 0 3px #115c3f; }
.mega__card:focus-visible { outline: none; }
.mega__card:focus-visible .mega__img { box-shadow: 0 0 0 3px rgba(241, 146, 2, .7); }

.mega__foot {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  padding: 14px 0 16px;
  border-top: 1px solid #eee;
}
.mega__link {
  color: #115c3f !important;
  font: 600 13px/1 var(--font-ui);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.mega__link:hover { color: #f19202 !important; }
.mega__link i { margin-left: 4px; }
.mega__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 11px 20px;
  border-radius: 999px;
  background: #f19202;
  color: #fff !important;
  font: 600 13px/1 var(--font-ui);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background .2s;
}
.mega__cta:hover { background: #d98300; }

/* Narrow desktops: smaller cards, no descriptions. */
@media (max-width: 1199px) {
  .header_content .mega { padding: 16px 16px 0; }
  .mega__grid { gap: 12px; }
  .mega__name { font-size: 17px; }
  .mega__desc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .header_content .mega,
  .mega__img img { transition: none; }
}
