/* =====================================================================
   Cape Uncovered — language menu styling
   Shared by the home page, the tour pages and the terms page.
   Uses fallbacks so it works even where the page defines fewer variables.
   ===================================================================== */

.langpick { position: relative; flex-shrink: 0; }

/* A solid pill in the brand blue: clearly a button, and it reads at a
   glance without competing with the orange "Book a Tour" call to action. */
.langbtn {
  display: flex; align-items: center; gap: 7px;
  background: var(--ocean, #0a6b8a); border: 2px solid var(--ocean, #0a6b8a);
  border-radius: 999px; padding: 9px 16px;
  font: inherit; font-size: .95rem; font-weight: 700; line-height: 1;
  color: #fff; cursor: pointer;
  box-shadow: 0 4px 14px rgba(10, 107, 138, .32);
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.langbtn:hover {
  background: var(--ocean-deep, #064a61); border-color: var(--ocean-deep, #064a61);
  transform: translateY(-1px); box-shadow: 0 6px 18px rgba(10, 107, 138, .42);
}
.langbtn:focus-visible { outline: 3px solid var(--sunset, #f2792b); outline-offset: 2px; }
.langbtn .globe { font-size: 1.15em; line-height: 1; }
.langbtn i { font-style: normal; font-size: .72em; opacity: .9; }

.langmenu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 172px;
  background: var(--white, #fff); border-radius: 14px; padding: 7px;
  box-shadow: 0 14px 36px rgba(6, 74, 97, .22);
  display: none; flex-direction: column; z-index: 200;
}
.langmenu.open { display: flex; }
.langmenu a {
  padding: 9px 13px; border-radius: 9px; white-space: nowrap; text-decoration: none;
  font-size: .93rem; font-weight: 500; color: var(--ink, #1d2b32); border: none; width: auto;
}
.langmenu a:hover { background: var(--sand, #fbf6ee); color: var(--ocean-deep, #064a61); }
.langmenu a.on { background: var(--ocean, #0a6b8a); color: #fff; font-weight: 600; }

/* ---- the "this site is also available in…" bar ---- */
.langoffer {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 130%);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  max-width: min(620px, calc(100vw - 28px));
  background: var(--ocean-deep, #064a61); color: #fff;
  padding: 13px 16px; border-radius: 14px;
  box-shadow: 0 16px 40px rgba(6, 74, 97, .34);
  font-size: .92rem; z-index: 300;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1);
}
.langoffer.in { transform: translate(-50%, 0); }
.langoffer-go {
  background: var(--sunset, #f2792b); color: #fff; text-decoration: none;
  padding: 8px 15px; border-radius: 999px; font-weight: 600; white-space: nowrap;
}
.langoffer-go:hover { background: var(--sunset-soft, #f9a03f); }
.langoffer-x {
  background: none; border: none; color: #fff; opacity: .65;
  font-size: 1rem; cursor: pointer; line-height: 1; padding: 4px;
}
.langoffer-x:hover { opacity: 1; }

@media (max-width: 520px) {
  .langbtn { padding: 6px 10px; font-size: .8rem; }
  .langoffer { flex-direction: column; gap: 10px; text-align: center; }
}
