/*
 * Mat-Micke — consolidated stylesheet (modernization, 2026).
 * Replaces css/new.css + style.css. Keeps the site's identity: logo, white
 * review cards with a soft shadow, Roboto, restrained near-monochrome palette.
 * Light refresh: wider fluid reading column, comfortable typography, a
 * responsive wrapping header, and a tidy photo grid.
 *
 * Content is never styled away — only presentation changes.
 */

:root {
  --bg: #fbf7f1;
  --card: #fffdfa;
  --ink: #2b2723;
  --muted: #8a7f76;
  --line: #ece4d9;
  --accent: #b8472f;
  --shadow: 0 6px 24px rgba(80, 50, 30, 0.08);
  --shadow-hover: 0 14px 34px rgba(80, 50, 30, 0.13);
  --content-width: 720px;
  --radius: 16px;
  --font: 'Roboto', system-ui, -apple-system, Segoe UI, Verdana, Arial, sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(184, 71, 47, 0.18);
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover,
a:focus {
  color: var(--accent);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Visually-hidden but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Header / navigation ---- */
.site-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.site-logo img {
  display: block;
  width: auto;
  max-height: 88px;
}

.site-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 8px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 6px;
  margin-top: 6px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--ink);
  background: rgba(184, 71, 47, 0.08);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: rgba(184, 71, 47, 0.1);
}

/* Facebook link sits a touch apart, keeps its brand glyph inline */
.site-nav__fb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}
.site-nav__fb .fa {
  font-size: 1.05em;
}

/* ---- Main content column ---- */
main.page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 16px 48px;
}

h1 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

/* ---- Review / article cards ---- */
.review {
  margin-bottom: 30px;
}

.shaddow {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.review:hover .shaddow {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.text {
  padding: 14px 20px;
  text-align: justify;
}

.text.header {
  padding-bottom: 0;
  color: var(--muted);
}

.text.header h1 {
  color: var(--ink);
  font-size: 1.75rem;
}

.text.header :is(br) {
  line-height: 1.8;
}

/* ---- Badge pills (from review `badges`) ---- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 20px 0;
}
.pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}
.pill-kravmarkt { background: var(--accent); color: #fff; }
.pill-roadkill { background: #5b3a2e; color: #fff; }
.pill-mattjuv { background: #caa15a; color: #3a2a10; }

/* The hand-made stamp gifs are now represented by the badge pills above the
   card, so hide the (redundant) inline images. */
.text img[src*="kravmarkt"],
.text img[src*="roadkill"],
.text img[src*="mat-tjuv"] {
  display: none;
}

/* "Mat-Micke approved" stamp (legacy; kept in case pills are ever disabled) */
.stamp {
  width: 130px;
  float: right;
  margin: 0 0 8px 12px;
}

/* ---- Photos ---- */
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px;
  padding: 6px;
}

.photos img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

/* Legacy <br> separators inside .photos collapse harmlessly in a grid */
.photos br {
  display: none;
}

.photos img {
  cursor: zoom-in;
}

/* ---- Lightbox (click a photo to enlarge) ---- */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(26, 18, 12, 0.86);
  cursor: zoom-out;
  z-index: 1000;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* ---- Decorative chef spot illustrations ---- */
.spot {
  text-align: center;
  margin: 6px 0 22px;
  line-height: 0;
}
.spot img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 190px;
  opacity: 0.92;
}

/* Small, text-wrapping variant so it never pushes the content down */
.spot--float {
  float: right;
  width: 150px;
  max-width: 40%;
  margin: 4px 0 10px 20px;
  line-height: 0;
}
.spot--float.spot--left {
  float: left;
  margin: 4px 20px 10px 0;
}
.spot--float img {
  width: 100%;
  height: auto;
  max-height: none;
  opacity: 0.92;
}
.spot-clear { clear: both; }

/* ---- Footer ---- */
.site-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px 16px 40px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--muted);
}

/* ---- Search / filter (sok.php) ---- */
.search-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}
.search-controls input[type="search"],
.search-controls select {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.search-controls input[type="search"] {
  flex: 1 1 260px;
}
.search-controls .search-go {
  font: inherit;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.search-controls .search-go:hover {
  background: #a13d28;
}
.search-controls .appr {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.search-count {
  color: var(--muted);
  margin: 0 0 18px;
}
.search-empty {
  color: var(--muted);
  padding: 24px 0;
}

/* ---- Map (karta.php) ---- */
.map {
  height: 70vh;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.map-note {
  color: var(--muted);
  margin: 0 0 14px;
}
.map-pop b {
  font-size: 1.05em;
}
.map-pop a {
  text-decoration: underline;
}

/* ---- Small screens ---- */
@media (max-width: 540px) {
  .site-header {
    justify-content: center;
    text-align: center;
  }
  .site-nav {
    justify-content: center;
  }
  .text {
    text-align: left;
  }
}
