/* ===============================
   RESET & BASE
================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Noto Color Emoji",
        sans-serif;
    background: #f4f5f7;
    color: #111;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===============================
   HEADER
================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e2e4e8;
}

.header-inner {
    max-width: 1300px;
    margin: auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.main-nav a {
    margin: 0 14px;
    font-weight: 500;
    color: #444;
}

.main-nav a:hover {
    color: #000;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* ===============================
   PAGE
================================ */

.page-content {
    max-width: 1300px;
    margin: auto;
    padding: 40px 20px 80px;
}

.page-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* ===============================
   SEARCH
================================ */

.search {
    background: #fff;
    border: 1px solid #e2e4e8;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}

.top-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto auto auto;
    gap: 12px;
}

input,
select {
    background: #fff;
    border: 1px solid #cfd3da;
    color: #111;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
}

input::placeholder {
    color: #888;
}

/* ===============================
   BUTTONS
================================ */

.btn {
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    font-size: 14px;
}

.btn.primary {
    background: #ff4d4d;
    color: #fff;
}

.btn.primary:hover {
    background: #ff2f2f;
}

.btn.outline {
    background: #fff;
    border: 1px solid #cfd3da;
    color: #111;
}

/* Nulstil */
.reset-btn {
    border-style: dashed;
    color: #555;
}

.reset-btn:hover {
    background: #f1f2f4;
}

/* Tilpas søgning */
.toggle-btn {
    background: #f1f2f4;
    border: 1px solid #cfd3da;
    color: #111;
}

.toggle-btn:hover {
    background: #e6e8eb;
}

/* ===============================
   FILTERS
================================ */

.filters {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.checkboxes {
    margin-top: 16px;
    display: flex;
    gap: 20px;
    font-size: 14px;
}

/* ===============================
   LISTINGS CONTAINER
================================ */

.listings {
    background: #fff;
    border: 1px solid #e2e4e8;
    border-radius: 16px;
}

/* ===============================
   ANNONCELIGHT LISTE
================================ */

.list-item {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    padding: 26px;
    border-bottom: 1px solid #e5e7eb;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: #fafafa;
}

/* VENSTRE TEKST */

.list-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
}

.list-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.list-text {
    font-size: 15px;
    line-height: 1.55;
    color: #333;
    margin: 0 0 8px;
}

.list-readmore {
    font-size: 14px;
    color: #2563eb;
    margin-bottom: 10px;
}

.list-readmore:hover {
    text-decoration: underline;
}

.list-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    background: #eef0f3;
    color: #333;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}

/* HØJRE BILLEDER */

.list-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.list-images img {
    width: 100%;
    height: 92px;
    object-fit: cover;
    border-radius: 6px;
    background: #ddd;
}

/* ===============================
   BADGE
================================ */

.badge {
    background: #ffcc00;
    color: #000;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    margin-left: 6px;
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 900px) {

    .top-row {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .list-item {
        grid-template-columns: 1fr;
    }

    .list-images {
        margin-top: 12px;
        grid-template-columns: repeat(3, 1fr);
    }
}