/*
 * Ferry Booking for WooCommerce — Frontend Styles
 */
.fb-search-wrapper {
    max-width: 960px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fb-search-form {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.fb-search-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.fb-search-field {
    flex: 1;
    min-width: 160px;
}

.fb-search-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
    margin-bottom: 4px;
}

.fb-search-field select,
.fb-search-field input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.fb-search-submit {
    flex: 0 0 auto;
}

.fb-search-submit button {
    padding: 10px 28px;
    background: #006B7F;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.fb-search-submit button:hover {
    background: #004d5c;
}

/* Results */
.fb-results h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #212529;
}

.fb-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fb-result-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px 20px;
    background: #fff;
}

.fb-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fb-result-header h4 {
    margin: 0;
    font-size: 16px;
    color: #212529;
}

.fb-result-duration {
    font-size: 13px;
    color: #6c757d;
}

.fb-result-details {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.fb-result-fare {
    font-size: 20px;
    font-weight: 700;
    color: #006B7F;
}

.fb-result-deposit {
    color: #6c757d;
    font-size: 13px;
}

.fb-result-seats {
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 4px;
}

.fb-seats-ok {
    color: #2b8a3e;
    background: #d3f9d8;
}

.fb-seats-low {
    color: #c92a2a;
    background: #ffe3e3;
}

.fb-result-times {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fb-time-slot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #006B7F;
    border-radius: 6px;
    color: #006B7F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.fb-time-slot:hover {
    background: #006B7F;
    color: #fff;
}

.fb-time-seats {
    font-weight: 400;
    font-size: 12px;
    opacity: 0.8;
}

.fb-time-fare {
    font-weight: 600;
}

.fb-no-results {
    padding: 40px;
    text-align: center;
    color: #6c757d;
}

/* Booking page */
.fb-booking-wrapper {
    max-width: 800px;
    margin: 24px auto;
}

.fb-booking-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.fb-booking-summary h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.fb-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.fb-summary-table td {
    padding: 4px 8px;
    font-size: 14px;
    vertical-align: top;
}

.fb-summary-table td:first-child {
    color: #6c757d;
    width: 120px;
}

/* Seat map */
.fb-seat-map {
    margin-bottom: 16px;
}

.fb-seat-grid {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.fb-seat-row {
    display: flex;
    gap: 6px;
}

.fb-seat {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
    user-select: none;
}

.fb-seat-available {
    background: #d3f9d8;
    border: 1px solid #2b8a3e;
    color: #2b8a3e;
    cursor: pointer;
}

.fb-seat-available:hover {
    background: #b2f2bb;
}

.fb-seat-selected {
    background: #006B7F;
    border: 2px solid #004d5c;
    color: #fff;
}

.fb-seat-taken {
    background: #dee2e6;
    border: 1px solid #adb5bd;
    color: #868e96;
    cursor: not-allowed;
}

.fb-seat-legend {
    display: flex;
    gap: 16px;
    font-size: 13px;
    align-items: center;
    color: #495057;
}

.fb-seat-legend .fb-seat {
    width: 20px;
    height: 20px;
    cursor: default;
    display: inline-block;
}

/* Passenger forms */
.fb-passenger-form {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.fb-passenger-form p {
    margin: 0 0 8px;
}

.fb-passenger-form label {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
}

.fb-passenger-form input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.fb-book-now {
    display: inline-block;
    padding: 14px 36px;
    background: #F47521;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.fb-book-now:hover {
    background: #d65a0e;
}
