.home-app { --pine: #162e2c; --cream: #f8f6ef; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.app-discover[hidden], .app-dock [hidden] { display: none; }
.app-mast, .home-app .rp-search { max-width: 1520px; margin: auto; padding-inline: clamp(16px, 3vw, 48px); }
.app-mast, .app-brand, .app-actions, .app-modes, .app-discover nav { display: flex; align-items: center; }
.app-mast { justify-content: space-between; padding-block: 8px; }
.app-brand { gap: 10px; font: 700 clamp(18px,3vw,24px) 'Playfair Display', Georgia, serif; color: var(--pine); text-decoration: none; }
.app-brand img { border-radius: 10px; }
.app-actions { gap: 14px; font: 600 .84rem var(--font-util); }
.app-actions a { color: var(--pine); }
.app-modes { background: var(--cream); border-radius: 24px; padding: 3px; }
.app-modes a { text-decoration: none; text-align: center; font: 700 .85rem var(--font-util); color: var(--pine); padding: 10px 14px; border-radius: 22px; }
.app-modes a[aria-current] { background: var(--pine); color: #fff; }
.home-app .rp-search { padding-bottom: 10px; }
.home-app main { max-width: 1520px; margin-inline: auto; }
.app-discover { position: relative; isolation: isolate; background: var(--pine); color: #fff; margin: 18px clamp(14px,2vw,30px); overflow: hidden; border-radius: 16px; }
.app-discover picture, .app-discover img, .app-discover::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.app-discover img { object-fit: cover; object-position: 50% 55%; }
.app-discover::after { content: ''; background: linear-gradient(90deg,rgba(10,31,33,.93),rgba(10,31,33,.66) 48%,rgba(10,31,33,.07)); }
.app-intro { padding: clamp(24px,4vw,60px); }
.app-intro h1 { max-width: 15ch; margin: 0 0 20px; font: 700 clamp(34px,4vw,63px)/1.03 'Playfair Display',Georgia,serif; color: white; letter-spacing: -.035em; }
.app-discover nav { flex-wrap: wrap; gap: 7px; }
.app-discover nav a { border: 1px solid #ffffff8a; border-radius: 30px; padding: 7px 12px; background: #112d2c75; color: white; text-decoration: none; font: 600 .85rem var(--font-util); }
.app-discover nav a:hover { background: #fff; color: var(--pine); }
.home-app #mwResults, .home-app .mwr-map { scroll-margin-top: var(--rp-h,140px); }
.home-app .mwr-mapfab { display: none; }
.app-dock { position: fixed; z-index: 42; bottom: env(safe-area-inset-bottom,0); left: 50%; transform: translateX(-50%); width: min(100%,530px); display: flex; padding: 4px 8px; background: var(--pine); border-radius: 16px 16px 0 0; box-shadow: 0 -3px 16px #10292322; }
.app-dock button,.app-dock a { flex: 1; position: relative; border: 0; border-radius: 12px; background: none; color: white; font: 600 .72rem var(--font-util); cursor: pointer; text-align: center; text-decoration: none; display: grid; place-content: center; min-height: 52px; }
.app-dock span { font: 23px/1.1 Arial,sans-serif; }
.app-dock [aria-pressed=true] { color: #f4d18c; background: #ffffff12; }
.app-dock b { position: absolute; right: 12%; top: 4px; }
.app-close { padding: 9px 20px; border: 0; border-radius: 18px; color: white; background: var(--pine); cursor: pointer; }
#appInstallHelp { padding: 22px; }
@media(max-width:600px) {
  .home-app .rp-search { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 5px; padding-inline: 10px; }
  .app-modes a { padding: 10px 7px; font-size: .76rem; }
  .home-app .rp-ss-text { display: none; }
  .home-app .rp-savesearch { min-width: 42px; }
  .home-app .rp-search form { padding-left: .6rem; }
  .app-discover { margin: 10px; }
  .app-discover::after { background: linear-gradient(90deg,#0c272bdd,#112b2c70); }
  .app-intro { padding: 20px; }
  .app-discover nav a { font-size: .76rem; padding: 7px 9px; }
  .app-actions { gap: 7px; }
  .app-dock { bottom: 0; padding-bottom: calc(4px + env(safe-area-inset-bottom)); }
}
