/* ParkQuest component sizing system. Loaded last to neutralize legacy breakpoint drift. */
:root{--content-max:1000px;--control-height:44px;--detail-width:380px;--space-page:32px}
button,a,input,select,textarea{max-width:100%}button,a{touch-action:manipulation}
.view-inner{width:min(var(--content-max),calc(100% - 64px))!important;padding:42px 0 60px!important}
.primary-action,.secondary-action,.toggle-event-filters,.load-more-events{min-height:var(--control-height);padding:10px 15px!important}
.app-breadcrumbs{width:min(var(--content-max),calc(100% - 64px))!important}
.stats div{min-width:88px!important;padding:10px 14px!important}.stats strong{font-size:25px!important}
.game-panel{grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr)!important}.level-card,.quest-card,.passport-section{padding:18px!important}.achievement{min-height:96px!important}
.profile-card,.settings-card,.social-profile-card,.saved-events-card,.leaderboard-card,.visits-section{padding:22px!important}
.profile-avatar{width:56px!important;height:56px!important}.settings-card>div{padding:15px 4px!important}
.event-card{grid-template-columns:58px minmax(0,1fr)!important;gap:13px!important;padding:15px 0!important}.event-date-tile{width:58px;height:58px!important}.event-date-tile strong{font-size:23px!important}.event-card-actions{margin-top:10px!important}
.explore-layout{grid-template-columns:290px minmax(360px,1fr) var(--detail-width)!important;min-height:calc(100dvh - 48px)!important}.explore-panel{padding:28px 20px!important}.explore-heading h1{font-size:32px!important}.explore-heading>p:last-child{margin:8px 0 18px!important}.map-stage{min-height:calc(100dvh - 48px)!important}.map-stage #discovery-map{height:calc(100dvh - 48px)!important}.park-detail-pane{width:auto;max-height:calc(100dvh - 48px)!important;padding:18px!important}.selected-place #map{height:128px!important;border-radius:10px!important}.selected-copy{padding:14px 2px 8px!important}.selected-copy>p{margin-bottom:5px!important;font-size:11px!important}.selected-copy>strong{font-size:23px!important;line-height:1.22!important;letter-spacing:-.02em!important}.selected-copy>span{font-size:13px!important;line-height:1.45!important}.detail-actions{gap:8px!important}.detail-actions button,.park-directions{min-height:40px!important;margin-top:8px!important;font-size:12px!important}.community-panel,.park-events-panel{padding:17px 2px!important}.community-panel h3,.park-events-heading h3{font-size:19px!important}.content-section-heading{margin-bottom:9px!important}.content-section-heading p,.park-events-heading p{font-size:13px!important}.reviews-empty,.events-empty{margin:10px 0!important;font-size:13px!important}.guest-gate{padding:16px!important}.guest-gate strong{font-size:18px!important}.guest-gate span{font-size:13px!important}.guest-gate button{min-height:42px;font-size:13px!important}.visit-form{padding:17px!important}.visit-form-heading h2{font-size:20px!important}
.nearby-card{min-height:58px}.search-area-button{min-height:42px!important;padding:9px 14px!important;font-size:13px!important}
@media(max-width:1280px) and (min-width:761px){:root{--detail-width:370px}.explore-layout{grid-template-columns:275px minmax(360px,1fr)!important}.park-detail-pane{position:fixed!important;inset:0 0 0 auto!important;width:min(var(--detail-width),42vw)!important;max-height:100dvh!important;padding:20px!important}.map-stage,.map-stage #discovery-map{min-height:100dvh!important;height:100dvh!important}}
@media(max-width:900px) and (min-width:761px){.view-inner,.app-breadcrumbs{width:calc(100% - 40px)!important}.game-panel{grid-template-columns:1fr!important}.achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.explore-layout{grid-template-columns:260px minmax(320px,1fr)!important}.park-detail-pane{width:min(360px,52vw)!important}}
@media(max-width:760px){:root{--space-page:16px}.view-inner{width:auto!important;padding:22px 16px 34px!important}.app-breadcrumbs{width:auto!important;margin-inline:16px!important}.passport-hero h1{font-size:38px!important}.stats{width:100%}.stats div{flex:1}.game-panel{grid-template-columns:1fr!important}.level-card,.quest-card,.passport-section{padding:16px!important}.achievement-grid{grid-template-columns:1fr 1fr!important}.achievement{min-height:132px!important}.profile-card,.settings-card,.social-profile-card,.saved-events-card,.leaderboard-card,.visits-section{padding:16px!important}.explore-layout{display:block!important;min-height:calc(100dvh - 58px - var(--mobile-nav))!important}.explore-panel{padding:18px 16px 12px!important}.explore-heading h1{font-size:31px!important}.map-stage{height:45dvh!important;min-height:280px!important}.map-stage #discovery-map{height:45dvh!important;min-height:280px!important}.park-detail-pane{position:fixed!important;inset:auto 0 calc(var(--mobile-nav) + env(safe-area-inset-bottom)) 0!important;width:auto!important;max-height:min(76dvh,680px)!important;padding:0!important;border-radius:18px 18px 0 0!important}.selected-place #map{height:118px!important;border-radius:18px 18px 0 0!important}.selected-copy{padding:14px 16px 8px!important}.selected-copy>strong{font-size:22px!important}.community-panel,.park-events-panel{padding:16px!important;margin:0!important}.visit-form{margin:0 12px 12px!important;padding:16px!important}.guest-gate{margin:0 12px 12px}.event-card{grid-template-columns:52px minmax(0,1fr)!important}.event-date-tile{width:52px;height:52px!important}.event-card-actions{grid-template-columns:1fr 1fr!important}.event-card-actions a,.event-card-actions button{min-height:42px!important}.mobile-tabbar button{min-width:0}.mobile-tabbar button>span{font-size:19px!important}.mobile-tabbar button small{font-size:11px!important}}
@media(max-width:390px){.achievement-grid{grid-template-columns:1fr!important}.event-card{grid-template-columns:46px minmax(0,1fr)!important}.event-date-tile{width:46px;height:46px!important}.event-card-actions{grid-template-columns:1fr!important}.event-card-actions .event-save{grid-column:auto!important}.passport-primary-actions{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
