/* ═══════════════════════════════════════════════════════════════
   YOGGIES — HONDENATLAS
   CSS volledig in stijl van de Yoggies Calculator
   HTML is NIET gewijzigd — alleen dit CSS-bestand vervangen
═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --brown:        #3c1e00;
  --brown-mid:    #7a3b1e;
  --green:        #A1E647;
  --green-dark:   #7dc400;
  --cream:        #f5f1e6;
  --cream-deep:   #e9e2c8;
  --white:        #ffffff;
  --text:         #1e1007;
  --text-muted:   #8a7560;
  --border:       rgba(60,30,0,.10);
  --shadow-xs:    0 1px 4px rgba(60,30,0,.07);
  --shadow-sm:    0 2px 10px rgba(60,30,0,.09);
  --shadow-md:    0 6px 28px rgba(60,30,0,.13);
  --shadow-lg:    0 18px 56px rgba(60,30,0,.16);
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --ease:         cubic-bezier(.4,0,.2,1);

  /* Legacy-namen gebruikt in de HTML */
  --dark-brown:   #3c1e00;
  --medium-brown: #7a3b1e;
  --text-dark:    #1e1007;
  --text-gray:    #8a7560;
  --gray-bg:      #e9e2c8;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', 'Lato', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

/* ── TOP BARS ────────────────────────────────────────────────── */
.top-dark  { background: var(--brown); height: 16px; }
.top-green { background: var(--green); height: 11px; }

/* ════════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════════ */
header {
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 16px 48px;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 500;
  box-shadow: var(--shadow-xs);
}

.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-svg { height: 38px; width: auto; display: block; }

.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--cream);
  border: 1.5px solid var(--cream-deep);
  border-radius: 30px;
  padding: 7px 14px; width: 260px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-bar:focus-within {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(125,196,0,.13);
}
.search-bar input {
  border: none; outline: none; background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 14px; color: var(--text); width: 100%;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-btn {
  background: var(--green); border: none;
  padding: 6px 10px; cursor: pointer; font-size: 14px;
  border-radius: 20px; flex-shrink: 0; line-height: 1;
  transition: background .18s;
}
.search-btn:hover { background: var(--green-dark); }

/* ════════════════════════════════════════════════════════════════
   NAV
════════════════════════════════════════════════════════════════ */
nav.main-nav {
  background: var(--white);
  padding: 0 48px;
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 400;
}
.nav-list {
  list-style: none; display: flex; align-items: center;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-item { position: static; }
.nav-link {
  text-decoration: none; color: var(--text);
  font-size: 13px; font-weight: 700; letter-spacing: .2px;
  padding: 14px 12px; display: inline-block;
  font-family: 'Nunito', sans-serif; transition: color .18s;
}
.nav-link:hover { color: var(--green-dark); }
.nav-link.nav-home {
  background: var(--brown-mid); color: var(--white) !important;
  padding: 6px 13px; border-radius: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .5px;
  margin-right: 6px; transition: background .18s;
}
.nav-link.nav-home:hover { background: var(--brown); color: var(--white) !important; }

/* Dropdown */
.dropdown {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  width: 70%; max-width: 1100px; min-width: 600px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 600;
  padding: 28px 32px; border: 1px solid var(--border);
  animation: fadeDown .16s var(--ease);
}
@keyframes fadeDown {
  from { opacity:0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0); }
}
.nav-item:hover > .dropdown { display: block; }
.dropdown-inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.dd-item {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--text); font-size: 13px; font-weight: 700;
  font-family: 'Nunito', sans-serif;
  background: var(--cream); border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: background .16s, color .16s, transform .16s;
  white-space: normal; line-height: 1.3;
}
.dd-item:hover { background: var(--green); color: var(--brown); transform: translateY(-2px); }
.dd-thumb {
  width: 38px; height: 38px; object-fit: contain;
  flex-shrink: 0; border-radius: 5px; background: var(--white);
}
.dd-item:hover .dd-thumb { background: rgba(255,255,255,.25); }

/* ════════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════════ */
.hero {
  display: flex;
  align-items: center;
  padding: 52px 48px 40px;
  max-width: 960px;
  margin: 0 auto;
  gap: 44px;
}
.hero-text { flex: 1; }
.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 38px;
  color: var(--brown);
  margin-bottom: 18px;
  font-style: italic;
  line-height: 1.2;
}
.hero-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}
.hero-image { width: 270px; flex-shrink: 0; }
.hero-image img {
  width: 100%; object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ════════════════════════════════════════════════════════════════
   CONTENT SECTION
════════════════════════════════════════════════════════════════ */
.content-section {
  padding: 8px 48px 56px;
  max-width: 960px;
  margin: 0 auto;
}

/* Search row */
.search-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px;
}
.search-row input {
  background: var(--white);
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--radius-sm);
  outline: none; font-size: 14px; color: var(--text);
  padding: 9px 14px; width: 220px;
  font-family: 'Nunito', sans-serif;
  transition: border-color .18s, box-shadow .18s;
}
.search-row input:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(125,196,0,.13);
}
.search-row input::placeholder { color: var(--text-muted); }
.search-btn-sm {
  background: var(--brown); border: none;
  border-radius: var(--radius-sm); padding: 9px 13px;
  cursor: pointer; color: var(--white); font-size: 14px;
  font-family: 'Nunito', sans-serif; font-weight: 700;
  transition: background .18s;
}
.search-btn-sm:hover { background: var(--brown-mid); }

/* Layout */
.main-layout {
  display: flex; gap: 22px; align-items: flex-start;
}

/* ════════════════════════════════════════════════════════════════
   SIDEBAR — FILTERS
════════════════════════════════════════════════════════════════ */
.sidebar {
  width: 200px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 4px;
}

/* Filter search box */
.filter-search-box {
  display: flex; align-items: center;
  background: var(--white);
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--radius-sm);
  padding: 8px 10px; gap: 6px;
  margin-bottom: 4px;
  transition: border-color .18s;
}
.filter-search-box:focus-within { border-color: var(--green-dark); }
.filter-search-input {
  border: none; outline: none; background: transparent;
  font-size: 13px; color: var(--text); width: 100%;
  font-family: 'Nunito', sans-serif;
}
.filter-search-input::placeholder { color: var(--text-muted); }
.filter-search-btn {
  background: var(--green); border: none;
  border-radius: 6px; padding: 5px 8px;
  cursor: pointer; color: var(--white); font-size: 12px; flex-shrink: 0;
  transition: background .18s;
}
.filter-search-btn:hover { background: var(--green-dark); }

/* Filter groups */
.filter-group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.filter-group-header {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 13px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 800;
  color: var(--text); text-align: left;
  transition: background .16s;
}
.filter-group-header:hover { background: var(--cream); color: var(--green-dark); }

.filter-chevron {
  font-size: 16px; font-weight: 400;
  color: var(--text-muted);
  transition: transform .2s var(--ease);
  display: inline-block; line-height: 1;
}
.filter-chevron.open { transform: rotate(90deg); }

/* Accordion body */
.filter-group-body {
  display: none; flex-direction: column;
  padding: 6px 13px 12px; gap: 7px;
  border-top: 1px solid var(--cream-deep);
}
.filter-group-body.open { display: flex; }

/* Checkboxes */
.filter-checkbox {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text);
  font-family: 'Nunito', sans-serif; font-weight: 600;
  cursor: pointer; line-height: 1.4;
}
.filter-checkbox input[type="checkbox"] {
  accent-color: var(--green-dark);
  width: 14px; height: 14px;
  flex-shrink: 0; cursor: pointer;
}

/* ════════════════════════════════════════════════════════════════
   RIGHT COLUMN
════════════════════════════════════════════════════════════════ */
.grid-and-pagination {
  flex: 1; display: flex; flex-direction: column; gap: 20px;
}

/* ── DOG GRID ─── */
.dog-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ── DOG CARD ─── */
.dog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.dog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dog-card-img {
  background: var(--cream);
  min-height: 120px; overflow: hidden;
}
.dog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  min-height: 120px;
  transition: transform .35s var(--ease);
}
.dog-card:hover .dog-card-img img { transform: scale(1.05); }

/* Card label */
.dog-card-label {
  background: var(--cream-deep);
  padding: 10px 13px 12px;
  min-height: 48px;
  display: flex; flex-direction: column; gap: 3px;
  border-top: 1px solid var(--border);
}
.card-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 13px;
  color: var(--text); line-height: 1.3;
}
.card-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 11px; color: var(--text-muted);
  font-weight: 600;
}

/* ── PAGINATION ─── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 0 4px;
}
.page-btn {
  background: var(--white);
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--text-muted); cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
  box-shadow: var(--shadow-xs);
  line-height: 1;
}
.page-btn:hover:not(:disabled) {
  background: var(--brown);
  color: var(--white);
  border-color: var(--brown);
  box-shadow: 0 4px 12px rgba(60,30,0,.22);
}
.page-btn.active {
  background: var(--brown);
  color: var(--white);
  border-color: var(--brown);
  box-shadow: 0 4px 12px rgba(60,30,0,.22);
}
.page-btn:disabled {
  opacity: .35; cursor: default;
}
.page-prev, .page-next { font-size: 12px; padding: 8px 12px; }

/* ════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
footer {
  background: var(--brown);
  padding: 44px 48px 52px;
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
}
.footer-card {
  background: rgba(255,255,255,.10);
  border-radius: var(--radius);
  width: 160px; height: 200px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.08);
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  header, nav.main-nav, footer { padding-left: 24px; padding-right: 24px; }
  .hero   { padding: 36px 24px 28px; flex-direction: column; gap: 24px; }
  .hero-image { width: 100%; max-width: 320px; margin: 0 auto; }
  .content-section { padding: 8px 20px 48px; }
  .main-layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .dog-grid { grid-template-columns: repeat(2, 1fr); }
  .dropdown { min-width: 380px; }
  .dropdown-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  header { padding: 14px 16px; }
  nav.main-nav { padding: 0 16px; }
  .hero { padding: 24px 16px 20px; }
  .hero-text h1 { font-size: 26px; }
  .content-section { padding: 8px 14px 40px; }
  .dog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  footer { padding: 36px 16px 40px; }
  .dropdown { min-width: 300px; }
  .dropdown-inner { grid-template-columns: repeat(2, 1fr); }
}
