/* Swyn Yachts – language switcher (NL · FR · EN) and menu button in every header. */

.swyn-tools { position: relative; display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.swyn-host > a { flex-shrink: 0; white-space: nowrap; }

/* Links that no longer fit move into the menu: first the nav links, then the call to action */
.swyn-host.swyn-l1 > a[data-swyn-pill],
.swyn-host.swyn-l2 > a[data-swyn-cta] { display: none !important; }

/* Language switcher: segmented pill */
.swyn-tools .swyn-lang {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid rgba(7, 26, 38, 0.1); border-radius: 12px; background: #fff;
}
.swyn-tools .swyn-lang a.swyn-lang__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 34px; padding: 0 8px; border-radius: 9px;
  font-family: "Work Sans", sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; line-height: 1;
  color: rgba(7, 26, 38, 0.6); text-decoration: none;
  transition: color 200ms ease, background-color 200ms ease;
}
.swyn-tools .swyn-lang a.swyn-lang__link:hover,
.swyn-tools .swyn-lang a.swyn-lang__link:focus-visible { color: #071a26; background: rgba(7, 26, 38, 0.06); }
.swyn-tools .swyn-lang a.swyn-lang__link.is-current { color: #fff; background: #071a26; }

/* Menu button: two lines that turn into a cross */
.swyn-tools button.swyn-menu-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 42px; height: 42px; margin: 0; padding: 0; cursor: pointer;
  border: 1px solid rgba(7, 26, 38, 0.1); border-radius: 12px; background: #fff; color: #071a26;
  transition: background-color 200ms ease;
}
.swyn-tools button.swyn-menu-btn:hover { background: #fff; color: #071a26; }
.swyn-tools button.swyn-menu-btn[hidden] { display: none; }
.swyn-tools .swyn-menu-btn span {
  display: block; width: 16px; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.swyn-tools .swyn-menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.swyn-tools .swyn-menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* On the photo at the top of the home page: glass, like the nav pills there */
.swyn-hero-header .swyn-tools .swyn-lang,
.swyn-hero-header .swyn-tools button.swyn-menu-btn {
  border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.14); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.swyn-hero-header .swyn-tools button.swyn-menu-btn:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }
.swyn-hero-header .swyn-tools .swyn-lang a.swyn-lang__link { color: rgba(255, 255, 255, 0.8); }
.swyn-hero-header .swyn-tools .swyn-lang a.swyn-lang__link:hover,
.swyn-hero-header .swyn-tools .swyn-lang a.swyn-lang__link:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.16); }
.swyn-hero-header .swyn-tools .swyn-lang a.swyn-lang__link.is-current { color: #071a26; background: #fff; }

/* Menu panel */
.swyn-tools .swyn-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 100;
  display: flex; flex-direction: column; gap: 2px;
  width: min(320px, calc(100vw - 32px)); padding: 8px; border-radius: 16px; background: #fff;
  box-shadow: 0 24px 48px -12px rgba(7, 26, 38, 0.3), 0 0 0 1px rgba(7, 26, 38, 0.06);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
}
.swyn-tools .swyn-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 200ms ease; }
.swyn-tools .swyn-menu a.swyn-menu__link {
  display: block; padding: 14px; border-radius: 10px;
  font-family: "Work Sans", sans-serif; font-size: 17px; font-weight: 500; line-height: 1.2;
  color: #071a26; text-decoration: none; text-align: left;
}
.swyn-tools .swyn-menu a.swyn-menu__link[hidden] { display: none; }
.swyn-tools .swyn-menu a.swyn-menu__link:hover,
.swyn-tools .swyn-menu a.swyn-menu__link:focus-visible { color: #071a26; background: #f4f2ed; }
.swyn-tools .swyn-menu a.swyn-menu__link[aria-current="page"] { background: #f4f2ed; }
.swyn-tools .swyn-menu a.swyn-menu__cta {
  margin-top: 6px; border-radius: 12px; text-align: center;
  font-family: "Instrument Sans", sans-serif; font-size: 15px; font-weight: 600;
  color: #fff; background: #071a26;
}
.swyn-tools .swyn-menu a.swyn-menu__cta:hover,
.swyn-tools .swyn-menu a.swyn-menu__cta:focus-visible { color: #fff; background: #12334a; }

/* Status stickers on yacht photos (fleet, featured yachts, yacht page). Accent: bordeaux #6e1424. */
.swyn-sticker {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px; border-radius: 999px;
  font-family: "Instrument Sans", sans-serif; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 10px 24px -8px rgba(7, 26, 38, 0.5); pointer-events: none;
}
.swyn-sticker::before { content: ""; flex: none; }
.swyn-sticker--sold { background: #6e1424; color: #ffffff; }
.swyn-sticker--sold::before {
  width: 13px; height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.swyn-sticker--offer { background: #ffffff; color: #071a26; }
.swyn-sticker--offer::before { width: 8px; height: 8px; border-radius: 50%; background: #6e1424; animation: swyn-pulse 2s ease-out infinite; }
@keyframes swyn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 20, 36, 0.5); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(110, 20, 36, 0); }
}
@media (max-width: 767px) {
  .swyn-sticker { top: 12px; left: 12px; padding: 8px 12px 8px 10px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .swyn-tools .swyn-menu, .swyn-tools .swyn-menu.is-open, .swyn-tools .swyn-menu-btn span { transition: none; }
  .swyn-sticker--offer::before { animation: none; }
}
@media print { .swyn-tools { display: none !important; } }
