/* Ferry Schedule Styles */

.ferry-container {
    max-width: 1400px;
    margin: 0 auto;
}

.ferry-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--deep-blue) 100%);
    color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ferry-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.ferry-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
}

.ferry-schedules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.ferry-direction {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ferry-direction:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.direction-header {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--sage-green) 100%);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.direction-header h2 {
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.direction-route {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    font-weight: 300;
}

/* Ferry Table Styles */
.ferry-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.ferry-table thead {
    background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--deep-blue) 100%);
    color: var(--white);
}

.ferry-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ferry-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.ferry-table tbody tr:hover {
    background-color: #f5f5f5;
}

.ferry-table tbody tr.current {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e8f0 100%);
    border-left: 4px solid var(--light-blue);
}

.ferry-table tbody tr.current:hover {
    background: linear-gradient(135deg, #d4e8f0 0%, #c0dce8 100%);
}

.ferry-table tbody tr.future {
    border-left: 4px solid transparent;
}

.ferry-table tbody tr.past {
    opacity: 0.6;
}

.ferry-table td {
    padding: 1rem;
    font-size: 1.1rem;
}

.depart-time {
    font-weight: 600;
    color: var(--deep-blue);
    font-size: 1.2rem;
}

.arrive-time {
    color: var(--text-dark);
    font-size: 1rem;
}

.vessel-name {
    color: var(--ocean-blue);
    font-weight: 500;
}

.drive-up-spaces {
    text-align: center;
    font-weight: 600;
}

.spaces-count {
    color: var(--forest-green);
    font-size: 1.2rem;
    font-weight: 700;
}

.spaces-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 0.25rem;
}

.spaces-unknown {
    color: var(--text-light);
    font-style: italic;
}

.ferry-table tbody tr.current .depart-time {
    color: var(--light-blue);
    font-weight: 700;
}

.ferry-table tbody tr.current .vessel-name {
    color: var(--light-blue);
}

.ferry-table tbody tr.current .spaces-count {
    color: var(--light-blue);
}

.no-sailings {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.error-message {
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    color: #c33;
}

.error-message h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.refresh-info {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.refresh-time {
    font-weight: 600;
    color: var(--ocean-blue);
}

@media (max-width: 768px) {
    .ferry-schedules {
        grid-template-columns: 1fr;
    }
    
    .ferry-header h1 {
        font-size: 2rem;
    }
    
    .ferry-table {
        font-size: 0.9rem;
    }
    
    .ferry-table th,
    .ferry-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .depart-time {
        font-size: 1.1rem;
    }
    
    .arrive-time {
        font-size: 0.9rem;
    }
    
    .vessel-name {
        font-size: 0.85rem;
    }
}

