:root {
  --page-bg: #f7f5f0;
  --page-panel: rgba(255, 255, 255, 0.82);
  --page-ink: rgba(14, 18, 22, 0.92);
  --page-muted: rgba(14, 18, 22, 0.7);
  --page-shadow: 0 18px 48px rgba(14, 18, 22, 0.1);
  --nav-line: rgba(255, 255, 255, 0.12);
  --yacht-bg: #f7f5f2;
  --yacht-ink: #111318;
  --yacht-muted: #5b6168;
  --tier-luxury: #4a2e3f;
  --tier-premium: #1f3c4d;
  --tier-standard: #3e5f5a;
  --tier-sandbar: #c97a4a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--page-ink);
  background:
    radial-gradient(1200px 760px at 14% -8%, rgba(231, 160, 179, 0.18), transparent 62%),
    radial-gradient(1100px 760px at 92% 0%, rgba(15, 34, 48, 0.12), transparent 62%),
    radial-gradient(1100px 820px at 18% 112%, rgba(176, 141, 87, 0.14), transparent 62%),
    linear-gradient(180deg, #fff 0%, var(--page-bg) 40%, #fff 100%);
  font-family: "Manrope", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

svg {
  display: block;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.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 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  padding: 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  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, 0.95);
  color: #16579a;
  line-height: 1;
  flex: 0 0 auto;
}

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

.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;
  line-height: 1.25em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

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

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

.nav-links > li > a:hover {
  color: #ca2f45;
}

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

.has-dropdown > .dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 0;
  padding: 14px 8px 16px;
  background: #c89d55;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.15s ease, transform 0.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;
  padding: 4px 12px;
  color: #fff;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
  text-decoration: none;
}

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

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

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

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

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

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

.nested-panel {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 190px;
  padding: 12px 0;
  background: #c89d55;
  box-shadow: 0 14px 36px rgba(0, 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 {
  padding: 7px 14px;
  text-align: center;
  font-size: 13px;
}

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

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

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

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

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

.mobile-close,
.mobile-subtoggle {
  appearance: none;
  border: 0;
  cursor: pointer;
}

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

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

.mobile-menu-inner {
  width: min(100%, 760px);
  min-height: 100%;
  margin: 0 auto;
  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: 0.04em;
}

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

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

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

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

.mobile-nav a {
  text-decoration: none;
}

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

.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;
  background: #2d2f38;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

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

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

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

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

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

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

.mobile-search button {
  border: 0;
  background: #ca2f45;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mobile-social {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.mobile-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

.page-main {
  padding: 16px 0 88px;
}

.page-title {
  padding: 10px 0 12px;
}

.page-title__heading {
  margin: 0;
  text-align: center;
  color: #2f6882;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 7vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.yacht-directory {
  display: grid;
  gap: 22px;
}

.yacht-filter {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: 100%;
  margin: 0 0 10px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 38px -28px rgba(0, 0, 0, 0.35);
}

.yacht-filter__btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 14px 12px;
  color: var(--yacht-ink);
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.yacht-filter__btn + .yacht-filter__btn {
  border-left: 1px solid rgba(0, 0, 0, 0.07);
}

.yacht-filter__btn:hover {
  background: rgba(2, 6, 23, 0.04);
}

.yacht-filter__btn.is-active {
  background: #16579a;
  color: #fff;
}

.yacht-filter__btn:focus-visible {
  outline: 2px solid rgba(22, 87, 154, 0.35);
  outline-offset: -2px;
}

.yacht-tier-section {
  padding: 24px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 28px;
  background: var(--page-panel);
  box-shadow: var(--page-shadow);
}

.tier-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.tier-label {
  margin: 0;
  color: #2f6882;
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tier-blurb {
  margin: 0;
  color: var(--page-muted);
  font-size: 14px;
  line-height: 1.55;
}

.yacht-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.yacht-card {
  --tier-color: var(--tier-standard);
  display: block;
  color: var(--yacht-ink);
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.25);
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.yacht-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.35);
}

.yacht-card.tier-luxury {
  --tier-color: var(--tier-luxury);
}

.yacht-card.tier-premium {
  --tier-color: var(--tier-premium);
}

.yacht-card.tier-standard {
  --tier-color: var(--tier-standard);
}

.yacht-card.tier-sandbar {
  --tier-color: var(--tier-sandbar);
}

.yacht-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #e9e6e1;
}

.yacht-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.yacht-info {
  position: relative;
  background: var(--yacht-bg);
  padding: 14px 16px 12px;
}

.yacht-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tier-color);
  box-shadow:
    0 2px 6px var(--tier-color),
    0 6px 18px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.yacht-title {
  margin: 0 0 4px;
  color: var(--yacht-ink);
  font-family: Georgia, "Playfair Display", "Times New Roman", serif !important;
  font-style: normal;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 180ms ease;
}

.yacht-card:hover .yacht-title,
.yacht-card:focus-visible .yacht-title,
.yacht-title:hover {
  color: #c89d55 !important;
}

.yacht-subtitle {
  margin: 0 0 8px;
  color: var(--yacht-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yacht-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yacht-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tier-color) 23%, white);
  color: color-mix(in srgb, var(--tier-color) 65%, black);
  font-size: 12.5px;
  font-weight: 600;
}

.yacht-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 12px;
  background: #16579a;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.yacht-tier-section.is-hidden {
  display: none;
}

@media (max-width: 1180px) {
  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 14px;
    letter-spacing: 0.15em;
  }
}

@media (max-width: 1024px) {
  .yacht-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .topbar {
    display: none;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

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

  .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: 0.05em;
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .page-main {
    padding: 10px 0 72px;
  }

  .page-title {
    padding: 8px 0 10px;
  }

  .yacht-tier-section {
    padding: 18px;
    border-radius: 22px;
  }

  .yacht-info {
    padding: 13px 14px 11px;
  }

  .yacht-title {
    font-size: 17px;
  }

  .tier-blurb {
    max-width: 64ch;
    font-size: 13px;
    line-height: 1.5;
  }

  .yacht-info::before {
    left: 10px;
    right: 10px;
  }

  .yacht-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .yacht-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .yacht-filter__btn {
    padding: 10px 14px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 26px -18px rgba(0, 0, 0, 0.25);
  }

  .yacht-filter__btn + .yacht-filter__btn {
    border-left: 0;
  }

  .navbar {
    padding: 18px 12px 26px;
  }

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

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

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

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