  #clearButton {
            position: absolute;
            top: 10px;
            left: 10px;
            z-index: 1000;
            background: white;
            padding: 10px;
            border: none;
            cursor: pointer;
            font-size: 14px;
        }

        /* #shipCountBanner {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.8);
            padding: 10px;
            border-radius: 5px;
            font-size: 14px;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
        } */

        #shipCountBanner {
            position: absolute;
            top: 10px;
            left: 10px; /* Au lieu de right: 10px */
            z-index: 1000;
            background: rgba(255, 255, 255, 0.8);
            padding: 10px;
            border-radius: 5px;
            font-size: 14px;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
        }

        #shipCountBanner2{

               position: absolute;
            top: 10px;
            right: 200px; /* Au lieu de right: 10px */
            z-index: 1000;
            background: rgba(255, 255, 255, 0.8);
            padding: 10px;
            border-radius: 5px;
            font-size: 14px;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
        }
        




        .ship-card {
  width: 320px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-family: sans-serif;
  overflow: hidden;
}

.ship-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #4e4fc4;           /* main color */
  color: #fff;
  padding: 12px 16px;
}

.ship-title h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}
.ship-sub {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 2px;
}

.ship-flag img {
  width: 24px;
  border: 1px solid #fff;
  border-radius: 2px;
}

.ship-body {
  padding: 16px;
}

.ship-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.ship-table th,
.ship-table td {
  text-align: left;
  padding: 8px 6px;
}

.ship-table th {
  color: #4e4fc4;                /* column header accent */
  font-weight: 600;
  width: 45%;
  vertical-align: top;
}

.ship-table tr:not(:last-child) td {
  border-bottom: 1px solid #e0e0e0;
}

.ship-table tr:nth-child(even) {
  background: #f7f7f7;
}

.ship-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f0f0f0;
}

.btn-details {
  background: #4e4fc4;           /* primary button */
  color: #fff !important;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background .2s;
}
.btn-details:hover {
  background: #3e3eb3;           /* darker on hover */
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: #555;
}
.btn-close:hover {
  color: #000;
}


/* 1) Target the popup container Leaflet adds, using the same className */
.leaflet-popup.ship-popup .leaflet-popup-content-wrapper {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.leaflet-popup.ship-popup .leaflet-popup-content {
  margin: 0;
  padding: 0;
}

.leaflet-popup.ship-popup .leaflet-popup-tip,
.leaflet-popup.ship-popup .leaflet-popup-tip-container {
  display: none;
}