:root {
  --mint: #eafaf3;
  --mint-mid: #b9ecd7;
  --mint-deep: #2fb989;
  --pink: #ff6f91;
  --pink-light: #ffd6e0;
  --pink-logo: #e08fa9;
  --cream: #fdf3ea;
  --black: #17181c;
  --white: #ffffff;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-card: 0 12px 30px rgba(23, 24, 28, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--mint-mid);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: linear-gradient(180deg, var(--mint) 0%, var(--mint-mid) 100%);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

img, svg { display: block; }
[hidden] { display: none !important; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  margin: 0;
  line-height: 1.15;
}

p { margin: 0; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 111, 145, 0.35);
}
.btn-primary:hover { background: #ff5c82; }

.btn-outline {
  border-color: var(--black);
  color: var(--black);
  background: transparent;
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-ghost {
  color: var(--black);
  padding: 10px 14px;
}
.btn-ghost:hover { color: var(--mint-deep); }

.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--mint);
  border-bottom: 1px solid rgba(23, 24, 28, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Bricolage Grotesque', var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.045em;
  line-height: 1;
  color: #12201C;
}

.logo-pin {
  display: block;
  width: 1.125em;
  height: 1.35em;
  min-width: 1.125em;
  flex-shrink: 0;
}

.logo-word { display: inline-block; padding-bottom: 0.08em; }

.back-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--black);
  opacity: 0.75;
}
.back-link:hover { opacity: 1; color: var(--mint-deep); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--black);
  border-radius: 2px;
}

/* Drawer menu */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 24, 28, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 90;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 84vw);
  background: var(--mint);
  box-shadow: -12px 0 30px rgba(23, 24, 28, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 95;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-close {
  border: none;
  background: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--black);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 4px;
  border: none;
  background: none;
  border-bottom: 1px solid rgba(23, 24, 28, 0.08);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
}

.drawer-link--cta {
  margin-top: 12px;
  border: none;
  border-radius: 999px;
  background: var(--pink);
  color: var(--white);
  text-align: center;
  font-weight: 600;
  padding: 14px;
}

/* Modal (Om spotworthy) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 24, 28, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 100;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 440px;
  box-shadow: var(--shadow-card);
}
.modal h3 { font-size: 1.3rem; margin-bottom: 14px; }
.modal p { color: rgba(23, 24, 28, 0.75); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: var(--mint);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--black);
}

/* Hero */
.hero {
  padding: 80px 0 110px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-spark { display: inline-block; margin-bottom: 20px; }

.hero-copy h1 {
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  font-weight: 800;
  color: var(--black);
  max-width: 460px;
}

.hero-btn { margin-top: 32px; }

/* Hero visual / polaroids */
.hero-visual {
  position: relative;
  min-height: 400px;
}

.polaroid-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.polaroid {
  position: absolute;
  width: 240px;
  background: var(--white);
  padding: 14px 14px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.polaroid--back {
  top: 10px;
  left: 100px;
  transform: rotate(8deg);
}

.polaroid--front {
  top: 110px;
  left: 4px;
  transform: rotate(-7deg);
}

.polaroid-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-icon { color: rgba(23, 24, 28, 0.22); }

.photo-1 { background: linear-gradient(135deg, var(--mint-mid), var(--pink-light)); }
.photo-2 { background: linear-gradient(135deg, var(--pink-light), var(--mint-mid) 80%); }

.pin-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  cursor: pointer;
}

.polaroid-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--font-heading);
}

.place-name { font-size: 0.95rem; font-weight: 700; color: var(--black); }
.stars { color: var(--pink); font-size: 0.85rem; letter-spacing: 1px; }

.post-address-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(23, 24, 28, 0.55);
}
.post-address-line svg { flex-shrink: 0; color: var(--pink); }
.post-address-line:hover { color: var(--pink); }

/* Features */
.features { padding: 100px 0; }

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  max-width: 640px;
  margin: 0 auto 56px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.icon-mint { background: rgba(47, 185, 137, 0.14); color: var(--mint-deep); }
.icon-pink { background: rgba(255, 111, 145, 0.14); color: var(--pink); }

.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: rgba(23, 24, 28, 0.7); font-size: 0.95rem; }

/* How it works */
.how-it-works { padding: 100px 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 18px;
}

.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { color: rgba(23, 24, 28, 0.7); font-size: 0.95rem; }

/* CTA section */
.cta-section { padding: 90px 0 110px; }

.cta-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-card);
}
.cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; max-width: 560px; }
.cta-card p { color: rgba(23, 24, 28, 0.7); font-size: 1.05rem; }
.cta-card .btn { margin-top: 6px; }

/* Footer */
.site-footer {
  background: var(--white);
  padding: 56px 0 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(23,24,28,0.08);
}
.footer-brand p { margin-top: 8px; color: rgba(23,24,28,0.6); font-size: 0.9rem; }
.logo-footer { margin-bottom: 4px; }

.footer-contact h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { font-size: 0.92rem; color: rgba(23,24,28,0.75); }
.footer-contact a:hover { color: var(--pink); }

.footer-bottom {
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(23,24,28,0.5); }

/* Page intro (guide.html) */
.page-intro { padding: 64px 0 12px; text-align: center; }
.page-intro h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.page-intro p { margin-top: 14px; color: rgba(23, 24, 28, 0.7); font-size: 1.05rem; }

/* ---------------- Forms (shared) ---------------- */
.field-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 18px 0 6px;
}
.field-label:first-of-type { margin-top: 0; }

.char-hint { font-weight: 500; color: rgba(23, 24, 28, 0.5); }

.text-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(23, 24, 28, 0.15);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px: under dette zoomer iOS Safari inn på feltet */
  color: var(--black);
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}
input[type="date"].text-input { min-height: 50px; }
input[type="search"].text-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.text-input:focus {
  outline: none;
  border-color: var(--pink);
}

.field-error { color: var(--pink); font-size: 0.85rem; margin-top: 8px; }
.field-hint { font-size: 0.82rem; color: rgba(23, 24, 28, 0.5); margin-top: 6px; }

.password-field { position: relative; }
.password-field .text-input { padding-right: 46px; }
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: rgba(23, 24, 28, 0.45);
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.password-toggle:hover { color: var(--mint-deep); background: var(--mint); }

/* ---------------- Auth pages (registrer.html) ---------------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 48px 24px 64px;
  background: linear-gradient(180deg, var(--mint) 0%, var(--mint-mid) 100%);
}

.auth-logo { font-size: 1.7rem; }

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
}
.auth-card h1 { font-size: 1.6rem; font-weight: 800; }
.auth-sub { margin-top: 10px; color: rgba(23, 24, 28, 0.7); font-size: 0.95rem; }

.auth-submit { width: 100%; margin-top: 26px; }

.auth-switch { margin-top: 20px; text-align: center; font-size: 0.9rem; color: rgba(23, 24, 28, 0.7); }
.auth-switch a { color: var(--pink); font-weight: 600; }

.demo-note {
  margin-top: 14px;
  background: var(--mint);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: rgba(23, 24, 28, 0.8);
}

/* ---------------- App shell (feed.html, profil.html) ---------------- */
.app-body {
  background: linear-gradient(180deg, var(--mint) 0%, var(--mint-mid) 100%);
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--mint);
  border-bottom: 1px solid rgba(23, 24, 28, 0.06);
}
.app-topbar-title { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; opacity: 0.6; }

.app-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(74px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--white);
  border-top: 1px solid rgba(23, 24, 28, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 60;
  box-shadow: 0 -8px 24px rgba(23, 24, 28, 0.06);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: none;
  background: none;
  color: var(--black);
  opacity: 0.55;
  font-size: 0.7rem;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 6px 10px;
}
.bottom-nav-item.active { opacity: 1; color: var(--pink); }
.bottom-nav-item:hover { opacity: 1; }

.nav-icon-wrap { position: relative; display: inline-flex; }
.nav-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid var(--white);
}

.bottom-nav-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--pink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 111, 145, 0.45);
  transform: translateY(-14px);
}
.bottom-nav-fab:hover { background: #ff5c82; }

/* Sheets (search + create post) */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 24, 28, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 110;
}
.sheet-overlay.open { opacity: 1; visibility: visible; }

.sheet {
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  max-height: 86dvh;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 24px 24px 32px;
  transform: translateY(16px);
  transition: transform 0.2s ease;
}
.sheet-overlay.open .sheet { transform: translateY(0); }

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.sheet-head h3 { font-size: 1.2rem; }

/* Tabs (search sheet) */
.tab-bar {
  display: flex;
  gap: 6px;
  background: var(--mint);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
}
.tab-btn {
  flex: 1;
  border: none;
  background: none;
  padding: 9px 12px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(23, 24, 28, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tab-btn.active { background: var(--white); color: var(--black); box-shadow: var(--shadow-card); }
.tab-badge {
  background: var(--pink);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
}

.request-actions { display: flex; gap: 8px; }

/* Star picker */
.star-picker { display: flex; gap: 6px; }
.star-btn {
  border: none;
  background: none;
  font-size: 2rem;
  line-height: 1;
  color: rgba(23, 24, 28, 0.2);
  cursor: pointer;
  padding: 0;
}
.star-btn.active { color: var(--pink); }

/* Photo upload */
.photo-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  border: 2px dashed rgba(23, 24, 28, 0.2);
  background: var(--mint);
  color: rgba(23, 24, 28, 0.55);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  overflow: hidden;
}
.photo-upload img { width: 100%; height: 100%; object-fit: cover; }

/* Visibility toggle */
.visibility-toggle { display: flex; gap: 10px; }
.vis-btn {
  flex: 1;
  padding: 11px;
  border-radius: 999px;
  border: 2px solid rgba(23, 24, 28, 0.15);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--black);
  cursor: pointer;
}
.vis-btn.active { border-color: var(--pink); background: var(--pink); color: var(--white); }

/* Tag picker (create post) */
.tag-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid rgba(23, 24, 28, 0.15);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--black);
  cursor: pointer;
}
.tag-chip.active { border-color: var(--mint-deep); background: rgba(47, 185, 137, 0.14); color: var(--mint-deep); }

/* Tags on feed posts */
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag-pill {
  background: var(--mint);
  color: var(--mint-deep);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Feed search */
.feed-search { margin-bottom: 20px; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  color: var(--mint-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-card);
}
.empty-state h2 { font-size: 1.3rem; margin-bottom: 10px; }
.empty-state p { color: rgba(23, 24, 28, 0.65); max-width: 320px; margin: 0 auto; }
.empty-hint { color: rgba(23, 24, 28, 0.6); font-size: 0.92rem; text-align: center; padding: 20px 0; }

/* Feed list */
.feed-list { display: flex; flex-direction: column; gap: 24px; }
.feed-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 16px 20px;
  box-shadow: var(--shadow-card);
}
.feed-photo { width: 100%; aspect-ratio: 1 / 1; }
.photo-icon-wrap { color: rgba(23, 24, 28, 0.25); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.post-photo-img { cursor: zoom-in; }
.feed-text { margin-top: 10px; font-size: 0.92rem; color: rgba(23, 24, 28, 0.8); }
.feed-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 0.8rem;
  color: rgba(23, 24, 28, 0.55);
}
.feed-meta-left { display: flex; align-items: center; gap: 8px; }
.feed-author-link { color: rgba(23, 24, 28, 0.55); font-weight: 600; }
.feed-author-link:hover { color: var(--pink); }
.feed-date { color: rgba(23, 24, 28, 0.4); }
.vis-pill {
  background: var(--mint);
  color: var(--mint-deep);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.feed-actions { display: flex; gap: 8px; margin-top: 12px; }

/* Photo lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 13, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 250;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-overlay img {
  max-width: min(90vw, 640px);
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

/* Custom food tags */
.custom-tag-row { display: flex; gap: 8px; margin-top: 10px; }
.custom-tag-row .text-input { flex: 1; }
.custom-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.removable-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.remove-tag-btn {
  border: none;
  background: none;
  color: var(--mint-deep);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* Image cropper */
.crop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 24, 28, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 200;
}
.crop-overlay.open { opacity: 1; visibility: visible; }

.crop-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 340px;
}
.crop-box h3 { font-size: 1.1rem; margin-bottom: 16px; text-align: center; }

.crop-viewport {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mint);
  cursor: grab;
  touch-action: none;
}
.crop-viewport:active { cursor: grabbing; }
.crop-viewport img {
  position: absolute;
  max-width: none;
  user-select: none;
  pointer-events: none;
}

.crop-zoom { width: 100%; margin-top: 16px; accent-color: var(--pink); }

.crop-actions { display: flex; gap: 10px; margin-top: 18px; }
.crop-actions .btn { flex: 1; }

/* Search sheet */
.search-results { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(23, 24, 28, 0.08);
}
.search-row-info { display: flex; flex-direction: column; }
.search-row-info span { font-size: 0.85rem; color: rgba(23, 24, 28, 0.55); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Profile page */
.profile-header { text-align: center; margin-bottom: 24px; }
.avatar-upload {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--pink-light);
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 14px;
  cursor: pointer;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-card);
}
.avatar-upload img { width: 100%; height: 100%; object-fit: cover; }
.avatar-static {
  cursor: default;
  font-family: var(--font-heading);
  font-weight: 700;
  background: var(--mint-mid);
  color: var(--mint-deep);
}
.profile-name { color: rgba(23, 24, 28, 0.6); font-size: 0.92rem; margin-top: 2px; }
.viewed-bio { margin-top: 12px; font-size: 0.95rem; color: rgba(23, 24, 28, 0.75); max-width: 340px; margin-left: auto; margin-right: auto; }

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 22px;
  box-shadow: var(--shadow-card);
}
.setting-row strong { font-size: 0.95rem; }
.setting-row p { font-size: 0.82rem; color: rgba(23, 24, 28, 0.6); margin-top: 4px; }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(23, 24, 28, 0.2);
  border-radius: 999px;
  transition: 0.2s;
}
.slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: 0.2s;
}
.switch input:checked + .slider { background: var(--pink); }
.switch input:checked + .slider::before { transform: translateX(20px); }

.my-posts-title { margin-top: 36px; margin-bottom: 16px; font-size: 1.1rem; }

/* Friends grid (profile page) */
.friends-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.friend-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px 10px 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}
.friend-card:hover { transform: translateY(-2px); }
.friend-card strong { font-size: 0.92rem; margin-top: 8px; word-break: break-word; }
.friend-handle { font-size: 0.8rem; color: rgba(23, 24, 28, 0.55); word-break: break-all; }
.friend-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mint-mid);
  color: var(--mint-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--pink-light);
}
.friend-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Friends strip (feed) */
.friends-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.friends-strip::-webkit-scrollbar { display: none; }
.strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 66px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--black);
  cursor: pointer;
}
.strip-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--mint-mid);
  color: var(--mint-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--pink);
}
.strip-avatar img { width: 100%; height: 100%; object-fit: cover; }
.strip-add .strip-avatar { background: var(--white); color: var(--pink); font-size: 1.6rem; box-shadow: 0 0 0 2px var(--pink-light); }
.strip-name { font-size: 0.74rem; font-weight: 600; max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-item:hover .strip-avatar { transform: scale(1.05); }
.strip-avatar { transition: transform 0.15s ease; }

/* Search tools (feed) */
.search-tools { margin: -8px 0 20px; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip {
  border: 0;
  background: var(--white);
  color: rgba(23, 24, 28, 0.7);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.chip.active { background: var(--pink); color: var(--white); }
.chip-divider { width: 1px; height: 20px; background: rgba(23, 24, 28, 0.15); margin: 0 2px; }
.search-summary { margin-top: 12px; font-size: 0.9rem; color: rgba(23, 24, 28, 0.7); }
.search-summary:empty { display: none; }
.summary-avg { margin-left: 6px; font-weight: 600; }
.summary-avg .stars { font-size: 0.95rem; }

/* Likes */
.feed-meta-right { display: flex; align-items: center; gap: 10px; }
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 4px 6px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(23, 24, 28, 0.5);
  cursor: pointer;
  border-radius: 999px;
}
.like-btn .heart-path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.like-btn:hover { color: var(--pink); }
.like-btn.liked { color: var(--pink); }
.like-btn.liked .heart-path { fill: var(--pink); stroke: var(--pink); }
.like-btn.liked svg { animation: like-pop 0.25s ease; }
@keyframes like-pop { 0% { transform: scale(0.7); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Hero: forklaring + stor CTA */
.hero-lead {
  margin-top: 18px;
  max-width: 470px;
  font-size: 1.15rem;
  line-height: 1.55;
  color: rgba(23, 24, 28, 0.78);
}
.btn-xl { padding: 18px 44px; font-size: 1.2rem; font-weight: 700; box-shadow: 0 14px 30px rgba(255, 111, 145, 0.4); }
.hero-note { margin-top: 14px; font-size: 0.9rem; color: rgba(23, 24, 28, 0.6); }
.hero-note a { color: var(--black); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero-note a:hover { color: var(--pink); }

/* Anbefalinger på forsiden */
.recs { padding: 24px 0 88px; }
.recs h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; text-align: center; }
.recs-sub { margin-top: 10px; text-align: center; color: rgba(23, 24, 28, 0.7); }
.recs-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.rec-card { display: flex; flex-direction: column; }
.rec-card .feed-photo { flex-shrink: 0; }
.rec-card .feed-text { flex-grow: 1; }
.recs-cta { margin-top: 44px; text-align: center; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-visual { min-height: 320px; order: 2; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { padding: 48px 0 64px; }
  .hero-lead { font-size: 1.05rem; }
  .hero-btn { display: flex; width: 100%; }
  .recs { padding-bottom: 64px; }
  .recs-cta .btn { display: flex; width: 100%; }
  .polaroid { width: 190px; }
  .polaroid--back { left: 60px; top: 0; }
  .polaroid--front { left: 0; top: 70px; }
  .cta-card { padding: 44px 24px; }
  .auth-card { padding: 32px 22px; }
}

/* ---------------- Mobile polish ---------------- */
html { scroll-padding-top: 88px; }

/* Closed drawer must not cast its shadow into the viewport */
.drawer:not(.open) { box-shadow: none; }
.drawer, .sheet, .modal, .crop-box { overscroll-behavior: contain; }

/* Lock page scroll behind any open overlay */
body:has(.drawer.open, .modal-overlay.open, .sheet-overlay.open, .crop-overlay.open, .lightbox-overlay.open) {
  overflow: hidden;
}

/* Comfortable touch targets on phones and tablets */
@media (pointer: coarse) {
  .menu-toggle { width: 44px; height: 44px; margin-right: -6px; }
  .logo { min-height: 44px; }
  .btn-sm { min-height: 44px; padding: 10px 18px; }
  .chip, .tag-chip, .vis-btn { min-height: 44px; }
  .chip { display: inline-flex; align-items: center; }
  .tab-btn { min-height: 44px; }
  .star-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .star-picker { gap: 0; margin-left: -6px; }
  .like-btn { min-width: 44px; min-height: 44px; justify-content: center; }
  .modal-close, .drawer-close, .password-toggle, .remove-tag-btn { min-width: 44px; min-height: 44px; }
  .modal-close, .drawer-close { width: 44px; height: 44px; }
  .footer-contact a { display: inline-block; padding: 10px 0; }
  .footer-links a, .feed-author-link, .post-address-line { display: inline-flex; align-items: center; min-height: 44px; }
  .drawer-link { padding: 16px 4px; }
  /* Map pin is small visually but gets a 44px hit area */
  .pin-badge { position: absolute; }
  .pin-badge::after { content: ""; position: absolute; inset: -9px; }
  .btn:hover, .btn-primary:hover { transform: none; }
}

/* Small phones (iPhone SE / 360px Android) */
@media (max-width: 400px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .hero-copy h1 { font-size: 2.35rem; }
  .app-main { padding-left: 14px; padding-right: 14px; }
  .sheet { padding-left: 18px; padding-right: 18px; }
  .auth-page { padding-left: 14px; padding-right: 14px; }
  .auth-card { padding: 28px 18px; }
  .bottom-nav-item { padding-left: 4px; padding-right: 4px; font-size: 0.68rem; }
  .crop-box { width: calc(100vw - 24px); padding: 20px 16px; }
  .chip-row { gap: 6px; }
}

/* Short landscape phones: keep sheets scrollable and nav compact */
@media (max-height: 520px) {
  .sheet { max-height: 94dvh; }
  .bottom-nav { height: calc(60px + env(safe-area-inset-bottom)); }
  .bottom-nav-fab { transform: translateY(-8px); width: 50px; height: 50px; }
}

@media (max-width: 480px) {
  .photo-upload { aspect-ratio: 16 / 9; }
  .bottom-nav-item { min-width: 56px; }
}

/* ---------------- Map page (kart.html) ---------------- */
.map-body {
  padding-bottom: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.map-main {
  position: relative;
  z-index: 0;           /* keeps Leaflet's internal z-indexes below the nav and sheets */
  flex: 1;
  min-height: 0;
  margin-bottom: calc(74px + env(safe-area-inset-bottom));
}
.map { position: absolute; inset: 0; background: var(--mint); font-family: var(--font-body); }
.map .leaflet-container { font-family: var(--font-body); }

.map-filters {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 64px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 6px 14px;
  margin: -4px -6px -14px;
  pointer-events: none;   /* let drags through the empty parts of the row */
}
.map-filters::-webkit-scrollbar { display: none; }
.map-filters .chip { flex-shrink: 0; pointer-events: auto; box-shadow: 0 2px 8px rgba(23, 24, 28, 0.16); }

.map-status {
  position: absolute;
  top: 58px;
  left: 12px;
  z-index: 800;
  max-width: calc(100% - 76px);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  font-size: 0.8rem;
  box-shadow: 0 4px 14px rgba(23, 24, 28, 0.16);
}

.map-empty {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  max-width: 340px;
  margin: 0 auto;
  padding: 24px 20px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg, 20px);
  box-shadow: 0 12px 32px rgba(23, 24, 28, 0.18);
}
.map-empty .empty-icon { margin: 0 auto 10px; }
.map-empty h2 { font-size: 1.1rem; margin-bottom: 6px; }
.map-empty p { font-size: 0.9rem; color: rgba(23, 24, 28, 0.7); }

/* Leaflet controls: bigger, rounded, on-brand */
.map .leaflet-bar { border: none; box-shadow: 0 4px 14px rgba(23, 24, 28, 0.18); border-radius: 12px; overflow: hidden; }
.map .leaflet-bar a, .map-locate {
  width: 40px; height: 40px; line-height: 40px;
  background: var(--white); color: var(--black);
  border: none; border-bottom: 1px solid rgba(23, 24, 28, 0.08);
  font-size: 20px;
}
.map .leaflet-bar a:last-child { border-bottom: none; }
.map-locate {
  display: flex; align-items: center; justify-content: center;
  margin-top: 10px; cursor: pointer; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(23, 24, 28, 0.18);
}
.map-locate:hover, .map .leaflet-bar a:hover { color: var(--pink); background: var(--white); }
.map .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, 0.75); }
.map .leaflet-top.leaflet-right { top: 0; }
.map .leaflet-top.leaflet-right .leaflet-control { margin-top: 12px; margin-right: 12px; }
.map .leaflet-top.leaflet-right .leaflet-control + .leaflet-control { margin-top: 0; }

/* Pink pins */
.sw-pin-icon { background: none; border: none; }
.sw-pin {
  position: relative;
  width: 40px; height: 48px;
  color: var(--pink);
  filter: drop-shadow(0 4px 5px rgba(23, 24, 28, 0.28));
  transform-origin: 50% 95%;
  transition: transform 0.15s ease, color 0.15s ease;
}
.sw-pin svg { width: 100%; height: 100%; display: block; }
.sw-pin.selected { transform: scale(1.22); color: #ff3d8b; }
.sw-pin-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px;
  background: var(--black); color: var(--white);
  font: 700 11px/20px var(--font-body);
  text-align: center;
  border: 2px solid var(--white);
  box-sizing: content-box;
}

/* Review card (bottom sheet over the map) */
.map-card {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 900;
  max-width: 520px;
  max-height: 52%;
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 -4px 30px rgba(23, 24, 28, 0.22);
}
.map-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.map-card-title { min-width: 0; }
.map-card-title h3 { font-size: 1.05rem; line-height: 1.25; overflow-wrap: anywhere; }
.map-card-sub { display: flex; gap: 8px; align-items: center; margin: 4px 0 6px; font-size: 0.85rem; color: rgba(23, 24, 28, 0.7); }
.map-card .post-address-line { min-height: 0; margin-top: 0; padding: 4px 0; }
.map-review .vis-pill { font-size: 0.72rem; padding: 2px 8px; }
.map-reviews { margin-top: 12px; display: grid; gap: 12px; }
.map-review { display: flex; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(23, 24, 28, 0.08); }
.map-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, var(--mint-mid), var(--pink-light)); }
.map-thumb img { width: 100%; height: 100%; object-fit: cover; }
.map-thumb-empty { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--pink); }
.map-review-body { min-width: 0; flex: 1; }
.map-review-top { display: flex; align-items: center; gap: 8px; }
.map-review-text { font-size: 0.9rem; margin: 2px 0 4px; overflow-wrap: anywhere; }
.map-review-meta { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: rgba(23, 24, 28, 0.6); }

@media (max-width: 400px) {
  .bottom-nav-item { padding: 6px 6px; min-width: 50px; }
}
@media (max-height: 520px) {
  .map-card { max-height: 70%; }
}

/* ---------------- Phone layout: centered hero, footer and polaroids ---------------- */
@media (max-width: 720px) {
  .hero-copy { text-align: center; }
  .hero-copy h1, .hero-lead { margin-left: auto; margin-right: auto; text-wrap: balance; }
  .hero-lead { text-wrap: pretty; }
  .hero-spark { margin-bottom: 14px; }
  .hero-note { text-align: center; }
  .hero-note a { display: inline-block; margin-top: 2px; }

  /* Keep the two polaroids as one group in the middle of the screen */
  .hero-visual { min-height: 290px; display: flex; justify-content: center; }
  .polaroid-stack { width: 290px; height: 290px; flex: none; }
  .polaroid--back { left: 100px; top: 0; }
  .polaroid--front { left: 0; top: 66px; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-contact { align-items: center; }

  .page-intro, .features .section-head { text-align: center; }
  .feature-card, .step { text-align: center; }
  .feature-card .feature-icon, .step .step-number { display: flex; margin-left: auto; margin-right: auto; }
}

/* ---------------- Half-star ratings ---------------- */
.star-row { display: inline-flex; gap: 1px; line-height: 1; vertical-align: middle; }
.star-row i {
  font-style: normal;
  background: linear-gradient(90deg, var(--pink) var(--f, 0%), #efc9d3 var(--f, 0%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stars { letter-spacing: 0; }

.star-picker { align-items: center; gap: 2px; }
.star-btn {
  background: linear-gradient(90deg, var(--pink) var(--f, 0%), #e2dcdf var(--f, 0%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: 2.3rem;
  padding: 0 3px;
  -webkit-tap-highlight-color: transparent;
}
.star-btn.active { color: transparent; }
.star-value { margin-left: 10px; font: 700 0.95rem var(--font-body); color: rgba(23, 24, 28, 0.7); white-space: nowrap; }
@media (pointer: coarse) {
  .star-picker { margin-left: 0; gap: 0; }
  .star-btn { min-width: 48px; }
}

/* ---------------- Following / followers ---------------- */
.follow-stats { display: flex; justify-content: center; gap: 28px; margin: 18px 0 4px; }
.stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; padding: 4px 6px; font-family: var(--font-body); color: var(--black);
}
.stat strong { font: 800 1.35rem var(--font-heading); line-height: 1.1; }
.stat span { font-size: 0.8rem; color: rgba(23, 24, 28, 0.6); }
.stat-btn { cursor: pointer; border-radius: 12px; }
.stat-btn:hover span, .stat-btn:focus-visible span { color: var(--pink); }
@media (pointer: coarse) { .stat-btn { min-width: 72px; min-height: 52px; } }

.people-row-info { flex-direction: row !important; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.people-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--mint-mid); color: var(--mint-deep); font: 700 1.05rem var(--font-heading);
}
.people-avatar img { width: 100%; height: 100%; object-fit: cover; }
.people-names { display: flex; flex-direction: column; min-width: 0; }
.people-names strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-row .btn { flex: none; margin-left: 10px; }

/* ---------------- Search: people, tags and tagged reviews ---------------- */
.search-section { font: 700 0.8rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(23, 24, 28, 0.5); margin: 18px 0 8px; }
.tag-results { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-result {
  border: 1.5px solid rgba(23, 24, 28, 0.12); background: var(--white); color: var(--black);
  border-radius: 999px; padding: 8px 14px; font: 600 0.9rem var(--font-body); cursor: pointer;
}
.tag-result span { color: var(--pink); margin-left: 4px; }
.tag-result:hover { border-color: var(--pink); }
.search-posts { margin-top: 4px; gap: 16px; }
@media (pointer: coarse) { .tag-result { min-height: 40px; } }

/* ---------------- Map: swipeable reviews ---------------- */
.map-card { padding: 14px 0 12px; }
.map-card-head { padding: 0 16px; }
.map-slider-wrap { position: relative; margin-top: 10px; }
.map-slider {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; outline: none;
}
.map-slider::-webkit-scrollbar { display: none; }
.map-slide {
  flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always;
  display: flex; gap: 14px; align-items: flex-start; padding: 8px 16px 4px; box-sizing: border-box;
}
.map-polaroid {
  flex: none; width: 118px; background: var(--white); padding: 7px 7px 8px; border-radius: 6px;
  box-shadow: 0 8px 20px rgba(23, 24, 28, 0.2); transform: rotate(-3deg); margin-top: 2px;
}
.map-polaroid-photo { width: 100%; aspect-ratio: 1 / 1; border-radius: 3px; overflow: hidden; background: linear-gradient(135deg, var(--mint-mid), var(--pink-light)); }
.map-polaroid-photo img { width: 100%; height: 100%; object-fit: cover; }
.map-polaroid-cap { margin-top: 7px; font-size: 0.72rem; text-align: center; }
.map-slide-body { flex: 1; min-width: 0; }
.map-review-top { display: flex; align-items: center; gap: 8px; }
.map-score { font: 800 1.15rem var(--font-heading); }
.map-review-empty { color: rgba(23, 24, 28, 0.4); }
.map-slide-body .post-tags { margin: 6px 0 0; }
.map-review-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 0.8rem; color: rgba(23, 24, 28, 0.6); }
.map-review-who { display: flex; gap: 8px; align-items: center; min-width: 0; flex-wrap: wrap; }

.map-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.95); color: var(--black); font-size: 1.3rem; line-height: 1;
  box-shadow: 0 2px 8px rgba(23, 24, 28, 0.25);
}
.map-prev { left: 2px; }
.map-next { right: 2px; }
.map-nav[hidden] { display: none; }
@media (pointer: coarse) { .map-nav { display: none; } }

.map-dots { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 8px; }
.map-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: #e2dcdf; cursor: pointer; }
.map-dot.active { background: var(--pink); width: 18px; border-radius: 6px; }
.map-count { margin-left: 8px; font-size: 0.78rem; color: rgba(23, 24, 28, 0.55); }

/* ---------------- Photo fix: photos must fill the polaroid frame ---------------- */
.polaroid-photo > img,
.feed-photo img,
.post-photo-img,
.rec-photo-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
