/* Customer Package Search & Booking */
.tnd-package-search {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-form {
    margin-bottom: 20px;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.search-col {
    display: flex;
    flex-direction: column;
}

.search-col label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.search-col select,
.search-col input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-col select:focus,
.search-col input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.search-col .btn {
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-col .btn:hover {
    background: #005a87;
}

.search-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.search-filters label {
    font-weight: 600;
    margin: 0;
}

.search-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#tnd-search-results {
    margin-top: 30px;
}

/* Package Listing */
.tnd-package-listing {
    padding: 20px 0;
}

.tnd-package-listing h2 {
    margin-bottom: 30px;
    color: #333;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.package-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.package-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.package-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.package-title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
}

.package-title a {
    color: #333;
    text-decoration: none;
}

.package-title a:hover {
    color: #007cba;
}

.package-agent {
    margin: 0 0 10px;
    color: #666;
    font-size: 13px;
}

.package-rating {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.package-rating .stars {
    letter-spacing: 2px;
}

.package-rating .review-count {
    color: #666;
}

.package-duration {
    margin: 10px 0;
    color: #666;
    font-size: 13px;
}

.package-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.package-price {
    display: flex;
    flex-direction: column;
}

.package-price .price {
    font-size: 20px;
    font-weight: bold;
    color: #007cba;
}

.package-price .per-person {
    font-size: 12px;
    color: #666;
}

.package-footer .btn {
    padding: 8px 16px;
    font-size: 13px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.package-footer .btn:hover {
    background: #005a87;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.pagination .current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Booking Form */
.tnd-booking-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 30px auto;
}

.tnd-booking-form-wrapper h3 {
    margin-bottom: 20px;
    color: #333;
}

.booking-form {
    display: flex;
    flex-direction: column;
}

.booking-form .form-group {
    margin-bottom: 20px;
}

.booking-form label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    display: block;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.booking-form .required {
    color: #dc3545;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-col {
    display: flex;
    flex-direction: column;
}

.booking-summary {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid #007cba;
}

.booking-summary p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.booking-summary .total-price {
    font-size: 16px;
    font-weight: bold;
    color: #007cba;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.btn-lg {
    padding: 14px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-lg:hover {
    background: #005a87;
}

@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
