/* Viator FreeText Widget - Vollständig optimiert für Whale Watching Hawaii */
.viator-freetext-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.viator-search-type, .viator-search-term {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.viator-search-term {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff); /* Hawaii-Ozean Blau */
}
.viator-filter {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    width: 120px;
    background: #fafbfc;
}
.viator-submit-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #F8AC58, #ffad44); /* Orange Hawaii-Sonnenuntergang */
    color: #fff;
    border: 1px solid #F8AC58;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(248,172,88,0.3);
}
.viator-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffad44, #ffb366);
    border-color: #ffad44;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(248,172,88,0.4);
}
.viator-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.viator-freetext-results {
    min-height: 200px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.loading {
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
    color: #666;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
}
.loading .dots::after {
    content: '';
    animation: dots 1.5s infinite;
}
@keyframes dots {
    0%, 20% { content: '🐋'; }
    40% { content: '🐋🐋'; }
    60% { content: '🐋🐋🐋'; }
    100% { content: '...'; }
}

.results-header {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.result-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #F8AC58;
}
.result-item img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.item-content { flex: 1; }
.item-content h5 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
}
.item-content p {
    margin: 0 0 12px;
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.5;
}
.price {
    font-size: 22px;
    font-weight: 700;
    color: #27ae60;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.rating {
    color: #f39c12;
    font-weight: 600;
    font-size: 16px;
}
.duration {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
    background: #ecf0f1;
    padding: 4px 8px;
    border-radius: 20px;
    display: inline-block;
}
.flags {
    font-size: 11px;
    background: linear-gradient(135deg, #e8f4f8, #d1ecf1);
    padding: 6px 12px;
    border-radius: 20px;
    color: #0073aa;
    display: inline-block;
    margin: 4px 0;
    font-weight: 500;
    border: 1px solid #b8daff;
}

.no-results, .error {
    text-align: center;
    padding: 60px 30px;
    color: #666;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}
.no-results h3 { color: #dc3545; margin-bottom: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .viator-freetext-form { flex-direction: column; }
    .viator-filter { width: 100%; }
    .result-item {
        flex-direction: column;
        text-align: center;
    }
    .result-item img {
        width: 100%;
        height: 180px;
        max-width: 300px;
    }
}

/* Hawaii Whale Watching Theme */
body:has(.viator-freetext-results) {
    --hawaii-blue: #0073aa;
    --sunset-orange: #F8AC58;
}

/* 🐋 WHALE WATCHING EXTENSIONS */
.whale-header {
    background: #003459;
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}
.whale-item {
    border-left: 5px solid #00b4d8;
    background: linear-gradient(135deg, #f0f8ff, white);
}
.whale-loading::after {
    content: '🐋🐋🐋';
    animation: whale-swim 2s infinite;
}
@keyframes whale-swim {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}
.whale-no-results {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px dashed #2196f3;
}
.loading.dots::after {
    content: '🐋';
    animation: dots 1.5s infinite;
}
@keyframes dots {
    0%,20% { content: '🐋'; }
    40% { content: '🐋🐋'; }
    60%,100% { content: '🐋🐋🐋'; }
}

/* Button Hawaii-Style */
.viator-submit-btn {
    background: linear-gradient(135deg, #F8AC58, #ffad44) !important;
    box-shadow: 0 4px 15px rgba(248,172,88,0.4);
}
.viator-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(248,172,88,0.6) !important;
}


/* viator-freetext-widget.css (kopiere in separate Datei) */
.viator-freetext-form { max-width: 400px; margin: 0 auto; }
.form-row, .form-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.viator-filter { flex: 1; min-width: 80px; padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
.form-actions { display: flex; gap: 10px; }
.viator-submit-btn, .viator-filter-btn, .viator-clear-btn {
    flex: 1; padding: 10px; background: #0073aa; color: white; border: none; border-radius: 4px; cursor: pointer;
}
.viator-filter-btn { background: #28a745; }
.viator-clear-btn { background: #dc3545; }

.viator-freetext-results { margin-top: 20px; }
.result-item { display: flex; gap: 15px; margin-bottom: 20px; padding: 15px; border: 1px solid #eee; border-radius: 8px; }
.result-item img { width: 100px; height: 70px; object-fit: cover; border-radius: 4px; }
.item-content h5 { margin: 0 0 5px; font-size: 16px; }
.price { font-size: 20px; font-weight: bold; color: #28a745; }
.rating { color: #ffc107; }
.flags { background: #0073aa; color: white; padding: 2px 6px; border-radius: 12px; font-size: 12px; }
.whale-header { background: #0073aa; color: white; padding: 10px; margin-bottom: 10px; border-radius: 4px; font-weight: bold; }
.loading { text-align: center; padding: 20px; color: #666; }
.loading .dots::after { content: '...'; animation: dots 1.5s steps(4, end) infinite; }
@keyframes dots { 0%, 20% { content: '.'; } 40% { content: '..'; } 60%, 100% { content: '...'; } }
.error { background: #f8d7da; color: #721c24; padding: 10px; border-radius: 4px; }
.filter-header { background: #d4edda; color: #155724; padding: 10px; border-radius: 4px; margin-bottom: 10px; }
