/* ── Pawprints of Remembrance ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #f4f0f0;
  --warm:     #ebe7e7;
  --brown:    #6f899a;
  --brown-lt: #8faabb;
  --brown-dk: #476273;
  --gold:     #fac859;
  --gold-lt:  #fde8a8;
  --text:     #131a1e;
  --muted:    #6f899a;
  --border:   #d4cccc;
  --white:    #ffffff;
  --shadow:   0 2px 12px rgba(71,98,115,.12);
  --shadow-lg:0 6px 28px rgba(71,98,115,.18);
  --radius:   12px;
  --radius-sm:7px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── NAV ── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 8px rgba(71,98,115,.07);
}
.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown-dk);
  text-decoration: none;
  display: flex; align-items: center; gap: .5rem;
}
.nav-brand .paw { font-size: 1.4rem; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.nav-brand-tagline {
  font-size: .62rem; font-weight: 400;
  color: var(--muted); font-family: system-ui, sans-serif;
  letter-spacing: .01em; opacity: .85;
}
.btn-nav-share {
  display: flex; align-items: center; gap: .35rem;
  background: var(--warm); border: 1px solid var(--border);
  color: var(--brown); border-radius: 20px; padding: .35rem .85rem;
  font-size: .8rem; font-family: system-ui, sans-serif;
  cursor: pointer; transition: background .2s, color .2s; white-space: nowrap;
  flex-shrink: 0;
}
.btn-nav-share:hover { background: var(--brown); color: #fff; border-color: var(--brown); }
.nav-links { display: flex; align-items: center; gap: 1.2rem; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: .92rem; transition: color .2s;
  font-family: system-ui, sans-serif;
}
.nav-links a:hover { color: var(--brown); }
.btn-nav {
  background: var(--brown);
  color: var(--white) !important;
  padding: .4rem 1rem;
  border-radius: 20px;
  font-size: .88rem !important;
  transition: background .2s !important;
}
.btn-nav:hover { background: var(--brown-dk) !important; }

/* ── HOW IT WORKS ── */
.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}
.nav-hamburger {
  display: none; /* shown only on mobile via media query */
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: .4rem; border-radius: 6px;
  transition: background .2s;
}
.nav-hamburger:hover { background: var(--warm); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--brown-dk); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.nav-drawer {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 199;
}
.nav-drawer.open { display: block; }
.nav-drawer-overlay {
  position: absolute; inset: 0;
  background: rgba(19,26,30,.45);
}
.nav-drawer-panel {
  position: absolute; top: 58px; left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  padding: 1rem 1.25rem 1.5rem;
  animation: drawerDown .2s ease;
}
@keyframes drawerDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.nav-drawer-panel a,
.nav-drawer-panel button.drawer-share {
  display: block; width: 100%;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  font-family: system-ui, sans-serif; font-size: 1rem;
  background: none; border-left: none; border-right: none; border-top: none;
  text-align: left; cursor: pointer;
}
.nav-drawer-panel a:last-child,
.nav-drawer-panel button.drawer-share:last-child { border-bottom: none; }
.nav-drawer-panel a:hover,
.nav-drawer-panel button.drawer-share:hover { color: var(--brown); }
.nav-drawer-panel .drawer-add {
  display: block;
  background: var(--brown); color: #fff !important;
  border-radius: 8px; padding: .85rem 1rem;
  text-align: center; font-weight: 600;
  margin-bottom: .75rem; border: none;
  font-size: 1rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1.4rem;
  border-radius: 24px; border: none; cursor: pointer;
  font-size: .95rem; font-family: system-ui, sans-serif;
  font-weight: 600; text-decoration: none;
  transition: all .2s; line-height: 1;
}
.btn-primary { background: var(--brown); color: var(--white); }
.btn-primary:hover { background: var(--brown-dk); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--brown-dk); }
.btn-gold:hover { background: #e8b43a; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--brown);
  border: 2px solid var(--brown);
}
.btn-outline:hover { background: var(--brown); color: var(--white); }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-danger { background: #c0392b; color: var(--white); }
.btn-danger:hover { background: #a93226; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--brown-dk) 0%, #567080 60%, var(--brown) 100%);
  color: var(--white);
  text-align: center;
  padding: 2rem 1.5rem 1.75rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 680px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin-bottom: .5rem; font-weight: 700; }
.hero p { font-size: .98rem; opacity: .88; margin-bottom: 1.1rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero-paws { font-size: 1.4rem; margin-bottom: .5rem; letter-spacing: .3rem; }

/* ── SMALL PET CARD (homepage recent grid) ── */
.pet-grid-sm {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
@media (max-width: 640px) {
  /* ── Navigation ── */
  .nav { padding: .7rem 1rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .btn-nav-share { display: none; }
  .nav-brand-tagline { display: none; } /* too long on small screens */

  /* ── Containers ── */
  .container, .container-sm { padding-left: 1rem; padding-right: 1rem; }

  /* ── Hero sections ── */
  .hero { padding: 1.75rem 1rem 1.5rem; }
  .dashboard-header { padding: 1.5rem 1rem; }
  .memorial-hero { padding: 1.25rem 1rem; }
  .memorial-hero-inner { gap: 1rem; }

  /* ── Grids ── */
  .pet-grid { grid-template-columns: 1fr; gap: 1rem; }
  .pet-grid-sm { padding: 0; gap: .75rem; }
  .how-it-works-grid { grid-template-columns: 1fr !important; }
  .tools-row { grid-template-columns: 1fr; }

  /* ── Cards ── */
  .card-body { padding: 1rem; }

  /* ── Auth pages ── */
  .auth-page { padding: 1.5rem 1rem; }
  .auth-card { padding: 1.5rem 1rem; }

  /* ── Share bar ── */
  .share-bar { padding: 0; gap: .5rem; }
  .share-buttons { gap: .4rem; }

  /* ── Section spacing ── */
  .section { padding-top: 1.5rem; padding-bottom: 1.5rem; }

  /* ── Forms ── */
  .form-row { grid-template-columns: 1fr; }
}
.pet-card-sm {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.pet-card-sm:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pet-card-sm-photo {
  width: 100%; height: 100px; object-fit: cover;
  background: var(--warm);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--border); flex-shrink: 0;
}
.pet-card-sm-photo img { width: 100%; height: 100%; object-fit: cover; }
.pet-card-sm-body { padding: .55rem .65rem .6rem; display: flex; flex-direction: column; gap: .2rem; }
.pet-card-sm-name { font-size: .9rem; font-weight: 700; color: var(--brown-dk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pet-card-sm-meta { font-size: .72rem; color: var(--muted); font-family: system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pet-card-sm-footer { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .7rem; color: var(--muted); font-family: system-ui, sans-serif; margin-top: .15rem; }

/* ── CARDS & LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.container-sm { max-width: 680px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.section { padding-top: 3rem; padding-bottom: 3rem; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 1.5rem; }

.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pet-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.pet-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pet-card-photo {
  width: 100%; height: 200px; object-fit: cover;
  background: var(--warm);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--border);
}
.pet-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.pet-card-body { padding: 1.1rem 1.2rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.pet-card-name { font-size: 1.15rem; font-weight: 700; color: var(--brown-dk); margin-bottom: .2rem; }
.pet-card-meta { font-size: .83rem; color: var(--muted); font-family: system-ui, sans-serif; margin-bottom: .6rem; }
.pet-card-story { font-size: .9rem; color: var(--text); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pet-card-footer { display: flex; align-items: center; justify-content: space-between;
  margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); font-family: system-ui, sans-serif; }

/* ── CANDLE ── */
.candle-btn {
  background: none; border: 1px solid var(--gold);
  color: var(--gold); border-radius: 20px;
  padding: .3rem .75rem; font-size: .82rem;
  cursor: pointer; font-family: system-ui, sans-serif;
  transition: all .2s; display: inline-flex; align-items: center; gap: .3rem;
}
.candle-btn:hover, .candle-btn.lit { background: var(--gold); color: var(--brown-dk); }
.candle-btn .flame { font-size: 1rem; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.3rem; }
.form-label {
  display: block; margin-bottom: .4rem;
  font-size: .9rem; font-weight: 600; color: var(--brown-dk);
  font-family: system-ui, sans-serif;
}
.form-control {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .95rem; font-family: inherit;
  background: var(--white); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: none; border-color: var(--brown-lt);
  box-shadow: 0 0 0 3px rgba(111,137,154,.18);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; font-family: system-ui, sans-serif; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form-select {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .95rem; font-family: system-ui, sans-serif;
  background: var(--white); color: var(--text);
  transition: border-color .2s; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b5e3c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center;
}
.form-select:focus { outline: none; border-color: var(--brown-lt); }

/* ── FILE UPLOAD ── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--warm);
  font-family: system-ui, sans-serif;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--brown-lt); background: var(--gold-lt); }
.upload-zone input[type=file] { display: none; }
.upload-zone .upload-icon { font-size: 2.5rem; margin-bottom: .5rem; pointer-events: none; }
.upload-zone p { font-size: .9rem; color: var(--muted); margin: 0; pointer-events: none; }
.photo-previews { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.photo-preview { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; border: 2px solid var(--border); }

/* ── PHOTO BADGE + DRAG REORDER ── */
.photo-preview-wrap {
  position: relative; display: inline-block;
  cursor: grab; user-select: none; transition: transform .15s;
}
.photo-preview-wrap:active { cursor: grabbing; }
.photo-preview-wrap:hover { transform: scale(1.05); }
.photo-badge {
  position: absolute; top: 4px; left: 4px;
  background: var(--brown-dk); color: var(--white);
  font-size: .65rem; font-family: system-ui, sans-serif;
  font-weight: 700; padding: .15rem .35rem; border-radius: 8px;
  pointer-events: none;
}
.photo-preview-wrap:first-child .photo-badge { background: var(--gold); color: var(--brown-dk); }

/* ── PHOTO REMOVE BUTTON ── */
.photo-remove-btn {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px;
  background: rgba(0,0,0,.6); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  font-size: .85rem; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
}
.photo-preview-wrap:hover .photo-remove-btn { opacity: 1; }

/* ── TOOLS ROW (QR / Card / Flag) ── */
.tools-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: .75rem; margin-bottom: 1.5rem;
}
@media (max-width: 560px) { .tools-row { grid-template-columns: 1fr; } }
.tool-card {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .9rem 1rem; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text); cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  font-family: system-ui, sans-serif; font-size: .85rem; text-align: left;
}
.tool-card:hover { border-color: var(--brown-lt); box-shadow: var(--shadow); }
.tool-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.tool-body strong { display: block; color: var(--brown-dk); margin-bottom: .2rem; font-size: .88rem; }
.tool-body span { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.tool-flag:hover { border-color: #c0392b; }

/* ── MAP ── */
#map { width: 100%; height: 520px; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; z-index: 1; }
.map-section { padding: 1.25rem 0 2rem; position: relative; z-index: 1; }
.map-header { text-align: center; margin-bottom: .75rem; }
.map-header h2 { font-size: 1.4rem; color: var(--brown-dk); }
.map-header p { color: var(--muted); font-family: system-ui, sans-serif; font-size: .9rem; }

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-lg) !important;
}
.map-popup img { width: 100%; height: 80px; object-fit: cover; border-radius: 4px; margin-bottom: .4rem; }
.map-popup strong { color: var(--brown-dk); }
.map-popup small { color: var(--muted); font-family: system-ui, sans-serif; }
.map-popup a { color: var(--brown); font-family: system-ui, sans-serif; font-size: .85rem; }

/* ── AUTH PAGES ── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 2rem 1rem;
  background: linear-gradient(160deg, var(--cream) 0%, var(--warm) 100%);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 2.5rem 2rem;
}
.auth-logo { text-align: center; margin-bottom: 1.5rem; font-size: 3rem; }
.auth-card h1 { text-align: center; font-size: 1.5rem; color: var(--brown-dk); margin-bottom: .3rem; }
.auth-card p { text-align: center; color: var(--muted); font-family: system-ui, sans-serif; font-size: .9rem; margin-bottom: 1.8rem; }
.auth-footer { text-align: center; margin-top: 1.2rem; font-size: .88rem; color: var(--muted); font-family: system-ui, sans-serif; }
.auth-footer a { color: var(--brown); }

/* ── ALERTS ── */
.alert {
  padding: .8rem 1rem; border-radius: var(--radius-sm);
  font-family: system-ui, sans-serif; font-size: .9rem;
  margin-bottom: 1rem;
}
.alert-error { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6c6; }
.alert-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #c8e6c9; }

/* ── PET PROFILE PAGE ── */
.memorial-hero {
  background: linear-gradient(160deg, var(--brown-dk) 0%, var(--brown) 100%);
  color: var(--white); padding: 1.75rem 1.5rem;
}
.memorial-hero-inner {
  max-width: 680px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem;
}
.memorial-hero-photo {
  flex-shrink: 0;
  width: 150px; height: 150px;
  border-radius: 50%; object-fit: cover;
  border: 4px solid rgba(255,255,255,.3);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.memorial-hero-photo-placeholder {
  flex-shrink: 0;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  border: 4px solid rgba(255,255,255,.2);
}
.memorial-hero-body { flex: 1; min-width: 0; }
.memorial-hero-body h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin: 0 0 .3rem; line-height: 1.15;
}
.memorial-hero .meta {
  opacity: .82; font-family: system-ui, sans-serif;
  font-size: .9rem; margin-top: .25rem;
}
.memorial-hero .candle-large { margin-top: .9rem; font-size: .95rem; }
@media (max-width: 520px) {
  .memorial-hero-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .memorial-hero-photo,
  .memorial-hero-photo-placeholder { width: 110px; height: 110px; }
}

/* ── SLIDESHOW ── */
.slideshow {
  position: relative; overflow: hidden;
  border-radius: var(--radius); background: #111; line-height: 0;
}
.slide { display: none; width: 100%; }
.slide.active { display: block; }
.slide img {
  width: 100%;
  max-height: 600px;
  min-height: 280px;
  object-fit: contain;
  display: block;
  background: #111;
}
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff;
  border: none; cursor: pointer; font-size: 2rem; line-height: 1;
  padding: .4rem .75rem; border-radius: 4px;
  transition: background .2s; z-index: 10;
}
.slide-btn:hover { background: rgba(0,0,0,.7); }
.slide-prev { left: 10px; }
.slide-next { right: 10px; }
.slide-dots {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 6px; z-index: 10;
}
.slide-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7); background: transparent;
  cursor: pointer; padding: 0; transition: background .2s;
}
.slide-dot.active { background: var(--gold); border-color: var(--gold); }

/* ── GALLERY STRIP (kept for thumbnails) ── */
.gallery-strip { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .5rem; margin: 1.5rem 0; }
.gallery-strip img { height: 220px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; cursor: pointer; transition: opacity .2s; }
.gallery-strip img:hover { opacity: .88; }

.story-block { font-size: 1.05rem; line-height: 1.85; white-space: pre-wrap; }

/* ── SEARCH ── */
.search-bar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex; gap: .75rem; flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 2rem;
}
.search-bar .form-group { margin: 0; flex: 1; min-width: 160px; }

/* ── DASHBOARD ── */
.dashboard-header {
  background: linear-gradient(135deg, var(--brown-dk), var(--brown));
  color: var(--white); padding: 2.5rem 1.5rem;
}
.dashboard-header h1 { font-size: 1.8rem; }
.dashboard-header p { opacity: .8; font-family: system-ui, sans-serif; }

.dash-stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.stat-pill {
  background: rgba(255,255,255,.15); border-radius: 20px;
  padding: .4rem 1rem; font-size: .88rem;
  font-family: system-ui, sans-serif;
}

.section-title { font-size: 1.25rem; color: var(--brown-dk); margin-bottom: 1.2rem; border-bottom: 2px solid var(--gold-lt); padding-bottom: .5rem; }

/* ── MAP PIN PICKER ── */
#pin-map { width: 100%; height: 300px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); }
.pin-coords { font-size: .82rem; color: var(--muted); font-family: system-ui, sans-serif; margin-top: .4rem; }

/* ── FOOTER ── */
.footer {
  background: var(--brown-dk);
  color: rgba(255,255,255,.75);
  margin-top: 4rem;
  padding: 2.5rem 1.5rem 2rem;
  font-family: system-ui, sans-serif;
  font-size: .88rem;
}
.footer-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  opacity: .9;
  transition: opacity .2s;
}
.footer-logo-link:hover { opacity: 1; }
.footer-logo-img {
  height: 68px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-taglines { line-height: 1.7; }
.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
  margin-bottom: .15rem;
}
.footer-subtitle {
  font-size: .88rem;
  opacity: .8;
  margin: 0;
  color: rgba(255,255,255,.8);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: .85rem;
}
.footer-links a {
  color: var(--gold-lt);
  text-decoration: none;
  transition: opacity .2s;
}
.footer-links a:hover { opacity: .75; text-decoration: underline; }
.footer-sep { opacity: .4; }
.footer-copy {
  font-size: .78rem;
  opacity: .5;
  margin-top: .25rem;
}
.footer-copy p { margin: 0; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.fw-bold { font-weight: 700; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 12px;
  font-size: .75rem; font-weight: 600; font-family: system-ui, sans-serif;
  background: var(--gold-lt); color: var(--brown-dk);
}

/* ── SHARE BAR ── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: .9rem 1.1rem;
  background: var(--warm);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-family: system-ui, sans-serif;
}
.share-label {
  font-size: .85rem;
  color: var(--muted);
  white-space: nowrap;
}
.share-buttons {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .85rem;
  border-radius: 20px;
  font-size: .82rem;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .2s;
  line-height: 1;
}
.share-fb  { background: #1877f2; color: #fff; }
.share-fb:hover  { background: #0d65d9; }
.share-ig  { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); color: #fff; }
.share-ig:hover  { opacity: .88; }
.share-sub { background: #ff6719; color: #fff; }
.share-sub:hover { background: #e05510; }
.char-counter { text-align: right; font-size: .78rem; color: var(--muted); font-family: system-ui, sans-serif; margin-top: .2rem; }
.char-counter.over { color: #c0392b; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); font-family: system-ui, sans-serif; }
.empty-state .icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--brown-dk); margin-bottom: .5rem; }

/* ── MODALS ── */
.pw-modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(19,26,30,.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1rem;
}
.pw-modal.open { display: flex; }
.pw-modal-box {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0,0,0,.4);
  padding: 2rem; max-width: 380px; width: 100%;
  position: relative; animation: modalIn .2s ease;
  max-height: 92vh; overflow-y: auto;
}
.pw-modal-box--wide { max-width: 900px; }
@keyframes modalIn { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }
.pw-modal-close {
  position: absolute; top: .75rem; right: .9rem;
  background: none; border: none; font-size: 1.6rem;
  line-height: 1; cursor: pointer; color: var(--muted);
  padding: 0 .25rem;
}
.pw-modal-close:hover { color: var(--text); }
.pw-modal-title { font-size: 1.2rem; color: var(--brown-dk); margin-bottom: .3rem; }
.pw-modal-sub { font-size: .88rem; color: var(--muted); font-family: system-ui,sans-serif; margin-bottom: 1.25rem; }
.pw-modal-img-wrap { text-align: center; margin-bottom: 1.5rem; }
.pw-modal-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
