/*
 * more.css
 * Supplementary styles, loaded after merged.tidy.min.css. Contains: .button-link
 * (and the back button), breadcrumbs (.breadcrumb-container), the concept tooltip
 * (.srv-concept), legend blocks (.legend-*), the .video-right box, .kv-list,
 * .monoleftsmall, column tweaks for .logbook-table, flag icons for country links
 * (.flag-icon, .country-link), and the .ow-* "Open water cards" block (formerly
 * openwater-render.css) used by js/openwater-render.js.
 */

.button-link {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: #ddd;
  border-radius: 6px;
  text-decoration: none;
}

.button-link,
.button-link:link,
.button-link:visited,
.button-link:hover,
.button-link:active {
  color: #0d1f4b;
  /* your dark blue (example) */
}

#scrollKnop {
  position: fixed;
  /* Blijft op het scherm staan */
  bottom: 40px;
  /* Afstand van onderkant */
  right: 40px;
  /* Afstand van rechterkant */
  z-index: 1000;
  /* Altijd bovenop andere dingen */

  /* Uiterlijk */
  width: 50px;
  height: 50px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

  /* Animatie: start onzichtbaar */
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

/* Extra stijl als de knop getoond wordt */
#scrollKnop.zichtbaar {
  opacity: 1;
  visibility: visible;
}

#scrollKnop:hover {
  background-color: #0056b3;
  transform: translateY(-5px);
  /* Beweegt een stukje omhoog bij hover */
}


/* Container voor de broodkruimels */
.breadcrumb-container {
  font-size: 0.85rem;
  /* Maakt de tekst kleiner dan de standaardtekst (meestal 1rem/16px) */
}

/* Zorg dat de lijstitems horizontaal achter elkaar staan */
.breadcrumb-container ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Voeg een scheidingsteken toe tussen de items (bijv. een '/') */
.breadcrumb-container li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: #666;
}

/* Optioneel: stijl voor de links */
.breadcrumb-container a {
  text-decoration: none;
  color: #007bff;
}

.breadcrumb-container a:hover {
  text-decoration: underline;
}

/* el("i", { class: "fa-solid fa-arrows-up-down", style: "margin-left:4px;" }) */

/* De container voor de tooltip */
.srv-concept {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted #000;
  display: inline-block;
}

/* De popup zelf */
.srv-concept .tooltip-box {
  visibility: hidden;
  width: 220px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -110px;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Het pijltje onder de popup */
.srv-concept .tooltip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* De hover actie */
.srv-concept:hover .tooltip-box {
  visibility: visible;
  opacity: 1;
}

.monoleftsmall {
  font-family: monospace;
  font-size: 0.85em;
  text-align: left;
}

#scrollEindeKnop {
  position: fixed;
  bottom: 40px;
  left: 40px;
  /* 👈 links i.p.v. rechts */
  z-index: 1000;

  width: 50px;
  height: 50px;
  background-color: #28a745;
  /* andere kleur (optioneel) */
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

#scrollEindeKnop.zichtbaar {
  opacity: 1;
  visibility: visible;
}

#scrollEindeKnop:hover {
  background-color: #1e7e34;
  transform: translateY(-5px);
}

.legend-section h3 {
  margin-bottom: 1rem;
}

.legend-heading {
  margin: 1rem 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.35rem 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.legend-item i {
  width: 1.2em;
  text-align: center;
  flex-shrink: 0;
}

.logbook-table td[data-label="Date"],
.logbook-table td[data-label="Date of Planning"] {
  white-space: nowrap;
}

.video-right {
  float: right;
  width: 50%;
  margin: 0 0 1em 1em;
}

.video-right video {
  width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .video-right {
    float: none;
    width: 100%;
    margin: 0 0 1em 0;
  }
}

nav.menu {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1em;
  margin: 1em 0;
  background: #f9f9f9;
}

nav.menu .menu-title {
  display: block;
  margin-bottom: 0.75em;
  font-weight: bold;
  font-size: 1.1em;
  color: #333;
}

nav.menu a {
  display: block;
  padding: 0.4em 0.6em;
  margin: 0.2em 0;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}

nav.menu a:hover {
  background: #e8e8e8;
}

nav.menu a.active {
  background: #0066cc;
  color: #fff;
  font-weight: bold;
}

.kv-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flag-icon.eu,
.country-link.eu::before {
  background-color: #039;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22'%3E%3Cdefs%3E%3Cpolygon id='s' fill='%23fc0' points='0,-1 .2245,-.309 .951,-.309 .363,.118 .588,.809 0,.382 -.588,.809 -.363,.118 -.951,-.309 -.2245,-.309'/%3E%3C/defs%3E%3Cg%3E%3Cuse href='%23s' transform='translate(15 3.7) scale(1.5)'/%3E%3Cuse href='%23s' transform='translate(18.65 4.68) scale(1.5)'/%3E%3Cuse href='%23s' transform='translate(21.32 7.35) scale(1.5)'/%3E%3Cuse href='%23s' transform='translate(22.3 11) scale(1.5)'/%3E%3Cuse href='%23s' transform='translate(21.32 14.65) scale(1.5)'/%3E%3Cuse href='%23s' transform='translate(18.65 17.32) scale(1.5)'/%3E%3Cuse href='%23s' transform='translate(15 18.3) scale(1.5)'/%3E%3Cuse href='%23s' transform='translate(11.35 17.32) scale(1.5)'/%3E%3Cuse href='%23s' transform='translate(8.68 14.65) scale(1.5)'/%3E%3Cuse href='%23s' transform='translate(7.7 11) scale(1.5)'/%3E%3Cuse href='%23s' transform='translate(8.68 7.35) scale(1.5)'/%3E%3Cuse href='%23s' transform='translate(11.35 4.68) scale(1.5)'/%3E%3C/g%3E%3C/svg%3E");
}
/*
 * Open water cards (.ow-*), formerly openwater-render.css v1.4.0
 * Colours and typography match merged.tidy.min.css
 */

/* ── defensive resets ─────────────────────────────────────── */
.ow-wrap *        { box-sizing: border-box; }
.ow-wp            { display: flex !important; gap: 12px; align-items: stretch !important; }
.ow-spine         { display: flex !important; flex-direction: column !important;
                    align-items: center !important; width: 20px; flex-shrink: 0;
                    position: relative !important; }
.ow-dot           { box-sizing: border-box !important; width: 13px !important; height: 13px !important;
                    border-radius: 50% !important; flex-shrink: 0 !important;
                    margin-top: 14px !important; border-width: 2px !important;
                    border-style: solid !important; padding: 0 !important;
                    position: relative !important; z-index: 1 !important; }
.ow-dot-start     { background: #1D9E75 !important; border-color: #1D9E75 !important; }
.ow-dot-end       { background: #ae1c28 !important; border-color: #ae1c28 !important; }
.ow-dot-city      { background: #04294a !important; border-color: #04294a !important; }
.ow-dot-obj       { background: #1e88e5 !important; border-color: #1e88e5 !important; }
.ow-dot-wp        { background: #fff    !important; border-color: #aaa !important; }
.ow-spine-line    { position: absolute !important; top: 0 !important; bottom: 0 !important;
                    left: 50% !important; transform: translateX(-50%) !important;
                    width: 2px !important; background: #d9e2ef !important;
                    border: none !important; display: block !important; }
.ow-table         { border: none !important; border-collapse: collapse !important;
                    width: 100%; margin: .25rem 0 !important;
                    box-shadow: none !important; font-family: 'Trebuchet MS', sans-serif !important; }
.ow-table tr      { border: none !important; border-bottom: 1px solid #eaf3ff !important;
                    background: transparent !important; }
.ow-table tr:last-child { border-bottom: none !important; }
.ow-table td      { border: none !important; padding: 5px 0 !important;
                    font-size: 13px !important; vertical-align: top !important; }

/* ── card shell ───────────────────────────────────────────── */
.ow-card          { background: #f7f9fc; border: 1px solid #d9e2ef !important; border-radius: 8px;
                    padding: 1rem 1.125rem; margin: .5rem 0;
                    font-family: 'Trebuchet MS', sans-serif; font-size: 14px; color: #444; }
.ow-card-title    { font-size: 15px; font-weight: 700; color: #0e1b2a;
                    margin-bottom: .75rem; padding-bottom: .5rem;
                    border-bottom: 1px solid #d9e2ef; }

/* ── loading / error ──────────────────────────────────────── */
.ow-loading       { opacity: .6; }
.ow-spinner       { color: #4a5a70; font-size: 13px; padding: .5rem 0; }
.ow-spinner .ti   { animation: ow-spin 1s linear infinite; display: inline-block; }
@keyframes ow-spin { to { transform: rotate(360deg); } }
.ow-error         { color: #ae1c28; font-size: 13px; padding: .25rem 0; }
.ow-empty         { color: #4a5a70; font-size: 13px; font-style: italic; }

/* ── table ────────────────────────────────────────────────── */
.ow-td-label      { padding: 5px 0; color: #4a5a70; font-size: 12px; width: 38%; vertical-align: top; }
.ow-td-value      { padding: 5px 0; color: #0e1b2a; font-size: 13px; vertical-align: top; }

/* ── waterway summary ─────────────────────────────────────── */
.ow-warning       { color: #e65100; background: #fff3e0; border: 1px solid #ffe0b2;
                    border-radius: 6px; padding: 5px 10px; font-size: 12px; margin: 6px 0;
                    display: flex; align-items: center; gap: 5px; }
.ow-note          { font-size: 12px; color: #4a5a70; line-height: 1.6; margin: 6px 0;
                    background: #f7f9fc; border-left: 3px solid #1e88e5;
                    padding: 8px 12px; border-radius: 0 4px 4px 0; }
.ow-apps          { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.ow-app-link      { font-size: 12px; color: #1e88e5; text-decoration: none;
                    display: flex; align-items: center; gap: 3px; }
.ow-app-link:hover { text-decoration: underline; }

/* ── route summary ────────────────────────────────────────── */
.ow-passage-header { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.ow-passage-point  { display: flex; align-items: baseline; gap: 8px; }
.ow-dot            { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
                     display: inline-block; position: relative; top: 1px; }
.ow-dot-start      { background: #1D9E75; }
.ow-dot-end        { background: #ae1c28; }
.ow-passage-name   { font-size: 14px; font-weight: 700; color: #0e1b2a; }
.ow-passage-coord  { font-size: 13px; color: #0e1b2a; font-family: monospace;
                     font-weight: 700; background: #eaf3ff; border: 1px solid #d9e2ef;
                     border-radius: 4px; padding: 2px 7px; margin-left: 4px; }
.ow-summary-stats  { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
                     gap: 6px; margin: 10px 0; }
.ow-stat           { background: #eaf3ff; border: 1px solid #d9e2ef; border-radius: 6px; padding: 7px 10px; }
.ow-stat-label     { font-size: 10px; color: #4a5a70; text-transform: uppercase; letter-spacing: .05em; }
.ow-stat-value     { font-size: 16px; font-weight: 700; color: #0e1b2a; margin-top: 1px; }
.ow-table-legs     { margin-top: 6px; }
.ow-compass        { font-family: monospace; font-size: 12px; color: #1e88e5;
                     background: #eaf3ff; padding: 1px 6px; border-radius: 4px;
                     margin-right: 4px; border: 1px solid #d9e2ef; }
.ow-dist           { font-size: 12px; color: #0e1b2a; margin-right: 4px; }
.ow-leg-label      { font-size: 12px; color: #4a5a70; }

/* ── objects between ──────────────────────────────────────── */
.ow-objects        { display: flex; flex-direction: column; gap: 8px; }
.ow-object         { display: flex; gap: 10px; align-items: flex-start;
                     padding: 8px 0; border-bottom: 1px solid #d9e2ef; }
.ow-object:last-child { border-bottom: none; }
.ow-object-icon    { width: 30px; height: 30px; background: #eaf3ff; border-radius: 6px;
                     display: flex; align-items: center; justify-content: center;
                     font-size: 16px; color: #1e88e5; flex-shrink: 0; }
.ow-object-body    { flex: 1; }
.ow-object-header  { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ow-object-name    { font-size: 13px; font-weight: 700; color: #0e1b2a; }
.ow-object-type    { font-size: 11px; color: #4a5a70; }
.ow-object-wp      { font-size: 11px; color: #aaa; margin-top: 2px; }
.ow-object-details { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 8px; }
.ow-obj-detail     { display: flex; align-items: center; gap: 3px;
                     font-size: 12px; color: #4a5a70; }
.ow-warn           { color: #e65100; }

/* ── facilities (marina / bunker) ─────────────────────────── */
.ow-facilities      { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.ow-facility        { font-size: 12px; background: #eaf3ff; border: 1px solid #d9e2ef;
                      border-radius: 99px; padding: 2px 8px; color: #0e1b2a; }

/* ── object detail body (tables inside object cards) ─────── */
.ow-object-detail-body              { margin-top: 6px; }
.ow-object-detail-body .ow-table    { margin: 0 !important; }
.ow-object-detail-body .ow-note     { margin-top: 6px; font-size: 12px; }
.ow-object-detail-body .ow-warning  { margin-top: 4px; font-size: 12px; }

/* ── buoy image + details side-by-side ───────────────────────── */
.ow-buoy-row          { display: flex; gap: 12px; align-items: flex-start; }
.ow-buoy-img          { flex-shrink: 0; text-align: center; width: 56px; }
.ow-buoy-img img      { max-width: 56px; height: auto; display: block; margin: 0 auto;
                         border: none !important; box-shadow: none !important;
                         border-radius: 0 !important; }
.ow-buoy-details      { flex: 1; }
.ow-buoy-side         { display: inline-block; margin-top: 4px; font-size: 10px;
                         text-transform: uppercase; letter-spacing: .04em;
                         padding: 1px 5px; border-radius: 99px; }
.ow-buoy-side-left    { background: #e6f4ea; color: #2e7d32; border: 1px solid #c8e6c9; }
.ow-buoy-side-right   { background: #fce8e6; color: #c62828; border: 1px solid #ffcdd2; }

.ow-wp-coord       { font-size: 13px; color: #0e1b2a; font-family: monospace;
                     font-weight: 700; background: #eaf3ff; border: 1px solid #d9e2ef;
                     border-radius: 4px; padding: 2px 7px; display: inline-block;
                     margin-top: 4px; }

/* ── approach note (route context, below object card) ───────── */
.obj-approach-note  { margin-top: 8px; padding: 8px 12px;
                      background: #e8f0fe; border-left: 3px solid #1e88e5;
                      border-radius: 0 4px 4px 0; font-size: 12px;
                      color: #0e1b2a; line-height: 1.6; }
.obj-approach-note strong { color: #1e88e5; margin-right: 4px; }


/* Header picture: frame hugs the image (max 1000px wide) */
.header figure { max-width: 1000px; }

/* Links inside running text must be recognisable without relying on colour (WCAG 1.4.1, axe link-in-text-block).
   Low specificity on purpose: component links (.menu a, .floating-nav a, .tech-table a, ...) keep their own style. */
p a, li a, dd a, td a, figcaption a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
p a:hover, li a:hover, dd a:hover, td a:hover, figcaption a:hover {
  text-decoration-thickness: 2px;
}
