/* ==========================================================================
   transfer.css - Layout & Styling for Transfer Service List
   ========================================================================== */

.trf-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.trf-header-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border-left: 6px solid #e65100;
}

.trf-header-box h1 {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 1.8rem;
}

.trf-header-box p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

/* --- Tab Filter Buttons --- */
.trf-tab-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.trf-tab-btn {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.trf-tab-btn:hover {
    border-color: #e65100;
    color: #e65100;
}

.trf-tab-btn.active {
    background: #e65100;
    border-color: #e65100;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(230, 81, 0, 0.25);
}

/* --- Table Design --- */
.trf-table-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.trf-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.trf-table th {
    background: #1e293b;
    color: #ffffff;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.trf-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.trf-table tr:hover {
    background-color: #f8fafc;
}

/* --- Link jname --- */
.route-jname-link {
    text-decoration: none;
    display: inline-block;
}

.route-jname {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0f172a;
    transition: color 0.2s ease;
}

.route-jname-link:hover .route-jname {
    color: #0056b3;
    text-decoration: underline;
}

/* --- Subtitle (name) ตัวอักษรเล็ก --- */
.route-name-sub {
    font-size: 0.85rem;
    color: #64748b;
    display: block;
    margin-top: 4px;
}

/* --- Price Clickable Button --- */
.price-book-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #ffffff;
    border: 2px solid #0056b3;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 86, 179, 0.08);
}

.price-book-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
}

.price-thb {
    font-size: 1.4rem;
    font-weight: 800;
    color: #d32f2f;
    line-height: 1.2;
    transition: color 0.25s ease;
}

.thb-unit {
    font-size: 0.9rem;
    font-weight: bold;
}

.price-jpy {
    font-size: 0.8rem;
    color: #64748b;
    display: block;
    margin-top: 2px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.book-action-text {
    display: block;
    font-size: 0.75rem;
    color: #0056b3;
    font-weight: bold;
    margin-top: 4px;
    transition: color 0.25s ease;
}

/* Hover Effect เมื่อเอาเมาส์ชี้ปุ่มราคา */
.price-book-btn:hover .price-thb,
.price-book-btn:hover .price-jpy,
.price-book-btn:hover .book-action-text {
    color: #ffffff;
}

/* Responsive Table */
@media (max-width: 768px) {
    .trf-table td {
        padding: 14px 12px;
    }
    .route-jname {
        font-size: 1rem;
    }
    .price-book-btn {
        padding: 8px 14px;
    }
    .price-thb {
        font-size: 1.2rem;
    }
}