:root {
  --green: #2d6a4f;
  --green-dark: #1a3a28;
  --green-light: #e8f5ee;
  --green-mid: #4a8a68;
  --text: #1a2a1f;
  --text-muted: #667a6a;
  --text-light: #99b0a4;
  --bg: #f5f7f5;
  --white: #fff;
  --border: #e0eae4;
  --shadow: 0 2px 12px rgba(30,80,50,0.09);
  --nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ─── Navigation ──────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.topnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--green-dark);
  flex-shrink: 0;
}

.nav-logo .material-icons-outlined {
  font-size: 24px;
  color: var(--green);
}

.nav-logo-text strong { display: block; font-size: 1rem; line-height: 1.1; }
.nav-logo-text small { font-size: 0.65rem; color: var(--text-muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 16px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.12s, background 0.12s;
  white-space: nowrap;
}

.nav-link .material-icons-outlined { font-size: 16px; }
.nav-link:hover { color: var(--green); background: var(--green-light); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.nav-icon-btn:hover { background: var(--green-light); color: var(--green); }

.nav-cta {
  padding: 7px 16px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 20px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s;
}

.nav-cta:hover { background: var(--green-dark); }

/* ─── Hero ─────────────────────────────────────── */
.hero {
  background:
    linear-gradient(to bottom, rgba(10,35,20,0.3) 0%, rgba(10,35,20,0.65) 100%),
    url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1400&auto=format&q=80')
    center / cover no-repeat;
  height: 280px;
  display: flex;
  align-items: flex-end;
}

.hero-inner { padding: 28px 36px; color: var(--white); }

.hero h1 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 0 8px;
  line-height: 1.35;
  color: var(--white);
}

.hero-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
  line-height: 1.7;
}

/* ─── App body ──────────────────────────────────── */
.app-body {
  display: flex;
  align-items: flex-start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

/* ─── Sidebar ───────────────────────────────────── */
.sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding-bottom: 32px;
}

.sb-block {
  padding: 16px 16px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.sb-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0 0 10px;
}

.sb-label .material-icons-outlined { font-size: 14px; }

.sb-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.5;
}

/* Search */
.search-row {
  display: flex;
  gap: 6px;
}

.search-row input {
  flex: 1;
  font: inherit;
  font-size: 0.82rem;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  color: var(--text);
  background: var(--bg);
}

.search-row input:focus { border-color: var(--green); }

.search-icon-btn {
  width: 34px;
  height: 34px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-icon-btn .material-icons-outlined { font-size: 18px; }

/* Tags */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-chip {
  padding: 4px 10px;
  font-size: 0.74rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.12s;
  font-family: inherit;
}

.tag-chip:hover { border-color: var(--green); color: var(--green); }

.tag-chip.active {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green);
  font-weight: bold;
}

/* Area */
.area-select {
  width: 100%;
  font: inherit;
  font-size: 0.82rem;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  outline: none;
}

/* Themes */
.theme-block .sb-label { color: var(--green); }

.theme-label .material-icons-outlined { color: var(--green); }

.themes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.theme-btn-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.82rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.12s;
}

.theme-btn-item .material-icons-outlined { font-size: 18px; color: var(--text-light); }

.theme-btn-item:hover { border-color: var(--green); color: var(--text); }

.theme-btn-item.active {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green);
  font-weight: bold;
}

.theme-btn-item.active .material-icons-outlined { color: var(--green); }

.make-plan-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.12s;
}

.make-plan-btn .material-icons-outlined { font-size: 18px; }
.make-plan-btn:hover { background: var(--green-dark); }

.reshuffle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 7px 14px;
  margin-top: 6px;
  background: var(--white);
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.12s;
}

.reshuffle-btn .material-icons-outlined { font-size: 16px; }
.reshuffle-btn:hover { background: var(--green-light); }

/* About */
.about-block { display: flex; gap: 10px; align-items: flex-start; }

.about-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  flex-shrink: 0;
  background:
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=200&q=70')
    center / cover;
}

.about-title {
  font-size: 0.82rem;
  font-weight: bold;
  margin: 0 0 3px;
  color: var(--text);
}

.about-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 0 6px;
  line-height: 1.5;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: bold;
  color: var(--green);
  text-decoration: none;
}

.about-link .material-icons-outlined { font-size: 14px; }

/* ─── Content ───────────────────────────────────── */
.content {
  flex: 1;
  min-width: 0;
  padding: 0 20px 48px;
}

/* Tabs */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
  padding-top: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px 10px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.12s;
}

.tab-btn .material-icons-outlined { font-size: 17px; }

.tab-btn:hover { color: var(--green); }

.tab-btn.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

#count {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 0 0 14px;
}

/* ─── Cards ─────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: default;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30,80,50,0.14);
}

.card-img-wrap {
  position: relative;
  height: 150px;
  background: #d5e8dc;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c8e6d4 0%, #a8d4bb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-placeholder .material-icons-outlined {
  font-size: 40px;
  color: rgba(45,106,79,0.3);
}

.card-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: bold;
  color: var(--white);
  backdrop-filter: blur(4px);
}

.card-body { padding: 12px 14px 14px; }

.card-title {
  font-size: 0.92rem;
  font-weight: bold;
  margin: 0 0 5px;
  color: var(--text);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-light);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-meta .material-icons-outlined { font-size: 13px; }

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.card-links a {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: bold;
  color: var(--green);
  background: var(--green-light);
  border-radius: 999px;
  padding: 3px 10px;
  text-decoration: none;
}

.card-links a:hover { background: #d0eadb; }

.badge-無料 {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: bold;
  color: var(--white);
  background: #c05e22;
  border-radius: 999px;
  padding: 1px 8px;
  margin-bottom: 4px;
}

/* Load more */
.load-more-wrap {
  text-align: center;
  margin-top: 28px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 32px;
  background: var(--white);
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.12s;
}

.load-more-btn:hover { background: var(--green-light); }
.load-more-btn .material-icons-outlined { font-size: 18px; }

.empty {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

/* ─── Plan section (horizontal) ─────────────────── */
.plan-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-top: 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.plan-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.plan-section-label {
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.plan-section-label .material-icons-outlined { font-size: 14px; }

.plan-section-title {
  font-size: 1.05rem;
  font-weight: bold;
  margin: 0 0 3px;
  color: var(--text);
}

.plan-section-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.plan-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: var(--white);
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 8px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.plan-save-btn .material-icons-outlined { font-size: 16px; }

.plan-flow-wrap {
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.plan-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: max-content;
}

.plan-flow-step {
  display: flex;
  align-items: center;
  gap: 0;
}

.plan-flow-card {
  width: 190px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.plan-flow-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.plan-flow-img-ph {
  width: 100%;
  height: 100px;
  background: linear-gradient(135deg, #c8e6d4, #a8d4bb);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-flow-img-ph .material-icons-outlined { font-size: 28px; color: rgba(45,106,79,0.35); }

.plan-flow-body { padding: 9px 10px 10px; }

.plan-flow-time {
  font-size: 0.68rem;
  font-weight: bold;
  color: var(--green);
  margin-bottom: 3px;
}

.plan-flow-title {
  font-size: 0.82rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plan-flow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--text-light);
}

.plan-flow-meta span {
  display: flex;
  align-items: center;
  gap: 2px;
}

.plan-flow-meta .material-icons-outlined { font-size: 12px; }

.plan-flow-arrow {
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  padding-top: 50px;
}

.plan-flow-arrow .material-icons-outlined { font-size: 20px; }

.plan-section-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.plan-section-footer span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.plan-section-footer .material-icons-outlined { font-size: 15px; color: var(--green); }

/* ─── Review overlay ────────────────────────────── */
.reviews-overlay {
  position: fixed;
  z-index: 9999;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(30,80,50,0.18);
  border: 1px solid var(--border);
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
  scrollbar-width: thin;
}

.reviews-overlay.visible { opacity: 1; pointer-events: auto; }

.rv-header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: bold;
  color: var(--green);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.rv-header .material-icons-outlined { font-size: 16px; }
.rv-title { margin-right: 3px; }
.rv-overall { font-size: 0.95rem; color: var(--text); font-weight: bold; }
.stars-filled { color: #e8a020; }
.stars-empty { color: #ddd; font-size: 0.9em; }
.rv-overall-stars { font-size: 0.75rem; }
.rv-total { font-size: 0.72rem; color: var(--text-light); }

.rv-list { display: flex; flex-direction: column; gap: 10px; }

.rv-item { border-top: 1px solid var(--bg); padding-top: 10px; }

.rv-meta { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 5px; }

.rv-avatar-fallback {
  width: 26px !important; height: 26px !important;
  font-size: 18px !important;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.rv-name { font-size: 0.76rem; font-weight: bold; color: var(--text); line-height: 1.3; }
.rv-time { font-size: 0.68rem; color: var(--text-light); }
.rv-score { margin-left: auto; font-size: 0.7rem; white-space: nowrap; }

.rv-text {
  font-size: 0.77rem; color: var(--text-muted); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.rv-loading, .rv-error {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-light); padding: 4px 0;
}

.rv-loading .material-icons-outlined,
.rv-error .material-icons-outlined { font-size: 16px; }

@keyframes rv-spin { to { transform: rotate(360deg); } }
.rv-spin { display: inline-block; animation: rv-spin 0.85s linear infinite; }

/* ─── Footer ────────────────────────────────────── */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  margin-top: 48px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--white);
}

.footer-logo .material-icons-outlined { font-size: 28px; color: #6ab88a; }
.footer-logo strong { display: block; font-size: 1rem; }
.footer-logo small { font-size: 0.65rem; color: rgba(255,255,255,0.55); }

.footer-brand p {
  font-size: 0.78rem;
  line-height: 1.65;
  margin: 0 0 14px;
}

.footer-sns {
  display: flex;
  gap: 10px;
}

.footer-sns a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: all 0.12s;
}

.footer-sns a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.footer-sns .material-icons-outlined { font-size: 18px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-col h5 {
  font-size: 0.8rem;
  color: var(--white);
  margin: 0 0 10px;
  font-weight: bold;
}

.footer-col a {
  display: block;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 5px;
  transition: color 0.12s;
}

.footer-col a:hover { color: var(--white); }

.footer-contact p {
  font-size: 0.74rem;
  line-height: 1.7;
  margin: 0 0 10px;
}

.contact-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: var(--green) !important;
  color: var(--white) !important;
  border-radius: 8px;
  font-size: 0.76rem !important;
  font-weight: bold;
  transition: background 0.12s !important;
}

.contact-btn:hover { background: var(--green-mid) !important; }
.contact-btn .material-icons-outlined { font-size: 15px; }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}

.footer-bottom p { margin: 0; }

.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--white); }

/* ─── Embedded map section ───────────────────────── */
.emap-section {
  display: flex;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  height: 320px;
}

.emap-left {
  width: 220px;
  flex-shrink: 0;
  padding: 20px 18px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--white);
}

.emap-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--text);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.emap-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
}

.emap-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.emap-legend {
  list-style: none;
  margin: 0 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.emap-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.73rem;
  color: var(--text-muted);
}

.emap-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.emap-expand-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  margin-top: 14px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.12s;
  width: 100%;
  justify-content: center;
}

.emap-expand-btn .material-icons-outlined { font-size: 15px; }
.emap-expand-btn:hover { background: var(--green-dark); }

.emap-right { flex: 1; position: relative; overflow: hidden; }

#leafletMap { width: 100%; height: 100%; }

/* ─── Custom pin markers ─────────────────────────── */
.map-pin { position: relative; width: 30px; height: 38px; }

.map-pin-head {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  position: absolute;
  top: 0;
  left: 1px;
  border: 2px solid rgba(255,255,255,0.4);
}

.map-pin-icon {
  transform: rotate(45deg);
  color: #fff;
  font-size: 13px !important;
  line-height: 1 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(30,80,50,0.15) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: 220px !important;
}

.leaflet-popup-tip { background: var(--white) !important; }

.map-popup-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.map-popup-img-ph {
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, #c8e6d4, #a8d4bb);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-popup-img-ph .material-icons-outlined { font-size: 32px; color: rgba(45,106,79,0.35); }

.map-popup-body { padding: 10px 12px 12px; }

.map-popup-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 5px;
}

.map-popup-title {
  font-size: 0.88rem;
  font-weight: bold;
  margin: 0 0 5px;
  color: var(--text);
  line-height: 1.3;
}

.map-popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.map-popup-meta span { display: flex; align-items: center; gap: 2px; }
.map-popup-meta .material-icons-outlined { font-size: 12px; }

.map-popup-link {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: bold;
  color: var(--green);
  background: var(--green-light);
  border-radius: 999px;
  padding: 3px 10px;
  text-decoration: none;
}

.map-popup-link:hover { background: #d0eadb; }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
  .app-body { flex-direction: column; }
  .sidebar { width: 100%; position: relative; top: auto; max-height: none; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.45rem; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
