:root {
  color-scheme: light;
  --ink: #172021;
  --muted: #5a6669;
  --line: #d8dedf;
  --paper: #f7f6f0;
  --panel: #ffffff;
  --accent: #9b6b43;
  --accent-dark: #654128;
  --steel: #60777e;
  --night: #11191c;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(17, 25, 28, 0.18);
  --font-heading: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: var(--font-body);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: #ffffff;
  background: linear-gradient(to bottom, rgba(10, 16, 18, 0.72), rgba(10, 16, 18, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 11px 5px auto;
  height: 2px;
  background: #ffffff;
  transform: rotate(-18deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.nav a:hover,
.nav a:focus-visible {
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 72px clamp(20px, 6vw, 72px);
  overflow: visible;
  background: var(--night);
}

.hero-image,
.hero-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  pointer-events: none;
}

.hero-image {
  z-index: 0;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 15, 18, 0.88) 0%, rgba(9, 15, 18, 0.58) 42%, rgba(9, 15, 18, 0.12) 100%),
    linear-gradient(0deg, rgba(9, 15, 18, 0.62) 0%, rgba(9, 15, 18, 0.06) 54%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 6vw, 72px);
  top: clamp(58px, 7.5vh, 96px);
  bottom: auto;
  max-width: 700px;
  min-height: min(640px, calc(100vh - 210px));
  padding: clamp(15px, 2vw, 23px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
}

.hero-content.is-moving {
  cursor: grabbing;
  user-select: none;
}

.edit-toolbar {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 13px;
}

.edit-toolbar button {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(17, 25, 28, 0.48);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.edit-toolbar button:hover,
.edit-toolbar button:focus-visible {
  border-color: rgba(255, 255, 255, 0.62);
}

.edit-handle {
  cursor: grab;
}

[contenteditable="plaintext-only"] {
  outline: 1px dashed transparent;
  outline-offset: 4px;
}

[contenteditable="plaintext-only"]:focus {
  outline-color: rgba(255, 255, 255, 0.68);
}

.eyebrow {
  margin: 0 0 11px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.hero .eyebrow {
  color: #e2b17d;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 13px;
  font-size: clamp(1rem, 1.42vw, 1.38rem);
  line-height: 1.12;
  letter-spacing: 0;
  max-width: 620px;
  font-family: var(--font-heading);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: 0;
  font-family: var(--font-heading);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-family: var(--font-heading);
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.82rem, 0.98vw, 0.96rem);
  line-height: 1.46;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-service-link {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 6vw, 72px);
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.36);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(4px);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.hero-service-link:hover,
.hero-service-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(0, 0, 0, 0.52);
}

.hero-service-link.is-moving {
  cursor: grabbing;
}

.hero-legal-notice {
  position: absolute;
  z-index: 2;
  left: var(--legal-panel-left, clamp(20px, 6vw, 72px));
  top: var(--legal-panel-top, calc(100vh - 88px));
  bottom: auto;
  width: var(--legal-panel-width, min(700px, calc(100vw - 12vw)));
  padding: 13px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.46);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(4px);
  display: grid;
  gap: 9px;
  font-size: clamp(0.52rem, 0.58vw, 0.62rem);
  line-height: 1.34;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.82);
  touch-action: none;
  transition: top 260ms ease, left 260ms ease, width 260ms ease, opacity 200ms ease;
}

.hero-legal-notice.is-collapsed {
  width: auto;
  min-width: 190px;
  max-width: calc(100vw - 40px);
  padding-bottom: 13px;
}

.hero-legal-notice.is-collapsed .legal-notice-grid {
  display: none;
}

.legal-notice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  cursor: default;
  user-select: none;
}

.hero-legal-notice.is-moving .legal-notice-header {
  cursor: default;
}

.hero-legal-notice.is-collapsed .legal-notice-header {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-legal-notice h2 {
  margin: 0;
  color: #e2b17d;
  font-size: clamp(0.72rem, 0.86vw, 0.86rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.legal-toggle {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: calc(var(--radius) - 2px);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-heading);
}

.legal-toggle:hover,
.legal-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.14);
}

.legal-notice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.legal-notice-grid section {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.legal-notice-grid section + section {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-notice-grid h3 {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.66rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.legal-notice-grid p {
  margin: 0;
  white-space: pre-line;
}

.hero-legal-notice a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-section {
  display: grid;
  grid-template-rows: 0fr;
  color: #ffffff;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: grid-template-rows 260ms ease, opacity 200ms ease, margin-top 260ms ease;
}

.contact-section.is-open {
  grid-template-rows: 1fr;
  margin-top: 16px;
  opacity: 1;
  pointer-events: auto;
}

.contact-panel {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  align-items: start;
  padding-top: 16px;
  overflow: visible;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.contact-header > div {
  min-width: 0;
}

.contact-close {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-heading);
}

.contact-close:hover,
.contact-close:focus-visible {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.16);
}

.contact-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
}

.contact-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.42;
}

.contact-panel .eyebrow {
  color: #e2b17d;
}

.contact-form {
  display: grid;
  gap: 8px;
}

.contact-panel .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contact-panel .button {
  width: 100%;
}

.charter-page {
  background: var(--night);
}

.charter-page .site-header {
  background: rgba(10, 16, 18, 0.92);
}

.charter-page main {
  min-height: calc(100vh - 74px);
  padding-top: 72px;
}

.charter-section {
  padding: clamp(56px, 7vw, 92px) clamp(20px, 6vw, 72px);
  color: #ffffff;
  background: var(--night);
}

.service-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.service-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}

.service-panel p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.quote-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.route-map {
  display: grid;
  gap: 8px;
}

.leaflet-route-map {
  width: 100%;
  height: clamp(260px, 30vw, 360px);
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #102932;
  overflow: hidden;
}

/* Essential Leaflet layout rules, kept local so CDN CSS failures do not break the map. */
.leaflet-container {
  overflow: hidden;
  position: relative;
  outline-style: none;
  touch-action: pan-x pan-y;
}

.leaflet-container img,
.leaflet-container .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-tile {
  display: block;
  width: 256px;
  height: 256px;
  filter: saturate(0.85) contrast(0.96);
  visibility: hidden;
}

.leaflet-tile-loaded {
  visibility: inherit;
}

.leaflet-map-pane,
.leaflet-tile-pane,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-tooltip-pane,
.leaflet-popup-pane {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-map-pane {
  z-index: 400;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-control {
  float: left;
  clear: both;
}

.leaflet-right .leaflet-control {
  float: right;
}

.leaflet-top .leaflet-control {
  margin-top: 10px;
}

.leaflet-bottom .leaflet-control {
  margin-bottom: 10px;
}

.leaflet-left .leaflet-control {
  margin-left: 10px;
}

.leaflet-right .leaflet-control {
  margin-right: 10px;
}

.leaflet-control-zoom {
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 4px;
  overflow: hidden;
}

.leaflet-control-zoom a {
  display: block;
  width: 28px;
  height: 28px;
  color: #172021;
  background: rgba(255, 255, 255, 0.94);
  line-height: 28px;
  text-align: center;
  text-decoration: none;
}

.leaflet-control-attribution {
  margin: 0;
  padding: 2px 5px;
}

.leaflet-interactive {
  cursor: pointer;
}

.leaflet-route-map .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.82);
  color: #273236;
  font-size: 10px;
}

.leaflet-route-map .leaflet-control-zoom a {
  color: #182326;
}

.airport-marker {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 2px solid #e2b17d;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(226, 177, 125, 0.22), 0 6px 18px rgba(0, 0, 0, 0.28);
}

.airport-label {
  padding: 3px 6px;
  border-radius: 4px;
  color: #ffffff;
  background: rgba(8, 16, 18, 0.72);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.sector-list {
  display: grid;
  gap: 14px;
}

.sector-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.sector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sector-header h3 {
  margin: 0;
  color: #ffffff;
}

.remove-sector {
  min-height: 34px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.add-sector {
  justify-self: start;
}

.map-status {
  min-height: 1.2em;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.cabin-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.cabin-options legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cabin-options label {
  cursor: pointer;
}

.cabin-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cabin-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.cabin-options input:checked + span {
  border-color: rgba(226, 177, 125, 0.9);
  color: #ffffff;
  background: rgba(155, 107, 67, 0.72);
}

.form-row {
  display: grid;
  gap: 5px;
}

.form-row label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 7px 9px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.82rem;
}

.form-row textarea {
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.form-status {
  min-height: 1.2em;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-heading);
}

.hero-content .button,
.contact-panel .button {
  min-height: 39px;
  padding: 9px 14px;
  font-size: 0.78rem;
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.62);
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 6vw, 72px);
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 86px);
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    min-height: 64px;
    padding-top: 18px;
  }

  .nav {
    gap: 14px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 100svh;
    height: auto;
    display: block;
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .hero-content {
    position: relative;
    left: clamp(20px, 6vw, 72px);
    right: auto;
    top: auto;
    bottom: auto;
    width: calc(100% - clamp(20px, 6vw, 72px) - 20px);
    max-width: none;
    min-height: 0;
  }

  .hero-service-link {
    left: clamp(20px, 6vw, 72px);
    right: 20px;
    bottom: 178px;
    justify-content: center;
  }

  .hero-legal-notice {
    position: relative;
    left: 20px;
    right: auto;
    top: auto;
    bottom: auto;
    margin-top: 22px;
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    padding: 13px 14px;
    font-size: 0.58rem;
  }

  .legal-notice-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .legal-notice-grid section + section {
    padding: 8px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(9, 15, 18, 0.88), rgba(9, 15, 18, 0.48)),
      linear-gradient(0deg, rgba(9, 15, 18, 0.72), rgba(9, 15, 18, 0.08));
  }

  .section-inner {
    grid-template-columns: 1fr;
  }

  .contact-panel .form-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-copy {
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .button,
  .hero-actions,
  .contact-form .button,
  .quote-form .button {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .leaflet-route-map {
    height: 300px;
  }

  .cabin-options {
    grid-template-columns: 1fr 1fr;
  }
}
