:root {
    --bg: #f6f7fb;
    --pill: #eef1f6;
    --muted: #8b96a6;
    --accent: #2c3e50;
    --card-bg: #fff;
    --shadow: 0 8px 20px rgba(40, 50, 70, 0.08);
    --radius: 28px;
    --gap: 18px;
    font-family: Inter, system-ui, Arial, sans-serif;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--accent);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 36px;
    gap: 12px;
    background: transparent;
}

.logo {
    font-weight: 700
}

.logo span {
    font-weight: 600;
    color: var(--muted);
    margin-left: 6px
}

.main-nav a {
    margin: 0 12px;
    color: var(--muted);
    text-decoration: none
}

.main-nav .active {
    border-bottom: 3px solid #f2b04a;
    padding-bottom: 6px;
    color: var(--accent)
}

.host-btn {
    background: transparent;
    color: var(--muted);
    font-size: 0.95rem
}

/* hero search */
.hero {
    display: flex;
    justify-content: center;
    padding: 28px 18px 10px
}

.search-pill {
    background: white;
    border-radius: 60px;
    padding: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    width: min(600px, 94%);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);

}

.search-field {
    display: flex;
    flex-direction: column;
    padding: 10px 18px;
    border-radius: 44px;
    min-width: 220px;
    background: var(--pill);
    box-shadow: #858181;
    background-color: #edece8;
}

.small {
    color: black;
    font-family: bold;
}


/* Dropdown Container */
.dropdown {
    position: relative;
    width: 100%;
}

.dropdown input {
    cursor: pointer;
    border: none;
    font-size: 15px;
    color: black;
    font-weight: bold;
    background-color: #edece8;
}

/* Dropdown list box */
.dropdown-list {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    background: white;
    border-radius: 20px;
    padding: 12px 0;
    box-shadow: 0 8px 20px rgba(40, 50, 70, 0.15);
    border: none;
    display: none;
    z-index: 20;
}

/* list item */
.dropdown-list p {
    padding: 12px 18px;
    margin: 0;
    cursor: pointer;
    font-size: 15px;
    color: #2c3e50;
}

.dropdown-list p:hover {
    background: #f2f4f7;
}

.search-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 0;
    background: #253746;
    color: #fff;
    font-size: 1.2rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37, 55, 70, 0.18);
}

/* cards grid */
.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 26px 36px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.card-image {
    position: relative;
    height: 150px;
    overflow: hidden
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
}

.badge.new {
    background: #f5a623
}

.badge.updated {
    background: #2f9bd6
}

.card-body {
    padding: 14px 16px 20px;
    flex: 1
}

.location {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 6px
}

.card-body h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--accent)
}

.meta {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.9rem
}

/* Responsive */
@media (max-width:1000px) {
    .cards-wrapper {
        grid-template-columns: repeat(2, 1fr)
    }

    .card-image {
        height: 160px
    }
}

@media (max-width:600px) {
    .site-header {
        padding: 10px 14px
    }

    .search-pill {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 10px
    }

    .search-field {
        min-width: unset;
        width: 100%
    }

    .search-btn {
        width: 100%;
        height: 48px;
        border-radius: 10px
    }

    .cards-wrapper {
        grid-template-columns: 1fr;
        padding: 14px
    }

    .card-image {
        height: 220px
    }
}

.pagination {
    width: 100%;
    text-align: center;
    margin: 40px 0;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.page-number,
.page-arrow {
    padding: 10px 16px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    color: #222;
    transition: 0.3s ease;
}

.page-number:hover,
.page-arrow:hover {
    background: #ffca28;
}

.dots {
    font-size: 20px;
    padding: 0 10px;
}

.showing-text {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}