/**
 * Activity Cards CSS
 * Styles for activity search and display
 *
 * @package TravelBookingMaster
 */

/* Activity search form */
.tbm-activity-search-section {
    margin: 30px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tbm-activity-search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.tbm-form-field {
    position: relative;
}

.tbm-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.tbm-form-field input[type="text"],
.tbm-form-field input[type="date"],
.tbm-form-field input[type="number"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.tbm-form-field input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Location autocomplete */
.tbm-location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 2px;
}

.tbm-location-suggestions ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tbm-location-suggestions li {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f7fafc;
    transition: background-color 0.2s;
}

.tbm-location-suggestions li:last-child {
    border-bottom: none;
}

.tbm-location-suggestions li:hover {
    background: #f7fafc;
}

.tbm-location-suggestions li strong {
    display: block;
    color: #2d3748;
    margin-bottom: 2px;
}

.tbm-location-suggestions li small {
    color: #718096;
    font-size: 12px;
}

/* Category filters */
.tbm-category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tbm-category-filter {
    padding: 8px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 14px;
    color: #4a5568;
}

.tbm-category-filter:hover {
    border-color: #667eea;
    color: #667eea;
}

.tbm-category-filter.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Search button */
.tbm-btn-primary {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tbm-btn-primary:hover {
    background: #5568d3;
}

.tbm-btn-primary:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.tbm-btn-primary .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Activity results */
.tbm-activity-results {
    margin-top: 30px;
}

.tbm-activity-results h3 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 20px;
}

.tbm-activities-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Activity result cards */
.tbm-activity-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.tbm-activity-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.tbm-activity-card.selected {
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.tbm-activity-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.tbm-activity-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tbm-activity-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
    line-height: 1.3;
}

.tbm-activity-description {
    font-size: 14px;
    color: #718096;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Activity meta info */
.tbm-activity-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tbm-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #4a5568;
}

.tbm-meta-icon {
    font-size: 16px;
}

/* Categories/tags */
.tbm-activity-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tbm-category-tag {
    padding: 4px 12px;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Rating */
.tbm-activity-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.tbm-rating-stars {
    color: #fbbf24;
    font-size: 16px;
}

.tbm-rating-score {
    font-weight: 600;
    color: #2d3748;
}

.tbm-rating-count {
    color: #718096;
    font-size: 14px;
}

/* Price display */
.tbm-activity-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
}

.tbm-price-from {
    font-size: 14px;
    color: #718096;
}

.tbm-price-amount {
    font-size: 26px;
    font-weight: 700;
    color: #667eea;
}

.tbm-price-per {
    font-size: 14px;
    color: #718096;
}

/* Action buttons */
.tbm-activity-actions {
    display: flex;
    gap: 10px;
}

.tbm-select-activity {
    padding: 10px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 14px;
}

.tbm-select-activity:hover {
    background: #5568d3;
}

.tbm-select-activity:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.tbm-view-activity {
    padding: 10px 24px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    font-size: 14px;
}

.tbm-view-activity:hover {
    background: #667eea;
    color: white;
}

/* Empty state */
.tbm-no-activities {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.tbm-no-activities .icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.tbm-no-activities h3 {
    font-size: 20px;
    color: #4a5568;
    margin-bottom: 10px;
}

.tbm-no-activities p {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .tbm-activity-card {
        grid-template-columns: 1fr;
    }
    
    .tbm-activity-search-form {
        grid-template-columns: 1fr;
    }
    
    .tbm-category-filters {
        justify-content: center;
    }
    
    .tbm-activity-actions {
        flex-direction: column;
    }
    
    .tbm-select-activity,
    .tbm-view-activity {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tbm-activity-search-section {
        padding: 20px 15px;
    }
    
    .tbm-activity-card {
        padding: 15px;
    }
    
    .tbm-activity-title {
        font-size: 18px;
    }
    
    .tbm-price-amount {
        font-size: 22px;
    }
}
