/* Tourvisio Search Widget Styles */

.ttv-search-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 40px auto;
    max-width: 1200px;
}

.ttv-widget-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ttv-widget-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 30px 0;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ttv-search-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

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

.ttv-form-group {
    display: flex;
    flex-direction: column;
}

.ttv-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ttv-form-group label i {
    color: #667eea;
    font-size: 16px;
}

.ttv-form-group select,
.ttv-form-group input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

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

.ttv-form-actions {
    margin-top: 20px;
    text-align: center;
}

.ttv-search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ttv-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.ttv-search-btn:active {
    transform: translateY(0);
}

.ttv-loading {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-top: 20px;
}

.ttv-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: ttv-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes ttv-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ttv-loading p {
    color: #4a5568;
    font-size: 16px;
    margin: 0;
}

.ttv-results {
    margin-top: 20px;
}

.ttv-result-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ttv-result-card:hover {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.ttv-result-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.ttv-result-info h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 20px;
}

.ttv-result-info p {
    margin: 5px 0;
    color: #718096;
    font-size: 14px;
}

.ttv-result-price {
    text-align: right;
}

.ttv-price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.ttv-price-label {
    font-size: 12px;
    color: #a0aec0;
}

.ttv-book-btn {
    background: #48bb78;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.ttv-book-btn:hover {
    background: #38a169;
    transform: scale(1.05);
}

/* Dark theme */
.ttv-search-widget[data-theme="dark"] .ttv-widget-container {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.ttv-search-widget[data-theme="dark"] .ttv-search-form {
    background: rgba(45, 55, 72, 0.95);
}

.ttv-search-widget[data-theme="dark"] .ttv-form-group label {
    color: #e2e8f0;
}

.ttv-search-widget[data-theme="dark"] .ttv-form-group select,
.ttv-search-widget[data-theme="dark"] .ttv-form-group input {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .ttv-widget-container {
        padding: 20px;
    }

    .ttv-widget-title {
        font-size: 24px;
    }

    .ttv-search-form {
        padding: 20px;
    }

    .ttv-form-row {
        grid-template-columns: 1fr;
    }

    .ttv-result-card {
        grid-template-columns: 1fr;
    }

    .ttv-result-price {
        text-align: left;
    }
}

/* Icon placeholders */
.ttv-icon-package::before {
    content: "📦";
}

.ttv-icon-plane::before {
    content: "✈️";
}

.ttv-icon-location::before {
    content: "📍";
}

.ttv-icon-calendar::before {
    content: "📅";
}

.ttv-icon-moon::before {
    content: "🌙";
}

.ttv-icon-person::before {
    content: "👤";
}

.ttv-icon-search::before {
    content: "🔍";
}