/* Copyright 2026 AbilitySoft. All rights reserved. */
/* Developed for InstaFreight, Inc. under license agreement. */

/**
 * Infrastructure Tools Design System — InstaFreight
 * Unified styles for Ports, Airports, and Canals
 */

:root {
    --infra-primary: #b71c1c;
    --infra-secondary: #0f172a;
    --infra-bg: #f8fafc;
}

/* Hero Modernization */
.infra-hero {
    padding: 4rem 0 6rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.infra-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.infra-hero .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
}

/* Premium Filter Cards */
.filters-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0,0,0,0.05);
}

.form-label-premium {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.75rem;
    display: block;
}

/* Map Containers */
.map-container-premium {
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: #e5e7eb;
    border: 1px solid #f1f5f9;
}

/* Result Grids */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.infra-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.infra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    border-color: var(--infra-primary);
}

.infra-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.infra-name {
    font-weight: 800;
    color: #1e293b;
    font-size: 1.1rem;
    line-height: 1.3;
}

.infra-badge {
    background: #f1f5f9;
    color: var(--infra-primary);
    padding: 4px 10px;
    border-radius: 8px;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Detail Views */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

@media (max-width: 991px) {
    .detail-grid { grid-template-columns: 1fr; }
}

.info-card-premium {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}

.info-table {
    width: 100%;
}

.info-table tr th {
    padding: 1rem 0;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    width: 40%;
}

.info-table tr td {
    padding: 1rem 0;
    color: #1e293b;
    font-weight: 600;
}

.info-table tr:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

/* Nearby Items */
.nearby-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nearby-item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    text-decoration: none !important;
}

.nearby-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.nearby-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.nearby-info span {
    font-size: 0.75rem;
    color: #64748b;
}

.nearby-distance {
    font-weight: 800;
    color: var(--infra-primary);
    font-size: 0.85rem;
}
