.places-ui-shortcuts {
  margin: 0 0 20px;
  padding: 15px 16px 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ui-border, #dce2df) 82%, transparent);
  border-radius: 20px;
  background: radial-gradient(circle at 96% 0%, rgba(30, 107, 80, .11), transparent 34%), var(--ui-surface, #fff);
  box-shadow: 0 8px 28px rgba(17, 66, 49, .055);
}

.places-ui-shortcuts > span {
  display: block;
  margin-bottom: 11px;
  color: var(--ui-muted, #68756f);
  font: 800 10px/1 "Manrope", sans-serif;
  letter-spacing: 1.05px;
  text-transform: uppercase;
}

.places-ui-category-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 0 15px;
  scrollbar-width: none;
}

.places-ui-category-row::-webkit-scrollbar { display: none; }

.places-ui-category-row button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--ui-border, #dce2df);
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  color: var(--ui-text, #17211d);
  background: color-mix(in srgb, var(--ui-surface, #fff) 92%, #edf7f2);
  font: 750 12px/1 "DM Sans", sans-serif;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}

.places-ui-category-row button:hover,
.places-ui-category-row button:focus-visible,
.places-ui-category-row button.is-active {
  border-color: color-mix(in srgb, var(--ui-brand, #1e6b50) 68%, transparent);
  color: #fff;
  background: linear-gradient(135deg, #145c48, #238563);
  box-shadow: 0 8px 20px rgba(20, 92, 72, .22);
  transform: translateY(-1px);
}

.places-ui-category-row button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ui-brand, #1e6b50) 24%, transparent);
  outline-offset: 2px;
}

.places-ui-category-row button:disabled { cursor: wait; opacity: .62; transform: none; }

.places-ui-category-row svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.places-ui-nearby-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  align-items: end;
  padding: 20px;
}

.places-ui-nearby-sheet[hidden] { display: none; }

.places-ui-nearby-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 15, 11, .66);
  backdrop-filter: blur(10px) saturate(.85);
  animation: placesBackdropIn .2s ease both;
}

.places-ui-nearby-panel {
  position: relative;
  width: min(780px, 100%);
  max-height: min(88vh, 860px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px;
  overflow: auto;
  color: var(--ui-text, #17211d);
  background: var(--ui-surface, #fff);
  box-shadow: 0 30px 100px rgba(2, 17, 11, .38);
  animation: placesPanelIn .28s cubic-bezier(.2, .8, .2, 1) both;
}

.places-ui-nearby-panel > header {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 22px 22px 18px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 40px;
  gap: 14px;
  align-items: start;
  color: #fff;
  background: radial-gradient(circle at 82% -20%, rgba(112, 240, 178, .2), transparent 42%), linear-gradient(135deg, #0d382e 0%, #126147 62%, #1b7756 100%);
}

.places-ui-heading-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .11);
}

.places-ui-heading-icon svg,
.places-ui-nearby-panel header > button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.places-ui-nearby-panel header p {
  margin: 1px 0 0;
  color: rgba(255, 255, 255, .66);
  font: 800 9px/1 "Manrope", sans-serif;
  letter-spacing: 1.4px;
}

.places-ui-nearby-panel header h2 {
  margin: 6px 0 4px;
  color: #fff;
  font: 800 23px/1.12 "Manrope", sans-serif;
}

.places-ui-nearby-panel header div > span {
  color: rgba(255, 255, 255, .73);
  font-size: 11px;
}

.places-ui-nearby-panel header > button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.places-ui-nearby-panel header > button:hover,
.places-ui-nearby-panel header > button:focus-visible { background: rgba(255, 255, 255, .2); transform: rotate(3deg); }
.places-ui-nearby-panel header > button svg { width: 17px; height: 17px; stroke-width: 2; }

.places-ui-nearby-results {
  min-height: 320px;
  padding: 16px 17px 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ui-surface-soft, #f3f6f4) 72%, transparent), transparent 90px), var(--ui-surface, #fff);
}

.places-ui-result-shell {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ui-border, #dce2df) 88%, transparent);
  border-radius: 21px;
  background: var(--ui-surface, #fff);
  box-shadow: 0 12px 34px rgba(18, 62, 47, .08);
}

.places-ui-result-guide {
  min-height: 42px;
  padding: 0 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--ui-border, #dce2df);
  color: var(--ui-muted, #68756f);
  background: color-mix(in srgb, var(--ui-surface-soft, #f3f6f4) 84%, transparent);
  font-size: 10px;
}

.places-ui-result-guide strong {
  color: var(--ui-brand, #1e6b50);
  font: 800 10px/1 "Manrope", sans-serif;
  letter-spacing: .2px;
  text-transform: uppercase;
}

.places-ui-live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #34b980;
  box-shadow: 0 0 0 4px rgba(52, 185, 128, .12);
}

.places-ui-result-shell gmp-place-search,
.place-suggestions.is-places-ui gmp-place-search {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 16px;
  color-scheme: light dark;
  font-size: 15px;
  background-color: transparent;
  --gmp-thumbnail-border-radius: 14px;
  --gmp-dialog-border-radius: 20px;
}

.places-ui-distance-strip {
  margin: 0;
  padding: 11px 14px 12px;
  border-top: 1px solid var(--ui-border, #dce2df);
  color: var(--ui-muted, #68756f);
  background: color-mix(in srgb, var(--ui-surface-soft, #f3f6f4) 88%, transparent);
  font-size: 10px;
  line-height: 1.5;
}

.places-ui-selection-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  gap: 13px;
  justify-items: center;
  color: var(--ui-text, #17211d);
  background: color-mix(in srgb, var(--ui-surface, #fff) 88%, transparent);
  backdrop-filter: blur(9px);
}

.places-ui-selection-overlay[hidden] { display: none; }
.places-ui-selection-overlay strong { font: 800 13px/1.2 "Manrope", sans-serif; }

.places-ui-spinner {
  width: 31px;
  height: 31px;
  border: 3px solid color-mix(in srgb, var(--ui-brand, #1e6b50) 18%, transparent);
  border-top-color: var(--ui-brand, #1e6b50);
  border-radius: 50%;
  animation: placesSpin .8s linear infinite;
}

.places-ui-loading {
  min-height: 250px;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  color: var(--ui-muted, #68756f);
  font-weight: 700;
}

.places-ui-loading.is-error { color: var(--ui-danger, #b44338); }
.place-suggestions.is-places-ui { display: block; }
.place-suggestions.is-places-ui .places-ui-result-shell { min-height: 360px; }
.place-suggestions.is-places-ui gmp-place-search { min-height: 320px; }

html[data-theme="dark"] .places-ui-result-shell gmp-place-search,
html[data-theme="dark"] .place-suggestions.is-places-ui gmp-place-search { color-scheme: dark; }

@keyframes placesSpin { to { transform: rotate(360deg); } }
@keyframes placesBackdropIn { from { opacity: 0; } }
@keyframes placesPanelIn { from { opacity: 0; transform: translateY(24px) scale(.985); } }

@media (max-width: 620px) {
  .places-ui-nearby-sheet { padding: 0; }
  .places-ui-nearby-panel { max-height: 91vh; border-radius: 26px 26px 0 0; }
  .places-ui-nearby-panel > header { grid-template-columns: 44px minmax(0, 1fr) 38px; gap: 11px; padding: 18px 15px 16px; }
  .places-ui-heading-icon { width: 44px; height: 44px; border-radius: 14px; }
  .places-ui-nearby-panel header h2 { font-size: 20px; }
  .places-ui-nearby-results { padding: 11px 10px 18px; }
  .places-ui-result-guide span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .places-ui-nearby-backdrop,
  .places-ui-nearby-panel,
  .places-ui-spinner { animation-duration: .001ms; animation-iteration-count: 1; }
}
