/* ========================================
   Shared Header — Standalone Styles
   Drop into any project alongside shared-header.js.
   ======================================== */

/* -------------------------------------------------- *\
   CSS Custom Properties (copy these into your
   project's :root if not already defined)
\* -------------------------------------------------- */

/* --navy: #0f2230;        deep ocean */
/* --navy2: #122b3b;       */

/* Header container */
.main-header {
  position: relative;
  z-index: 100;
  background: #F7F5F0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ---- Topbar (contact bar) ---- */
.topbar {
  background: #16579a;
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.topbar-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 5em;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0;
}

.topbar-left a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  min-height: 22px;
  border-right: 1px solid rgba(255,255,255,.28);
  text-decoration: none;
}

.topbar-left a:first-child { padding-left: 0; }
.topbar-left a:last-child  { border-right: 0; }

.tb-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.95);
  color: #16579a;
  line-height: 1;
  flex: 0 0 auto;
}

.tb-ico svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}

/* ---- Desktop Navbar ---- */
.navbar {
  max-width: 1920px;
  margin: 0 auto;
  padding: 20px 52px;
  display: grid;
  grid-template-columns: minmax(180px, 225px) 1fr auto;
  align-items: center;
  gap: 4px;
}

.brand {
  justify-self: start;
}

.brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1.05;
}

.brand-name {
  color: #2f6882;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.8em;
  font-weight: 400;
  font-style: normal;
  line-height: 1.25em;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-sub {
  margin-top: 3px;
  color: #2f6882;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .01em;
  margin-left: 8px;
}

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(10px, .95vw, 18px);
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #4f7fbd;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: color .18s ease;
  display: inline-flex;
  align-items: center;
}

.nav-links > li > a:hover     { color: #ca2f45; }
.nav-links > li > a.is-current { color: #003f57; }

.nav-links > li {
  position: relative;
  padding: 8px 0;
}

/* Dropdown menus */
.has-dropdown > .dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 0;
  background: #c89d55;
  padding: 14px 8px 16px;
  box-shadow: 0 14px 36px rgba(0,0,0,.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 50;
}

.has-dropdown > .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 14px solid #c89d55;
}

.has-dropdown:hover       > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  letter-spacing: .01em;
  text-transform: none;
  text-align: center;
  line-height: 1.15;
  padding: 4px 12px;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
  text-decoration: none;
}

/* Yacht nested dropdown */
.y-dropdown {
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  padding: 12px 0;
}

.y-dropdown .nested-item {
  position: relative;
}

.y-dropdown .nested-item > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 7px 16px 7px 20px;
  color: #fff;
}

.y-dropdown .nested-item > a span {
  font-size: 16px;
  line-height: .8;
}

.y-dropdown .nested-item:hover > a {
  color: #004bb5;
  background: rgba(255,255,255,.02);
}

.nested-panel {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 190px;
  background: #c89d55;
  padding: 12px 0;
  box-shadow: 0 14px 36px rgba(0,0,0,.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nested-item:hover       > .nested-panel,
.nested-item:focus-within > .nested-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nested-panel a {
  text-align: center;
  font-size: 13px;
  padding: 7px 14px;
}

/* CTA button */
.btn-book {
  background: #ca2f45;
  color: #fff;
  padding: 14px 34px;
  border-radius: 0;
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  min-width: 160px;
  text-align: center;
  transition: background-color .18s ease;
}

.btn-book:hover {
  background: #c89d55;
  text-decoration: none;
}

.nav-cta {
  display: flex;
  align-items: center;
}

.mobile-header-actions {
  display: none;
}

/* ---- Mobile toggle (hamburger) ---- */
.mobile-toggle {
  display: none;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 0;
  background: #5a88bd;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 5px;
  padding: 12px;
  flex-direction: column;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 4px;
  background: #fff;
  border-radius: 999px;
}

/* ---- Full-screen mobile menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 7, 18, .985);
  color: #fff;
  overflow-y: auto;
}

.mobile-menu[hidden] { display: none; }

.mobile-menu-inner {
  width: min(100%, 760px);
  margin: 0 auto;
  min-height: 100%;
  padding: 34px 28px 48px;
}

.mobile-menu .brand-link {
  align-items: flex-start;
}

.mobile-menu .brand-name {
  color: #fff;
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: .04em;
}

.mobile-menu .brand-sub {
  color: #fff;
  font-size: 14px;
  margin-left: 0;
}

.mobile-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mobile-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 0;
}

.mobile-nav {
  margin-top: 44px;
  display: grid;
  gap: 4px;
}

.mobile-nav > a,
.mobile-row > a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(24px, 5vw, 34px);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.25;
  padding: 8px 0;
}

.mobile-nav > a.is-current { color: #d93150; }

.mobile-group {
  display: grid;
  gap: 6px;
}

.mobile-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.mobile-subtoggle {
  width: 48px;
  height: 48px;
  border: 0;
  background: #2d2f38;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease;
}

.mobile-subtoggle[aria-expanded="true"] {
  transform: rotate(180deg);
  background: #3b3e48;
}

.mobile-submenu {
  display: grid;
  gap: 2px;
  padding: 4px 0 8px 12px;
}

.mobile-submenu[hidden] {
  display: none;
}

.mobile-submenu a {
  display: block;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  line-height: 1.3;
  padding: 6px 0;
  letter-spacing: .01em;
}

.mobile-submenu a:hover {
  text-decoration: none;
  color: #fff;
}

.mobile-subgroup {
  border-left: 2px solid rgba(200,157,85,.5);
  padding-left: 10px;
  margin-bottom: 4px;
}

.mobile-search {
  margin: 40px auto 0;
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: 1fr 120px;
}

.mobile-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: #2a2b34;
  color: #fff;
  padding: 18px 18px;
  font-size: 16px;
}

.mobile-search input::placeholder { color: rgba(255,255,255,.5); }

.mobile-search button {
  border: 0;
  background: #c89d55;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.mobile-social {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 22px;
}

.mobile-social a {
  color: #d93150;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}


/* ============================================= */
/*  Responsive: Tablet / Mobile (≤980px)         */
/* ============================================= */
@media (max-width: 980px) {
  .topbar     { display: none; }
  .nav-links,
  .nav-cta    { display: none; }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
  }

  .btn-book-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    padding: 12px 18px;
    border-radius: 9px;
    letter-spacing: .14em;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-toggle {
    display: inline-flex;
    width: 48px;
    height: 48px;
    gap: 4px;
    padding: 9px;
  }

  .mobile-toggle span {
    width: 21px;
    height: 3px;
  }

  .navbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 21px 14px 30px;
  }

  .brand {
    justify-self: start;
    min-width: 0;
  }

  .brand-link {
    align-items: flex-start;
    text-align: left;
  }

  .brand-name {
    font-size: clamp(21px, 6.45vw, 39px);
    letter-spacing: .05em;
  }

  .brand-sub {
    font-size: 10px;
    margin-top: 4px;
    margin-left: 0;
  }
}

/* ============================================= */
/*  Responsive: Small phones (≤560px)            */
/* ============================================= */
@media (max-width: 560px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    gap: 0;
    overflow: hidden;
    padding: 16px 10px 22px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 56px);
  }

  .brand-link {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .mobile-menu-inner {
    padding: 26px 20px 40px;
  }

  .mobile-header-actions {
    display: flex;
    flex: 0 0 48px;
    width: 48px;
    margin-left: 8px;
    justify-content: flex-end;
    gap: 0;
  }

  .btn-book-mobile {
    display: none !important;
  }

  .mobile-toggle {
    display: inline-flex !important;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .brand-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(20px, 6vw, 28px);
  }

  .brand-sub {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
  }

  .mobile-search {
    grid-template-columns: 1fr 92px;
    width: 100%;
  }

  .mobile-search input { padding: 16px; }

  .mobile-subtoggle {
    width: 44px;
    height: 44px;
  }
}
