.place-details-overlay[hidden] { display: none !important; }
.place-details-map-label .mapboxgl-popup-content { padding: 7px 10px; border-radius: 9px; font: 600 13px var(--font-firago), sans-serif; }
.place-details-overlay {
  position: fixed;
  inset: 0;
  z-index: 400000;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, .24);
  font-family: var(--font-firago), sans-serif;
}
.place-details-panel {
  width: min(700px, calc(100vw - 420px));
  height: calc(100vh - 28px);
  margin: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .18);
}
.place-details-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #edf2f7; }
.place-details-back, .place-details-close { border: 0; background: #f3f7fa; color: #334155; cursor: pointer; font: inherit; }
.place-details-back { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 10px; font-size: 14px; }
.place-details-back .material-symbols-rounded { font-size: 19px; }
.place-details-close { width: 32px; height: 32px; border-radius: 10px; font-size: 25px; line-height: 1; }
.place-details-scroll { overflow-y: auto; flex: 1; padding: 22px 24px; }
.place-details-layout { display: grid; grid-template-columns: minmax(250px, 42%) minmax(0, 1fr); flex: 1; min-height: 0; }
.place-details-summary { min-width: 0; padding: 22px; border-right: 1px solid #e7ebf0; overflow-y: auto; }
.place-details-hero { position: relative; margin-bottom: 20px; overflow: hidden; border-radius: 8px; background: #eef2f5; }
.place-details-hero[hidden] { display: none; }
.place-details-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.place-details-hero-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.place-details-hero-tools { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.place-details-hero-tools button { display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #334155; box-shadow: 0 1px 5px rgba(15, 23, 42, .16); cursor: pointer; }
.place-details-hero-tools button:hover { background: #f1f5f9; }
.place-details-hero-tools button:focus-visible { outline: 2px solid var(--primary, #0284c7); outline-offset: 2px; }
.place-details-hero-tools button.active { color: var(--primary, #0284c7); }
.place-details-hero-tools .material-symbols-rounded { font-size: 19px; }
.place-details-eyebrow { display: none; }
.place-details-content { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.place-details-tabs { display: flex; flex-shrink: 0; gap: 26px; margin: 0 24px; padding: 0; border: 0; border-bottom: 1px solid #e7ebf0; border-radius: 0; background: transparent; }
.place-details-tab { flex: 0 1 auto; min-height: 48px; padding: 10px 2px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #64748b; font: 600 13px var(--font-firago), sans-serif; cursor: pointer; transition: color .18s, border-color .18s; }
.place-details-tab:hover { color: var(--primary, #0284c7); background: transparent; }
.place-details-tab:focus-visible { outline: 2px solid var(--primary, #0284c7); outline-offset: 2px; }
.place-details-tab.active { background: transparent; border-bottom-color: var(--primary, #0284c7); color: #1e293b; font-weight: 700; }
.place-details-tab-panel[hidden] { display: none; }
.place-details-tab-panel > h3 { margin: 0 0 14px; font-size: 17px; }
.place-details-tab-panel > p { color: #475569; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.place-details-info-note { margin-bottom: 20px; padding: 11px 14px; border: 0; border-left: 3px solid var(--primary, #0284c7); border-radius: 3px; background: #f5f8fa; color: #526476; font-size: 12px; }
.place-details-contribute { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 42px; margin-top: 22px; padding: 9px; border: 0; border-radius: 11px; background: var(--primary, #0284c7); color: #fff; font: 600 13px var(--font-firago), sans-serif; cursor: pointer; }
.place-details-contribute .material-symbols-rounded { font-size: 18px; }
.place-details-about-address { display: grid; gap: 5px; margin-top: 23px; padding-top: 16px; border-top: 1px solid #e8edf3; font-size: 13px; }
.place-details-about-address span { color: #64748b; }
.place-details-heading h2 { margin: 0 0 7px; font-size: 19px; line-height: 1.35; }
.place-details-heading p { margin: 0; color: #64748b; font-size: 12px; line-height: 1.45; }
.place-details-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.place-details-meta span { border-radius: 0; background: transparent; padding: 0; font-size: 11px; color: #64748b; }
.place-details-meta span + span { padding-left: 9px; border-left: 1px solid #cbd5e1; }
.place-details-meta small { font-size: 11px; }
.place-details-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 18px 0 0; }
.place-details-actions button { font-family: var(--font-firago), sans-serif; cursor: pointer; }
.place-details-minor-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 57px; padding: 5px; border: 0; background: transparent; color: #475569; font-size: 11px; font-weight: 600; }
.place-details-minor-action:hover { color: var(--primary, #0284c7); background: #f5f8fa; }
.place-details-minor-action .material-symbols-rounded { font-size: 20px; }
.place-details-guide-action { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; margin-top: 5px; padding: 9px 12px; border: 0; border-radius: 7px; background: #16af68; color: #fff; font-size: 12px; font-weight: 700; }
.place-details-guide-action:hover { background: #14a260; }
.place-details-guide-action .material-symbols-rounded { font-size: 19px; }
.place-details-business-link { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e7ebf0; color: #334155; font-size: 12px; }
.place-details-business-link > .material-symbols-rounded { font-size: 19px; color: #64748b; }
.place-details-business-link a { margin-left: auto; color: var(--primary, #0284c7); font-weight: 700; text-decoration: none; white-space: nowrap; }
.place-details-business-link a:hover { text-decoration: underline; }
.place-details-business-link a:focus-visible { outline: 2px solid var(--primary, #0284c7); outline-offset: 3px; border-radius: 3px; }
.place-details-actions button:focus-visible { outline: 2px solid var(--primary, #0284c7); outline-offset: 2px; }
.place-details-section { padding: 17px 0; border-top: 1px solid #edf2f7; }
.place-details-section h3 { margin: 0 0 11px; font-size: 16px; }
.place-details-section p { margin: 0; color: #475569; line-height: 1.55; font-size: 14px; white-space: pre-wrap; }
.place-details-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.place-details-photo-item { min-width: 0; }
.place-details-photo { display: block; width: 100%; padding: 0; overflow: hidden; border-radius: 10px; color: inherit; text-decoration: none; text-align: left; font: inherit; cursor: zoom-in; border: 1px solid #e7edf4; }
.place-details-photo img { display: block; width: 100%; height: 112px; object-fit: cover; }
.place-details-photo span { display: block; padding: 6px 8px; font-size: 12px; }
.place-details-photo-credit { display: block; margin: 4px 2px 0; color: #64748b; font-size: 10px; line-height: 1.4; text-decoration: underline; }
.place-details-no-photos { grid-column: 1 / -1; }
.place-details-upload { display: grid; gap: 8px; }
.place-details-upload select, .place-details-upload input { box-sizing: border-box; width: 100%; min-height: 38px; padding: 7px; border: 1px solid #d9e2ec; border-radius: 9px; background: #fff; color: #334155; font: inherit; }
.place-details-upload .place-details-rights { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.place-details-upload .place-details-rights input { width: auto; min-height: 0; }
.place-details-upload button, .place-details-sign-in { min-height: 38px; padding: 8px 12px; border: 0; border-radius: 9px; background: var(--primary, #0284c7); color: #fff; font: 600 13px var(--font-firago), sans-serif; cursor: pointer; }
.place-details-upload button:disabled { opacity: .6; cursor: wait; }
.place-details-upload small, .place-details-upload-status { color: #64748b; font-size: 12px; }
.place-details-features { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.place-details-feature { padding: 0; border-radius: 0; background: transparent; color: #376f56; font-size: 12px; }
.place-details-criteria { display: grid; gap: 18px; }
.place-details-criterion { padding: 0; border: 0; border-radius: 0; background: transparent; }
.place-details-criterion h4 { margin: 0 0 5px; font-size: 13px; }
.place-details-criterion h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.place-details-criterion-body { display: grid; grid-template-columns: minmax(120px, 42%) minmax(0, 1fr); min-height: 120px; overflow: hidden; border: 1px solid #dce4ee; border-radius: 11px; background: #fff; }
.place-details-criterion-copy { padding: 15px 17px; }
.place-details-criterion p { margin: 0; color: #607080; line-height: 1.5; font-size: 13px; white-space: pre-wrap; }
.place-details-criterion-photos { min-width: 0; background: #f3f6f9; }
.place-details-photo-placeholder { display: flex; height: 100%; min-height: 120px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #8b99a9; font-size: 11px; text-align: center; }
.place-details-photo-placeholder .material-symbols-rounded { font-size: 24px; }
.place-details-criterion-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 6px; }
.place-details-criterion-photo-grid button { padding: 0; border: 0; border-radius: 0; overflow: hidden; background: transparent; cursor: zoom-in; }
.place-details-criterion-photo-grid button:focus-visible { outline: 2px solid var(--primary, #0284c7); outline-offset: 2px; }
.place-details-criterion-photo-grid img { display: block; width: 100%; height: 150px; object-fit: cover; }
.place-details-photo-note { display: block; margin-top: 12px; color: #83909d; font-size: 11px; line-height: 1.5; }
.place-details-photo-note[hidden] { display: none; }
.place-details-unknown { color: #94a3b8; }
.place-details-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #edf2f7; padding-top: 16px; color: #64748b; font-size: 12px; }
.place-details-footer button { border: 1px solid #cbd5e1; background: #fff; border-radius: 9px; padding: 8px; color: #334155; font: inherit; cursor: pointer; }
body.dark-theme .place-details-panel { background: #171b23; color: #f1f5f9; border-color: #334155; }
body.dark-theme .place-details-summary { border-color: #334155; }
body.dark-theme .place-details-tabs, body.dark-theme .place-details-about-address { border-color: #334155; }
body.dark-theme .place-details-tabs { background: rgba(255, 255, 255, .1); }
body.dark-theme .place-details-tab { color: #a8b7c5; }
body.dark-theme .place-details-tab { background: transparent; }
body.dark-theme .place-details-tab:hover { background: transparent; color: #fff; }
body.dark-theme .place-details-tab.active { color: #fff; background: transparent; }
body.dark-theme .place-details-info-note { background: #222936; border-color: var(--primary, #0284c7); color: #d5ebf6; }
body.dark-theme .place-details-minor-action { background: transparent; color: #d5ebf6; }
body.dark-theme .place-details-minor-action:hover { background: #222936; }
body.dark-theme .place-details-guide-action { background: #16af68; color: #fff; }
body.dark-theme .place-details-business-link { border-color: #334155; color: #d5ebf6; }
body.dark-theme .place-details-hero-tools button { background: #222936; color: #f1f5f9; }
body.dark-theme .place-details-hero-tools button.active { color: #38bdf8; }
body.dark-theme .place-details-criterion p, body.dark-theme .place-details-tab-panel > p { color: #cbd5e1; }
body.dark-theme .place-details-photo-note { color: #94a3b8; }
body.dark-theme .place-details-section, body.dark-theme .place-details-top, body.dark-theme .place-details-footer { border-color: #334155; }
body.dark-theme .place-details-criterion { background: transparent; color: #e2e8f0; border-color: #334155; }
body.dark-theme .place-details-criterion-body { background: #222936; border-color: #3a4658; }
body.dark-theme .place-details-meta span { background: transparent; color: #e2e8f0; border-color: #334155; }
body.dark-theme .place-details-back, body.dark-theme .place-details-close { background: #222936; color: #e2e8f0; border-color: #334155; }
body.dark-theme .place-details-section p, body.dark-theme .place-details-heading p { color: #cbd5e1; }
body.dark-theme .place-details-upload select, body.dark-theme .place-details-upload input { background: #222936; border-color: #334155; color: #f1f5f9; }
.review-photo-section { margin-top: 22px; padding: 17px; border: 1px solid #dce8f0; border-radius: 16px; background: #f8fbfd; }
#review-modal #review-form, #review-modal .review-photo-section { flex-shrink: 0; }
.review-photo-section h4 { margin: 0 0 5px; font-size: 15px; }
.review-photo-section > p { margin: 0 0 13px; color: #64748b; font-size: 12px; line-height: 1.5; }
.review-photo-field-label { font-size: 12px; font-weight: 600; color: #475569; }
.review-photo-dropzone { display: grid; justify-items: center; gap: 5px; padding: 22px 14px; border: 1.5px dashed #a9cce0; border-radius: 14px; background: #fff; color: #334155; text-align: center; cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s; }
.review-photo-dropzone:hover, .review-photo-dropzone.drag-over { border-color: var(--primary, #0284c7); background: #eff9ff; box-shadow: 0 0 0 3px rgba(2,132,199,.07); }
.review-photo-dropzone:focus-visible { outline: 3px solid var(--primary, #0284c7); outline-offset: 2px; }
.review-photo-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e8f6fe; color: var(--primary, #0284c7); font-size: 23px; }
.review-photo-dropzone strong { font-size: 13px; }
.review-photo-dropzone > span:not(.review-photo-icon) { color: #718399; font-size: 12px; }
.review-photo-pick-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.review-photo-pick-actions button { min-height: 34px; padding: 7px 12px; border: 1px solid #b8dceb; border-radius: 9px; background: #eff9ff; color: #087caf; font: 600 12px var(--font-firago), sans-serif; cursor: pointer; }
.review-photo-pick-actions button:hover { background: #e0f3fd; }
#review-photo-camera-btn { display: none; }
.review-photo-preview[hidden] { display: none; }
.review-photo-preview { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 9px; padding: 8px; border-radius: 10px; background: #f1f7fb; box-sizing: border-box; text-align: left; }
.review-photo-preview img { width: 54px; height: 54px; border-radius: 7px; object-fit: cover; }
.review-photo-preview span { min-width: 0; overflow: hidden; color: #334155; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.review-photo-dropzone.has-file { border-style: solid; border-color: #91c9e3; }
#review-photo-form > button[type="submit"] { width: 100%; }
body.dark-theme .review-photo-section { background: #222936; border-color: #334155; }
body.dark-theme .review-photo-dropzone { background: #171b23; border-color: #456073; color: #edf5fa; }
body.dark-theme .review-photo-dropzone:hover, body.dark-theme .review-photo-dropzone.drag-over { background: #1d3441; border-color: #5bc4f3; }
body.dark-theme .review-photo-preview { background: #273845; }
body.dark-theme .review-photo-preview span { color: #edf5fa; }
.place-photo-lightbox[hidden] { display: none !important; }
.place-photo-lightbox { position: fixed; inset: 0; z-index: 500000; display: grid; place-items: center; padding: 16px; box-sizing: border-box; }
.place-photo-lightbox-backdrop { position: absolute; inset: 0; background: rgba(9, 16, 27, .93); }
.place-photo-lightbox-dialog { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 12px; width: min(1100px, 100%); max-height: calc(100dvh - 32px); color: #fff; }
.place-photo-lightbox-figure { min-width: 0; margin: 0; text-align: center; }
.place-photo-lightbox-image { display: block; max-width: 100%; max-height: calc(100dvh - 145px); margin: auto; border-radius: 8px; object-fit: contain; }
.place-photo-lightbox-figure figcaption { display: flex; justify-content: center; gap: 12px; margin-top: 11px; font-size: 13px; }
.place-photo-lightbox-count { color: #b8c6d5; }
.place-photo-lightbox-credit { display: inline-block; margin-top: 6px; color: #c5d8e7; font-size: 11px; }
.place-photo-lightbox-close, .place-photo-lightbox-nav { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font: 28px/1 Arial, sans-serif; cursor: pointer; }
.place-photo-lightbox-close:hover, .place-photo-lightbox-nav:hover { background: rgba(255, 255, 255, .29); }
.place-photo-lightbox-close:focus-visible, .place-photo-lightbox-nav:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.place-photo-lightbox-close { position: absolute; top: 0; right: 0; z-index: 1; }
.place-photo-lightbox-nav[hidden] { visibility: hidden; }
body.place-photo-lightbox-open { overflow: hidden; }
@media (min-width: 769px) {
  body.place-details-open .apple-map-mode-pill-container {
    left: calc((100vw + var(--place-details-left, 68px) + var(--place-details-width, 700px)) / 2) !important;
    z-index: 400001;
  }
  .apple-desktop-rail:not(.collapsed):not(.rail-collapsed) { width: 216px !important; }
  .apple-desktop-rail:not(.collapsed):not(.rail-collapsed) .apple-rail-logo-img { max-width: 130px; }
  .desktop-left-column {
    top: 0 !important;
    bottom: 0 !important;
    left: 216px !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, .84) !important;
    backdrop-filter: blur(24px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
  }
  .desktop-left-column.rail-collapsed { left: 68px !important; }
  body.dark-theme .desktop-left-column { box-shadow: none !important; border-left: 0 !important; background: rgba(18, 18, 20, .84) !important; }
  .desktop-left-column .drawer-header { border-bottom: 0 !important; background: transparent !important; }
  .desktop-left-column #drawer-view-places .search-filter-section { border-bottom: 0 !important; }
  .desktop-left-column #drawer-view-places .places-list { border-top: 0 !important; }
  .desktop-left-column #drawer-view-places .place-card {
    background: rgba(255, 255, 255, .92) !important;
    box-shadow: 0 1px 5px rgba(15, 23, 42, .055) !important;
  }
  .desktop-left-column #drawer-view-places .place-card:hover { background: rgba(255, 255, 255, .96) !important; box-shadow: 0 1px 5px rgba(15, 23, 42, .055) !important; }
  .desktop-left-column #drawer-view-places .place-card.active { background: rgba(239, 249, 255, .96) !important; box-shadow: inset 0 0 0 1.5px var(--primary, #0284c7) !important; }
  .desktop-left-column #drawer-view-places .place-rating-section,
  .desktop-left-column #drawer-view-places .place-actions { border-top: 0 !important; }
  body.dark-theme .desktop-left-column #drawer-view-places .place-card { background: rgba(37, 37, 42, .92) !important; box-shadow: 0 1px 5px rgba(0, 0, 0, .2) !important; }
  body.dark-theme .desktop-left-column #drawer-view-places .place-card.active { background: rgba(45, 54, 64, .96) !important; box-shadow: inset 0 0 0 1.5px #38bdf8 !important; }
  .map-floating-filter-bar { left: 672px !important; }
  .desktop-left-column.rail-collapsed ~ .map-container .map-floating-filter-bar { left: 524px !important; }
  .desktop-left-column.drawer-closed ~ .map-container .map-floating-filter-bar { left: 232px !important; }
  .desktop-left-column.rail-collapsed.drawer-closed ~ .map-container .map-floating-filter-bar { left: 84px !important; }
  body.place-details-open .map-floating-filter-bar,
  body.place-details-open .desktop-left-column.rail-collapsed ~ .map-container .map-floating-filter-bar,
  body.place-details-open .desktop-left-column.drawer-closed ~ .map-container .map-floating-filter-bar,
  body.place-details-open .desktop-left-column.rail-collapsed.drawer-closed ~ .map-container .map-floating-filter-bar {
    left: calc(var(--place-details-left, 632px) + var(--place-details-width, 700px) + 12px) !important;
  }
  body.place-details-open .desktop-map-search { min-width: 0; flex: 1 1 0; padding: 0 8px; gap: 5px; }
  body.place-details-open .desktop-map-filter-tab { padding: 0 4px; gap: 2px; }
  body.place-details-open .desktop-map-filter-tab span { margin-left: 0; }
  body.place-details-open .desktop-map-accessibility-icons .material-symbols-rounded:nth-child(n+2),
  body.place-details-open .desktop-map-category-icons .material-symbols-rounded:nth-child(n+2) { display: none; }
  @media (max-width: 1800px) {
    body.place-details-open .map-floating-filter-bar { flex-wrap: wrap; }
    body.place-details-open .desktop-map-search { flex: 1 0 100%; height: 40px; }
    body.place-details-open .desktop-map-filter-tab { flex: 1 1 0; height: 32px; border-left: 0; }
  }
  .place-details-overlay { background: transparent; pointer-events: none; }
  .place-details-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--place-details-left, 632px);
    width: var(--place-details-width, 700px);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, .84);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    pointer-events: auto;
    transition: left .28s cubic-bezier(.16, 1, .3, 1), width .28s cubic-bezier(.16, 1, .3, 1);
  }
  .place-details-top { min-height: 54px; box-sizing: border-box; border-bottom: 0; }
  .place-details-summary { border-right: 1px solid #e7ebf0; background: rgba(255, 255, 255, .22); }
  .place-details-heading h2 { font-size: 19px; font-weight: 700; }
  .place-details-tabs { gap: 26px; padding: 0; border-bottom: 1px solid #e7ebf0; background: transparent; }
  .place-details-tab { min-height: 48px; border-radius: 0; }
  .place-details-tab.active { background: transparent; }
  .place-details-meta span { background: transparent; }
  .place-details-section, .place-details-about-address, .place-details-footer { border-top: 0; }
  .place-details-info-note { border: 0; border-left: 3px solid var(--primary, #0284c7); background: rgba(245, 248, 250, .85); }
  .place-details-criterion { border: 0; background: transparent; box-shadow: none; }
  .place-details-photo { display: block; border: 0; background: rgba(255, 255, 255, .9); box-shadow: 0 1px 5px rgba(15, 23, 42, .055); }
  body.dark-theme .place-details-panel { background: rgba(18, 18, 20, .84); }
  body.dark-theme .place-details-summary { background: rgba(255, 255, 255, .025); }
  body.dark-theme .place-details-tabs { background: transparent; }
  body.dark-theme .place-details-tab.active { background: transparent; }
  body.dark-theme .place-details-meta span { background: transparent; }
  body.dark-theme .place-details-criterion { background: transparent; border: 0; box-shadow: none; }
  body.dark-theme .place-details-photo { background: rgba(37, 37, 42, .92); border: 0; box-shadow: 0 1px 5px rgba(0, 0, 0, .2); }
  body.dark-theme .place-details-info-note { background: rgba(37, 37, 42, .85); border: 0; border-left: 3px solid var(--primary, #0284c7); }
  .place-details-panel.compact .place-details-layout { display: block; overflow-y: auto; }
  .place-details-panel.compact .place-details-summary { overflow: visible; border-right: 0; border-bottom: 0; }
  .place-details-panel.compact .place-details-content { min-height: auto; }
  .place-details-panel.compact .place-details-tabs { position: sticky; top: 0; z-index: 1; background: rgba(255, 255, 255, .94); }
  body.dark-theme .place-details-panel.compact .place-details-tabs { background: #171b23; }
  .place-details-panel.compact .place-details-scroll { overflow: visible; }
}
@media (min-width: 769px) and (max-width: 1050px) {
  .place-details-layout { display: block; overflow-y: auto; }
  .place-details-summary { overflow: visible; border-right: 0; border-bottom: 1px solid #edf2f7; }
  .place-details-content { min-height: auto; }
  .place-details-tabs { position: sticky; top: 0; z-index: 1; background: rgba(255, 255, 255, .94); }
  .place-details-scroll { overflow: visible; }
}
@media (max-width: 768px) {
  .place-details-overlay { background: transparent; pointer-events: none; }
  .place-details-panel {
    position: fixed;
    top: var(--mobile-shell-window-top, 130px);
    right: 10px;
    bottom: var(--mobile-shell-window-bottom, 81px);
    left: 10px;
    width: auto;
    max-width: 520px;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    border-radius: 24px;
    pointer-events: auto;
  }
  .place-details-layout { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .place-details-summary { overflow: visible; padding: 18px; border-right: 0; border-bottom: 1px solid #edf2f7; }
  .place-details-hero img { height: auto; aspect-ratio: 16 / 9; }
  .place-details-content { min-height: auto; }
  .place-details-tabs { position: sticky; top: 0; z-index: 1; gap: 20px; margin: 0 18px; background: rgba(255, 255, 255, .96); }
  body.dark-theme .place-details-tabs { background: #171b23; }
  .place-details-scroll { min-height: 0; overflow: visible; padding: 18px 18px 30px; }
  .place-details-criterion-body { grid-template-columns: minmax(110px, 40%) minmax(0, 1fr); }
  .place-details-criterion-copy { padding: 12px 13px; }
  .place-details-criterion-photo-grid img { height: 132px; }
  .review-photo-section { padding: 13px; }
  #review-photo-camera-btn { display: inline-flex; align-items: center; }
  .place-photo-lightbox { padding: 10px; }
  .place-photo-lightbox-dialog { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 4px; }
  .place-photo-lightbox-close, .place-photo-lightbox-nav { width: 36px; height: 36px; font-size: 24px; }
  .place-photo-lightbox-image { max-height: calc(100dvh - 130px); }
}
