body {
    font-family: Arial, sans-serif;
    background-color: #fefffe;
    padding: 2rem;
    color: #333;
}

.page-content {
    max-width: 1100px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #7ca02c;
}

form {
    text-align: center;
    margin-bottom: 1.5rem;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    text-align: left;
}

.search-form button {
    align-self: flex-end;
}

.form-field {
    display: flex;
    flex-direction: column;
    min-width: 220px;
}

.form-field label {
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #7ca02c;
}

input[type="text"],
select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 250px;
}

button {
    padding: 0.5rem 1rem;
    background-color: #7ca02c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background-color: #658024;
}

.section-title {
    text-align: center;
    margin-top: 3rem;
    color: #7ca02c;
}
.section-title span {
    color: #7ca02c;
}

.noresults {
    display: flex;
    flex-wrap: wrap;       
    justify-content: center; 
}

.results-empty {
    text-align: center;
    color: #555;
    margin: 0 auto 1.5rem;
    max-width: max-content;
}

.section-title {
    text-align: center;
    margin-top: 3rem;
    color: #7ca02c;
}
.section-title span {
    color: #7ca02c;
}

.results {
    display: flex;
    flex-wrap: wrap;       
    justify-content: center; 
    gap: 1.5rem;           
    margin-top: 2rem;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-link:hover .card,
.card-link:focus .card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transform: translateY(-2px);
}

.card {
    width: 250px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 1rem;
    text-align: center;
    background: white;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 6px;
    background-color: #f3f4f6;
    display: block;
}

.card-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.detail-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #7ca02c;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.detail-card {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.detail-image {
    flex: 1 1 280px;
    text-align: center;
}

.detail-image img {
    max-width: 100%;
    border-radius: 10px;
}

.detail-content {
    flex: 1 1 320px;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.detail-list li {
    margin-bottom: 0.6rem;
}

.detail-empty {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.settings-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 20;
}

.settings-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #d0d5dd;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-size: 1.35rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.settings-toggle:hover,
.settings-toggle:focus {
    transform: rotate(20deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.settings-panel {
    margin-top: 0.75rem;
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    border: 1px solid #e0e4ea;
    min-width: 260px;
}

.settings-panel .form-field {
    min-width: 0;
}

.settings-panel .form-field input {
    width: 100%;
}

.settings-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #555;
}

.settings-panel .apply-namespace {
    margin-top: 1rem;
    width: 100%;
}

@media (max-width: 768px) {
    .settings-container {
        top: 1rem;
        right: 1rem;
    }

    .settings-panel {
        width: calc(100vw - 2rem);
        max-width: 320px;
    }
}
