.ports-data-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ports-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ports-filters input,
.ports-filters select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1;
    min-width: 150px;
}

.ports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.port-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.port-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.port-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #2c3e50;
}

.port-meta {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.port-types {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.port-type-badge {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.port-details {
    margin-bottom: 15px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    margin-right: 5px;
    color: white;
    font-weight: 600;
}

.badge.bunkering {
    background: #27ae60;
}

.badge.lng {
    background: #2980b9;
}

.port-link {
    display: inline-block;
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
}

.port-link:hover {
    text-decoration: underline;
}

.ports-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.ports-pagination button {
    padding: 8px 16px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background 0.2s;
}

.ports-pagination button:hover:not(:disabled) {
    background: #f5f5f5;
}

.ports-pagination button:disabled {
    opacity: 0.5;
    cursor: default;
}

.ports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-toggle button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.view-toggle button.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.ports-map-container {
    position: relative;
    width: 100%;
    padding-top: 50%;
    /* 2:1 Aspect Ratio for Equirectangular Map */
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg');
    background-size: cover;
    background-position: center;
    background-color: #aaddff;
    /* Ocean color fallback */
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.port-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(231, 76, 60, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.port-dot:hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: #e74c3c;
    z-index: 10;
}