/* ==================== CSS Variables ==================== */
:root {
  --color-primary: #a61759;
  --color-primary-dark: #8a1249;
  --color-secondary: #19767b;
  --color-secondary-light: #94c120;
  --color-accent: #feca36;
  --color-bg: #ffffff;
  --color-card: #ffffff;
  --color-border: #e4ddd0;
  --color-text-muted: #7a6e5f;
  --navbar-height: 60px;
  --sidebar-width: 420px;

}

/* ==================== Base ==================== */
body {
  background-color: var(--color-bg);
  color: #1a1a1a;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
}


main, nav {
  position: relative;
  z-index: 1;
}


.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}
.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
  border-radius: 50px;
}
.btn-outline-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.btn-outline-secondary {
  border-radius: 50px;
}
.btn-outline-light {
  border-radius: 50px;
}
.btn-success, .btn-danger {
  border-radius: 50px;
}

/* Cards */
.card {
  border-radius: 16px !important;
  border-color: var(--color-border) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.card-header {
  border-radius: 16px 16px 0 0 !important;
  background-color: #fff8ee !important;
  border-bottom-color: var(--color-border) !important;
  font-weight: 700;
}
.card-header-brand {
  background-color: var(--color-secondary) !important;
  color: #fff !important;
  border-bottom-color: var(--color-secondary) !important;
}
.card-header-brand .text-muted {
  color: rgba(255,255,255,0.7) !important;
}
.card-footer {
  border-radius: 0 0 16px 16px !important;
  border-top-color: var(--color-border) !important;
}

/* ==================== Index layout ==================== */
.index-layout {
  display: flex;
  height: calc(100vh - var(--navbar-height));
}

.restaurant-list-panel {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  background: #fffdf7;
  border-right: 2px solid var(--color-border);
  overflow: hidden;
}

.list-header {
  background: var(--color-card);
  flex-shrink: 0;
}

.filter-panel {
  border-bottom: 3px solid var(--color-secondary) !important;
}

.list-scroll {
  overflow-y: auto;
  flex: 1;
}

.map-panel {
  flex: 1;
  position: relative;
}

#mainMap {
  width: 100%;
  height: 100%;
}

/* ==================== View Tabs ==================== */
.view-tabs {
  display: flex;
  background: #fff;
}
.view-tab {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.view-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.view-tab:hover:not(.active) {
  color: #333;
}

/* ==================== Dish Cards ==================== */
.list-view .dish-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
  cursor: pointer;
}
.list-view .dish-card:hover { background: #f0f7f5; }

.dish-card-img-wrap {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f0ea;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dish-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dish-card-img-placeholder {
  font-size: 1.4rem;
  color: #ccc;
}
.dish-card-body { flex: 1; min-width: 0; }
.dish-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dish-card-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-right: 8px;
}
.dish-card-restaurant {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.dish-card-restaurant a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}
.dish-card-restaurant a:hover { text-decoration: underline; }

/* ==================== Restaurant Cards ==================== */
/* List view */
.list-view .restaurant-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-bottom: 1px solid var(--color-border);
  padding: 14px;
  gap: 14px;
  cursor: default;
  transition: background 0.15s;
}
.list-view .restaurant-card:hover {
  background: #fafafa;
}

.list-view .card-logo-wrap {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.list-view .card-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}
.list-view .card-logo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #bbb;
}
.list-view .card-body-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Grid view */
.grid-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.grid-view .restaurant-card {
  flex-direction: column;
  padding: 14px;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  transition: background 0.15s;
}
.grid-view .restaurant-card:hover {
  background: #fafafa;
}
.grid-view .card-logo-wrap {
  width: 100%;
  height: 100px;
  margin-bottom: 10px;
}
.grid-view .card-logo {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
.grid-view .card-logo-placeholder {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #bbb;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
.card-location {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.card-desc {
  font-size: 0.78rem;
  color: #555;
  line-height: 1.5;
}

/* Cuisine badge */
.cuisine-badge {
  background-color: var(--color-secondary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 50px;
}

/* ==================== Form Sections ==================== */
.form-section {
  background: var(--color-card);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--color-border);
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

/* Logo preview */
.logo-preview-wrap {
  display: inline-block;
}
.logo-preview-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--color-border);
}
.logo-preview-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 2px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
}

/* Mini map */
.mini-map-container {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
#miniMap {
  height: 220px;
  width: 100%;
}

/* ==================== Detail page ==================== */
.detail-logo-wrap {
  width: 120px;
  height: 120px;
}
.detail-logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid var(--color-border);
}
.detail-logo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #bbb;
  border: 2px solid var(--color-border);
}

.letter-spacing {
  letter-spacing: 0.08em;
}

/* ==================== Leaflet popup tweaks ==================== */
.leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.popup-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.popup-cuisine {
  font-size: 0.75rem;
  color: var(--color-secondary);
  margin-bottom: 6px;
}

/* ==================== Section label ==================== */
.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* ==================== Photo Gallery ==================== */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.photo-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 1;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  display: block;
}

.gallery-img:hover {
  transform: scale(1.04);
  filter: brightness(0.9);
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-delete-form {
  position: absolute;
  top: 5px;
  right: 5px;
  opacity: 0;
  transition: opacity 0.15s;
}

.photo-item:hover .photo-delete-form {
  opacity: 1;
}

.photo-delete-btn {
  background: rgba(220, 53, 69, 0.85);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.photo-delete-btn:hover {
  background: rgba(220, 53, 69, 1);
}


/* ==================== About page ==================== */
/* Montserrat for all headings, Open Sans for body */

.about-hero-new,
.about-hero-new h1,
.about-why-num,
.about-why-closing,
.about-how-title,
.about-un-title,
.about-cta-title {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
}

/* Hero */
.about-hero-new {
  background: #fff;
  color: #1a1a1a;
  padding: 32px 0 16px;
  min-height: 300px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.about-date-pill {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 50px;
  margin-bottom: 1.4rem;
}
.about-hero-title {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.about-hero-sub {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  color: #666;
  margin: 0 auto;
  max-width: 460px;
}

/* Veggie hero illustrations */
.about-hero-new {
  position: relative;
  overflow: hidden;
}
.about-hero-veggies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.vh-img {
  position: absolute;
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.12));
}

/* Dense corner clusters + columns down sides, no bottom row */

/* top-left cluster (8) */
.vh-01 { top:  0%; left:  0%;  transform:rotate(-20deg); width:105px; height:105px; }
.vh-02 { top:  1%; left: 13%;  transform:rotate( 16deg); width: 85px; height: 85px; }
.vh-03 { top:  2%; left: 24%;  transform:rotate(-28deg); width: 75px; height: 75px; }
.vh-04 { top: 11%; left:  2%;  transform:rotate( 10deg); width: 90px; height: 90px; }
.vh-05 { top:  9%; left: 15%;  transform:rotate(-14deg); width: 80px; height: 80px; }
.vh-06 { top: 19%; left:  5%;  transform:rotate( 24deg); width: 75px; height: 75px; }
.vh-07 { top: 17%; left: 19%;  transform:rotate( -8deg); width: 70px; height: 70px; }
.vh-08 { top: 24%; left: 11%;  transform:rotate( 18deg); width: 65px; height: 65px; }

/* top-right cluster (6) */
.vh-09 { top:  0%; right:  0%;  transform:rotate( 20deg); width:100px; height:100px; }
.vh-10 { top:  1%; right: 13%;  transform:rotate(-18deg); width: 85px; height: 85px; }
.vh-11 { top:  0%; right: 24%;  transform:rotate( 12deg); width: 75px; height: 75px; }
.vh-12 { top: 10%; right:  2%;  transform:rotate(-24deg); width: 88px; height: 88px; }
.vh-13 { top:  9%; right: 17%;  transform:rotate( 14deg); width: 78px; height: 78px; }
.vh-14 { top: 19%; right:  6%;  transform:rotate( -9deg); width: 72px; height: 72px; }

/* left side (5), ends ~77% */
.vh-15 { top: 32%; left: -1%;  transform:rotate(-15deg); width: 88px; height: 88px; }
.vh-16 { top: 44%; left:  1%;  transform:rotate( 22deg); width: 82px; height: 82px; }
.vh-17 { top: 56%; left: -1%;  transform:rotate(-20deg); width: 88px; height: 88px; }
.vh-18 { top: 67%; left:  0%;  transform:rotate( 12deg); width: 80px; height: 80px; }
.vh-19 { top: 77%; left:  1%;  transform:rotate(-18deg); width: 78px; height: 78px; }

/* right side (7), ends ~79% */
.vh-20 { top: 29%; right:  0%;  transform:rotate( 18deg); width: 88px; height: 88px; }
.vh-21 { top: 39%; right:  1%;  transform:rotate(-22deg); width: 90px; height: 90px; }
.vh-22 { top: 50%; right: -1%;  transform:rotate( 15deg); width: 85px; height: 85px; }
.vh-23 { top: 60%; right:  2%;  transform:rotate(-30deg); width: 82px; height: 82px; }
.vh-24 { top: 70%; right: -1%;  transform:rotate( 20deg); width: 80px; height: 80px; }
.vh-25 { top: 79%; right:  1%;  transform:rotate(-16deg); width: 85px; height: 85px; }
.vh-26 { top: 88%; right: -1%;  transform:rotate( 28deg); width: 78px; height: 78px; }


@media (max-width: 768px) {
  .vh-img { width: 55px !important; height: 55px !important; }
  .vh-03,.vh-06,.vh-07,.vh-08,.vh-11,.vh-13,.vh-14,
  .vh-16,.vh-18,.vh-21,.vh-23,.vh-25,.vh-26 { display: none; }
}

/* ---- About page layout ---- */
.about-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}
.about-intro-row {
  padding: 28px 20px;
}
.about-section-row {
  padding: 28px 20px;
}

/* Intro */
.about-intro-icon {
  font-size: 2rem;
  color: var(--color-secondary);
  display: block;
  margin-bottom: 14px;
}
.about-intro-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
  line-height: 1.7;
  margin: 0;
}

/* Section label */
.about-section-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.about-section-label.light { color: #fff; }

.about-body-text {
  font-family: 'Open Sans', sans-serif;
  color: #555;
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

/* Campaign criteria cards */
.about-criterion-card {
  background: #f0f7f5;
  border-radius: 14px;
  padding: 24px 20px;
  height: 100%;
  text-align: center;
}
.about-criterion-icon {
  font-size: 2rem;
  color: var(--color-secondary);
  display: block;
  margin-bottom: 12px;
}
.about-criterion-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1a;
  margin: 0 0 6px;
}
.about-criterion-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
}
.about-campaign-note {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-style: italic;
}
.about-closing-line {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-secondary);
}

/* Icon lists (Why + Steps) */
.about-icon-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.about-icon-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.5;
}
.about-bullet-icon {
  font-size: 1.4rem;
  color: var(--color-secondary);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.about-bullet-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  line-height: 1;
}
.about-why-closing {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-secondary);
  margin: 0;
}

/* How it works — steps */
.about-how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 16px;
}
.about-how-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
}
.about-how-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.about-how-step-icon {
  font-size: 1.6rem;
  color: var(--color-secondary);
  margin-bottom: 10px;
}
.about-how-step-title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.about-how-step-body {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
}
.about-how-connector {
  color: #ccc;
  font-size: 1.2rem;
  padding-top: 52px;
  flex-shrink: 0;
}
/* legacy */
.about-how-col-icon { display: none; }
.about-how-col-title { display: none; }
.about-how-item {
  font-family: 'Open Sans', sans-serif;
  color: #555;
  font-size: 0.95rem;
  line-height: 2.1;
}

/* UN Day */
.about-un-simple {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: #f0f7f5;
  border-radius: 14px;
  padding: 28px;
}
.about-un-badge {
  background: var(--color-secondary);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  min-width: 60px;
  flex-shrink: 0;
}
.about-un-badge span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-top: 4px;
  opacity: 0.8;
}
.about-un-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

/* Organizers — the one green block */
.about-org-strip { background: var(--color-secondary); }

/* CTA */
.about-cta-new {
  padding: 40px 20px;
  background: #fff;
}
.about-cta-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.about-cta-sub {
  font-family: 'Open Sans', sans-serif;
  color: #666;
  font-size: 1rem;
  margin-bottom: 0;
}

/* ==================== Menu tag badges ==================== */
.menu-tag-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 50px;
  white-space: nowrap;
  margin-right: 3px;
}
.menu-tag-vegetarian      { background: #d4edda; color: #155724; }
.menu-tag-vegan           { background: #b8dfc6; color: #0f5132; }
.menu-tag-bio             { background: #ffeeba; color: #856404; }
.menu-tag-hazai-hal       { background: #cce5ff; color: #004085; }
.menu-tag-hazai-superfood { background: #e2d9f3; color: #4a235a; }
.menu-tag-hulladekment    { background: #d1ecf1; color: #0c5460; }

.course-appetizer { background: #fde8d8; color: #7a3010; }
.course-soup      { background: #fff3cd; color: #7a5700; }
.course-main      { background: #dce8f8; color: #1a3a6b; }
.course-salad     { background: #e0f5e0; color: #1a5c1a; }

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
  body::before,
  body::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .index-layout {
    flex-direction: column;
    height: auto;
  }
  .restaurant-list-panel {
    width: 100%;
    min-width: unset;
    max-height: 60vh;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .map-panel {
    height: 50vh;
    min-height: 300px;
  }
  #mainMap {
    height: 100%;
  }
  .grid-view {
    grid-template-columns: 1fr;
  }
}
