/* === Variables === */
:root {
  --bg: #F5F0E8;
  --bg-card: #FDFAF4;
  --green: #3D6B4F;
  --green-light: #E8F3EE;
  --lavender: #7B5EA7;
  --lavender-light: #F0EBF8;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --warning: #C0392B;
  --warning-bg: #FDECEA;
  --border: #DDD5C8;

  --cat-aromatic: #8B6914;
  --cat-aromatic-bg: #FDF3DC;
  --cat-lavender: #7B5EA7;
  --cat-lavender-bg: #F0EBF8;
  --cat-flower: #B94465;
  --cat-flower-bg: #FDEEF4;
  --cat-herb: #3D6B4F;
  --cat-herb-bg: #E8F3EE;
  --cat-tree: #6B4E2E;
  --cat-tree-bg: #F3EDE5;

  --zone-valence: #3D6B4F;
  --zone-valence-bg: #E8F3EE;
  --zone-drome: #7B5EA7;
  --zone-drome-bg: #F0EBF8;
  --zone-vercors: #4A7A9B;
  --zone-vercors-bg: #E5EFF5;

  --month-winter: #4A7A9B;  --month-winter-bg: #E5EFF5;
  --month-spring: #3D6B4F;  --month-spring-bg: #E8F3EE;
  --month-summer: #D4860D;  --month-summer-bg: #FEF3DC;
  --month-autumn: #7B4B2A;  --month-autumn-bg: #F5EBE0;

  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
  --transition: 200ms ease;
}

/* === Reset minimal === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: var(--green); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--text);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem; font-weight: 600;
}
.logo-icon { font-size: 1.4rem; }
.lang-btn {
  background: var(--green); color: #fff;
  border: none; cursor: pointer;
  padding: 0.3rem 0.8rem; border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem; font-weight: 500;
  transition: background var(--transition);
}
.lang-btn:hover { background: #2d5239; }

/* === Hero === */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: linear-gradient(180deg, var(--bg) 0%, #EDE7D9 100%);
}
.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--green);
  letter-spacing: -0.02em;
  animation: fadeUp 0.7s ease both;
}
.hero-sub {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: fadeUp 0.7s ease 0.15s both;
}

/* === Filters === */
.filters-wrap {
  position: sticky; top: 56px; z-index: 90;
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.filters-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
}
.search-box {
  position: relative; flex: 1; min-width: 180px; max-width: 280px;
}
.search-icon {
  position: absolute; left: 0.6rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
#searchInput {
  width: 100%;
  padding: 0.45rem 0.75rem 0.45rem 2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-family: 'Inter', sans-serif; font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
#searchInput:focus { border-color: var(--green); }
.filter-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter-group--months { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filter-group--months::-webkit-scrollbar { display: none; }
.filter-group--months .chip { flex-shrink: 0; min-width: 2.6rem; text-align: center; }

/* Chips */
.chip {
  padding: 0.3rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif; font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.active {
  background: var(--green); border-color: var(--green);
  color: #fff;
}
.chip--warning { border-color: var(--warning); color: var(--warning); }
.chip--warning:hover { background: var(--warning-bg); }
.chip--warning.active { background: var(--warning); color: #fff; }

/* === Count bar === */
.count-bar {
  max-width: 1400px; margin: 0 auto;
  padding: 1rem 1.5rem 0;
  font-size: 0.8rem; color: var(--text-muted);
}

/* === Grid === */
main { padding: 0 0 4rem; }
.grid {
  max-width: 1400px; margin: 0 auto;
  padding: 1rem 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}

/* === Card === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow var(--transition);
  role: listitem;
}
.card.visible { opacity: 1; transform: translateY(0); }
.card:hover { box-shadow: var(--shadow-hover); }

/* Card image */
.card-img-wrap {
  width: 100%; height: 180px;
  overflow: hidden; position: relative;
  background: var(--green-light);
  flex-shrink: 0;
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.04); }
.img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.5rem; font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.img-placeholder.cat-aromatic { background: #C9A84C; }
.img-placeholder.cat-lavender { background: var(--lavender); }
.img-placeholder.cat-flower { background: #C06080; }
.img-placeholder.cat-herb { background: var(--green); }
.img-placeholder.cat-tree { background: #8B6B4A; }
.img-credit {
  position: absolute; bottom: 0; right: 0;
  padding: 0.15rem 0.4rem;
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.85);
  font-size: 0.6rem;
}

/* Card body */
.card-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

/* Badges top */
.card-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.68rem; font-weight: 500;
  line-height: 1.4;
}
.badge-cat.cat-aromatic { background: var(--cat-aromatic-bg); color: var(--cat-aromatic); }
.badge-cat.cat-lavender { background: var(--cat-lavender-bg); color: var(--cat-lavender); }
.badge-cat.cat-flower   { background: var(--cat-flower-bg);   color: var(--cat-flower);   }
.badge-cat.cat-herb     { background: var(--cat-herb-bg);     color: var(--cat-herb);     }
.badge-cat.cat-tree     { background: var(--cat-tree-bg);     color: var(--cat-tree);     }
/* Hiver */
.badge-month.january, .badge-month.february, .badge-month.december
  { background: var(--month-winter-bg); color: var(--month-winter); }
/* Printemps */
.badge-month.march, .badge-month.april, .badge-month.may
  { background: var(--month-spring-bg); color: var(--month-spring); }
/* Été */
.badge-month.june, .badge-month.july, .badge-month.august
  { background: var(--month-summer-bg); color: var(--month-summer); }
/* Automne */
.badge-month.september, .badge-month.october, .badge-month.november
  { background: var(--month-autumn-bg); color: var(--month-autumn); }
.badge-month-more { background: var(--border); color: var(--text-muted); }

/* Plant names */
.plant-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem; font-weight: 600; line-height: 1.2;
  color: var(--text);
}
.plant-latin {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem; font-style: italic;
  color: #5A7A65;
  margin-top: -0.25rem;
}

/* Part & habitat */
.plant-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: baseline; gap: 0.35rem; }
.meta-icon { flex-shrink: 0; }

/* Uses */
.uses-text {
  font-size: 0.82rem; color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  transition: -webkit-line-clamp 0s;
}
.uses-text.expanded {
  display: block;
  overflow: visible;
}
.uses-more {
  background: none; border: none; cursor: pointer;
  color: var(--green); font-size: 0.75rem; font-family: 'Inter', sans-serif;
  padding: 0; margin-top: 0.15rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Warning */
.warning-block {
  background: var(--warning-bg);
  border-left: 3px solid var(--warning);
  padding: 0.4rem 0.6rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.75rem; color: var(--warning);
  line-height: 1.4;
}

/* Zone pills */
.zone-pills { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: auto; padding-top: 0.5rem; }
.zone-pill {
  font-size: 0.65rem; padding: 0.1rem 0.45rem;
  border-radius: 8px; font-weight: 500;
}
.zone-pill.zone-valence        { background: var(--zone-valence-bg);  color: var(--zone-valence);  }
.zone-pill.zone-drome_provencale { background: var(--zone-drome-bg); color: var(--zone-drome); }
.zone-pill.zone-vercors        { background: var(--zone-vercors-bg);  color: var(--zone-vercors);  }

/* === Empty state === */
.empty-state {
  max-width: 1400px; margin: 3rem auto;
  padding: 0 1.5rem;
  text-align: center;
  color: var(--text-muted); font-size: 0.9rem;
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  background: #EDE7D9;
  padding: 2.5rem 0 2rem;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 0.5rem; color: var(--green);
}
.footer-tip p { font-size: 0.82rem; color: var(--text-muted); max-width: 680px; }
.footer-credit {
  margin-top: 1.5rem; font-size: 0.75rem; color: var(--text-muted);
}
.footer-credit a { color: var(--text-muted); }
.footer-credit a:hover { color: var(--green); }

/* === Detail overlay === */
.detail-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  overflow-y: auto; overflow-x: hidden;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.detail-overlay.open { transform: translateX(0); }

.detail-topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 240, 232, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1.5rem; height: 56px;
}
.detail-back {
  display: flex; align-items: center; gap: 0.4rem;
  background: none; border: none; cursor: pointer;
  color: var(--green); font-family: 'Inter', sans-serif;
  font-size: 0.875rem; font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.detail-back:hover { background: var(--green-light); }
.detail-topbar-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.detail-body { max-width: 900px; margin: 0 auto; padding-bottom: 4rem; }

/* Hero image */
.detail-hero { width: 100%; }
.detail-hero-img-wrap {
  width: 100%; height: 360px; overflow: hidden;
  background: var(--green-light);
  position: relative;
}
.detail-hero-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.detail-hero-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 6rem; font-weight: 600;
  color: rgba(255,255,255,0.5);
}

/* Detail content */
.detail-content { padding: 2rem 1.5rem 0; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.detail-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600; line-height: 1.1;
  color: var(--text);
}
.detail-latin {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem; font-style: italic;
  color: #5A7A65; margin-top: 0.25rem; margin-bottom: 1.75rem;
}

/* Info grid */
.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.detail-info-block { display: flex; flex-direction: column; gap: 0.35rem; }
.detail-info-block--full { grid-column: 1 / -1; }
.detail-info-label {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
  font-weight: 500; font-family: 'Inter', sans-serif;
}
.detail-info-block p {
  font-size: 0.9rem; color: var(--text); line-height: 1.6;
}
.detail-info-block .zone-pills { margin-top: 0; padding-top: 0; }

/* Gallery section */
.detail-gallery-section { margin-top: 1rem; }
.detail-gallery-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem; font-weight: 600;
  color: var(--green); margin-bottom: 0.3rem;
}
.detail-gallery-credit {
  font-size: 0.72rem; color: var(--text-muted); margin-bottom: 1.25rem;
}
.detail-gallery-loading {
  display: flex; justify-content: center; padding: 2rem;
}
.detail-gallery-loading[hidden] { display: none; }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.gallery-thumb {
  aspect-ratio: 1;
  overflow: hidden; border-radius: 8px;
  cursor: pointer; position: relative;
  background: var(--green-light);
}
.gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-thumb:hover img { transform: scale(1.08); }
.gallery-thumb::after {
  content: '⛶';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff;
  background: rgba(0,0,0,0);
  transition: background 0.2s;
}
.gallery-thumb:hover::after { background: rgba(0,0,0,0.25); }
.gallery-empty {
  grid-column: 1/-1; text-align: center;
  color: var(--text-muted); font-size: 0.85rem; padding: 1.5rem 0;
}

/* === Lightbox === */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(10,10,10,0.95);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: rgba(255,255,255,0.1);
  border: none; cursor: pointer;
  color: #fff; font-size: 1.4rem;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none; cursor: pointer; color: #fff;
  font-size: 2.5rem; line-height: 1;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 1;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev:disabled, .lightbox-next:disabled { opacity: 0.2; cursor: default; }

.lightbox-img-wrap {
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 110px);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 100%; max-height: calc(100vh - 110px);
  object-fit: contain; border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.lightbox-footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  display: flex; justify-content: space-between; align-items: flex-end;
}
.lightbox-title {
  font-size: 0.75rem; color: rgba(255,255,255,0.7);
  max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lightbox-counter { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* Responsive detail */
@media (max-width: 600px) {
  .detail-hero-img-wrap { height: 240px; }
  .detail-content { padding: 1.25rem 1rem 0; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .detail-info-block--full { grid-column: 1; }
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
  .lightbox-img-wrap { max-width: calc(100vw - 80px); }
}

/* === Badge trouvaille sur carte === */
.card-sight-badge {
  display: inline-flex; align-items: center; gap: 0.2rem;
  font-size: 0.65rem; padding: 0.12rem 0.45rem;
  background: #E8F3EE; color: var(--green);
  border-radius: 10px; font-weight: 500;
  cursor: pointer;
}

/* === Badge comestible sur carte === */
.card-edible-badge {
  display: inline-flex; align-items: center; gap: 0.2rem;
  font-size: 0.65rem; padding: 0.12rem 0.45rem;
  background: #FDF3DC; color: #8B6914;
  border-radius: 10px; font-weight: 500;
}

/* Filtre comestible */
.chip--edible { background: #FDF3DC; color: #8B6914; border-color: #e8c86a; }
.chip--edible.active { background: #8B6914; color: #fff; }

/* Section box comestible */
.detail-section-box--edible { background: #FFFDF5; border-color: #e8c86a; }
.detail-section-box--edible .detail-section-title { color: #8B6914; }
.detail-posology, .detail-edible {
  font-size: 0.9rem; line-height: 1.65; color: var(--text);
}

/* === Section box (trouvailles / mes photos) === */
.detail-section-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background: #FDFAF4;
}
.detail-section-header {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.detail-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem; font-weight: 600; color: var(--green);
  flex: 1;
}

/* Boutons action */
.btn-action {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  background: var(--green); color: #fff;
  border: none; border-radius: 20px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 500;
  transition: background var(--transition);
  text-decoration: none;
}
.btn-action:hover { background: #2d5239; }
.btn-action.btn-sight { background: var(--lavender); }
.btn-action.btn-sight:hover { background: #6248a0; }
.btn-cancel {
  background: none; border: 1px solid var(--border); border-radius: 20px;
  padding: 0.3rem 0.75rem; cursor: pointer; font-size: 0.8rem; color: var(--text-muted);
}
.btn-cancel:hover { border-color: var(--warning); color: var(--warning); }

/* Sighting note input */
.sight-note-wrap, .upload-note-wrap {
  display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.75rem; background: var(--bg); border-radius: 8px;
  border: 1px dashed var(--border);
}
.sight-note-input {
  flex: 1; min-width: 180px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 0.85rem;
  outline: none; background: #fff;
}
.sight-note-input:focus { border-color: var(--green); }

/* Map */
.detail-map {
  height: 240px; border-radius: 10px; overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}

/* Sighting list */
.sighting-list {
  list-style: none; display: flex; flex-direction: column; gap: 0.4rem;
}
.sighting-item {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.sighting-item:last-child { border-bottom: none; }
.sighting-date { font-weight: 500; color: var(--text); white-space: nowrap; }
.sighting-note { color: var(--text-muted); font-style: italic; }
.sighting-coords { margin-left: auto; font-size: 0.7rem; color: #aaa; white-space: nowrap; }

/* My photos grid */
.my-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.my-photo-thumb {
  aspect-ratio: 1; overflow: hidden; border-radius: 8px;
  cursor: pointer; position: relative; background: var(--green-light);
}
.my-photo-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.my-photo-thumb:hover img { transform: scale(1.06); }
.my-photo-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.2rem 0.4rem;
  background: rgba(0,0,0,0.45); color: #fff;
  font-size: 0.62rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upload-empty { font-size: 0.8rem; color: var(--text-muted); }

/* === Toast === */
.toast-container { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast {
  background: #1A1A1A; color: #fff;
  padding: 0.6rem 1.25rem; border-radius: 24px;
  font-size: 0.85rem; font-family: 'Inter', sans-serif;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* === Noscript === */
.noscript-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #333; color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem; text-align: center;
  z-index: 9999;
}
.noscript-banner a { color: #a8d8b0; }

/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Responsive tweaks === */
@media (max-width: 600px) {
  .header-inner { padding: 0 1rem; }
  .logo-text { display: none; }
  .filters-inner { padding: 0 1rem; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .card-img-wrap { height: 150px; }
  .grid { padding: 0.75rem 1rem 0; }
}
