/* ============================================================
   Pawsome Denmark – delt stylesheet (forside + stedside)
   "Danish coast, hand-drawn warmth"
   ============================================================ */

/* Fonte – self-hosted i assets/fonts. Caveat = håndskrift, Nunito = brødtekst. */
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --cream: #FBF7EE;
  --card: #FFFFFF;
  --ink: #2E3528;
  --ink-soft: #6C7263;
  --green: #4E7A46;
  --green-deep: #35582F;
  --green-pale: #E9F0E4;
  --sand: #EFE6D4;
  --heart: #D97B5F;
  --radius: 16px;
  --shadow: 0 4px 14px rgba(46, 53, 40, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  line-height: 1.55;
}

.hand { font-family: "Caveat", cursive; }

/* Header */
header {
  background: #fff;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 1px 0 rgba(46,53,40,0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo { display: flex; align-items: baseline; gap: 0.55rem; text-decoration: none; color: inherit; }
.logo .paw-mark { align-self: center; transform: rotate(-12deg); }
.logo .name { font-family: "Caveat", cursive; font-size: 1.9rem; font-weight: 700; line-height: 1; }
.logo .tagline { display: none; color: var(--ink-soft); font-size: 0.8rem; }
@media (min-width: 560px) { .logo .tagline { display: block; } }

.btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: var(--green-deep); }
.btn:focus-visible { outline: 3px solid var(--heart); outline-offset: 2px; }
.btn.ghost { background: #fff; color: var(--green-deep); box-shadow: inset 0 0 0 2px var(--green); }
.btn.ghost:hover { background: var(--green-pale); }

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1.25rem 5.5rem;
  background:
    linear-gradient(100deg, rgba(251,247,238,0.75) 0%, rgba(251,247,238,0.25) 40%, rgba(251,247,238,0) 65%),
    url("hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero-inner { max-width: 1000px; margin: 0 auto; width: 100%; }
.hero h1 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 5rem);
  line-height: 0.95;
  max-width: 10ch;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.hero .sub { margin-top: 0.7rem; max-width: 42ch; font-size: 1.1rem; font-weight: 600; }

.note {
  display: none;
  position: absolute;
  right: 4%;
  bottom: 6.5rem;
  background: #FDF9E8;
  box-shadow: var(--shadow);
  padding: 0.9rem 1.1rem;
  transform: rotate(3deg);
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  line-height: 1.25;
  max-width: 230px;
}
@media (min-width: 800px) { .note { display: block; } }

/* Søgebar – overlapper heroens underkant */
.searchbar { max-width: 860px; margin: -3.2rem auto 0; padding: 0 1.25rem; position: relative; z-index: 5; }
.searchbar form {
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  overflow: hidden;
}
.field {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  padding: 0.55rem 1.1rem;
  border-right: 1px solid var(--sand);
  min-width: 150px;
}
.field label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.field select { border: none; font: inherit; font-weight: 700; color: var(--ink); background: transparent; padding: 0.1rem 0; }
.field select:focus-visible { outline: 3px solid var(--heart); outline-offset: 2px; }
.searchbar .btn { border-radius: 0; flex: 1 1 130px; font-size: 1.05rem; }
@media (max-width: 620px) {
  .searchbar form { border-radius: var(--radius); }
  .field { flex-basis: 100%; border-right: none; border-bottom: 1px solid var(--sand); }
}

/* Kategori-strip */
.categories {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
  text-align: center;
}
.cat {
  background: transparent;
  border: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  padding: 0.8rem 0.4rem;
  border-radius: var(--radius);
}
.cat:hover { background: var(--green-pale); }
.cat:focus-visible { outline: 3px solid var(--heart); outline-offset: 2px; }
.cat.active { background: var(--green-pale); box-shadow: inset 0 0 0 2px var(--green); }
.cat svg { width: 58px; height: 58px; }
.cat .cat-name { display: block; font-family: "Caveat", cursive; font-size: 1.45rem; font-weight: 700; margin-top: 0.2rem; }
.cat .cat-desc { display: block; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.3; }

/* Stedkort */
.section-title {
  max-width: 1000px;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
  font-family: "Caveat", cursive;
  font-size: 2.2rem;
  font-weight: 700;
}
.grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 620px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform 0.15s ease; }
  .card:hover { transform: translateY(-3px); }
}
a.card:focus-visible { outline: 3px solid var(--heart); outline-offset: 2px; }
.card h2 { font-size: 1.18rem; line-height: 1.3; }
.card .meta { color: var(--ink-soft); font-size: 0.9rem; }

.tag { display: inline-block; border-radius: 8px; padding: 0.2rem 0.65rem; font-size: 0.85rem; font-weight: 800; width: fit-content; }
.tag.tilladt  { background: #E2EFDB; color: #37662C; }
.tag.snor     { background: #F7EBC8; color: #86611A; }
.tag.udendors { background: #DEEAF2; color: #35617E; }
.tag.nej      { background: #F6E3DD; color: #9C4632; }

.paws { display: flex; align-items: center; gap: 0.15rem; }
.paws svg { width: 19px; height: 19px; }
.paws .count { color: var(--ink-soft); font-size: 0.85rem; margin-left: 0.35rem; }

.badge-confirmed {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 0.16rem 0.7rem;
  font-size: 0.79rem;
  font-weight: 800;
  width: fit-content;
}
.badge-source { color: var(--ink-soft); font-size: 0.8rem; font-style: italic; }
.card .snippet {
  font-family: "Caveat", cursive;
  font-size: 1.25rem;
  line-height: 1.25;
  background: var(--cream);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}
.empty { grid-column: 1/-1; text-align: center; color: var(--ink-soft); padding: 2rem 0; }

/* Community-strip */
.community { background: var(--green-pale); padding: 2.2rem 1.25rem; text-align: center; }
.community h2 { font-family: "Caveat", cursive; font-size: 2.4rem; }
.community p { max-width: 46ch; margin: 0.3rem auto 1.2rem; }
.polaroids { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.polaroid { background: #fff; padding: 0.5rem 0.5rem 1.6rem; box-shadow: var(--shadow); transform: rotate(-2.5deg); }
.polaroid:nth-child(2) { transform: rotate(1.5deg); }
.polaroid:nth-child(3) { transform: rotate(-1deg); }
.polaroid .ph { width: 130px; height: 100px; background: linear-gradient(#C9DDE8, #D5E0BF); display: grid; place-items: center; color: var(--ink-soft); font-size: 0.75rem; }
.polaroid .cap { font-family: "Caveat", cursive; font-size: 1.1rem; margin-top: 0.3rem; }

/* Besked-banner (DB-fejl / setup) */
.notice { max-width: 1000px; margin: 1rem auto 0; padding: 0.85rem 1.1rem; border-radius: 10px; font-size: 0.92rem; }
.notice.warn { background: #FBE7DF; border: 1px solid var(--heart); color: #8a3c26; }
.notice code { background: rgba(0,0,0,0.06); padding: 0.05rem 0.35rem; border-radius: 4px; }

/* Footer */
footer { background: var(--green-deep); color: #E4EDE0; text-align: center; padding: 1.7rem 1.25rem; font-size: 0.93rem; }
footer .hand { font-size: 1.5rem; }
footer .devnote { display: block; margin-top: 0.6rem; font-size: 0.78rem; opacity: 0.7; }

/* ============================================================
   Stedside (sted.php)
   ============================================================ */
.place-wrap { max-width: 820px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

.breadcrumb { font-size: 0.9rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--green-deep); text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }

.place-head { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.2rem; }
.place-head h1 { font-family: "Caveat", cursive; font-size: clamp(2.4rem, 7vw, 3.4rem); line-height: 1; }
.place-head .place-meta { color: var(--ink-soft); font-size: 0.95rem; }

.place-panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.9rem;
}
.place-facts { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
@media (min-width: 560px) { .place-facts { grid-template-columns: 1fr 1fr; } }
.fact { display: flex; flex-direction: column; gap: 0.15rem; }
.fact .k { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.fact .v { font-weight: 700; }
.fact .v a { color: var(--green-deep); }

.place-desc { line-height: 1.6; }

.place-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.4rem 0 0; }

.share { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-soft); }
.share .btn { padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.share .fb { background: #1877F2; }
.share .fb:hover { background: #1461c9; }

.reviews-title { font-family: "Caveat", cursive; font-size: 2rem; margin: 0.5rem 0 0.9rem; }
.review {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.15rem;
  margin-bottom: 0.9rem;
}
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.review-top .who { font-weight: 700; }
.review-top .when { color: var(--ink-soft); font-size: 0.85rem; }
.review .body { font-family: "Caveat", cursive; font-size: 1.3rem; line-height: 1.3; }
.review .lang-label { display: inline-block; margin-top: 0.4rem; font-size: 0.72rem; color: var(--ink-soft); background: var(--green-pale); border-radius: 6px; padding: 0.1rem 0.45rem; }

.no-reviews { color: var(--ink-soft); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.3rem; }

.last-confirmed { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3rem; }

/* ============================================================
   Formularer (foreslå et sted, anmeld, bekræft)
   ============================================================ */
.form-wrap { max-width: 640px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.form-title { font-family: "Caveat", cursive; font-size: clamp(2.4rem, 7vw, 3.2rem); line-height: 1; margin-bottom: 0.4rem; }
.form-intro { color: var(--ink-soft); margin-bottom: 1.3rem; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); background: var(--green-pale); border-radius: 10px; padding: 0.7rem 0.9rem; }

.form-block {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem 1.4rem;
  margin-top: 1.5rem;
}
.form-block .reviews-title { margin-top: 0; }

.pform { display: grid; gap: 1rem; }
.pform .fld { display: flex; flex-direction: column; gap: 0.35rem; border: none; padding: 0; margin: 0; }
.pform .lbl { font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.pform .lbl em { color: var(--heart); font-style: normal; }
.pform .opt { text-transform: none; letter-spacing: 0; font-weight: 600; opacity: 0.8; }
.pform input[type="text"],
.pform input[type="date"],
.pform select,
.pform textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--sand);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  width: 100%;
}
.pform textarea { resize: vertical; }
.pform input:focus-visible,
.pform select:focus-visible,
.pform textarea:focus-visible { outline: 3px solid var(--heart); outline-offset: 1px; border-color: var(--green); }
.fld-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 480px) { .fld-row { grid-template-columns: 1fr 1fr; } }

/* Honeypot – skjult for rigtige brugere */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pote-rating (radioknapper) */
.paw-rating { border: none; }
.paw-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.2rem; }
.paw-choice { position: relative; cursor: pointer; }
.paw-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.paw-choice > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1.5px solid var(--sand);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
}
.paw-choice .paw-num { font-weight: 800; color: var(--ink-soft); }
.paw-choice input:checked + span { border-color: var(--green); background: var(--green-pale); box-shadow: inset 0 0 0 1px var(--green); }
.paw-choice input:focus-visible + span { outline: 3px solid var(--heart); outline-offset: 2px; }

/* Kvitteringsbanner (grøn) */
.notice.ok { background: var(--green-pale); border: 1px solid var(--green); color: var(--green-deep); }
