/* Migrated Places legacy foundation, 2026-07-29. Current route-owner rules follow. */

.day-mode .compact-place-logo{
  border:0;
  border-radius:18px;
  background:#fff;
  color:#171715;
  box-shadow:0 2px 12px rgba(0,0,0,.07);
}

.compact-place-card{
  transition:transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease, opacity .18s ease;
}

.compact-place-card:hover{
  transform:translateY(-2px);
  border-color:#3a3a3a;
}

.compact-place-card:active{
  transform:translateY(0) scale(.99);
}

.compact-place-logo{
  border-radius:var(--image-radius);
}

@media (min-width:720px){
.page-head:not(.explore-page-head):not(.guide-head){
    text-align:left;
  }

.page-head:not(.explore-page-head):not(.guide-head) > *,
.page-head:not(.explore-page-head):not(.guide-head) .eyebrow,
.page-head:not(.explore-page-head):not(.guide-head) h1,
.page-head:not(.explore-page-head):not(.guide-head) > p:not(.eyebrow){
    width:100%;
    max-width:min(100%,1008px);
    margin-left:auto;
    margin-right:auto;
    text-align:left;
  }

.page-head:not(.explore-page-head):not(.guide-head) h1{
    font-size:clamp(36px,4.5vw,50px);
  }
}

.day-mode .places-filter-section,
.day-mode .places-results-section{
  width:min(calc(100% - 32px),960px);
  max-width:none;
  margin:16px auto 24px;
  border:0;
  border-radius:22px;
  background:var(--luca-day-card);
  box-shadow:none;
}

.day-mode .compact-place-card{
  border:0;
  box-shadow:none;
}

@media (min-width:720px){
.day-mode .places-filter-section,
.day-mode .places-results-section{
    width:min(calc(100% - 60px),960px);
    margin-top:24px;
  }
}

.places-page,
body.day-mode .places-page,
body.night-mode .places-page{
  width:100%;
  min-height:100vh;
  padding-bottom:calc(26px + env(safe-area-inset-bottom));
  background:var(--luca-day-paper,#f5f5f7);
  color:#1d1d1f;
}

body.night-mode .places-page{
  background:#000;
  color:#fff;
}

.places-page .explore-page-head,
body.day-mode .places-page .explore-page-head,
body.night-mode .places-page .explore-page-head{
  display:grid;
  gap:10px;
  max-width:none;
  margin:0;
  padding:calc(74px + env(safe-area-inset-top)) 20px 28px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:inherit;
  text-align:center;
}

.places-page .explore-page-head .eyebrow{
  margin:0;
  color:var(--interaction-accent);
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
}

.places-page .explore-page-head h1{
  margin:0 auto;
  color:inherit;
  font-size:clamp(32px,8vw,50px);
  font-weight:900;
  line-height:.95;
  letter-spacing:0;
}

.places-page .places-filter-section,
.places-page .places-results-section,
body.day-mode .places-page .places-filter-section,
body.day-mode .places-page .places-results-section,
body.night-mode .places-page .places-filter-section,
body.night-mode .places-page .places-results-section{
  width:min(calc(100% - 32px),960px);
  max-width:960px;
  margin-right:auto;
  margin-left:auto;
  border:0;
  border-radius:22px;
  background:#fff;
  box-shadow:none;
  color:#1d1d1f;
}

body.night-mode .places-page .places-filter-section,
body.night-mode .places-page .places-results-section{
  background:#111;
  color:#fff;
}

.places-page .places-filter-section{
  display:grid;
  gap:12px;
  margin-top:0;
  padding:22px 20px 24px;
}

.places-page .places-filter-section .eyebrow{
  margin:0;
  color:var(--interaction-accent);
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
}

.places-page .places-filter-section .eyebrow:not(:first-child){
  margin-top:10px;
}

.places-page .places-filter-section .chips{
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  width:100%;
  padding:0 2px 4px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

.places-page .places-filter-section .chips::-webkit-scrollbar{
  display:none;
}

.places-page .places-filter-section .chips button,
body.day-mode .places-page .places-filter-section .chips button,
body.night-mode .places-page .places-filter-section .chips button{
  flex:0 0 auto;
  min-height:42px;
  padding:10px 15px;
  border:1px solid rgba(29,29,31,.12);
  border-radius:999px;
  background:#fff;
  color:#1d1d1f;
  font-size:14px;
  font-weight:650;
  line-height:1;
  box-shadow:none;
}

body.night-mode .places-page .places-filter-section .chips button{
  border-color:rgba(255,255,255,.12);
  background:#191919;
  color:#f5f5f7;
}

.places-page .places-filter-section .chips button small{
  margin-left:3px;
  color:#6e6e73;
  font-size:11px;
  font-weight:700;
}

body.night-mode .places-page .places-filter-section .chips button small{
  color:#9a9a9a;
}

.places-page .places-filter-section .chips button.active,
body.day-mode .places-page .places-filter-section .chips button.active,
body.night-mode .places-page .places-filter-section .chips button.active{
  border-color:rgba(104,76,255,.42);
  background:var(--interaction-accent-soft);
  color:var(--interaction-accent);
}

.places-page .places-filter-section .chips button.active small{
  color:inherit;
}

.places-page .places-results-section{
  display:grid;
  gap:18px;
  margin-top:20px;
  padding:22px 20px;
}

.places-page .places-results-section .section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0;
  padding:0;
}

.places-page .places-results-section .section-head h2{
  margin:0;
  color:inherit;
  font-size:22px;
  font-weight:900;
  line-height:1;
  letter-spacing:0;
}

.places-page .places-results-section .text-button,
body.day-mode .places-page .places-results-section .text-button,
body.night-mode .places-page .places-results-section .text-button{
  min-height:34px;
  padding:8px 12px;
  border:1px solid rgba(29,29,31,.12);
  border-radius:999px;
  background:#fff;
  color:#6e6e73;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}

body.night-mode .places-page .places-results-section .text-button{
  border-color:rgba(255,255,255,.12);
  background:#191919;
  color:#bdbdbd;
}

.places-page .compact-place-grid,
body.day-mode .places-page .compact-place-grid,
body.night-mode .places-page .compact-place-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px 9px;
  width:100%;
  padding:0;
}

.places-page .compact-place-card,
body.day-mode .places-page .compact-place-card,
body.night-mode .places-page .compact-place-card{
  display:grid;
  grid-template-rows:auto minmax(28px,auto);
  align-content:start;
  gap:6px;
  width:100%;
  max-width:none;
  min-width:0;
  min-height:0;
  flex:none;
  padding:0 0 4px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:inherit;
  text-align:left;
  overflow:hidden;
}

.places-page .compact-place-logo,
body.day-mode .places-page .compact-place-logo,
body.night-mode .places-page .compact-place-logo{
  display:grid;
  place-items:center;
  width:100%;
  aspect-ratio:1 / 1;
  margin:0;
  overflow:hidden;
  border:1px solid rgba(29,29,31,.08);
  border-radius:7px;
  background:#f5f5f7;
  box-shadow:none;
}

body.night-mode .places-page .compact-place-logo{
  border-color:rgba(255,255,255,.1);
  background:#1d1d1d;
}

.places-page .compact-place-logo img{
  display:block;
  width:100%;
  height:100%;
  padding:0;
  object-fit:cover;
}

.places-page .compact-place-logo span{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  color:var(--interaction-accent);
  font-size:clamp(20px,7vw,34px);
  font-weight:900;
}

.places-page .compact-place-card strong,
body.day-mode .places-page .compact-place-card strong,
body.night-mode .places-page .compact-place-card strong{
  display:-webkit-box;
  min-width:0;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  color:inherit;
  font-size:11px;
  font-weight:700;
  line-height:1.15;
  text-overflow:ellipsis;
  white-space:normal;
}

.places-page .compact-place-card:hover strong,
.places-page .compact-place-card:focus-visible strong,
body.day-mode .places-page .compact-place-card:hover strong,
body.day-mode .places-page .compact-place-card:focus-visible strong,
body.night-mode .places-page .compact-place-card:hover strong,
body.night-mode .places-page .compact-place-card:focus-visible strong{
  color:var(--interaction-accent);
}

@media (min-width:720px){
.places-page .explore-page-head,
body.day-mode .places-page .explore-page-head,
body.night-mode .places-page .explore-page-head{
    padding:92px 32px 36px;
  }

.places-page .places-filter-section{
    gap:14px;
    padding:26px 28px 28px;
  }

.places-page .places-filter-section .chips{
    flex-wrap:wrap;
    overflow:visible;
  }

.places-page .places-results-section{
    padding:28px;
  }

.places-page .compact-place-grid,
body.day-mode .places-page .compact-place-grid,
body.night-mode .places-page .compact-place-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:16px;
  }

.places-page .compact-place-logo,
body.day-mode .places-page .compact-place-logo,
body.night-mode .places-page .compact-place-logo{
    border-radius:14px;
  }

.places-page .compact-place-card strong,
body.day-mode .places-page .compact-place-card strong,
body.night-mode .places-page .compact-place-card strong{
    font-size:14px;
    font-weight:850;
  }
}

/* Places route owner: #places. */
