/* ==========================================================================
   DJASH — Editorial Gastronomic Directory Design System
   High-Craft Boutique Aesthetic (Inspired by Kinfolk, Le Fooding & Monocle)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Editorial Light Palette */
  --bg-page: #fcfbf9;
  --bg-subtle: #f5f2ed;
  --card: #ffffff;
  --card-hover: #ffffff;
  
  --ink: #1c1714;
  --ink-light: #5a4f47;
  --ink-muted: #8c7e73;
  --ink-faint: #b8aba0;
  
  --crimson: #841b2d;
  --crimson-dark: #631220;
  --crimson-subtle: rgba(132, 27, 45, 0.08);
  --crimson-glow: rgba(132, 27, 45, 0.16);
  
  --ochre: #b57a42;
  --ochre-subtle: rgba(181, 122, 66, 0.1);
  
  --sage: #3f684f;
  --sage-subtle: rgba(63, 104, 79, 0.1);
  
  --border: #e9e3da;
  --border-focus: #841b2d;
  --border-faint: #f0ebe2;
  
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
  
  --shadow-sm: 0 2px 8px rgba(28, 23, 20, 0.03);
  --shadow-md: 0 10px 30px rgba(28, 23, 20, 0.05);
  --shadow-lg: 0 20px 48px rgba(28, 23, 20, 0.08);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Editorial Dark Mode (Deep Obsidian, Aged Burgundy, Warm Linen)
   ========================================================================== */
body.dark-mode {
  --bg-page: #110e0c;
  --bg-subtle: #191412;
  --card: #181311;
  --card-hover: #1e1815;
  
  --ink: #f7f3ee;
  --ink-light: #b5a79c;
  --ink-muted: #7e7064;
  --ink-faint: #473e37;
  
  --crimson: #d43b54;
  --crimson-dark: #b5253d;
  --crimson-subtle: rgba(212, 59, 84, 0.12);
  --crimson-glow: rgba(212, 59, 84, 0.24);
  
  --ochre: #d4955b;
  --ochre-subtle: rgba(212, 149, 91, 0.12);
  
  --sage: #5aa175;
  --sage-subtle: rgba(90, 161, 117, 0.12);
  
  --border: #29201b;
  --border-focus: #d43b54;
  --border-faint: #1f1815;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subtle architectural grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at 15% 10%, rgba(181, 122, 66, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 85%, rgba(132, 27, 45, 0.03) 0%, transparent 60%);
  z-index: 0;
}

body.dark-mode::before {
  background: 
    radial-gradient(ellipse at 15% 10%, rgba(212, 149, 91, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 85%, rgba(212, 59, 84, 0.03) 0%, transparent 60%);
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* ==========================================================================
   Editorial Masthead & Navigation
   ========================================================================== */
.top-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.top-menu-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-monogram {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--crimson);
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.top-menu-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-menu a.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  color: var(--ink-light);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: var(--transition);
}

.top-menu a.nav-link:hover {
  color: var(--ink);
  background: var(--bg-subtle);
}

.top-menu a.nav-link.active {
  color: var(--crimson);
  background: var(--crimson-subtle);
  border-color: rgba(132, 27, 45, 0.15);
}

body.dark-mode .top-menu a.nav-link.active {
  color: var(--crimson);
  background: var(--crimson-subtle);
  border-color: rgba(212, 59, 84, 0.25);
}

.top-menu-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink-light);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.nav-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
  transition: transform 0.2s ease;
}

.nav-icon-btn:hover {
  color: var(--crimson);
  border-color: var(--crimson);
  transform: translateY(-1px);
}

/* Lang switcher */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle-btn:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

.lang-toggle-btn .lang-badge {
  background: var(--crimson-subtle);
  color: var(--crimson);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   Editorial Hero Section
   ========================================================================== */
header.hero-header {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson) 0%, var(--ochre) 50%, var(--sage) 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ochre);
  margin-bottom: 12px;
  font-weight: 700;
}

.hero-copy h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1.04;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-copy .armenian-script {
  color: var(--crimson);
  font-weight: 500;
  font-style: italic;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--crimson);
  margin: 0 0 14px;
}

.tagline {
  color: var(--ink-light);
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0;
  max-width: 580px;
}

/* ==========================================================================
   Architectural Search Dock
   ========================================================================== */
.search-dock {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.search-field-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 38px 12px 40px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--card);
  color: var(--ink);
  outline: none;
  transition: var(--transition);
}

.search-input-wrapper input:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px var(--crimson-subtle);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: none;
  font-size: 1.1rem;
  line-height: 1;
}

.clear-search-btn:hover {
  color: var(--crimson);
}

.search-input-wrapper.has-value .clear-search-btn {
  display: block;
}

.search-actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.geo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex: 1;
}

.geo-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--crimson);
  fill: none;
  stroke-width: 2;
}

.geo-btn:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  background: var(--crimson-subtle);
  transform: translateY(-1px);
}

/* ==========================================================================
   Map Panel & Canvas
   ========================================================================== */
.map-panel {
  margin-top: 20px;
}

.map-card {
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

#map {
  height: 58vh;
  min-height: 420px;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  z-index: 2;
  contain: layout style paint;
}

/* ==========================================================================
   Editorial Carousel Section
   ========================================================================== */
.carousel-section {
  margin-top: 22px;
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}

.count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.count strong {
  color: var(--crimson);
  font-weight: 700;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.carousel-arrow-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.carousel-arrow-btn:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  background: var(--crimson-subtle);
  transform: translateY(-1px);
}

.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 16px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.carousel-track::-webkit-scrollbar {
  height: 5px;
}

.carousel-track::-webkit-scrollbar-track {
  background: var(--border-faint);
  border-radius: 999px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.carousel-track::-webkit-scrollbar-thumb:hover {
  background: var(--crimson);
}

/* ==========================================================================
   Editorial Place Card
   ========================================================================== */
.carousel-card {
  flex: 0 0 300px;
  width: 300px;
  min-height: 180px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carousel-card:hover {
  transform: translateY(-3px);
  border-color: var(--crimson);
  box-shadow: var(--shadow-md);
}

.carousel-card.active {
  border-color: var(--crimson);
  box-shadow: 0 0 0 2px var(--crimson-glow), var(--shadow-md);
  background: var(--card-hover);
}

.carousel-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--crimson);
}

.carousel-card.grocery::before {
  background: var(--sage);
}

.carousel-card .place-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--crimson-subtle);
  color: var(--crimson);
  white-space: nowrap;
}

.carousel-card.grocery .badge {
  background: var(--sage-subtle);
  color: var(--sage);
}

.carousel-card .city {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ochre);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-card h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.carousel-card address {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-light);
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-card .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-faint);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.carousel-card a {
  font-weight: 700;
  color: var(--crimson);
  text-decoration: none;
  transition: var(--transition);
}

.carousel-card a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Editorial Content & Story Sections (About Us, About You, Shop)
   ========================================================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.info-grid.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: var(--crimson);
  box-shadow: var(--shadow-md);
}

.info-card .card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--crimson-subtle);
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.info-card .card-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.info-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.info-card p {
  margin: 0;
  color: var(--ink-light);
  line-height: 1.7;
  font-size: 0.94rem;
}

.story-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}

.story-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--crimson);
}

.story-section p {
  color: var(--ink-light);
  line-height: 1.85;
  font-size: 1.02rem;
  margin: 0 0 18px;
}

.story-quote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--ochre);
  background: var(--ochre-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ochre);
  line-height: 1.6;
}

/* ==========================================================================
   Tabs, Forms & Dropzone (About You)
   ========================================================================== */
.tabs-header {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  overflow-x: auto;
}

.tab-btn {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--crimson-glow);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.25s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--bg-subtle);
  color: var(--ink);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px var(--crimson-subtle);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  background: var(--crimson);
  color: #ffffff;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--crimson-glow);
  transition: var(--transition);
  margin-top: 10px;
}

.submit-btn:hover {
  background: var(--crimson-dark);
  transform: translateY(-1px);
}

/* Drag & Drop Upload Zone */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-subtle);
  transition: var(--transition);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--crimson);
  background: var(--crimson-subtle);
}

.dropzone-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: var(--crimson);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}

/* ==========================================================================
   Shop Products Grid
   ========================================================================== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--crimson);
  box-shadow: var(--shadow-md);
}

.product-img-wrapper {
  height: 200px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--crimson);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.product-body p {
  margin: 0 0 18px;
  color: var(--ink-light);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-faint);
}

.product-price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.notify-btn {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: var(--crimson-subtle);
  color: var(--crimson);
  border: 1px solid rgba(132, 27, 45, 0.2);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.notify-btn:hover {
  background: var(--crimson);
  color: #fff;
}

/* ==========================================================================
   Editorial Gastronomic Clusters & Micro-Jewel Spots (Grenade & Cobalt)
   ========================================================================== */
.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {
  transition: transform 0.3s ease-out, opacity 0.3s ease-in;
}

.djash-cluster-icon {
  background: transparent !important;
  border: none !important;
}

.djash-cluster {
  border-radius: 50%;
  background: #c1121f;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(193, 18, 31, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.djash-cluster:hover {
  transform: scale(1.14);
  box-shadow: 0 6px 18px rgba(193, 18, 31, 0.6);
  z-index: 10000 !important;
}

/* Small Cluster (< 10 places) */
.djash-cluster.cluster-sm {
  width: 32px;
  height: 32px;
  font-size: 0.82rem;
}

/* Medium Cluster (10 - 49 places) */
.djash-cluster.cluster-md {
  width: 38px;
  height: 38px;
  font-size: 0.92rem;
  border-width: 2.5px;
}

/* Large Cluster (50+ places) */
.djash-cluster.cluster-lg {
  width: 46px;
  height: 46px;
  font-size: 1.05rem;
  border-width: 3px;
  box-shadow: 0 6px 20px rgba(193, 18, 31, 0.65);
}

/* Dark Mode adjustment */
body.dark-mode .djash-cluster {
  background: #e63946;
  border-color: #110e0c;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.6);
}

/* ==========================================================================
   Individual Micro-Jewel Pins (Zoomed in)
   ========================================================================== */
.djash-spot-marker {
  background: transparent !important;
  border: none !important;
}

.djash-spot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #c1121f;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(193, 18, 31, 0.4);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  transform-origin: center center;
}

.djash-spot.grocery {
  background: #1d4ed8;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.4);
}

.djash-spot:hover {
  transform: scale(1.6);
  border-color: #ffd166;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 9999 !important;
}

.djash-spot.active {
  transform: scale(1.8);
  border-color: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.7), 0 4px 14px rgba(0, 0, 0, 0.6);
  z-index: 10000 !important;
}

body.dark-mode .djash-spot {
  background: #e63946;
  border-color: #110e0c;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.6);
}

body.dark-mode .djash-spot.grocery {
  background: #3b82f6;
  border-color: #110e0c;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.6);
}

body.dark-mode .djash-spot:hover,
body.dark-mode .djash-spot.active {
  border-color: #ffd166;
}

/* ==========================================================================
   Leaflet Popups & Tooltips
   ========================================================================== */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 4px !important;
  background: var(--card) !important;
  color: var(--ink) !important;
  border: 1px solid var(--border);
}

.leaflet-popup-content {
  margin: 12px 14px !important;
  font-family: var(--font-sans) !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
}

.leaflet-popup-content b,
.leaflet-popup-content strong {
  font-family: var(--font-serif) !important;
  font-size: 1.1rem !important;
  color: var(--ink) !important;
  display: block;
  margin-bottom: 4px;
}

.leaflet-popup-content a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--crimson);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}

.leaflet-popup-content a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Toasts & Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--ink);
  color: var(--bg-page);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast.success {
  background: var(--sage);
  color: #ffffff;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  margin-top: 48px;
  padding: 28px 0 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
  line-height: 1.7;
  text-align: center;
}

footer a {
  color: var(--crimson);
  text-decoration: none;
  font-weight: 700;
}

/* Recipe Photo Uploader */
.recipe-photo-uploader {
  margin-top: 4px;
}
.photo-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px dashed var(--border);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: all 0.2s ease;
}
.photo-select-btn:hover {
  border-color: var(--crimson);
  background: var(--card);
}
.recipe-photo-preview {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 220px;
  box-shadow: var(--shadow-sm);
}
.recipe-photo-preview img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.remove-photo-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.remove-photo-btn:hover {
  background: var(--crimson);
}

/* ==========================================================================
   Community Feed Section (Latest Places & Heritage Recipes)
   ========================================================================== */
.community-feed-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.community-feed-header {
  margin-bottom: 28px;
}

.community-feed-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--crimson);
  margin: 4px 0 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.community-feed-subtitle {
  font-size: 0.95rem;
  color: var(--ink-light);
  max-width: 720px;
  margin: 0;
  line-height: 1.6;
}

.community-feed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.feed-column {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.feed-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1.5px solid var(--border);
}

.feed-column-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-link-action {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--crimson);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.15s;
}

.feed-link-action:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.feed-cards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  max-height: 580px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.feed-cards-list::-webkit-scrollbar {
  width: 6px;
}

.feed-cards-list::-webkit-scrollbar-track {
  background: transparent;
}

.feed-cards-list::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 4px;
}

.feed-loading {
  padding: 30px 10px;
  text-align: center;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* Feed Card Item */
.feed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-card:hover {
  transform: translateY(-2px);
  border-color: var(--crimson);
  box-shadow: var(--shadow-md);
}

.feed-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.feed-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--crimson);
  margin: 0 0 3px;
}

.feed-card-subtitle {
  font-size: 0.82rem;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-card-notes {
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.5;
  margin: 4px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.feed-btn-locate, .feed-btn-recipe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--crimson);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.feed-btn-locate:hover, .feed-btn-recipe:hover {
  background: var(--crimson);
  color: #ffffff;
  border-color: var(--crimson);
}

/* Recipe Card with Photo */
.recipe-feed-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: center;
}

.recipe-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--card);
}

.recipe-thumb-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #fff0f1;
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 1px solid #ffccd0;
}

body.dark-mode .recipe-thumb-placeholder {
  background: #3c0c14;
  border-color: #881337;
}

/* Recipe Reader Modal */
.recipe-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.recipe-modal.is-open {
  display: flex !important;
}

.recipe-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.recipe-modal-content {
  position: relative;
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.recipe-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 20;
}

.recipe-modal-close:hover {
  background: var(--crimson);
  color: #ffffff;
  border-color: var(--crimson);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  header.hero-header {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .info-grid.grid-3 {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .community-feed-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px 14px 40px;
  }
  .top-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .top-menu-brand {
    justify-content: center;
  }
  .top-menu-links {
    justify-content: center;
  }
  .top-menu-actions {
    justify-content: center;
  }
  header.hero-header {
    padding: 20px;
  }
  #map {
    height: 48vh;
    min-height: 340px;
  }
  .carousel-card {
    flex: 0 0 270px;
    width: 270px;
  }
}
