:root {
    --bg: #f3f0ea;
    --ink: #1f1b16;
    --accent: #2f6b4f;
    --accent-strong: #1c4a37;
    --premium: #f6c445;
    --card: #ffffff;
    --muted: #6b5e52;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Georgia", "Times New Roman", serif;
    color: var(--ink);
    background: radial-gradient(circle at top left, #f7f2ea 0%, var(--bg) 45%, #efe6db 100%);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
    padding: 32px 0;
}

.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5ded4;
    z-index: 10;
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.logo {
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
}

.inline {
    display: inline;
}

.linkish {
    background: transparent;
    border: none;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
}

.hero {
    background: linear-gradient(120deg, #ffffff 0%, #f0e7db 100%);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.hero h1 {
    margin-top: 0;
    font-size: clamp(2rem, 3vw, 2.6rem);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 18px rgba(47, 107, 79, 0.2);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(47, 107, 79, 0.3);
}

.btn.ghost {
    background: transparent;
    color: var(--accent-strong);
    border: 1px solid #c8b9a6;
    box-shadow: none;
}

.categories {
    margin-bottom: 24px;
}

.categories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e3d9cb;
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.category-pill.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.category-label {
    margin: 0 0 6px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.card a {
    display: block;
}

.card:hover {
    transform: translateY(-3px);
}

.card .ad-image {
    height: 190px;
    width: 100%;
    object-fit: cover;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
}

.badge {
    display: inline-block;
    background: var(--premium);
    color: #3a2b0a;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 8px;
}

.premium {
    border: 2px solid var(--premium);
    box-shadow: 0 12px 30px rgba(246, 196, 69, 0.25);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--muted);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}

.detail-grid .ad-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.description {
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.contact li {
    margin-bottom: 6px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-card {
    background: var(--card);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow);
    max-width: 520px;
    margin: 0 auto;
}

.form-card form p {
    margin-bottom: 12px;
}

.form-card input,
.form-card textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d6c9b8;
    font-family: inherit;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.dashboard-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.messages {
    margin-bottom: 20px;
}

.message {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: #e8f3ec;
    color: #24583f;
}

.site-footer {
    border-top: 1px solid #e5ded4;
    padding: 16px 0 32px;
    color: var(--muted);
}

@media (max-width: 720px) {
    .nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .dashboard-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
