/* =========================================================
   updates.css — added by Gladys
   New logo, quick filters, and the results map.
   Loaded after style.css on every page, so it uses the same
   --pu-* color and font variables.
   ========================================================= */

/* ---------- new logo ----------
   (the mark is embedded below as a small PNG so no extra image file is needed)
   The cup-and-pin mark (steam turns into a location pin)
   replaces the old inline SVG / mark-reversed.svg.
   The wordmark becomes spaced serif capitals to match it. */

.pu-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* hide the old mark in the masthead and the footer */
.pu-logo > svg,
.pu-logo > img {
  display: none;
}

.pu-logo::before {
  content: "";
  display: block;
  width: 36px;
  height: 40px;
  flex: none;
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABPCAQAAADi4Ut0AAAEg0lEQVR42u2aPZbyNhSGn49M85W3TaktaMqUmiVo2nSmTAnnZANmCXgJ9hLwFtSmVDulupwpUyA7Bmxsy2aYkxM484cH8XB1f1/x42++123D/0D3by8rraPRaBQBR41LX+jHCj6kyLF4AgCCouKQCrUcyJIDFQU+4lkyFO9UzwAylHjeI8y/Njti0pCWAQknhLcrnOYKN6APjzKL5tD7ooE9GvvVUWYI7bYIGRrPITq3w6G+Gkja2GqcG2AfbZQEtDQxho61zn/ZzjVBvhYooNqXrACJP5tk6TvAXwLkUOgWaEvBNm4YaExKclwW9ooTnrfea0csb/ORllnIU2B6g9uQUXy9hUA4om9S4zktvs33oDWibA/kV9G0Q7FNwVmjH/JssZir7do+r9oD5Fhe2/ajxLN9bsd4wLeubZA29J8GFDhgEUAwbTV7ak9dU2MATaCaXzAe0eTXKEAo0ClFdX0gH6t76JSTpwIFHOAIqCUWeoEVkUKscP47DYoKvWQuWx8oA+rvA2TYUSxZ4Meq6oempE4vG2tbyFDilpSNNYEUOSUF70vKxlphr8gwhJSG9RGzvUXjqNOkhXUtpNmhcOnN2JpAwg5LnSInPAJIOGLYrrVNy4Fy9DouvI5TG068LSkPa+chg3sUThqQPGazlmRq+V5AblnXvD5Q1ZnCnh72ggJqdngqTJzFrhvZ5v6gsBcUgm7VsoBHgJoQH2m+N3jNbwGHI8xR0saABINF4ePSdN67iZNG37MaJI1GCNTU04rMGNCRjIJ9O09Ixw6N+CsYdPyP0H4FQkQQLEccr8uBzsLT2eTnjVNXHlPj8CjsTdydgZpnQkU1ZePuAylKttHw+o7I66E3EQQCDh8zu5qSUF9GE2CIy0m8q2ipbnQJ4KDdNh9t0401CwQsGqJPhRQguZlLh7N2GAmOs3ufN/FI1T+dvIzq9DJZyx8/F9m3HZSl7G97NyOKxlp1S6CDAxXuQpecCBQIS6SVi/DgIg9Jai1bC8hcba6g+jd7MypD6VU2zcQ83wWsUoAqZAUbKeSixxR2Q4fpm9HeJ/Q730z7XHaZ+bB0PO5DdU9ZSNkw38HJ2A6V2s2EdkwttJHGULQ6/5Hs3gH6ZkLDWkdRPF1TC9GDLKex8/zNBCmzwCywkcZyiDA5jtf7I9S0QbFEpZ1+ASWWCg3UA2f8CUCaE0WSNmY5UhNw07qh6aN0xjHhsxyKE9W8w5jps32J4XWW+CKUMFfkmw4klMgsTzqhej+okggkgEbF7q/JITKc0m4UJNXKWYJCE3Dj09ovf/Yv9wcZv/LJB4EPPgH4pEaR84mPjwwHQU7gdz7i35/8BH7yGxmGv+5B9VtoR86+za7XcWPxVAPDn8RmdUgEtZRUvM8F0uQo6jjk3L6oRnqvEI+mXA+sQsUEu7+XGod8SLAYTGzKHS5aJMxuXFVs7889Y0113wfvR5mO70t3YMLNiBPaSiex91GdgVKQuMV+ylw2LexVXFjFezOxyQXOtQLiWnD/aCVfBlr1MHM0evjx1H/xs7D/AKE1pzL42F/xAAAAAElFTkSuQmCC") center / contain no-repeat;
}

.pu-logo .pu-wordmark {
  font-family: var(--pu-font-display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1;
  /* letter-spacing adds space after the last letter; pull it back */
  margin-right: -0.32em;
}

.pu-logo .pu-wordmark .up {
  color: inherit;
}

.foot .pu-logo::before {
  width: 44px;
  height: 48px;
}

/* ---------- home page hero card ----------
   style.css gives .feature display:flex, which beats the hidden attribute,
   so all four plan cards were stacked. This lets hero.js show just one. */
.feature[hidden] {
  display: none;
}

/* ---------- quick filters ----------
   One-click shortcuts for the most common searches.
   Each chip is a plain link to results.php with the filter
   already set, so they work with the existing search code. */

.quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.quick__label {
  margin-right: 4px;
}

.quick__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--pu-line);
  border-radius: 999px;
  background: var(--pu-white);
  color: var(--pu-ink);
  font-family: var(--pu-font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.16s var(--ease);
}

.quick__chip:active {
  transform: scale(0.97);
}

.quick__chip .ico {
  width: 16px;
  height: 16px;
}

@media (hover: hover) and (pointer: fine) {
  .quick__chip:not(.is-on):hover {
    border-color: var(--pu-espresso);
  }
}

.quick__chip:focus-visible {
  outline: 2px solid var(--pu-toffee);
  outline-offset: 2px;
}

.quick__chip.is-on {
  background: var(--pu-caramel);
  border-color: var(--pu-caramel);
  color: var(--pu-espresso);
  font-weight: 600;
}

/* on the home page, inside the white search panel, under "Advanced search" */
.panel .quick {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--pu-line);
}

.panel .quick__chip {
  background: var(--pu-paper);
}

/* ---------- results: list / map toggle ---------- */

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.view-toggle {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;   /* equal halves, so the pill is the same size on both sides */
  padding: 4px;
  border: 1px solid var(--pu-line);
  border-radius: 999px;
  background: var(--pu-white);
}

.view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pu-muted);
  font: 500 14px var(--pu-font-body);
  cursor: pointer;
  position: relative;
  z-index: 1;
  justify-content: center;
  transition: color 0.2s ease;
}

/* the dark pill behind the chosen button */
.view-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--pu-espresso);
}

.view-toggle:has([data-view="map"][aria-pressed="true"])::before {
  transform: translateX(100%);
}

/* map.js sets data-ready after first paint, so the pill never slides on load */
.view-toggle[data-ready]::before {
  transition: transform 0.22s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .view-toggle button[aria-pressed="false"]:hover {
    color: var(--pu-ink);
  }
}

.view-toggle button .ico {
  width: 16px;
  height: 16px;
}

.view-toggle button[aria-pressed="true"] {
  color: var(--pu-paper);
}

.view-toggle button:focus-visible {
  outline: 2px solid var(--pu-toffee);
  outline-offset: 2px;
}

.results-map {
  height: 560px;
  border: 1px solid var(--pu-line);
  border-radius: var(--pu-radius-lg, 20px);
  overflow: hidden;
  background: var(--pu-paper);
}

/* style.css gives .grid display:grid, which would beat the hidden attribute */
.results-map[hidden],
#results-list[hidden] {
  display: none;
}

.map-note {
  margin: 0;
  color: var(--pu-muted);
  font-size: 14px;
}

/* map pins: the same pin shape as the logo */
.pu-pin {
  background: none;
  border: 0;
}

.pu-pin svg {
  display: block;
  filter: drop-shadow(0 2px 3px rgba(20, 21, 31, 0.3));
}

/* popup that opens when a pin is clicked */
.leaflet-popup-content-wrapper {
  border-radius: var(--pu-radius-md, 14px);
  font-family: var(--pu-font-body);
}

.leaflet-popup-content {
  margin: 14px 16px;
}

.map-pop__name {
  display: block;
  margin-bottom: 4px;
  font-family: var(--pu-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--pu-espresso);
}

.map-pop__meta {
  display: block;
  color: var(--pu-muted);
  font-size: 13px;
}

/* ---------- map search box (inside the map, top right) ---------- */
.map-search {
  width: 300px;
  max-width: calc(100vw - 80px);
  padding: 10px;
  border: 1px solid var(--pu-line);
  border-radius: var(--pu-radius-md, 14px);
  background: var(--pu-white);
  box-shadow: 0 4px 16px rgba(20, 21, 31, 0.12);
  font-family: var(--pu-font-body);
}

.map-search__form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-height: 40px;
  border: 1px solid var(--pu-input-border, #D6D7DE);
  border-radius: 999px;
  background: var(--pu-paper);
}

.map-search__form .ico {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--pu-muted);
}

.map-search__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--pu-ink);
  font: 400 14px var(--pu-font-body);
  outline: none;
}

.map-search__form:focus-within {
  border-color: var(--pu-espresso);
}

.map-search__status {
  margin: 8px 4px 0;
  color: var(--pu-muted);
  font-size: 12px;
}

.map-search__status:empty {
  display: none;
}

.map-search__results {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
}

.map-search__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.map-search__item:hover,
.map-search__item:focus-visible {
  background: var(--pu-tint);
  outline: none;
}

.map-search__name {
  font-family: var(--pu-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--pu-espresso);
}

.map-search__meta {
  font-size: 12px;
  color: var(--pu-muted);
}

/* ---------- map view: split layout (cards left, map right) ---------- */
/* map.js wraps the cards and the map in .map-split and adds .is-split in Map view */
.map-split.is-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* the cards scroll with the page (no inner scroll box); the map stays put beside them */
.map-split.is-split #results-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.map-split.is-split .results-map {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  min-height: 420px;
}

#results-list .pu-card[hidden] {
  display: none;
}

/* the card whose pin was clicked */
.pu-card.is-active {
  box-shadow: 0 0 0 2px var(--pu-espresso);
}

/* warm, muted map tiles so the map matches the site's colors */
.results-map .leaflet-tile-pane {
  filter: grayscale(1) sepia(0.28) brightness(1.04) contrast(0.92);
}

/* pin for the card you're hovering */
.pu-pin svg {
  transition: transform 0.18s var(--ease);
  transform-origin: 50% 100%;
}

.pu-pin.is-hot svg,
.pu-pin.is-selected svg {
  transform: scale(1.3);
}

.pu-pin.is-hot svg path,
.pu-pin.is-selected svg path {
  fill: var(--pu-toffee);
}

/* softer zoom buttons */
.results-map .leaflet-control-zoom {
  border: 1px solid var(--pu-line) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: none !important;
}

.results-map .leaflet-control-zoom a {
  background: var(--pu-paper) !important;
  color: var(--pu-espresso) !important;
  border-color: var(--pu-line) !important;
}

/* hide the browser's own blue "x" in the map search */
.map-search__form input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

@media (max-width: 860px) {
  /* phones and small screens: map on top, cards below */
  .map-split.is-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-split.is-split .results-map {
    position: static;
    order: -1;
    height: 380px;
    min-height: 0;
  }

  .map-split.is-split #results-list {
    max-height: none;
    overflow: visible;
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
  }
}

@media (max-width: 640px) {
  .results-map {
    height: 420px;
  }

  .pu-logo .pu-wordmark {
    font-size: 16px;
    letter-spacing: 0.26em;
    margin-right: -0.26em;
  }
}
.review-photo {
  display: block;
  width: 140px !important;
  height: 140px !important;
  max-width: 140px !important;
  object-fit: cover;
  border-radius: var(--pu-radius-md);
}
/* Review photo thumbnails and click-to-enlarge viewer */
.review__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.review-photo-button {
  display: block;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--pu-radius-md);
  background: transparent;
  cursor: zoom-in;
}

.review-photo {
  display: block;
  width: 140px !important;
  height: 140px !important;
  max-width: 140px !important;
  object-fit: cover !important;
  border-radius: var(--pu-radius-md);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.review-photo-button:hover .review-photo,
.review-photo-button:focus-visible .review-photo {
  transform: translateY(-3px) scale(1.04);
  box-shadow: var(--pu-shadow-lift);
}

.photo-viewer {
  position: fixed;
  max-width: 92vw;
  max-height: 92vh;
  margin: auto;
  padding: 48px 16px 16px;
  overflow: visible;
  border: 0;
  border-radius: var(--pu-radius-lg);
  background: var(--pu-white);
}

.photo-viewer::backdrop {
  background: rgba(20, 21, 31, .82);
}

.photo-viewer__image {
  display: block;
  max-width: calc(92vw - 32px);
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--pu-radius-md);
}

.photo-viewer__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--pu-ink);
  color: var(--pu-white);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.review__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar-link,
.review-avatar-fallback {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #f3e9dc;
}

.review-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-avatar-fallback {
  font-weight: 700;
  text-decoration: none;
}
.review__head .review-avatar-link,
.review__head .review-avatar-fallback {
  box-sizing: border-box;
  width: 42px !important;
  min-width: 42px;
  max-width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  overflow: hidden;
  border-radius: 50%;
}

.review__head .review-avatar-link > .review-avatar {
  display: block;
  width: 42px !important;
  min-width: 42px;
  max-width: 42px !important;
  height: 42px !important;
  object-fit: cover !important;
  border-radius: 50%;
}

.public-profile-photo {
  width: 80px !important;
  max-width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
  border-radius: 50%;
}
@media (max-width: 640px) {
  img.profile-photo__image,
  img.public-profile-photo,
  #profilePhotoPreview {
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    height: 56px !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
  }

  .review__head .review-avatar-link,
  .review__head .review-avatar-fallback {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
  }
}

/* ---------- cafe page extras (added by Gladys) ---------- */

/* "Open until 6pm" / "Closed · opens tomorrow 8am" above the hours */
.open-badge {
  display: table;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pu-paper);
  border: 1px solid var(--pu-line);
  color: var(--pu-muted);
  font-size: 14px;
  font-weight: 600;
}

.open-badge.is-open {
  background: #E4F0E1;
  border-color: #C5DDBF;
  color: #2F5A2A;
}

/* today's row in the hours list */
.hours-today {
  font-weight: 700;
  color: var(--pu-espresso);
}

/* Getting there + Nearby cafes cards */
.cafe-where,
.cafe-near {
  display: grid;
  gap: 14px;
}

.detail__side .pu-card h2.cafe-where__title {
  margin: 0;
  line-height: 1.3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pu-muted);
  font-family: var(--pu-font-body);
}

.cafe-where .pu-btn {
  width: 100%;
}

.cafe-map {
  height: 220px;
  border: 1px solid var(--pu-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--pu-paper);
}

.cafe-map .leaflet-tile-pane {
  filter: grayscale(1) sepia(0.28) brightness(1.04) contrast(0.92);
}

.near-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.near-list li + li {
  border-top: 1px solid var(--pu-line);
}

.near-list a {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
}

.near-list a:hover .near-list__name {
  text-decoration: underline;
}

.near-list__name {
  font-weight: 600;
  color: var(--pu-espresso);
}

.near-list__meta {
  font-size: 14px;
  color: var(--pu-muted);
}

/* wordmark: the team's original lowercase bold "pull up" (next to the new cup-and-pin mark) */
.pu-logo .pu-wordmark {
  font-family: var(--pu-font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-right: 0;
}

.pu-logo .pu-wordmark .up {
  color: var(--pu-toffee);
}

.pu-logo--on-dark .pu-wordmark .up {
  color: var(--pu-caramel);
}

@media (max-width: 640px) {
  .pu-logo .pu-wordmark {
    font-size: 24px;
    letter-spacing: -0.01em;
    margin-right: 0;
  }
}

/* footer: espresso brown instead of navy, with warm text colors to match */
.foot {
  background: var(--pu-espresso);
  --pu-footer-text: #E8D9C5;
  --pu-footer-dim: #C9B49B;
  --pu-footer-line: #5A3A28;
}

/* =========================================================
   Design system polish (added by Gladys)
   Only changes the team's existing tokens from style.css.
   Same layouts, fonts, sections and palette — just warmer
   and more consistent. Delete this block to undo.
   ========================================================= */
:root {
  /* text + dark buttons: espresso-black instead of navy-black */
  --pu-ink: #22160F;
  /* secondary text, input borders, placeholders: warm greys instead of blue-greys */
  --pu-muted: #6B5B4E;
  --pu-input-border: #DCCDBB;
  --pu-placeholder: #7A6A5C;

  /* softer, warmer shadows */
  --pu-shadow-card: 0 1px 2px rgba(59, 34, 22, 0.06), 0 6px 16px rgba(59, 34, 22, 0.07);
  --pu-shadow-lift: 0 2px 4px rgba(59, 34, 22, 0.08), 0 12px 24px rgba(59, 34, 22, 0.11);
  --pu-shadow-panel: 0 16px 32px rgba(20, 12, 8, 0.24);
  --pu-shadow-feature: 0 20px 40px rgba(20, 12, 8, 0.30);

  /* corner sizes: a little tighter and more even */
  --pu-radius-sm: 10px;
  --pu-radius-md: 12px;
  --pu-radius-lg: 16px;
  --pu-radius-xl: 20px;
}

/* map view: the card itself moves the map when clicked, so only the
   cafe name opens the cafe page (style.css makes the whole card a link) */
.map-split.is-split .pu-card__name a::after {
  display: none;
}

.map-split.is-split #results-list .pu-card {
  cursor: pointer;
}

/* map view: "Showing Motiq · Show all cafes" bar after clicking a pin */
.map-focus {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--pu-line);
  border-radius: var(--pu-radius-md, 12px);
  background: var(--pu-white);
  font-size: 15px;
  font-weight: 600;
  color: var(--pu-espresso);
}

.map-focus[hidden] {
  display: none;
}

.map-focus__all {
  min-height: 36px;
  padding: 0 16px;
  border: 1.5px solid var(--pu-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--pu-ink);
  font: 600 14px var(--pu-font-body);
  cursor: pointer;
}

.map-focus__all:hover {
  background: var(--pu-ink);
  color: var(--pu-white);
}

/* map view: no square focus box around a pin after clicking it with the mouse */
.results-map .leaflet-marker-icon:focus {
  outline: none;
}

.results-map .leaflet-marker-icon:focus-visible {
  outline: 2px solid var(--pu-toffee);
  outline-offset: 2px;
}

/* map view: the bigger "medium view" of one cafe after clicking its pin.
   It's built from the cafe's own page, so it reuses that page's styles. */
.map-detail {
  grid-column: 1 / -1;
  display: grid;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--pu-line);
  border-radius: var(--pu-radius-lg, 16px);
  background: var(--pu-white);
  box-shadow: var(--pu-shadow-card);
}

.map-detail[hidden] {
  display: none;
}

.map-detail__loading {
  margin: 0;
  color: var(--pu-muted);
}

.map-detail__head {
  display: grid;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--pu-line);
}

.map-detail__name {
  margin: 0;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.05;
}

.map-detail__name a {
  color: inherit;
  text-decoration: none;
}

.map-detail__meta {
  margin: 0;
  color: var(--pu-muted);
}

.map-detail__meta .open {
  color: var(--pu-espresso);
  font-weight: 600;
}

.map-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* ratings: the big score next to the bars */
.map-detail__ratings {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.map-detail .detail__value {
  font-size: 56px;
}

.map-detail .detail__bars {
  max-width: none;
}

.map-detail__facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.map-detail .amenities {
  margin: 0;
}

@media (max-width: 1100px) {
  .map-detail__ratings {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

/* ---------- "Start where you are.": photo tiles (added by Gladys) ----------
   Free Unsplash cafe photos (general cafe shots, not of our specific cafes).
   3 per row on wide screens so the 6 neighborhoods make two even rows. */
@media (min-width: 900px) {
  .hood-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pu-hood {
  min-height: 240px;
  border: 0;
  color: var(--pu-white);
  background:
    linear-gradient(180deg, rgba(20, 12, 8, 0.5) 0%, rgba(20, 12, 8, 0.05) 32%, rgba(20, 12, 8, 0.05) 50%, rgba(20, 12, 8, 0.8) 100%),
    var(--hood-photo, none) center / cover no-repeat,
    var(--pu-espresso);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.pu-hood:nth-child(6n + 1) { --hood-photo: url("https://images.unsplash.com/photo-1567880905822-56f8e06fe630?auto=format&fit=crop&w=700&q=70"); }
.pu-hood:nth-child(6n + 2) { --hood-photo: url("https://images.unsplash.com/photo-1509042239860-f550ce710b93?auto=format&fit=crop&w=700&q=70"); }
.pu-hood:nth-child(6n + 3) { --hood-photo: url("https://images.unsplash.com/photo-1453614512568-c4024d13c247?auto=format&fit=crop&w=700&q=70"); }
.pu-hood:nth-child(6n + 4) { --hood-photo: url("https://images.unsplash.com/photo-1600093463592-8e36ae95ef56?auto=format&fit=crop&w=700&q=70"); }
.pu-hood:nth-child(6n + 5) { --hood-photo: url("https://images.unsplash.com/photo-1778142375628-73010ebde16a?auto=format&fit=crop&w=700&q=70"); }
.pu-hood:nth-child(6n + 6) { --hood-photo: url("https://images.unsplash.com/photo-1542372147193-a7aca54189cd?auto=format&fit=crop&w=700&q=70"); }

.pu-hood:hover {
  filter: brightness(1.08);
}

.pu-hood .pu-label {
  color: rgba(255, 255, 255, 0.85);
}

.pu-hood__go {
  background: var(--pu-white);
  color: var(--pu-ink);
}

/* Cafe Hero images */
.cafe-hero.hero--page {
  display: block;
  width: 100%;
  max-width: none;
  text-align: left;
}

.cafe-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 36%);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.cafe-hero__text h1 {
  max-width: none;
}

.cafe-hero__image {
  display: block;
  width: 100%;
  height: clamp(160px, 20vw, 260px);
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 700px) {
  .cafe-hero__inner {
    grid-template-columns: 1fr;
    gap: 22px;
    width: calc(100% - 32px);
  }

  .cafe-hero__image {
    height: 130px;
  }
}


/* =========================================================
   Sign in, Sign up, My account and public profile pages
   (added by Gladys). Uses the site's own colors and fonts.
   ========================================================= */

/* ---------- Sign in / Sign up: one card, brand side + form side ---------- */
.auth {
  padding: 56px var(--pad-x) 88px;
  background: var(--pu-tint);
}

.auth__card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  max-width: 1040px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--pu-radius-xl);
  background: var(--pu-white);
  box-shadow: var(--pu-shadow-card);
}

.auth__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px 44px;
  background: var(--pu-espresso);
  color: var(--pu-white);
}

.auth__aside .pu-label {
  color: var(--pu-caramel);
}

.auth__title {
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.auth__lede {
  color: var(--pu-on-espresso-muted);
  font-size: 17px;
  line-height: 1.55;
}

.auth__perks {
  display: grid;
  gap: 14px;
  margin: auto 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
}

.auth__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.auth__perks .ico {
  --ico: 36px;
  flex: none;
  padding: 9px;
  border-radius: 999px;
  background: rgba(232, 196, 154, 0.16);
  color: var(--pu-caramel);
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 48px 44px;
}

.auth__form-head h2 {
  font-size: 32px;
  letter-spacing: -0.02em;
}

.auth__form-head p {
  margin-top: 6px;
  color: var(--pu-muted);
}

.auth__form-head a,
.auth__form a {
  color: var(--pu-espresso);
  font-weight: 600;
  text-underline-offset: 3px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field > label {
  font-size: 14px;
  font-weight: 600;
  color: var(--pu-ink);
}

/* one look for text boxes, dropdowns and the bio box */
.auth-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--pu-input-border);
  border-radius: var(--pu-radius-md);
  background: var(--pu-white);
  color: var(--pu-ink);
  font: 16px var(--pu-font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:hover {
  border-color: var(--pu-muted);
}

.auth-input:focus,
.auth-input:focus-within {
  outline: none;
  border-color: var(--pu-espresso);
  box-shadow: 0 0 0 3px rgba(232, 196, 154, 0.55);
}

/* password box with the show/hide eye inside it */
.auth-input--password {
  display: flex;
  align-items: center;
  padding: 0 6px 0 16px;
}

.auth-input--password input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.auth-input--password input:focus {
  outline: none;
}

.auth-input__toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pu-muted);
  cursor: pointer;
}

.auth-input__toggle .ico {
  --ico: 20px;
}

.auth-input__toggle:hover,
.auth-input__toggle[aria-pressed="true"] {
  background: var(--pu-tint);
  color: var(--pu-espresso);
}

.auth-hint {
  min-height: 18px;
  font-size: 13px;
  color: var(--pu-muted);
}

.auth-hint.is-ok {
  color: #2F5A2A;
}

.auth-hint.is-bad {
  color: #7c2418;
}

.auth__submit {
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 860px) {
  .auth {
    padding-top: 24px;
  }

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

  .auth__aside,
  .auth__form {
    padding: 32px 24px;
  }

  .auth__perks {
    display: none;
  }
}

/* ---------- avatar: photo, or the first letter of the username ---------- */
.avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: var(--pu-caramel);
  color: var(--pu-espresso);
  font-family: var(--pu-font-display);
  font-weight: 700;
}

.avatar--lg { width: 104px; height: 104px; font-size: 44px; }
.avatar--xl { width: 128px; height: 128px; font-size: 56px; border: 4px solid rgba(255, 255, 255, 0.9); }

.avatar .avatar__img,
.avatar #profilePhotoPreview {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50%;
}

.avatar [hidden] {
  display: none !important;
}

/* ---------- My account: profile on the left, edit cards on the right ---------- */
.acct {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.acct__side {
  position: sticky;
  top: 24px;
}

.acct__main {
  display: grid;
  gap: 20px;
}

.acct-card {
  display: grid;
  gap: 16px;
  padding: 26px 28px;
  border: 1px solid var(--pu-line);
  border-radius: var(--pu-radius-lg);
  background: var(--pu-white);
}

.acct-card__head h2 {
  font-size: 24px;
  letter-spacing: -0.01em;
}

.acct-card__head p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--pu-muted);
}

.acct-card__status:empty {
  display: none;
}

.acct-card__status {
  font-size: 14px;
  color: var(--pu-muted);
}

.acct-profile {
  justify-items: center;
  text-align: center;
}

.acct-profile__name {
  font-size: 28px;
  line-height: 1.1;
}

.acct-profile__meta {
  margin-top: -10px;
  font-size: 14px;
  color: var(--pu-muted);
}

.acct-profile__facts {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 16px 0;
  border-top: 1px solid var(--pu-line);
  border-bottom: 1px solid var(--pu-line);
  text-align: left;
}

.acct-profile__facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.acct-profile__facts dt {
  color: var(--pu-muted);
}

.acct-profile__facts dd {
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: right;
}

.acct-profile__actions {
  display: grid;
  gap: 10px;
  width: 100%;
}

/* photo picker */
.acct-photo {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.acct-photo__drop {
  position: relative;
  display: flex;
  flex: 1 1 260px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  border: 1.5px dashed var(--pu-input-border);
  border-radius: var(--pu-radius-md);
  background: var(--pu-paper);
  color: var(--pu-muted);
  cursor: pointer;
}

.acct-photo__drop:hover,
.acct-photo__drop:focus-within {
  border-color: var(--pu-espresso);
  color: var(--pu-espresso);
}

.acct-photo__drop .ico {
  --ico: 22px;
}

.acct-photo__drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.acct-photo__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* bio + top cafes forms */
.acct-form {
  display: grid;
  gap: 14px;
}

.acct-textarea {
  min-height: 120px;
  padding: 14px 16px;
  line-height: 1.5;
  resize: vertical;
}

.acct-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.acct-count {
  font-size: 13px;
  color: var(--pu-muted);
  font-variant-numeric: tabular-nums;
}

/* numbered list used for top cafes (account + public profile) */
.rank-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-list__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pu-espresso);
  color: var(--pu-cream);
  font-family: var(--pu-font-display);
  font-size: 18px;
  font-weight: 700;
}

.rank-list__item:first-child .rank-list__num {
  background: var(--pu-caramel);
  color: var(--pu-espresso);
}

.rank-list select.auth-input {
  flex: 1;
  min-width: 0;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B2216' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

.rank-list__link {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--pu-line);
  border-radius: var(--pu-radius-md);
  color: var(--pu-ink);
  font-family: var(--pu-font-display);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.rank-list__link:hover {
  border-color: var(--pu-espresso);
  background: var(--pu-paper);
}

.rank-list__link .ico {
  --ico: 18px;
  color: var(--pu-muted);
}

@media (max-width: 860px) {
  .acct {
    grid-template-columns: minmax(0, 1fr);
  }

  .acct__side {
    position: static;
  }

  .acct-card {
    padding: 22px 20px;
  }
}

/* ---------- public profile ---------- */
.profile-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
}

.profile-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.profile-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.profile-bio {
  font-size: 17px;
  line-height: 1.6;
}

.profile-bio.is-empty {
  color: var(--pu-muted);
}

@media (max-width: 860px) {
  .profile-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .avatar--xl {
    width: 96px;
    height: 96px;
    font-size: 42px;
  }
}


/* ---------- cafe photos on cards and map popups (added by Gladys) ---------- */
.pu-card__photo {
  display: block;
  margin: -22px -22px 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--pu-radius-lg) var(--pu-radius-lg) 0 0;
  background: var(--pu-cream, #efe6dc);
}

.pu-card__photo {
  position: relative;
}

.pu-card__photo a {
  display: block;
  height: 100%;
}

.pu-card__photo .pu-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--pu-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.pu-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .pu-card:hover .pu-card__photo img {
    transform: scale(1.03);
  }
}

.map-pop__photo {
  display: block;
  width: calc(100% + 32px);
  min-width: 240px;
  height: 135px;
  margin: -14px -16px 10px;
  overflow: hidden;
  border-radius: var(--pu-radius-md, 14px) var(--pu-radius-md, 14px) 0 0;
  background: var(--pu-cream, #efe6dc);
}

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




/* ---------- cafe page photo banner, Yelp style (added by Gladys) ---------- */
.cafe-banner {
  position: relative;
  height: clamp(340px, 36vw, 480px);
  overflow: hidden;
  background: var(--pu-espresso);
  color: var(--pu-white);
}

.cafe-banner__photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  height: 100%;
}

.cafe-banner__photos--2 { grid-template-columns: 1.7fr 1fr; }
.cafe-banner__photos--3 { grid-template-columns: 1.7fr 1fr 1fr; }
.cafe-banner__photos--4 { grid-template-columns: 1.7fr 1fr 1fr 1fr; }

.cafe-banner__photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

/* dark fade so the white text stays readable on any photo */
.cafe-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(28, 16, 10, .85) 0%, rgba(28, 16, 10, .45) 40%, rgba(28, 16, 10, 0) 70%),
    linear-gradient(to right, rgba(28, 16, 10, .55) 0%, rgba(28, 16, 10, 0) 55%);
  pointer-events: none;
}

.cafe-banner__text {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--pad-x) 36px;
}

.cafe-banner .hero__hood {
  color: var(--pu-on-espresso-muted);
}

.cafe-banner h1 {
  margin: 4px 0 0;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  color: var(--pu-white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

.cafe-banner__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 14px;
}

.cafe-banner__facts .pu-score__value {
  font-size: 32px;
  color: var(--pu-white);
}

.cafe-banner__facts .pu-score__meta {
  font-size: 14px;
  color: var(--pu-on-espresso-muted);
}

.cafe-banner__facts .open-badge {
  display: inline-block;
  margin: 0;
}

.cafe-banner__address {
  margin-top: 10px;
  font-size: 16px;
  color: var(--pu-on-espresso-muted);
}

.cafe-banner__all {
  position: absolute;
  z-index: 1;
  right: var(--pad-x);
  bottom: 36px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(28, 16, 10, .45);
  color: var(--pu-white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(4px);
}

.cafe-banner__all:hover {
  background: rgba(28, 16, 10, .7);
}

/* only one photo: it sits on the right so it isn't cropped down to a thin strip */
.cafe-banner--single .cafe-banner__photos {
  position: relative;
}

.cafe-banner--single .cafe-banner__photos img {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
}

/* the blurred copy isn't used any more */
.cafe-banner--single .cafe-banner__blur {
  display: none;
}

/* tall (portrait) photos: crop toward the lower part, where the counter and seating usually are */
.cafe-banner--single.is-tall .cafe-banner__main {
  object-position: center 65%;
}

.cafe-banner--single::after {
  background:
    linear-gradient(to right, var(--pu-espresso) 0%, var(--pu-espresso) 38%, rgba(59, 34, 22, 0) 58%),
    linear-gradient(to top, rgba(28, 16, 10, .5) 0%, rgba(28, 16, 10, 0) 45%);
}

@media (max-width: 700px) {
  .cafe-banner {
    height: 380px;
  }

  .cafe-banner--single .cafe-banner__photos img {
    width: 100%;
  }

  .cafe-banner--single::after {
    background: linear-gradient(to top, rgba(28, 16, 10, .85) 0%, rgba(28, 16, 10, .45) 45%, rgba(28, 16, 10, 0) 75%);
  }

  .cafe-banner__photos--2,
  .cafe-banner__photos--3,
  .cafe-banner__photos--4 {
    grid-template-columns: 1fr;
  }

  .cafe-banner__photos img + img {
    display: none;
  }

  .cafe-banner__text {
    padding-bottom: 24px;
  }

  .cafe-banner__all {
    top: 16px;
    bottom: auto;
  }
}


/* ---------- "Order the…" strip on cards: label on its own line so every card's strip is the same shape (added by Gladys) ---------- */
.pu-card .pu-order {
  min-height: 64px;
}

.pu-card .pu-order__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pu-card .pu-order__item .pu-label {
  margin-right: 0;
}

.pu-card .pu-order__name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* same-size detail box on every card (room for 2 lines; longer text ends in "…") (added by Gladys) */
.pu-card .pu-card__detail {
  box-sizing: border-box;
  height: calc(3em + 20px);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.pu-card .pu-order {
  box-sizing: border-box;
  height: 64px;
  min-height: 0;
}

/* =========================================================
   Cafe page: menu with prices (menu_items, from admin_menus.php) + "Suggest a correction" link
   ========================================================= */
.menu-section { display: flex; flex-direction: column; gap: 6px; }
.menu-section h3 { font-family: var(--pu-font-body); color: var(--pu-muted); }
.menu-list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dotted var(--pu-line); }
.menu-list__price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.menu-note { font-size: 14px; color: var(--pu-muted); }
.menu-link { align-self: flex-start; }
.cafe-correction { display: block; margin-top: 12px; font-size: 14px; color: var(--pu-muted); text-align: center; }

/* =========================================================
   Admin pages (admin.php, admin_cafes.php, admin_reviews.php)
   ========================================================= */

.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 14px var(--pad-x); background: var(--pu-tint); border-bottom: 1px solid var(--pu-line); }
.admin-nav .pu-label { color: var(--pu-muted); margin-right: 6px; }
.admin-nav a { font-weight: 600; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.admin-nav a:hover { border-bottom-color: var(--pu-caramel); }
.admin-nav a[aria-current="page"] { border-bottom-color: var(--pu-toffee); }

.admin { display: flex; flex-direction: column; gap: 28px; padding: 40px var(--pad-x) 80px; }
.admin__title { font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.admin h2 { font-size: 28px; }
.admin-box { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--pu-radius-lg); background: var(--pu-white); box-shadow: var(--pu-shadow-card); }
.admin-muted { color: var(--pu-muted); font-size: 15px; }


/* tables */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--pu-line); text-align: left; vertical-align: top; }
.admin-table th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pu-muted); }
.admin-table tr.is-hidden td { opacity: .55; }

/* forms */
.admin input[type="text"], .admin input[type="url"], .admin input[type="time"], .admin select, .admin textarea {
  padding: 8px 10px; border: 1px solid var(--pu-input-border); border-radius: 8px; background: var(--pu-white); font: inherit; font-size: 15px; }
.admin textarea { width: 100%; min-height: 140px; }
.admin label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.admin-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.admin-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.admin-checks label { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
.admin-btn { padding: 7px 14px; border: 1.5px solid var(--pu-ink); border-radius: var(--pu-radius-pill); background: var(--pu-ink); color: var(--pu-white); font: 600 14px/1 var(--pu-font-body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.admin-btn--quiet { background: transparent; color: var(--pu-ink); }
.admin-btn--danger { border-color: #9B2C1D; background: transparent; color: #9B2C1D; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-actions form { display: inline; }

.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.admin-photos figure { display: flex; flex-direction: column; gap: 6px; }
.admin-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--pu-radius-sm); }
.admin-tag { display: inline-block; padding: 2px 8px; border-radius: var(--pu-radius-pill); background: var(--pu-latte); font-size: 12px; font-weight: 700; }


/* ---------- results page: map view entrances ----------
   The map, the "Showing …" bar and the medium view used to pop in.
   @starting-style gives them a short fade when they appear (browsers
   without it just show them, same as before). */
@media (prefers-reduced-motion: no-preference) {
  .map-split.is-split .results-map {
    transition: opacity 0.24s var(--ease);
  }

  .map-focus,
  .map-detail {
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }

  @starting-style {
    .map-split.is-split .results-map {
      opacity: 0;
    }

    .map-focus,
    .map-detail {
      opacity: 0;
      transform: translateY(6px);
    }
  }
}


/* ---------- results coming in after a quick filter ----------
   results.php adds .is-refilter to <html> when you arrive from a chip.
   The logo animation doesn't replay (as far as you're concerned you never
   left the page), and the new cards rise in one after another.
   --i is each card's place in the list (capped at 8), set by results.php. */
@media (prefers-reduced-motion: no-preference) {
  html.is-refilter .masthead .pin,
  html.is-refilter .masthead .pu-wordmark .up,
  html.is-refilter .hero h1 .up-word {
    animation: none;
  }

  /* :not([data-swapped]): once results.js swaps cards in place, it animates them itself */
  html.is-refilter #results-list:not([data-swapped]) > :is(.pu-card, .empty) {
    /* backwards (not both): once in, the card hands transform back to its hover lift */
    animation: result-in 0.3s var(--ease) backwards;
    animation-delay: calc(var(--i, 0) * 40ms);
  }

  html.is-refilter .count {
    animation: result-fade 0.3s ease-out backwards;
  }

  @keyframes result-in {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
  }

  @keyframes result-fade {
    from { opacity: 0; }
  }
}

/* results.js: cards that drop out of the results are pinned in place (absolute) while they fade */
#results-list {
  position: relative;
}

/* results.js: a slow answer from the server dims the cards (only after 150ms, so fast ones don't flicker) */
#results-list > .pu-card {
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .2s ease;
}

#results-list.is-loading > .pu-card {
  opacity: .55;
}


/* ---------- page transitions ----------
   Moving between pages crossfades instead of flashing white (Chrome, Edge, Safari 18.2+;
   other browsers just change pages like before). The masthead is its own layer, so it
   holds still while the page under it changes. The new page comes in quicker than the
   old one leaves would suggest: the old fades fast, the new rises a few pixels into place. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  .masthead {
    view-transition-name: masthead;
  }

  ::view-transition-old(root) {
    animation: pu-page-out 0.16s ease-out both;
  }

  ::view-transition-new(root) {
    animation: pu-page-in 0.28s var(--ease) 0.04s both;
  }

  @keyframes pu-page-out {
    to { opacity: 0; }
  }

  @keyframes pu-page-in {
    from { opacity: 0; transform: translateY(8px); }
  }
}


/* ---------- the logo's hello plays once per visit ---------- */
html.pu-seen .masthead .pin,
html.pu-seen .masthead .pu-wordmark .up {
  animation: none;
}


/* ---------- "Your review was submitted" message on the cafe page ----------
   Drops in from the top instead of popping on; main.js slides it back up when dismissed. */
@media (prefers-reduced-motion: no-preference) {
  .review-success {
    animation: pu-toast-in 0.32s var(--ease) 0.2s backwards;
  }

  @keyframes pu-toast-in {
    from { opacity: 0; transform: translate(-50%, -12px) scale(0.97); }
  }
}

.sort-by__field { display: flex; align-items: center; gap: 10px; }
.sort-by .pu-select { width: auto; height: 44px; padding-left: 16px; border-radius: var(--pu-radius-pill); font-size: 15px; }


/* ---------- no-laptop policy: checkbox on the review form, badge on cafe pages (added by Gladys) ---------- */
.review-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--pu-radius-sm);
  background: var(--pu-tint);
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.review-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--pu-espresso);
  flex: none;
}

.laptop-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 10px;
  border-radius: var(--pu-radius-pill);
  background: #f6e3dc;
  color: #7c2e18;
  font-size: 13px;
  font-weight: 600;
}

/* admin home: list of every admin module, live and planned (added by Gladys) */
.admin-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.admin-modules li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border-radius: var(--pu-radius-sm); background: var(--pu-tint); }
.admin-modules a { color: var(--pu-ink); }
.admin-modules .admin-muted { font-size: 14px; }
.admin-tag--planned { background: transparent; border: 1px dashed var(--pu-muted); color: var(--pu-muted); }
.admin-actions form { display: inline-flex; gap: 8px; }
