
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Georgia, serif;
    background: #f5f0e8;
    color: #222;
}

/* ---- Nav ---- */
nav {
    background: #1a1a2e;
    padding: 1rem 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: #c9a84c;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

nav a:hover { text-decoration: underline; }

nav .site-title {
    color: #fff;
    font-size: 1.1rem;
    margin-right: auto;
}

/* ---- Layout ---- */
main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

h1 { font-size: 1.8rem; margin-bottom: 1rem; }
h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }

/* ---- Controls (search + filters) ---- */
.controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: center;
}

.controls input,
.controls select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #999;
    background: #fff;
    font-size: 1rem;
    border-radius: 3px;
    flex: 1;
    min-width: 150px;
}

.controls button {
    padding: 0.5rem 1.25rem;
    background: #1a1a2e;
    color: #c9a84c;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 3px;
}

.controls button:hover { background: #2e2e4e; }

/* ---- Exhibit cards ---- */
#results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.exhibit-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1.25rem;
    border-radius: 4px;
}

.exhibit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: #1a1a2e;
}

.exhibit-card .meta {
    font-size: 0.85rem;
    color: #666;
    font-family: Arial, sans-serif;
    margin-bottom: 0.5rem;
}

.exhibit-card p { font-size: 0.9rem; line-height: 1.5; }

.exhibit-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 3px 3px 0 0;
    margin-bottom: 0.75rem;
    display: block;
}

/* ---- Status / feedback ---- */
.status {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
    min-height: 1.2em;
}

/* ---- Admin table ---- */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

th {
    background: #1a1a2e;
    color: #c9a84c;
    text-align: left;
    padding: 0.6rem 0.75rem;
}

td { padding: 0.6rem 0.75rem; border-bottom: 1px solid #eee; }
tr:hover td { background: #faf7f0; }

.btn-edit, .btn-delete {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.8rem;
    margin-right: 0.25rem;
}

.btn-edit   { background: #3a7bd5; color: #fff; }
.btn-delete { background: #c0392b; color: #fff; }

/* ---- Forms ---- */
.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #999;
    font-size: 1rem;
    border-radius: 3px;
}

.form-group textarea { height: 100px; resize: vertical; }

.btn-submit {
    padding: 0.6rem 1.5rem;
    background: #1a1a2e;
    color: #c9a84c;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 3px;
}

.btn-submit:hover { background: #2e2e4e; }

.message {
    padding: 0.75rem 1rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 3px;
    margin-bottom: 1rem;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}
