/* The outline identifies the branch even when a Passport symbol fills the centre. */
.leaflet-marker-icon.cafe-marker { display: grid; place-items: center; background: transparent; border: 0; }
.cafe-mark { box-sizing: border-box; position: relative; display: inline-grid; place-items: center; flex: none; width: 14px; height: 14px; border: 2px solid #28231e; border-radius: 50%; background: #28231e; box-shadow: 0 0 0 1.5px #fffdf8; }
.cafe-mark--branch { width: 12px; height: 12px; border-radius: 3px; background: #fffdf8; }
.cafe-mark:is([data-state="saved"], [data-state="visited"], [data-state="both"]) { width: 25px; height: 25px; border-color: #913f22; background: #913f22; color: #fffdf8; }
.cafe-mark--branch:is([data-state="saved"], [data-state="visited"], [data-state="both"]) { border-radius: 5px; }
.cafe-mark[data-state="saved"] { color: #913f22; background: #fffdf8; }
.cafe-mark[data-state="saved"]::before, .cafe-mark[data-state="visited"]::before, .cafe-mark[data-state="both"]::before { content: ""; width: 17px; height: 17px; background: currentColor; mask: var(--cafe-symbol) center / contain no-repeat; }
.cafe-mark[data-state="saved"] { --cafe-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 2.5h10v15l-5-3.4-5 3.4z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cafe-mark[data-state="visited"] { --cafe-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m3 10 4.5 4.5L17 5' fill='none' stroke='black' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cafe-mark[data-state="both"] { --cafe-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 2h13v16l-6.5-3-6.5 3z M6.7 8l2.2 2.3 4.3-4.4' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cafe-sparkle { display: inline-grid; place-items: center; box-sizing: border-box; width: 15px; height: 15px; border-radius: 50%; background: #166448; color: #fffdf8; box-shadow: 0 0 0 1.5px #fffdf8; font: bold 12px/1 system-ui, sans-serif; }
.cafe-mark > .cafe-sparkle { position: absolute; top: 0; right: 0; transform: translate(55%, -55%); }
.cafe-marker:focus-visible { outline: 3px solid #9f4a25; outline-offset: 2px; border-radius: 5px; }

/* Map furniture shares the guide's paper, ink and editorial type. */
.cafe-map-key, .cafe-guide-card, .map-region-label {
  color: var(--color-ink-900, #1d1a16);
  font-family: var(--font-display, Inter, system-ui, sans-serif);
}
.cafe-map-key {
  background: #fbf6ee;
  border-bottom: 1px solid #dfd0bf;
  padding: 0 1rem;
}
.cafe-map-key summary, .cafe-guide-card__passport summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--fn-control-height, 44px);
  cursor: pointer;
  list-style: none;
}
:is(.cafe-map-key, .cafe-guide-card__passport) > summary::-webkit-details-marker { display: none; }
:is(.cafe-map-key, .cafe-guide-card__passport) > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border: solid #8c492d;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
:is(.cafe-map-key, .cafe-guide-card__passport)[open] > summary::after { transform: rotate(225deg); }
.cafe-map-key summary { font: 600 1.05rem/1.2 var(--font-serif, "Playfair Display", Georgia, serif); }
.cafe-map-key__items { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.15rem; border-top: 1px solid #e5d8c9; padding: .6rem 0 .75rem; }
.cafe-map-key [data-key-entry] { display: inline-flex; align-items: center; gap: .4rem; color: #514539; font-size: 13px; font-weight: 550; }
.cafe-map-key[hidden], .cafe-map-key [hidden] { display: none; }
.fn-guide-map > .cafe-map-key {
  position: absolute;
  bottom: 26px;
  left: 10px;
  z-index: 800;
  width: max-content;
  max-width: min(31rem, calc(100% - 20px));
  max-height: 30%;
  overflow-y: auto;
  border: 1px solid #d9c9b7;
  border-radius: .75rem;
}
.fn-guide-map.leaflet-container .leaflet-bar { overflow: hidden; border: 1px solid #cebfae; border-radius: .55rem; box-shadow: 0 2px 8px #3828171c; }
.fn-guide-map.leaflet-container .leaflet-bar a { background-color: #fffaf3; color: #3e342b; border-color: #e2d4c5; }
.fn-guide-map.leaflet-container .leaflet-bar a:hover { background-color: #f2e9dc; }

.fn-guide-map .leaflet-popup-content-wrapper {
  padding: 0;
  background: #fffaf3;
  color: #211b16;
  border: 1px solid #d9c9b7;
  border-radius: .9rem;
  box-shadow: 0 8px 24px #38281726;
}
.fn-guide-map .leaflet-popup-content:has(> .cafe-guide-card) { margin: 0; }
.fn-guide-map .leaflet-popup-tip { background: #fffaf3; }
.fn-guide-map.leaflet-container a.leaflet-popup-close-button {
  width: 34px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #625446;
  border-radius: .5rem;
  top: 2px;
  right: 2px;
}
.cafe-guide-card {
  box-sizing: border-box;
  width: min(17rem, 70vw);
  max-width: 100%;
  font-size: .8125rem;
  overflow-wrap: anywhere;
}
.fn-guide-map .cafe-guide-card {
  max-height: calc(var(--cafe-map-height) - 88px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cafe-guide-card__body { padding: .9rem 1rem 0; }
.cafe-guide-card__heading { display: flex; align-items: center; gap: .65rem; justify-content: space-between; padding-right: 1.25rem; }
.cafe-guide-card__heading h3 { margin: 0; font: 600 1.35rem/1.12 var(--font-serif, "Playfair Display", Georgia, serif); letter-spacing: -.025em; }
.cafe-guide-card__place { margin-top: .35rem; color: #655647; font-size: .79rem; line-height: 1.4; }
.cafe-guide-card__thumb { width: 52px; height: 52px; flex: none; object-fit: cover; background: #f6efe5; border: 1px solid #e6d9ca; border-radius: .5rem; }
.cafe-guide-card__status { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; margin-top: .65rem; }
.cafe-popup-passport, .cafe-guide-card__match { display: inline-flex; align-items: center; gap: .35rem; font-size: .79rem; line-height: 1.3; font-weight: 650; }
.cafe-popup-passport { background: #f5e7d8; color: #74341c; padding: .22rem .45rem .22rem .28rem; border-radius: .3rem; }
.cafe-popup-passport .cafe-mark[data-state] { width: 18px; height: 18px; box-shadow: none; }
.cafe-popup-passport .cafe-mark::before { width: 13px; height: 13px; }
.cafe-guide-card__match { color: #185b44; }
.cafe-guide-card__closed, .cafe-guide-card .shop-map-popup__error { margin: .5rem 0; color: #923526; }
.cafe-guide-card p.cafe-guide-card__summary { margin: .65rem 0 0; color: #50443a; font-size: .83rem; line-height: 1.5; }
.cafe-guide-card__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.15rem; margin-top: .2rem; }
.cafe-guide-card__links a, .leaflet-container .cafe-guide-card__links a {
  display: block;
  align-content: center;
  flex: none;
  white-space: nowrap;
  min-height: var(--fn-control-height, 44px);
  color: #402d20;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #b19b84;
  text-decoration-skip-ink: none;
  text-underline-offset: .22em;
}
.cafe-guide-card__links a:hover { text-decoration-color: currentColor; }
.cafe-guide-card__body:not(:has(.cafe-guide-card__links)) { padding-bottom: .85rem; }
.cafe-guide-card__passport { border-top: 1px solid #e5d7c7; padding: 0 1rem; }
.cafe-guide-card__passport summary { color: #60503f; font-size: .8rem; font-weight: 600; }
.cafe-guide-card__passport > div { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 0 .75rem; }
.cafe-guide-card__passport :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: var(--fn-control-height, 44px);
  padding: .35rem .6rem;
  color: #493b2e;
  background: #fffdf8;
  border: 1px solid var(--fn-control-border, #cdbca8);
  border-radius: var(--fn-control-radius, 999px);
  font-size: .83rem; line-height: 1.25;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.cafe-guide-card__passport :is(a, button):hover { background: #f4eadd; }
.cafe-guide-card__passport button:disabled { opacity: .7; cursor: wait; }
:is(.cafe-guide-card, .cafe-map-key) :focus-visible { outline: 3px solid var(--fn-focus-color, #9f4a25); outline-offset: -2px; }
.map-region-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 40px;
  padding: 0 .7rem;
  border: 1px solid #a68b70;
  border-radius: .6rem;
  background: #fffaf3;
  box-shadow: 0 2px 6px #38281721;
  font: 600 .94rem/1.15 var(--font-serif, "Playfair Display", Georgia, serif);
  white-space: nowrap;
}
.map-region-count { padding-left: .45rem; border-left: 1px solid #d7c4ae; color: #854024; font: 650 .78rem/1.2 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.passport-map-dialog__selection .cafe-guide-card { width: 100%; }
.passport-map-dialog__selection .cafe-guide-card__body { padding: 0; }
