/**
 * Tour Booking CSS
 */

/* Tour List */
.tmpb-tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tmpb-tour-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.tmpb-tour-card:hover {
    transform: translateY(-5px);
}

.tmpb-tour-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tmpb-tour-image-placeholder {
    width: 100%;
    height: 200px;
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
}

.tmpb-tour-content {
    padding: 20px;
}

.tmpb-tour-title {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.tmpb-tour-title a {
    color: #333;
    text-decoration: none;
}

.tmpb-tour-title a:hover {
    color: #0073aa;
}

.tmpb-tour-location {
    color: #666;
    margin: 0 0 10px;
    font-size: 0.9em;
}

.tmpb-tour-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.tmpb-tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.tmpb-tour-price {
    display: flex;
    flex-direction: column;
}

.tmpb-price-label {
    font-size: 0.8em;
    color: #666;
}

.tmpb-price-amount {
    font-size: 1.3em;
    font-weight: bold;
    color: #0073aa;
}

/* Tour Single */
.tmpb-tour-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.tmpb-tour-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.tmpb-tour-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.tmpb-itinerary-day {
    background: #f9f9f9;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.tmpb-itinerary-day h3 {
    margin: 0 0 10px;
    color: #0073aa;
}

.tmpb-tour-includes-excludes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.tmpb-tour-includes ul,
.tmpb-tour-excludes ul {
    list-style: none;
    padding: 0;
}

.tmpb-tour-includes li,
.tmpb-tour-excludes li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* Booking Card */
.tmpb-booking-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.tmpb-booking-price {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tmpb-booking-price .tmpb-price-amount {
    display: block;
    font-size: 2em;
    color: #0073aa;
    font-weight: bold;
}

.tmpb-booking-meta {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.tmpb-booking-meta div {
    margin: 8px 0;
    font-size: 0.9em;
}

/* Booking Form */
.tmpb-booking-form {
    margin-top: 20px;
}

.tmpb-form-group {
    margin-bottom: 15px;
}

.tmpb-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.tmpb-form-group input,
.tmpb-form-group select,
.tmpb-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.tmpb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.tmpb-booking-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f0f0f1;
    border-radius: 8px;
    margin: 20px 0;
}

.tmpb-total-amount {
    font-size: 1.5em;
    font-weight: bold;
    color: #0073aa;
}

/* Buttons */
.tmpb-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.tmpb-btn-primary {
    background: #0073aa;
    color: #fff;
}

.tmpb-btn-primary:hover {
    background: #005177;
    color: #fff;
}

.tmpb-btn-secondary {
    background: #f0f0f1;
    color: #333;
}

.tmpb-btn-warning {
    background: #ffc107;
    color: #000;
}

.tmpb-btn-danger {
    background: #dc3545;
    color: #fff;
}

.tmpb-btn-block {
    width: 100%;
    text-align: center;
}

/* My Bookings */
.tmpb-booking-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tmpb-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.tmpb-booking-code code {
    background: #f0f0f1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1.1em;
}

.tmpb-booking-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.tmpb-status-pending { background: #fff3cd; color: #856404; }
.tmpb-status-uploaded { background: #cce5ff; color: #004085; }
.tmpb-status-paid { background: #d4edda; color: #155724; }
.tmpb-status-confirmed { background: #d4edda; color: #155724; }
.tmpb-status-cancelled { background: #f8d7da; color: #721c24; }
.tmpb-status-completed { background: #d4edda; color: #155724; }

.tmpb-booking-tour {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.tmpb-booking-tour img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.tmpb-booking-tour h4 {
    margin: 0 0 10px;
}

.tmpb-booking-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.tmpb-booking-actions {
    display: flex;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .tmpb-tour-content-grid {
        grid-template-columns: 1fr;
    }
    
    .tmpb-tours-grid {
        grid-template-columns: 1fr;
    }
    
    .tmpb-tour-includes-excludes {
        grid-template-columns: 1fr;
    }
    
    .tmpb-booking-tour {
        flex-direction: column;
    }
    
    .tmpb-booking-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .tmpb-form-row {
        grid-template-columns: 1fr;
    }
}
