
/** stylesheets/charter-src/charter.css **/
/* Standalone styling for the public charter SPA (/charter). Deliberately self-contained — it shares no
   variables or rules with the authenticated app's main.css, but it intentionally mirrors the Azimuth
   "Ocean" brand palette (deep navy blues + gold accents) so the consumer site reads as the same brand. */

:root {
  /* Ocean blues (mirrors variables.css) */
  --charter-ocean-deepest: #050d1a;
  --charter-ocean-deep: #0a1628;
  --charter-ocean-mid: #0f2240;
  --charter-ocean-surface: #163358;
  --charter-ocean-light: #1e4a7a;

  /* Gold accents (mirrors variables.css) */
  --charter-gold: #c9a84c;
  --charter-gold-light: #e2c46a;
  --charter-gold-dark: #9e7d33;
  --charter-gold-subtle: rgba(201, 168, 76, 0.14);
  --charter-gold-border: rgba(201, 168, 76, 0.32);

  --charter-text: #e8edf5;
  --charter-muted: #8fa8c8;

  --charter-bg: var(--charter-ocean-deepest);
  --charter-rail-bg: var(--charter-ocean-deep);
  --charter-surface: rgba(22, 51, 88, 0.45);
  --charter-surface-2: var(--charter-ocean-mid);
  --charter-border: rgba(255, 255, 255, 0.07);

  --charter-shadow-card: 0 2px 16px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(30, 74, 122, 0.35), transparent 60%),
    linear-gradient(180deg, var(--charter-ocean-deep) 0%, var(--charter-ocean-deepest) 100%);
  color: var(--charter-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.charter-app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Left rail ─────────────────────────────────────────────── */
.charter-rail {
  width: 380px;
  min-width: 340px;
  background: linear-gradient(180deg, rgba(15, 34, 64, 0.9) 0%, rgba(10, 22, 40, 0.96) 100%);
  border-right: 1px solid var(--charter-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.charter-rail-header {
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--charter-gold-border);
}

/* The brand block is a real link back to the fleet index (/charter) so crawlers and users both have a
   route home from every boat page. */
.charter-rail-brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.charter-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.charter-brand-text { min-width: 0; }

.charter-brand {
  display: block;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: linear-gradient(95deg, var(--charter-gold-light), var(--charter-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--charter-gold-light);
}

.charter-tagline {
  display: block;
  margin: 3px 0 0;
  color: var(--charter-muted);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.3px;
}

.charter-rail-loading,
.charter-rail-error,
.charter-rail-empty {
  padding: 20px;
  color: var(--charter-muted);
  font-size: 14px;
}

.charter-rail-error { color: #ff8a8a; }

/* Scroll region holding the vessel list + the contact footer. The footer flows directly
   after the last vessel (not pinned to the bottom of the viewport); when the list is
   taller than the rail, the whole region scrolls and the footer trails the last item. */
.charter-rail-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.charter-list {
  list-style: none;
  margin: 0;
  padding: 10px;
}

.charter-list-item {
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

/* Each row is an <a href="/charter/{id}">: crawlable, middle-clickable, and still handled in-app on a
   plain left click. */
.charter-list-link {
  display: flex;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}

.charter-list-item:hover {
  background: var(--charter-surface);
  border-color: var(--charter-border);
}

.charter-list-item-active {
  background: var(--charter-gold-subtle);
  border-color: var(--charter-gold-border);
}

.charter-list-item-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--charter-gold-light), var(--charter-gold-dark));
}

.charter-list-thumb {
  width: 104px;
  height: 78px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--charter-surface-2);
  border: 1px solid var(--charter-border);
}

.charter-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.charter-list-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 11px;
  color: var(--charter-muted);
}

.charter-list-info { min-width: 0; }

.charter-list-title {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--charter-text);
}

.charter-list-sub {
  color: var(--charter-muted);
  font-size: 12px;
  margin-top: 2px;
}

.charter-list-specs {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--charter-muted);
}

.charter-list-price {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--charter-gold-light);
  letter-spacing: 0.2px;
}

.charter-rail-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--charter-border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.charter-contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--charter-muted);
}

.charter-contact {
  color: var(--charter-gold-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.charter-contact:hover { color: var(--charter-gold); text-decoration: underline; }

/* ── Detail pane ───────────────────────────────────────────── */
.charter-detail {
  flex: 1;
  overflow-y: auto;
}

.charter-detail-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charter-muted);
  font-size: 15px;
}

.charter-detail-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 32px 72px;
}

.charter-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.charter-detail-heading {
  min-width: 0;
  flex: 1;
}

.charter-detail-title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.charter-detail-subtitle {
  margin: 6px 0 0;
  color: var(--charter-gold-light);
  font-size: 15px;
  letter-spacing: 0.3px;
}

.charter-book-now-group {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.charter-book-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  background: linear-gradient(95deg, var(--charter-gold-light), var(--charter-gold));
  color: var(--charter-ocean-deepest);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.charter-book-now:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.38);
}
.charter-book-now:active {
  transform: translateY(0);
}

.charter-book-now-email {
  color: var(--charter-gold-light);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.charter-book-now-email:hover {
  color: var(--charter-gold);
  text-decoration: underline;
}

.charter-hero {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--charter-surface);
  border: 1px solid var(--charter-gold-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.charter-hero-image {
  width: 100%;
  display: block;
  cursor: zoom-in;
  max-height: 540px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.charter-hero-image:hover { transform: scale(1.015); }

.charter-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.charter-spec {
  background: var(--charter-surface);
  border: 1px solid var(--charter-border);
  border-radius: 12px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.15s ease;
}
.charter-spec:hover { border-color: var(--charter-gold-border); }

.charter-spec span {
  font-size: 11px;
  color: var(--charter-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.charter-spec strong {
  font-size: 16px;
  color: var(--charter-gold-light);
  font-weight: 600;
}

.charter-detail-description {
  margin-bottom: 36px;
}

/* ── Markdown brochure typography ──────────────────────────────
   Shared look for the description rendered from Markdown. Tuned to read like a
   printed yacht brochure: serif display headings, gold accents, generous rhythm. */
.markdown-body {
  color: var(--charter-text);
  font-size: 16px;
  line-height: 1.78;
  white-space: normal;
}

.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }

.markdown-body p {
  margin: 0 0 1.1em;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  font-family: Georgia, "Times New Roman", "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--charter-gold-light);
  letter-spacing: 0.3px;
}

.markdown-body h1 { font-size: 1.9em; margin: 1.3em 0 0.5em; }
.markdown-body h2 {
  font-size: 1.5em;
  margin: 1.7em 0 0.7em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--charter-gold-border);
}
.markdown-body h3 { font-size: 1.22em; margin: 1.4em 0 0.5em; color: var(--charter-gold); }
.markdown-body h4 { font-size: 1.05em; margin: 1.2em 0 0.4em; color: var(--charter-gold); }

.markdown-body strong { color: var(--charter-gold-light); font-weight: 600; }
.markdown-body em { font-style: italic; color: var(--charter-text); }

.markdown-body a {
  color: var(--charter-gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.markdown-body a:hover { color: var(--charter-gold); }

.markdown-body ul,
.markdown-body ol {
  margin: 0 0 1.2em;
  padding-left: 0;
  list-style: none;
}

.markdown-body li {
  position: relative;
  padding-left: 1.6em;
  margin: 0 0 0.6em;
  line-height: 1.6;
}

.markdown-body ul > li::before {
  content: "\25C6"; /* ◆ small gold diamond — brochure marker */
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.7em;
  line-height: 1.9;
  color: var(--charter-gold);
}

.markdown-body ol { counter-reset: charter-ol; }
.markdown-body ol > li { counter-increment: charter-ol; }
.markdown-body ol > li::before {
  content: counter(charter-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--charter-gold);
  font-weight: 600;
}

.markdown-body blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--charter-gold);
  border-radius: 0 10px 10px 0;
  background: var(--charter-gold-subtle);
  color: var(--charter-text);
  font-style: italic;
}
.markdown-body blockquote p { margin: 0; }

.markdown-body hr {
  border: 0;
  height: 1px;
  margin: 2.2em 0;
  background: linear-gradient(90deg, transparent, var(--charter-gold-border) 18%, var(--charter-gold) 50%, var(--charter-gold-border) 82%, transparent);
}

.markdown-body code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--charter-border);
  border-radius: 4px;
  padding: 1px 5px;
}

.charter-section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--charter-gold);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--charter-gold-border);
}

.charter-gallery { margin-bottom: 36px; }

.charter-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.charter-gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--charter-surface);
  border: 1px solid var(--charter-border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.charter-gallery-item:hover {
  border-color: var(--charter-gold-border);
  transform: translateY(-2px);
}

.charter-gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.charter-gallery-item figcaption {
  padding: 9px 11px;
  font-size: 12px;
  color: var(--charter-muted);
}

.charter-videos { margin-bottom: 36px; }

.charter-video { margin-bottom: 22px; }

.charter-video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--charter-border);
}

.charter-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.charter-video-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--charter-muted);
}

/* ── Lightbox ──────────────────────────────────────────────── */
.charter-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 15, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.charter-lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.charter-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--charter-gold-light);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}
.charter-lightbox-close:hover { color: var(--charter-gold); }

.charter-lightbox-counter {
  position: absolute;
  top: -38px;
  left: 0;
  color: var(--charter-muted);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.charter-lightbox-stage {
  display: flex;
  align-items: center;
  gap: 14px;
}

.charter-lightbox-image {
  max-width: 84vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.6);
}

.charter-lightbox-nav {
  background: var(--charter-gold-subtle);
  border: 1px solid var(--charter-gold-border);
  color: var(--charter-gold-light);
  font-size: 36px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.charter-lightbox-nav:hover {
  background: var(--charter-gold);
  color: var(--charter-ocean-deepest);
}

.charter-lightbox-description {
  margin-top: 14px;
  color: var(--charter-text);
  font-size: 14px;
  text-align: center;
  max-width: 80vw;
}

/* ── Server-rendered SEO content ───────────────────────────────
   Rendered into the initial HTML for crawlers and for the pre-boot paint; charter.js removes the whole
   #charterSeoContent element once the SPA has data, so these rules only ever apply before that. */
.charter-seo-hero {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--charter-gold-border);
  margin: 22px 0 26px;
}

.charter-seo-specs {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
}

.charter-seo-specs li {
  background: var(--charter-surface);
  border: 1px solid var(--charter-border);
  border-radius: 12px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.charter-seo-specs span {
  font-size: 11px;
  color: var(--charter-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.charter-seo-specs strong {
  font-size: 15px;
  color: var(--charter-text);
}

.charter-seo-description {
  color: var(--charter-text);
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-wrap;
  margin: 0 0 26px;
}

.charter-seo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.charter-seo-gallery img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--charter-border);
  display: block;
}

.charter-seo-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.charter-seo-nav li {
  padding: 9px 0;
  border-bottom: 1px solid var(--charter-border);
}

.charter-seo-nav a {
  color: var(--charter-gold-light);
  text-decoration: none;
  font-weight: 600;
}
.charter-seo-nav a:hover { color: var(--charter-gold); text-decoration: underline; }

.charter-seo-nav span {
  color: var(--charter-muted);
  font-size: 13px;
  margin-left: 8px;
}

.charter-seo-contact {
  margin-top: 26px;
  color: var(--charter-muted);
  font-size: 14px;
}
.charter-seo-contact a { color: var(--charter-gold-light); }

/* ── 404 page (charter/notFound.scala.html) ────────────────── */
.charter-not-found {
  max-width: 560px;
  margin: 0 auto;
  padding: 90px 24px;
  text-align: center;
}

.charter-not-found h1 {
  font-size: 26px;
  margin: 22px 0 10px;
  color: var(--charter-gold-light);
}

.charter-not-found p {
  color: var(--charter-muted);
  font-size: 15px;
  margin: 0 0 26px;
}

.charter-not-found-contact { margin-top: 30px; }
.charter-not-found-contact a { color: var(--charter-gold-light); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .charter-app { flex-direction: column; height: auto; overflow: visible; }
  .charter-rail { width: 100%; min-width: 0; max-height: 45vh; }
  .charter-detail { height: auto; }
  .charter-detail-inner { padding: 28px 20px 56px; }
  .charter-detail-header { align-items: stretch; flex-wrap: wrap; }
  .charter-detail-title { font-size: 27px; }
  .charter-book-now-group { width: 100%; }
  .charter-book-now { width: 100%; }
  .markdown-body { font-size: 15px; line-height: 1.7; }
  .markdown-body h1 { font-size: 1.6em; }
  .markdown-body h2 { font-size: 1.32em; }
  .markdown-body h3 { font-size: 1.14em; }
}
