/* Container */
.tsp-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
}

/* Form */
.tsp-form {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.tsp-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.tsp-field {
    flex: 1;
    min-width: 200px;
}

.tsp-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

.tsp-input-wrap {
    position: relative;
    z-index: 100;
}

.tsp-field:focus-within {
    z-index: 101;
}

.tsp-input-wrap input[type="text"] {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.tsp-input-wrap input[type="text"]:focus {
    outline: none;
    border-color: #28b0f1;
    box-shadow: 0 0 0 3px rgba(40, 176, 241, 0.15);
}

/* Hide browser autocomplete */
.tsp-input-wrap input:-webkit-autofill,
.tsp-input-wrap input:-webkit-autofill:hover,
.tsp-input-wrap input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
}

input#tsp-subject::-webkit-contacts-auto-fill-button,
input#tsp-location::-webkit-contacts-auto-fill-button {
    display: none !important;
}


.tsp-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: none;
}

.tsp-clear:hover {
    color: #666;
}

/* Autocomplete */
.tsp-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 999999;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tsp-suggestion {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.tsp-suggestion:last-child {
    border-bottom: none;
}

.tsp-suggestion:hover,
.tsp-suggestion.active {
    background: #f0f7ff;
}

/* Checkbox */
.tsp-field-checkbox {
    display: flex;
    align-items: flex-end;
    padding-bottom: 12px;
    margin-top: -10px;
    margin-left: 5px;
}

.tsp-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal !important;
    line-height: 1;
}

.tsp-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-right: 5px;
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0;
}

.tsp-checkbox span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1px;
    vertical-align: middle;
}

/* Submit */
.tsp-submit {
    background: #05b7e9;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.tsp-submit:hover {
    background: #05b7e9bd;
}

.tsp-submit:active {
    transform: scale(0.98);
}

/* Results */
.tsp-header {
    margin-bottom: 16px;
}

.tsp-count {
    font-size: 15px;
    color: #666;
}

.tsp-cards {
    display: grid;
    gap: 16px;
}

.tsp-card {
    display: flex;
    gap: 19px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s;
    margin-bottom: 4px;
}

.tsp-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tsp-card-image {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tsp-card-image img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
}

.tsp-card-image .tsp-stars {
    margin-top: 7px;
}

.tsp-card-content {
    flex: 1;
    min-width: 0;
}

.tsp-card-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.tsp-card-title a {
    color: #222;
    text-decoration: none;
}

.tsp-card-title a:hover {
    color: #28b0f1;
}

.tsp-card-excerpt {
    margin: 0 0 13px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.tsp-card-link {
    display: inline-block;
    padding: 6px 13px;
    background: #28b0f1;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
    margin-top: 2px;
    margin-bottom: 3px;
}

.tsp-card-link:hover {
    background: #1a9cd8;
}

/* States */
.tsp-loading,
.tsp-no-results,
.tsp-error {
    text-align: center;
    padding: 32px;
    color: #666;
    font-size: 15px;
}

.tsp-error {
    color: #d63031;
}

/* Pagination */
.tsp-pagination {
    margin-top: 24px;
    text-align: center;
}

.tsp-load-more {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.tsp-load-more:hover {
    background: #5a6268;
}

/* Responsive */
@media (max-width: 768px) {
    .tsp-form {
        padding: 16px;
    }
    
    .tsp-fields {
        flex-direction: column;
    }
    
    .tsp-field {
        min-width: 100%;
    }
    
    .tsp-field-checkbox {
        padding-top: 8px;
        padding-bottom: 0;
    }
    
    .tsp-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tsp-card-image {
        width: 100px;
        height: 100px;
    }
}

/* Showcase Grid */
.tsp-showcase {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.tsp-columns-1 {
    grid-template-columns: 1fr;
}

.tsp-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tsp-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tsp-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.tsp-showcase-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.tsp-showcase-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.tsp-showcase-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.tsp-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.tsp-showcase-card:hover .tsp-showcase-image img {
    transform: scale(1.05);
}

.tsp-showcase-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tsp-showcase-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.tsp-showcase-title a {
    color: #222;
    text-decoration: none;
}

.tsp-showcase-title a:hover {
    color: #28b0f1;
}

.tsp-showcase-excerpt {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
}

.tsp-showcase-link {
    display: inline-block;
    padding: 10px 20px;
    background: #28b0f1;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
    text-align: center;
    align-self: flex-start;
    margin-top: auto;
}

.tsp-showcase-link:hover {
    background: #1a9cd8;
}

/* Responsive */
@media (max-width: 992px) {
    .tsp-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tsp-columns-3,
    .tsp-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tsp-showcase-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .tsp-columns-2,
    .tsp-columns-3,
    .tsp-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .tsp-showcase-image {
        height: 220px;
    }
}


/* Fix για το link styling με target blank */
.tsp-result-link,
.tsp-showcase-link {
    display: inline-block;
    color: #ffffff!important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.1s ease;
    font-size: 14px;
    background: #00BDF2;
    padding: 6px 14px;
    border-radius: 3px;
}

.tsp-result-link:hover,
.tsp-showcase-link:hover {
    color: #a33d27;
    text-decoration: underline;
    background: #00bdf2c7;
}

/* Star Rating */
.tsp-stars {
    display: flex;
    gap: 2px;
    margin-top: 6px;
    justify-content: center;
}

.tsp-stars svg {
    display: block;
    width: 15px;
    height: 15px;
}