/* Reference-inspired Places presentation; all other views retain their themes. */
/* Desktop navigation inherits the glass instead of painting an opaque strip. */
@media(min-width:721px){body:has(:is(.places-browse,.places-search)) .topbar .nav{background:transparent}body:has(:is(.places-browse,.places-search)) .topbar .nav button:not(.active){color:var(--text-primary)}}
.places-browse{--surface-elevated:var(--bg-elevated);width:92%;margin-left:auto;margin-right:auto}
.places-browse .browse-shelf-skeletons .browse-place-skeleton{padding-bottom:110px}
body:has(.places-browse){--places-surface:rgba(255,255,255,.87);--places-edge:rgba(54,76,85,.24);--places-fade:#f7f7f4;background:var(--places-fade)}
[data-theme="dark"] body:has(.places-browse),body[data-theme="dark"]:has(.places-browse){--places-surface:rgba(12,27,33,.88);--places-edge:rgba(176,207,218,.25);--places-fade:#081216}
body:has(.places-browse)::before{content:"";position:absolute;inset:0 0 auto;height:650px;pointer-events:none;background:linear-gradient(180deg,transparent 55%,var(--places-fade)),linear-gradient(90deg,rgba(247,247,244,.84),rgba(247,247,244,.45) 48%,rgba(247,247,244,.08) 78%),url('assets/go/mountain-road-hero.jpg') center 48%/cover no-repeat}
[data-theme="dark"] body:has(.places-browse)::before,body[data-theme="dark"]:has(.places-browse)::before{background:linear-gradient(180deg,transparent 55%,var(--places-fade)),linear-gradient(90deg,rgba(3,13,19,.58),rgba(3,13,19,.24) 48%,rgba(3,13,19,.04) 78%),url('assets/go/mountain-road-hero.jpg') center 48%/cover no-repeat}
body:has(.places-browse) .topbar{position:relative;background:linear-gradient(160deg,var(--browse-glass-highlight),transparent 55%),var(--browse-glass);-webkit-backdrop-filter:blur(9px) saturate(140%);backdrop-filter:blur(9px) saturate(140%);border-bottom:1px solid var(--browse-glass-edge);box-shadow:inset 0 1px 0 var(--browse-glass-highlight),0 5px 18px #00000018}
.places-browse{position:relative;max-width:1500px;padding:50px 0 32px;overflow:visible}
.places-browse-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 24px;position:relative}
.places-eyebrow{display:block;color:var(--primary);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.2em;margin-bottom:10px}
.places-hero-copy h1{font-size:clamp(38px,4.8vw,64px);line-height:1.02;letter-spacing:-.04em;margin:0 0 14px;font-weight:800}
.places-hero-copy p{font-size:18px;color:var(--text-secondary);margin:0}
.places-hero-actions{display:flex;gap:12px;align-items:stretch}
.places-area-button,.places-map-button{background:var(--places-surface);border:1px solid var(--places-edge);border-radius:15px;color:var(--text-primary);backdrop-filter:blur(12px);padding:18px;min-height:78px}
.places-area-button{display:grid;grid-template-columns:28px minmax(80px,1fr) auto;gap:5px 12px;min-width:250px;text-align:left}
.places-area-button>svg{grid-row:1/3;align-self:center}.places-area-button>span{grid-column:2;font-size:10px;letter-spacing:.12em;text-transform:uppercase}.places-area-button>strong{grid-column:2;font-size:15px}.places-area-button>small{grid-column:3;grid-row:1/3;align-self:center;color:var(--primary);font-size:13px}
.places-map-button{display:flex;align-items:center;gap:10px;font-weight:600;white-space:nowrap}
.places-browse .browse-shelf{margin:0 0 44px;container-type:inline-size}.places-browse .browse-shelf-heading{margin:0 0 18px;align-items:center}.browse-shelf-heading h2{display:flex;align-items:center;gap:18px;font-size:30px;letter-spacing:-.025em;margin:0 0 8px}.browse-shelf-heading h2>svg{color:#cf142b;flex-shrink:0}.places-browse .browse-shelf-heading p{display:block;font-size:15px;color:var(--text-secondary);margin:0}.places-see-all{display:flex;align-items:center;gap:8px;white-space:nowrap;color:var(--text-primary)}
.places-browse .browse-shelf-track{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(170px,calc((100% - 90px)/6.25),260px);gap:18px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;-ms-overflow-style:none;padding:0 0 8px;margin:0;align-items:start}
.places-browse .browse-shelf-track::-webkit-scrollbar{display:none;width:0;height:0}
.places-browse .browse-place-card{min-width:0;width:auto;border:1px solid var(--places-edge);border-radius:13px;overflow:hidden;background:var(--places-surface);scroll-snap-align:start;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.places-browse .browse-place-card.is-quick-open{border-color:#ec4055;box-shadow:0 0 0 1px #ec405555,0 0 22px #d8193840;transform:translateY(-2px)}
.places-browse .browse-place-photo{aspect-ratio:6/5;border-radius:0;position:relative;width:100%}.browse-place-open{width:100%;height:100%;display:block}.places-browse .browse-place-photo img{width:100%;height:100%;object-fit:cover}
.browse-place-info{padding:11px 13px 12px}.places-browse .browse-place-card h3{font-size:16px;line-height:22px;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.places-browse .browse-place-card h3 button{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.places-browse .browse-place-card p{margin:0;color:var(--text-secondary);font-size:13px;line-height:19px}.browse-place-location{display:flex;align-items:center;gap:6px;height:19px}.browse-place-location svg{flex-shrink:0}.browse-place-location span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.places-browse .browse-place-card .browse-place-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;height:38px;margin:9px 0 12px}
.browse-place-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;color:var(--text-secondary);font-size:13px;min-height:28px}.browse-place-footer>span{display:flex;align-items:center;gap:8px;min-width:0}.browse-card-save{position:absolute;right:10px;top:10px;border-radius:50%;width:38px;height:38px;display:grid;place-items:center;background:rgba(16,33,41,.88);border:1px solid #ffffff60;color:white}.browse-card-save:hover{background:#a61b26}.browse-card-save[aria-pressed="true"]{background:#29745f;border-color:#55a98e;color:#fff}.browse-card-save[aria-pressed="true"]:hover{background:#236550}.browse-card-scramble{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:50%;border:1px solid rgba(236,64,85,.65);color:#f0475c;background:linear-gradient(155deg,rgba(255,255,255,.16),transparent 55%),rgba(12,27,33,.68);backdrop-filter:blur(9px);box-shadow:inset 0 1px 0 rgba(255,255,255,.17)}.browse-card-scramble:hover,.browse-card-scramble[aria-expanded="true"]{color:#fff;background:#bd1024;border-color:#ff5368;box-shadow:0 0 13px #e01a3055}.browse-place-quick-actions,.browse-place-quick-actions[hidden]{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows 480ms cubic-bezier(.22,.61,.36,1),opacity 320ms ease,visibility 0s linear 480ms}
.browse-place-quick-content{min-height:0;overflow:hidden;padding-top:0;border-top:0 solid var(--places-edge);transition:padding-top 480ms cubic-bezier(.22,.61,.36,1),border-top-width 480ms ease}
.is-quick-open .browse-place-quick-actions{grid-template-rows:1fr;opacity:1;visibility:visible;transition-delay:0s}
.is-quick-open .browse-place-quick-content{padding-top:7px;border-top-width:1px}
@media(prefers-reduced-motion:reduce){.browse-place-quick-actions,.browse-place-quick-content{transition:none}}.browse-scramble-primary{width:100%;min-height:38px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #f04b60;border-radius:22px;color:#fff;background:linear-gradient(160deg,#ff667638,transparent 60%),rgba(189,16,36,.94);box-shadow:inset 0 1px 0 #ffffff40,0 5px 16px #b60f2833;font-weight:750}.browse-quick-secondary-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:7px}.browse-quick-secondary{display:flex;min-width:0;flex-direction:column;align-items:center;gap:4px;padding:0;background:none;border:0;color:var(--text-primary)}.browse-quick-secondary>span{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--places-edge);border-radius:50%;background:linear-gradient(155deg,rgba(255,255,255,.13),transparent 58%),rgba(11,28,35,.22)}.browse-quick-secondary small{font-size:9px;line-height:12px;white-space:nowrap;color:var(--text-secondary)}.browse-quick-secondary[aria-pressed="true"]>span{background:#29745f;border-color:#55a98e;color:#fff}.places-browse button:focus-visible{outline:3px solid #e7354b;outline-offset:3px}.places-photo-placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:var(--surface-elevated);color:var(--text-secondary)}
.places-explore-footer{display:flex;align-items:center;gap:28px;padding:24px 28px;border:1px solid var(--places-edge);border-radius:14px;background:var(--places-surface)}.places-explore-footer small{text-transform:uppercase;letter-spacing:.12em;font-size:10px}.places-explore-footer h2{font-size:20px;line-height:1.25;margin:5px 0 0}.places-explore-footer .btn{margin-left:auto;display:flex;gap:14px;align-items:center;white-space:nowrap}
.places-browse .places-community-actions{position:absolute;right:0;bottom:-38px;margin:0;gap:12px}.places-community-actions .btn{font-size:12px;padding:3px 6px;min-height:0;background:transparent;border:0;color:var(--text-secondary)}
.places-browse .browse-place-skeleton>.skeleton-line{margin-left:13px}.places-browse .browse-place-skeleton{padding-bottom:104px}.places-browse .browse-place-skeleton .browse-place-photo{aspect-ratio:6/5}
@container(max-width:560px){.browse-place-info{padding:9px}.places-browse .browse-place-card h3{font-size:14px}.places-browse .browse-place-card p{font-size:12px}.browse-card-save{width:34px;height:34px;right:7px;top:7px}}
@media(max-width:1100px){.places-hero-actions{flex-direction:column}.places-browse{padding-top:36px}.places-map-button{min-height:50px;padding:12px 18px}.places-hero-copy h1{font-size:48px}}
@media(max-width:720px){.places-browse{padding-top:28px}.places-browse-hero{align-items:stretch;flex-direction:column;gap:22px}.places-hero-copy h1{font-size:42px}.places-hero-copy p{font-size:16px;max-width:310px}.places-hero-actions{flex-direction:row;flex-wrap:wrap;gap:8px}.places-area-button{flex:1;min-width:210px}.places-map-button{padding:12px;min-height:48px}.places-map-button span{font-size:12px}.browse-shelf-heading h2{font-size:23px;gap:10px}.browse-shelf-heading h2 svg{width:25px}.places-browse .browse-shelf-heading p{font-size:12px}.places-shelf-intro{display:none}.places-browse .browse-shelf{margin-bottom:28px}.places-see-all{font-size:12px}.places-explore-footer{padding:20px;gap:16px;flex-wrap:wrap}.places-explore-footer h2{font-size:17px}.places-explore-footer .btn{margin-left:0}.places-browse .places-community-actions{bottom:-30px;width:auto}.places-browse .browse-place-skeleton{padding-bottom:104px}}
/* Match Search's glass controls without changing card surfaces or geometry. */
body:has(.places-browse){--browse-glass:rgba(255,255,255,.52);--browse-glass-highlight:rgba(255,255,255,.55);--browse-glass-edge:rgba(255,255,255,.72)}
[data-theme="dark"] body:has(.places-browse),body[data-theme="dark"]:has(.places-browse){--browse-glass:rgba(8,23,31,.46);--browse-glass-highlight:rgba(255,255,255,.10);--browse-glass-edge:rgba(194,221,231,.38)}
.places-browse .places-area-button,.places-browse .places-map-button{background:linear-gradient(160deg,var(--browse-glass-highlight),transparent 55%),var(--browse-glass);border-color:var(--browse-glass-edge);-webkit-backdrop-filter:blur(9px) saturate(140%);backdrop-filter:blur(9px) saturate(140%);box-shadow:inset 0 1px 0 var(--browse-glass-highlight),0 5px 18px #00000018}
.places-browse .places-area-button:hover,.places-browse .places-map-button:hover{background-color:var(--places-surface)}
/* Compact only the discovery chrome. Recommendation cards retain their geometry. */
@media(min-width:721px){body:has(.places-browse) .topbar{height:78px}.places-browse{padding-top:44px}.places-browse-hero{margin-bottom:21px}.places-eyebrow{font-size:12px;margin-bottom:8px}.places-hero-copy h1{font-size:clamp(34px,4.3vw,58px);margin-bottom:12px}.places-hero-copy p{font-size:16px}.places-area-button,.places-map-button{padding:16px;min-height:70px}}

/* Keep the destination handoff label at its normal size on a single line. */
.browse-scramble-primary{white-space:nowrap;flex-wrap:nowrap}
.browse-scramble-primary>svg{flex:none}

.browse-quick-secondary[data-action="save-road"][aria-pressed="true"] svg{fill:currentColor}

.go-send-destination{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:28px;border:1px solid var(--line,#487080);border-radius:24px;background:var(--panel,#0b2029);color:var(--text,#f3f7f8)}
.go-send-destination::backdrop{background:#0009}.go-send-destination h2{font-size:26px;line-height:1.2}.go-send-destination p{font-size:18px;line-height:1.5;overflow-wrap:anywhere}.go-send-destination button{min-height:48px;margin:8px 12px 0 0}
.go-send-destination button[hidden]{display:none}

/* Mobile browse: compact discovery framing and four-place shelf previews. */
@media(max-width:720px){
 .places-browse{width:92%;padding-top:22px}
 .places-browse-hero{gap:18px;margin-bottom:28px;align-items:stretch}
 .places-hero-copy h1{font-size:clamp(34px,8.9vw,56px);margin-bottom:10px}
 .places-hero-copy p{font-size:14px;line-height:1.4;max-width:350px}
 .places-hero-actions{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:8px;width:100%}
 .places-area-button{min-width:0;min-height:64px;padding:10px;grid-template-columns:20px minmax(0,1fr) auto;gap:3px 7px}
 .places-area-button>svg{width:20px;height:24px}
 .places-area-button>span{font-size:8px;letter-spacing:.08em}
 .places-area-button>strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .places-area-button>small{font-size:10px}
 .places-map-button{min-width:0;padding:10px;gap:7px;justify-content:center}
 .places-map-button>svg{width:22px;flex-shrink:0}
 .places-map-button>span{font-size:12px;white-space:normal;text-align:left}
 .places-browse .browse-shelf-heading{gap:8px;margin-bottom:12px}
 .places-browse .browse-shelf-heading h2{font-size:clamp(17px,4.8vw,26px);gap:8px;margin-bottom:5px}
 .places-browse .browse-shelf-heading h2>svg{width:23px;height:23px}
 .places-browse .browse-shelf-heading p{font-size:12px}
 .places-see-all{font-size:12px;gap:3px;min-height:44px}
 .places-see-all>svg{width:16px}
 .places-browse .browse-shelf-track{grid-auto-flow:column;grid-auto-columns:clamp(154px,44vw,210px);grid-template-columns:none;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
 .places-browse .browse-shelf-track>.browse-place-card{scroll-snap-align:start}
 .places-browse .browse-shelf-sentinel{min-width:80px;min-height:44px}
 .places-browse .browse-place-info{display:grid;grid-template-columns:minmax(0,1fr) 36px;column-gap:3px;padding:9px 8px 10px}
 .places-browse .browse-place-card h3{grid-column:1;font-size:14px;line-height:18px;height:54px;min-height:54px;white-space:normal;margin-bottom:3px}
 .places-browse .browse-place-card h3 button{display:block;white-space:normal;line-height:18px;max-height:54px;overflow:hidden;text-align:left}
 .places-browse .browse-place-card h3 button>span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;max-height:54px;overflow:hidden;overflow-wrap:anywhere}
 .places-browse .browse-place-location{grid-column:1;font-size:11px;line-height:16px;margin:0}
 .places-browse .browse-place-location>svg{display:none}
 .places-browse .browse-place-card .browse-place-description,.places-browse .browse-place-footer>span{display:none}
 .places-browse .browse-place-footer{grid-column:2;grid-row:1/3;align-self:center;margin:0;justify-content:center}
 .places-browse .browse-card-scramble{min-width:36px;min-height:36px;width:36px;height:36px;aspect-ratio:1;border-radius:50%;padding:0}
 .places-browse .browse-place-quick-actions{grid-column:1/-1}
 .places-browse .browse-quick-secondary small{white-space:normal;line-height:12px;text-align:center}
}

@media(max-width:720px){
 .places-browse .places-browse-hero>.places-community-actions{position:static;align-self:flex-end;width:auto;margin:-10px 0 -16px}
 .places-browse .places-community-actions .btn{min-height:32px}
}
