:root {
  --bg: #fdf8f1;
  --surface: #ffffff;
  --surface-2: #fff4e6;
  --ink: #3b2a1a;
  --muted: #7a6552;
  --line: #efdcc4;
  --saffron: #e8772e;
  --saffron-dark: #c85d17;
  --leaf: #4f8a3c;
  --leaf-dark: #3c6d2c;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(120, 72, 20, 0.10);
  --font: "Noto Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

.institutes-page {
  font-family: var(--font);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.institutes-stage {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.institutes-title {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  padding: 6px 12px;
  text-align: center;
  flex: none;
}
.institutes-title h1 {
  margin: 0;
  font-size: 1.15rem;
  color: #c62828;
  font-weight: 800;
}
.institutes-title p {
  margin: 2px auto 0;
  max-width: 720px;
  color: #666;
  font-size: .8rem;
}
@media (max-height: 860px) {
  .institutes-title p { display: none; }
}

.muted { color: var(--muted); }
.hi { font-family: "Noto Sans Devanagari", var(--font); font-weight: 400; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(135deg, #fbe3c6 0%, #fdf1e2 55%, #f3f0dc 100%);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-header .btn { flex-shrink: 0; }

.brand { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }

.brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--saffron);
  color: #fff;
  display: grid; place-items: center;
  font-size: 20px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.brand h1 { font-size: 1.1rem; margin: 0; }
.brand h1 .hi { color: var(--saffron-dark); }
.brand .sub { margin: 2px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }

/* ---------- Buttons (map only — site header/footer keep their own .btn) ---------- */
.institutes-page .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 8px 14px;
  font: inherit; font-size: .88rem; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.institutes-page .btn-primary,
.leaflet-container a.btn-primary,
.leaflet-container a.btn-primary:hover,
.leaflet-container a.btn-primary:visited { background: var(--saffron); color: #fff; }
.institutes-page .btn-primary:hover,
.leaflet-container a.btn-primary:hover { background: var(--saffron-dark); color: #fff; }
.institutes-page .btn-verify,
.leaflet-container a.btn-verify,
.leaflet-container a.btn-verify:hover,
.leaflet-container a.btn-verify:visited { background: var(--leaf); color: #fff; }
.institutes-page .btn-verify:hover,
.leaflet-container a.btn-verify:hover { background: var(--leaf-dark); color: #fff; }
.institutes-page .btn-outline,
.leaflet-container a.btn-outline,
.leaflet-container a.btn-outline:hover,
.leaflet-container a.btn-outline:visited { background: #fff; color: var(--saffron-dark); border-color: var(--saffron); }
.institutes-page .btn-outline:hover,
.leaflet-container a.btn-outline:hover { background: var(--surface-2); color: var(--saffron-dark); }
.institutes-page .btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.institutes-page .btn-ghost:hover { border-color: var(--saffron); color: var(--saffron-dark); }
.institutes-page .btn-sm { padding: 6px 10px; font-size: .8rem; }
.institutes-page .btn:focus-visible, .institutes-page select:focus-visible, .institutes-page input:focus-visible, .icon-btn:focus-visible {
  outline: 3px solid rgba(232, 119, 46, .45); outline-offset: 2px;
}

.icon-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  width: 34px; height: 34px; cursor: pointer; font-size: 1rem; color: var(--muted);
  flex-shrink: 0;
}

/* ---------- Filters ---------- */
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  align-items: end;
  padding: 12px 20px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.field select, .field input {
  font: inherit; font-size: .9rem;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--ink);
  min-width: 0;
}
.field select:disabled { opacity: .6; }
/* ---------- Layout ---------- */
.layout { display: flex; flex-direction: column; flex: 1; min-height: 0; position: relative; }
.institutes-page .map { width: 100%; flex: 1 1 auto; min-height: 160px; background: #e8e2d6; }
.institutes-page .filters {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 500;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(60, 40, 20, .16);
  padding: 8px 10px;
  max-width: calc(100% - 16px) !important;
  overflow: visible;
}
.institutes-page .field { gap: 0; }
.institutes-page .field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.load-error {
  margin: 0;
  padding: 10px 16px;
  background: #fff4e6;
  color: #6b5310;
  border-top: 1px solid var(--line);
}
.load-error[hidden] { display: none; }

.leaflet-container:has(.leaflet-popup) .leaflet-tooltip.city-tip { display: none; }
.centre-popup .leaflet-popup-content-wrapper {
  border-radius: 16px;
  padding: 0;
  border-top: 3px solid var(--saffron);
  box-shadow: 0 10px 28px rgba(60, 36, 12, .18);
  overflow: hidden;
}
.centre-popup .leaflet-popup-content {
  margin: 14px 16px 14px;
  width: min(420px, calc(100vw - 56px)) !important;
}
.centre-popup .leaflet-popup-content p { margin: 0; }
.map-detail { display: flex; gap: 12px; align-items: flex-start; }
.map-detail-photo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
  background: #f3ece3;
}
.map-detail-body { min-width: 0; flex: 1; }
.map-detail-body h3 {
  margin: 0 0 8px;
  padding-right: 16px;
  color: #3b2a1a !important;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}
.map-detail .centre-meta { margin-bottom: 8px; }
.map-detail .centre-addr {
  margin: 0;
  font-size: .8rem;
  line-height: 1.45;
  color: #6b5746;
}
.map-detail .centre-actions { margin-top: 12px; }
.map-detail .centre-actions .btn { border-radius: 8px; }
.map-detail .note { margin: 8px 0 0; }
.leaflet-control-attribution {
  max-width: min(520px, 62%);
  font-size: 10px;
  line-height: 1.3;
  white-space: normal;
}

/* ---------- Centre cards ---------- */
.centre-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(120, 72, 20, .05);
}
.centre-card h3 { margin: 0 0 4px; font-size: .95rem; line-height: 1.3; }
.centre-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip {
  font-size: .72rem; font-weight: 600;
  background: var(--surface-2); color: var(--saffron-dark);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 1px 8px;
}
.centre-addr { margin: 0 0 8px; font-size: .84rem; color: #5a4633; }
.centre-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.disclaimer { margin: 8px 0 0; font-size: .72rem; color: var(--muted); font-style: italic; }

.note {
  background: #fff8e1; border: 1px solid #f3d98b; color: #6b5310;
  border-radius: 8px; padding: 8px 10px; font-size: .8rem; margin-bottom: 10px;
}

/* ---------- Map markers ---------- */
.centre-pin {
  line-height: 0;
  transform-origin: 50% 100%;
  transition: transform .15s;
  filter: drop-shadow(0 2px 2px rgba(80, 40, 0, .35));
}
.centre-pin .pin-body { fill: var(--saffron); stroke: #fff; stroke-width: 1.5; }
.centre-pin.approx .pin-body { fill: #9c8266; }
.centre-pin.active .pin-body { fill: var(--leaf); }
.centre-pin.active { transform: scale(1.2); }
.centre-pin.focus { transform: scale(1.45); }
.centre-pin.focus .pin-body { fill: #2f5a22; }
.centre-card.focus { border-color: var(--leaf); box-shadow: 0 0 0 2px rgba(79, 138, 60, .35); }
.leaflet-marker-icon:hover .centre-pin { transform: scale(1.15); }

/* ---------- Heritage tribute ---------- */
.heritage-overlay {
  position: absolute; inset: 0;
  z-index: 450;
  pointer-events: none;
  perspective: 700px;
}
.tribute {
  position: absolute; margin: 0;
  padding: 4px;
  background: linear-gradient(145deg, #fffaf2, #f1e2cc);
  border-radius: 6px;
  box-shadow:
    0 1px 0 #d9c3a3,
    0 2px 0 #cdb391,
    0 3px 0 #bfa27e,
    0 10px 18px rgba(60, 30, 0, .38);
  transform-style: preserve-3d;
}
.tribute.tilt-l { transform: rotateY(16deg) rotateX(8deg) rotateZ(-2deg); }
.tribute.tilt-r { transform: rotateY(-16deg) rotateX(8deg) rotateZ(2deg); }
.tribute img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 3px;
}
.tribute::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: 3px;
  background: linear-gradient(125deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 45%);
}
.leaflet-tooltip.city-tip { font-family: var(--font); font-weight: 600; }
.leaflet-tooltip.area-tag {
  background: rgba(255, 250, 242, .94);
  border: 1px solid #e8772e;
  color: #7a3b12;
  font: 700 11px/1.3 "Noto Sans Devanagari", var(--font);
  padding: 1px 6px;
  box-shadow: none;
}
.leaflet-tooltip.area-tag::before { display: none; }

.legend {
  background: rgba(255, 255, 255, .95);
  border-radius: 8px; padding: 8px 10px;
  font-size: .75rem; line-height: 1.6;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.legend i {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  vertical-align: -2px; margin-right: 5px; border: 1px solid #fff;
}

/* ---------- Open a centre ---------- */
.open-cta {
  position: absolute;
  z-index: 650;
  top: 64px;
  right: 10px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
}
.open-cta-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.open-cta-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, .2);
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .4);
  position: relative;
}
.open-cta-mark::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 8px;
  border: 2px solid rgba(232, 119, 46, .85);
  animation: cta-ring 1.8s ease-out infinite;
  pointer-events: none;
}
.open-cta-icon {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--saffron);
}
.open-cta-icon path + path { stroke: #fff; }
.open-cta-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  background: #fff;
  border: 2px solid rgba(232, 119, 46, .7);
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .28);
  padding: 5px 9px 6px;
  text-align: right;
  line-height: 1.15;
}
.open-cta-copy strong {
  font-size: .78rem;
  font-weight: 800;
  color: var(--saffron-dark);
  white-space: nowrap;
}
.open-cta-copy em {
  font-style: normal;
  font-size: .68rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.open-cta-btn:hover .open-cta-mark { background: #fff4e6; }
.open-cta-btn:focus-visible { outline: 3px solid rgba(232, 119, 46, .45); outline-offset: 3px; }
@keyframes cta-ring {
  0% { transform: scale(.92); opacity: .9; }
  100% { transform: scale(1.18); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .open-cta-mark::after { animation: none; opacity: .85; }
}
.open-cta.is-hidden,
.open-hint.is-hidden,
.legend.is-hidden { visibility: hidden; }
.open-cta-btn:disabled { opacity: .6; cursor: wait; }
.open-cta-btn.is-armed .open-cta-mark {
  background: #1d4e89;
  border-color: #1d4e89;
}
.open-cta-btn.is-armed .open-cta-mark::after { animation: none; opacity: 0; }
.open-cta-btn.is-armed .open-cta-icon { color: #fff; }
.open-cta-btn.is-armed .open-cta-icon path + path { stroke: #1d4e89; }
.open-cta-btn.is-armed .open-cta-copy { border-color: #1d4e89; }
.open-cta-btn.is-armed .open-cta-copy strong { color: #1d4e89; }
.open-cta-cancel[hidden],
.open-hint[hidden] { display: none !important; }
.institutes-page .leaflet-bottom { bottom: var(--filter-lift, 86px); }
.open-cta-cancel {
  background: #fff;
  color: var(--ink);
  border: 2px solid rgba(0, 0, 0, .2);
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .28);
  padding: 8px 10px;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.open-hint {
  position: absolute;
  z-index: 650;
  top: 108px;
  right: 10px;
  margin: 0;
  max-width: min(320px, calc(100% - 120px));
  background: #fff8e8;
  color: #6b5310;
  border: 1px solid #f3d98b;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: .78rem;
  text-align: right;
  box-shadow: var(--shadow);
}
.leaflet-top.leaflet-left .map-reset { margin-top: 6px; clear: both; }
.leaflet-container a.map-reset-link {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 30px;
  max-width: 30px;
  margin: 0;
  padding: 0;
  line-height: 0;
  color: #333;
  background: #fff;
}
.leaflet-container a.map-reset-link svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.leaflet-container a.map-reset-link:hover { background: #f4f4f4; color: #111; }
#map.dropping,
#map.dropping .leaflet-interactive { cursor: crosshair !important; }
#map.pin-cursor,
#map.pin-cursor .leaflet-interactive { cursor: none !important; }
.open-confirm-yes:disabled { opacity: .45; cursor: not-allowed; }

.drop-pin .pin-body { fill: #e2b100; stroke: #fff; stroke-width: 1.5; }
.drop-pin.draft { animation: pin-drop .35s ease-out; filter: drop-shadow(0 3px 2px rgba(80, 40, 0, .35)); }
.drop-pin.pending .pin-body { fill: #8a8178; }
.drop-pin.pending { filter: drop-shadow(0 2px 2px rgba(40, 30, 20, .35)); }
@keyframes pin-drop {
  from { transform: translateY(-32px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.open-popup .leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; box-shadow: var(--shadow); }
.open-popup .leaflet-popup-content { margin: 14px 16px; width: min(380px, calc(100vw - 56px)) !important; }
.open-form, .open-thanks { color: var(--ink); }
.open-form h3, .open-thanks h3 { margin: 0 0 8px; font-size: 1.05rem; }
.open-kicker {
  margin: 0 0 2px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--saffron-dark);
}
.open-form .req { color: #c62828; font-weight: 700; }
.open-welcome {
  margin: 0 28px 10px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff4e6;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.35;
}
.open-welcome .open-brand {
  color: var(--saffron-dark);
  font-weight: 800;
}
.open-form .open-lead { margin: 0 28px 8px 0; font-size: .78rem; color: var(--muted); }
.open-form label.open-country {
  display: flex;
  align-items: center;
  gap: 10px;
}
.open-country-main { flex: 1; min-width: 0; }
.open-country .open-place-actions {
  flex: none;
  align-self: flex-end;
  margin: 0 0 1px;
  gap: 6px;
}
.open-place-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 44px;
  height: 44px;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 3px 0 2px !important;
  border: 1px solid var(--saffron);
  border-radius: 10px;
  background: #fff;
  color: var(--saffron-dark);
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.open-place-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.open-place-icon:hover { background: #fff4e6; }
.open-country-map {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--saffron);
  background: #e7d3b5;
  box-shadow: 0 1px 4px rgba(80, 40, 0, .18);
}
.open-country-map[hidden] { display: none !important; }
.open-country-map.is-loading {
  background: linear-gradient(135deg, #fff4e6, #f3e2c8);
}
.open-country-map.leaflet-container {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font: inherit;
}
.open-country-map .leaflet-control-container { display: none; }
.open-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  align-items: start;
}
.open-grid .span-2 { grid-column: 1 / -1; }
.open-form label {
  display: block;
  margin: 0;
  min-width: 0;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}
.open-form input,
.open-form select,
.open-form textarea {
  display: block;
  width: 100%;
  margin-top: 3px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}
.open-form textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.35;
}
.open-form input:focus,
.open-form select:focus,
.open-form textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232, 119, 46, .18);
  background: #fff;
}
.open-form select:disabled { opacity: .6; }
.open-form input[readonly] { background: #f6f1e8; }
.open-form .open-submit { width: 100%; margin-top: 12px; }
.open-form .open-submit:disabled { opacity: .55; cursor: not-allowed; }
.open-sheet {
  position: absolute;
  z-index: 720;
  left: 52px;
  top: 64px;
  width: min(460px, calc(100% - 64px));
  max-width: calc(100% - 16px) !important;
  max-height: calc(100% - var(--filter-lift, 86px) - 78px);
  overflow: auto;
  box-sizing: border-box;
  background: #fffdf9;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 14px 14px;
}
.open-sheet[hidden] { display: none !important; }
.open-sheet-close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.open-sheet h3 {
  margin: 0 28px 4px 0;
  color: var(--ink);
  text-align: left;
  font-size: .95rem;
  line-height: 1.25;
}
.open-sheet .open-form { padding-right: 0; }
.open-sheet label { margin-top: 0; font-size: .72rem; line-height: 1.25; }
.open-sheet input,
.open-sheet textarea { margin-top: 2px; padding: 7px 8px; }
.open-sheet .open-grid { gap: 8px; }
.open-sheet .open-picking { display: none; }
.open-sheet.is-picking {
  top: auto;
  bottom: calc(var(--filter-lift, 86px) + 8px);
  width: min(320px, calc(100% - 16px));
  max-height: none;
  overflow: visible;
  padding: 8px 36px 8px 12px;
}
.open-sheet.is-picking .open-form { display: none; }
.open-sheet.is-picking .open-picking { display: flex; align-items: center; gap: 8px; }
.open-picking p { margin: 0; flex: 1; font-size: .84rem; }
.open-pick-back {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}
.open-place-actions,
.open-confirm-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 2px;
}
.open-sheet .open-place-actions .btn,
.open-confirm-actions .open-mini {
  flex: 1 1 0;
  min-width: 0;
  width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  min-height: 36px !important;
  padding: 6px 8px !important;
  font-size: 14px !important;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.open-confirm { display: none; }
.open-sheet.is-confirm .open-confirm { display: block; }
.open-sheet.is-confirm .open-form,
.open-sheet.is-confirm .open-picking { display: none !important; }
.open-sheet.is-confirm {
  top: auto;
  left: 8px;
  right: auto;
  bottom: calc(var(--filter-lift, 86px) + 8px);
  width: fit-content;
  max-width: min(640px, calc(100% - 16px)) !important;
  max-height: none;
  overflow: visible;
  padding: 10px 12px 12px;
}
.open-confirm p { margin: 0 28px 8px 0; font-size: .84rem; }
.open-place-line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0 44px 8px 0;
}
.open-place-line .open-confirm-yes {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none !important;
  min-width: 64px;
  height: 40px;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  font-size: 15px !important;
  line-height: 40px;
}
.open-place-line[hidden] { display: none !important; }
.open-place-line .open-country-map {
  width: 42px;
  height: 42px;
  border-width: 2px;
  border-color: #fff;
  box-shadow: 0 0 0 2px #e8772e;
  background: #d7e7f2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.open-place-line .open-country-map svg {
  width: 78%;
  height: 78%;
  display: block;
}
.open-country-map img.country-flag {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.open-place-bit {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.open-place-bit em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8a5a32;
}
.open-place-bit strong {
  font-size: 15px;
  line-height: 1.2;
  color: #3d2414;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leaflet-popup.empty-place-popup .leaflet-popup-content-wrapper {
  border-radius: 10px;
  background: #fff8f3;
  border: 1px solid #e7cbb8;
  box-shadow: 0 8px 24px rgba(80, 40, 10, .18);
}
.leaflet-popup.empty-place-popup .leaflet-popup-content {
  margin: 8px 18px 8px 10px;
  line-height: 1.35;
  width: max-content !important;
  max-width: 280px;
}
.leaflet-popup.empty-place-popup .leaflet-popup-content p {
  margin: 0;
  color: #5c331c;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.leaflet-popup.empty-place-popup .empty-place-title,
.leaflet-popup.empty-place-popup .empty-place-ask {
  font-weight: 700;
}
.leaflet-popup.empty-place-popup .empty-place-hi,
.leaflet-popup.empty-place-popup .empty-place-pending {
  margin-bottom: 0;
}
.leaflet-popup.empty-place-popup .empty-place-pending {
  font-weight: 600;
  color: #333;
}
.open-confirm-yes,
.open-confirm-no {
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.open-confirm-yes { background: var(--leaf); color: #fff; border: 0; }
.open-confirm-no { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.open-sheet .open-place-actions .btn { font-size: 12px !important; }
.open-sheet .note { margin: 4px 0 0; padding: 4px 8px; font-size: .72rem; }
.open-lead, .open-rec { margin: 0 0 8px; font-size: .88rem; }
.open-thanks .centre-actions { margin-top: 10px; }
.open-thanks .btn { color: #fff; }
.open-thanks .btn-outline,
.leaflet-container .open-thanks a.btn-outline,
.leaflet-container .open-thanks button.btn-outline {
  background: #fff;
  color: var(--saffron-dark);
  border-color: var(--saffron);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .institutes-title h1 { font-size: 1.05rem; }
  .institutes-page .filters { grid-template-columns: 1fr 1fr; padding: 6px 8px; gap: 6px 8px; }
  .institutes-page .field select {
    font-size: 16px;
    min-height: 32px;
    height: 32px;
    padding: 2px 8px;
    line-height: 1.2;
  }
  .legend { max-width: 42vw; font-size: .66rem; line-height: 1.4; padding: 6px 8px; }
  .leaflet-bottom.leaflet-left { max-width: 46%; }
  .leaflet-control-attribution {
    max-width: 46%;
    max-height: 1.7em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 8px;
    line-height: 1.5;
  }
  .centre-popup .leaflet-popup-content {
    margin: 16px 12px 14px;
    width: min(440px, calc(100vw - 24px)) !important;
  }
  .centre-popup .leaflet-popup-content-wrapper { max-width: calc(100vw - 16px); }
  .map-detail-body h3 { padding-right: 18px; }
  .open-cta { top: 64px; right: 10px; gap: 8px; align-items: center; }
  .open-cta-btn {
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 0;
    align-items: center;
  }
  .open-cta-mark { width: 44px; height: 44px; }
  .open-cta-copy {
    min-height: 44px;
    justify-content: center;
    box-sizing: border-box;
  }
  .open-cta-copy { max-width: none; }
  .open-cta-copy strong,
  .open-cta-copy em { white-space: nowrap; }
  .open-cta-copy strong { font-size: .72rem; }
  .open-sheet {
    top: auto;
    right: 8px;
    bottom: calc(var(--filter-lift, 86px) + 6px);
    width: auto;
    max-height: 68%;
  }
  .open-sheet.is-picking {
    max-height: none;
    right: auto;
    bottom: calc(var(--filter-lift, 86px) + 6px);
  }
  .open-sheet.is-confirm {
    right: 8px;
    width: auto;
    max-width: calc(100% - 16px) !important;
  }
  .open-hint {
    top: auto;
    bottom: calc(var(--filter-lift, 86px) + 8px);
    left: 8px;
    right: 58px;
    max-width: none;
    text-align: left;
    font-size: .72rem;
  }
  .map-detail { flex-direction: column; gap: 8px; }
  .centre-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .open-cta-copy em { display: none; }
  .institutes-page .filters {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px;
  }
  .institutes-page .field { min-width: 0; }
  .institutes-page .field select {
    width: 100%;
    max-width: 100%;
    padding-left: 8px;
    padding-right: 6px;
    text-overflow: ellipsis;
  }
}
