@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f5f0eb;
    font-family: 'DM Sans', sans-serif;
    color: #1a1a1a;
    min-height: 100vh;
}

header {
    background-color: #ffffff;
    border-bottom: 1px solid #e8e0d8;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

header span {
    color: #c0392b;
}

#searchInput {
    margin-left: auto;
    padding: 10px 16px;
    border-radius: 99px;
    border: 1px solid #e8e0d8;
    font-size: 0.9rem;
    width: 300px;
    outline: none;
}

#filterSelect {
    font-family: 'DM Sans', sans-serif;
    padding: 5px 5px;
    margin-bottom: 10px;
}

.btn-logout {
  margin-left: 12px;
  padding: 8px 20px;
  background-color: transparent;
  color: #c0392b;
  border: 1px solid #c0392b;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-logout:hover {
  background-color: #c0392b;
  color: #ffffff;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 24px;
}

.grid {
    columns: 4;
    column-gap: 16px;
}

@media (max-width: 1024px) {
    .grid {
        columns: 3;
    }
}

@media (max-width: 700px) {
    .grid {
        columns: 2;
    }
}

@media (max-width: 420px) {
    .grid {
        columns: 1;
    }
}

.card {
    display: block;
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    break-inside: avoid;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.card img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.card:hover img {
    transform: scale(1.03);
}

.card-body {
    padding: 12px 14px 14px;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 99px;
    text-transform: uppercase;
}

.tag-travel {
    background: #e8f4f0;
    color: #2d7a5f;
}

.tag-food {
    background: #fef3e2;
    color: #c07a10;
}

.tag-design {
    background: #ede8f8;
    color: #6a3fbf;
}

.tag-nature {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag-home {
    background: #fce4ec;
    color: #c2185b;
}