body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #181c24;
  margin: 0;
  color: #e0e0e0;
}

h1 {
  text-align: center;
  color: #007bff;
  margin-bottom: 20px;
}

.portfolio-header {
  background: linear-gradient(90deg, #00ff99 0%, #007bff 100%);
  color: #fff;
  padding: 32px 0 16px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.portfolio-header h1 {
  font-size: 2.5rem;
  margin: 0 0 8px 0;
  letter-spacing: 2px;
}

.portfolio-header h2 {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 12px 0;
}

.portfolio-header .desc {
  font-size: 1rem;
  margin-bottom: 16px;
}

.product-links {
  margin-top: 12px;
}

.product-links .btn {
  display: inline-block;
  background: #fff;
  color: #007bff;
  border-radius: 20px;
  padding: 8px 20px;
  margin: 0 8px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s;
}

.product-links .btn:hover {
  background: #007bff;
  color: #fff;
}

.demo-section {
  max-width: 1100px;
  margin: 32px auto 0 auto;
  background: #222;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  padding: 24px;
}

/* Two-column layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}
.col-left { }
.col-right { }

#map {
  width: 100%;
  height: 560px;
  border-radius: 8px;
  border: 2px solid #00ff99;
  margin-bottom: 12px;
}

.map-caption { color: #9fcfc1; font-size: 0.9rem; margin-top: 6px; }

.ship-info {
  background: #232a36;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #00ff99;
}

.controls-panel {
  background: #161a22;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
}

.controls-panel h3 { color: #8ec3b9; }

.playback { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:10px; }
.playback button { background:#007bff; color:white; border:none; padding:8px 10px; border-radius:6px; cursor:pointer; }
.playback button:hover { transform:translateY(-1px); }
.playback input[type='range'] { width: 140px; }

.selectors { display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.selectors label { font-size:0.9rem; color:#bfeadf; }
.selectors select { background:#334e87; color:#8ec3b9; border:1px solid #00ff99; padding:6px; border-radius:6px; }
.selectors input[type='checkbox'] { margin-right:6px; }

.report-panel { margin-top:14px; background:#15171b; padding:12px; border-radius:8px; border:1px solid rgba(255,255,255,0.03); }
.summary-list { list-style:none; padding-left:0; }
.summary-list li { margin-bottom:6px; color:#cfeee4; }
.sample-rows { white-space:pre-wrap; background:#0f1113; padding:8px; border-radius:6px; color:#bfeadf; max-height:160px; overflow:auto; }

.controls {
  position: absolute;
  top: 100px;
  left: 10px;
  z-index: 1000;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.controls h3 {
  margin-top: 0;
  color: #007bff;
}

.controls div {
  margin-bottom: 10px;
}

.controls button {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin: 3px 5px;
  font-size: 12px;
}

.controls button:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.controls button:nth-child(3) {
  background: #28a745; /* Show All Journeys button - green */
}

.controls button:nth-child(3):hover {
  background: #218838;
}

.controls select {
  background: #334e87;
  color: #8ec3b9;
  border: 1px solid #00ff99;
  padding: 5px;
  border-radius: 4px;
}

#speedSlider {
  width: 200px;
  margin: 0 10px;
}

label {
  font-weight: bold;
  margin-right: 10px;
}

.features-section, .contact-section {
  max-width: 900px;
  margin: 32px auto 0 auto;
  background: #232a36;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 24px;
}

.features-section ul {
  padding-left: 20px;
}

.features-section li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.portfolio-footer {
  text-align: center;
  padding: 24px 0 12px 0;
  color: #aaa;
  font-size: 0.95rem;
  background: #181c24;
  margin-top: 32px;
}

@media (max-width: 1000px) {
  .two-column { grid-template-columns: 1fr 320px; }
  #map { height: 480px; }
}

@media (max-width: 800px) {
  .demo-section { padding: 12px; }
  .two-column { grid-template-columns: 1fr; }
  #map { height: 360px; }
}

/* Leaflet map styling compatibility */
.leaflet-container { border-radius: 8px; }

/* Themes */
.theme-modern { --accent: #00ff99; --bg: #0f1720; }
.theme-vintage { --accent: #d9a065; --bg: #2b2418; }
.theme-flat { --accent: #3478f6; --bg: #f4f6f8; color: #222; }

/* Ship icon for leaflet */
.leaflet-ship-icon .ship-arrow { font-size:20px; transform: rotate(0deg); }

/* Accessibility focus */
button:focus, select:focus, input:focus { outline: 2px solid rgba(0,255,153,0.6); outline-offset: 2px; }