/* Algemene opmaak */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e0f2fe;
  color: #1e293b;
  line-height: 1.6;
}

/* Header & Titelbalk */
header {
  width: 100%;
  border-bottom: 4px solid #0284c7;
  background-color: #0a2540;
  line-height: 0;
}

header img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.site-title-bar {
  background-color: #0a2540;
  color: #ffffff;
  text-align: center;
  padding: 14px 20px 10px 20px;
}

.site-title-bar h1 {
  margin: 0 0 4px 0;
  font-size: 1.4em;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.header-meta {
  color: #bae6fd;
  margin: 0;
  font-size: 0.88em;
}

/* Navigatie & Taalschakelaar */
nav {
  background-color: #0f172a;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: relative;
}

.nav-links {
  text-align: center;
}

.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  display: inline-block;
  margin: 5px 20px;
}

.nav-links a:hover,
.nav-links a.active-filter {
  color: #38bdf8;
}

.lang-switch {
  position: absolute;
  right: 25px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 5px;
  padding: 4px 10px;
}

.lang-switch button {
  background: none;
  border: none;
  color: #94a3b8;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.85em;
  padding: 2px 5px;
}

.lang-switch button.active {
  color: #38bdf8;
}

/* Hoofdcontainer */
.main-wrapper {
  max-width: 1250px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Scheepskaart */
.ship-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(10, 37, 64, 0.08);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  overflow: hidden;
  margin-bottom: 35px;
  align-items: center;
}

/* Fotovak links naast de tekst */
.ship-image-box {
  position: relative;
  background-color: #0f172a;
  overflow: hidden;
}

/* Enkele foto: toont altijd de volledige foto & blokkeert direct slepen/opslaan */
.ship-image-box img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

/* Dubbel fotovak (Lunde & Teist): beide foto's netjes onder elkaar */
.ship-image-box.double {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background-color: #cbd5e1;
}

.ship-image-box.double img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

/* Optionele draai-classes voor specifieke foto's */
.ship-image-box img.rotate-right {
  transform: rotate(90deg) scale(1.5);
}

.ship-image-box img.rotate-left {
  transform: rotate(-90deg) scale(1.5);
}

/* NEW Badge */
.badge-new {
  position: absolute;
  top: 18px;
  left: 18px;
  background-color: #dc2626;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85em;
  padding: 5px 12px;
  border-radius: 5px;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* Tekst & Specificaties */
.ship-details {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ship-details h2 {
  margin: 0 0 4px 0;
  font-size: 1.8em;
  color: #0a2540;
}

.location-link {
  display: inline-block;
  color: #0284c7;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95em;
  margin-bottom: 18px;
}

.location-link:hover {
  text-decoration: underline;
  color: #0369a1;
}

.history-text p {
  margin: 0 0 14px 0;
  font-size: 0.95em;
  color: #334155;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 15px;
  background-color: #f0f9ff;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
  margin: 10px 0 20px 0;
  font-size: 0.88em;
}

.specs-grid div strong {
  color: #0f172a;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-more {
  display: inline-block;
  background-color: #0284c7;
  color: #ffffff;
  text-align: center;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9em;
  align-self: flex-start;
}

.btn-more:hover {
  background-color: #0369a1;
}

/* Footer */
footer {
  background-color: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 22px 20px;
  margin-top: 50px;
  font-size: 0.88em;
}

footer a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

/* Mobiel & Tablet weergave */
@media (max-width: 900px) {
  .ship-card {
    grid-template-columns: 1fr;
  }
  .lang-switch {
    position: static;
  }
}