/* Bangla.FYI — vessel finder (দৃষ্টি ship tracking) */

.vessel-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  margin: 16px 0;
}
@media (max-width: 860px) {
  .vessel-layout { grid-template-columns: 1fr; }
}

.vessel-map-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  min-height: 480px;
}
#vesselMap {
  width: 100%;
  height: 520px;
  background: #0b1622;
  z-index: 1;
}
.map-legend {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 500;
  background: rgba(10, 18, 28, 0.88);
  color: #e8eef4;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.9;
  backdrop-filter: blur(4px);
}
.map-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: baseline;
}

/* vessel pins */
.vpin {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(45deg);
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.5);
  cursor: pointer;
}
.vpin.sel {
  outline: 3px solid #f42a41;
  outline-offset: 2px;
}

/* side panel */
.vessel-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 480px;
}
.vessel-tools input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card, #fff);
  color: inherit;
  font-family: inherit;
  box-sizing: border-box;
}
.vessel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.vf-chip {
  padding: 6px 12px;
  font-size: 12.5px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}
.vf-chip.active {
  background: var(--ink, #1a1a1a);
  color: var(--paper, #fff);
  border-color: var(--ink, #1a1a1a);
}
.vessel-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}
.vtab {
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--dim);
  cursor: pointer;
  font-family: inherit;
}
.vtab.active {
  color: inherit;
  border-bottom-color: #f42a41;
}
.vessel-list {
  overflow-y: auto;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vrow {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  background: var(--card, #fff);
}
.vrow:hover { border-color: #999; }
.vrow.sel { border-color: #f42a41; }
.vrow .vn { font-weight: 700; font-size: 14px; }
.vrow .vm {
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
}
.vrow .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

/* detail panel */
.vessel-detail {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin: 16px 0;
  background: var(--card, #fff);
}
.vessel-detail h3 {
  margin: 0 0 4px;
  font-size: 20px;
}
.vd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.vd-item .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dim);
}
.vd-item .v {
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}
.voyage-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
  margin: 6px 0 12px;
}
.voyage-bar > div {
  height: 100%;
  background: #f42a41;
  border-radius: 4px;
}
.vd-alert {
  background: #fff7e6;
  border: 1px solid #e8c547;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin: 10px 0;
}
.vd-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.btn-watch {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}
.btn-watch.on {
  background: #f42a41;
  border-color: #f42a41;
  color: #fff;
}

/* port board */
.port-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--card, #fff);
}
.port-card h4 { margin: 0 0 6px; font-size: 15px; }
.cong-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
  margin: 4px 0 8px;
}
.cong-bar > div { height: 100%; border-radius: 3px; }
.arr-table {
  width: 100%;
  font-size: 12.5px;
  border-collapse: collapse;
  margin-top: 6px;
}
.arr-table td {
  padding: 4px 0;
  border-top: 1px dashed var(--border);
}
