/* ===== 1. Everywhere: keyboard focus, header and footer tap areas ===== */
html summary:focus-visible{outline:3px solid #d9a441;outline-offset:2px;border-radius:6px}
html header .nav-brand .logo,html footer .logo,html footer .footer-app-link{position:relative}
html header .nav-brand .logo::after{content:'';position:absolute;inset:-5px 0}
html footer .logo::after{content:'';position:absolute;inset:-11px 0}
html footer .footer-app-link::after{content:'';position:absolute;inset:-12px -6px}

/* ===== 2. Page bottoms: one bottom padding, not two stacked ===== */
html body.info-page .info-body,html body.whatson-page .whatson-empty,html body.categories-page .categories-towns,
html body.region-page .golf-main>.card-grid:last-child{margin-bottom:0}
html body.favorites-page #favRoot,html body.golf-page .list-venue,html body.owner-page .op-wrap,html body.golf-page .ski-guide{padding-bottom:0}
html body.golf-page .not-found-main{padding-bottom:48px}
@media(max-width:640px){
html body.golf-page:not(.my-trip-page):not(.map-page) .golf-main{padding-bottom:40px}
}

/* ===== 3. Homepage ===== */
/* A photo that has not loaded yet shows the card's own gradient, not a broken-image icon. */
html #homeSimple img[data-src]:not([src]){visibility:hidden}
/* Long guide names (French) break between syllables, never mid-word with a stray letter. */
html #homeSimple .guide-chip .gt{overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}
html #homeSimple .quick-search input{text-overflow:ellipsis}
@media(max-width:700px){
html #homeSimple .view{position:relative}
html #homeSimple .view::after{content:'';position:absolute;inset:-4px 0}
}
@media(max-width:400px){
/* The two live cards: "Happy Hour Now" fits on one line beside "Roam Now", so both promises start level. */
html #homeSimple .hero-action:not(.wide){padding-left:11px;padding-right:11px}
html #homeSimple .hero-action:not(.wide) b{gap:6px;font-size:14px;letter-spacing:-.012em}
/* The numbers strip stays on one row in French, so no divider is left hanging on a second row. */
html #homeSimple .home-stats li{padding-left:10px;padding-right:10px}
}

/* ===== 4. Town pages ===== */
html body main.bw-landing .bw-search:focus-within{outline:3px solid #d9a441;outline-offset:2px}
/* The three shortcut pills wrap when their French labels are longer than the phone is wide. */
@media(max-width:650px){
html body main.bw-landing .bw-small-link{min-height:44px}
html body main.bw-landing .bw-tools{display:flex;flex-wrap:wrap;gap:6px}
html body main.bw-landing .bw-tools a{flex:1 1 auto;justify-content:center;padding:0 5px}
/* Mood tiles: a two-line label reaches the bright part of the photo, so the scrim starts higher. */
html body main.bw-landing .bw-tile::after{background:linear-gradient(#10293700 8%,#10293799 48%,#102937eb 100%)}
html body main.bw-landing .bw-tile span{text-shadow:0 1px 6px #08141e99}
}
@media(max-width:340px){html body main.bw-landing .bw-heading{flex-wrap:wrap;row-gap:8px}}

/* ===== 5. List pages (hubs, town categories, guides, browse) ===== */
/* No results: a card with a clear next step instead of loose text. */
html body.fd-page .fd-no-results{margin:14px 0 0;padding:18px 20px;border:1px solid var(--rp-line,#e6dfce);border-radius:var(--rp-radius,18px);background:var(--rp-paper,#fffdf8);box-shadow:var(--rp-shadow-1,0 6px 16px -10px #14252e33)}
html body.browse-page .bh-list-venue{margin-top:24px}
html body.fd-page .fd-search-input{text-overflow:ellipsis}
@media(max-width:899px){
html body.golf-page .card-grid>li.venue-card .card-action.trip-btn::after{content:'';position:absolute;inset:-5px 0}
html body.golf-page .card-grid>li.venue-card .fd-extra-features>summary{position:relative}
html body.golf-page .card-grid>li.venue-card .fd-extra-features>summary::after{content:'';position:absolute;inset:-11px -6px}
}
html body.fd-page .fd-search-clear::after{content:'';position:absolute;inset:-7px -8px}
@media(max-width:640px){
html body.fd-page.fd-refresh .fd-type-row .outdoor-filter-chip{position:relative;min-width:44px;min-height:40px!important}
html body.fd-page.fd-refresh .fd-type-row .outdoor-filter-chip::after{content:'';position:absolute;inset:-2px 0}
}

/* ===== 6. Place pages (outdoor, indoor, tour, beach, golf layouts) ===== */
/* "See hours" stays on one line beside the open status, in English and French. */
html body.golf-page .venue-open-status>a{flex:none;white-space:nowrap}
html #klLayout .kl-nearby-head{gap:6px 16px}
html #klLayout .kl-nearby-head h2{margin-bottom:0}
html #klLayout .kl-nearby-head>a,html body.fd-venue-page .fd-section-title>a{display:inline-block;padding:10px 0;margin:-10px 0}
html body.golf-page .venue-hours-usual>summary,html body.page-trip .t3-how>summary{position:relative}
html body.golf-page .venue-hours-usual>summary::after,html body.page-trip .t3-how>summary::after{content:'';position:absolute;inset:-10px 0}
/* Nearby cards on phones: "Add to trip" sits beside the photo under the name, so the card is as tall as its photo. */
@media(max-width:899px){
html :is(#klLayout,#gbLayout) .nearby-card{position:relative;padding-bottom:0}
html :is(#klLayout,#gbLayout) .nearby-link{min-height:112px;align-content:start}
html :is(#klLayout,#gbLayout) .nearby-link img{height:100%;min-height:112px;object-fit:cover}
html :is(#klLayout,#gbLayout) .nearby-name{padding-bottom:60px}
html :is(#klLayout,#gbLayout) .nearby-card .card-action{position:absolute;left:124px;bottom:8px;margin:0!important}
html #gbLayout .nearby-card .card-action{left:115px}
}

/* ===== 7. Favorites, What's On, 404, forms, business login ===== */
html body.favorites-page .fav-empty{max-width:560px;padding:20px;border:1px solid var(--rp-line,#e6dfce);border-radius:18px;background:var(--paper,#fffcf6)}
html body.favorites-page .fav-empty p:last-child{margin:14px 0 -8px;font-size:0}
html body.favorites-page .fav-empty p:last-child a{display:inline-flex;align-items:center;min-height:44px;margin:0 8px 8px 0;padding:0 16px;border:1px solid #1b2b3a38;border-radius:999px;background:#fff;color:var(--ref-navy,#1b2b3a);font-size:.95rem;font-weight:700;text-decoration:none}
html body.whatson-page .wo-any-day{position:relative}
html body.whatson-page .wo-any-day::after{content:'';position:absolute;inset:-10px -6px}
html body.golf-page .nf-popular a{display:inline-flex;align-items:center;min-height:44px}
html body.golf-page .venue-form .amenity-check{display:inline-flex;min-height:44px}
html body.golf-page .venue-form .lyv-consent{padding:11px 0;margin-top:-6px;margin-bottom:-6px}
html body.golf-page .venue-form .amenity-check input,html body.golf-page .venue-form .lyv-consent input{flex:none;width:18px;height:18px;margin:0;accent-color:var(--teal,#2a6b67)}
html body.owner-page main p a:not([class]),html body.owner-page main .op-hint a:not([class]){padding:11px 0;margin:-11px 0}
@media(max-width:480px){body.owner-page .venue-form{padding:24px 20px}}

/* ===== 8. Roam Now map: focus, tap size and input zoom only ===== */
html body.map-page .pm-searchbar:focus-within{outline:3px solid #d9a441;outline-offset:2px}
html body.map-page .pm-sheet-body:focus-visible{outline:3px solid #d9a441;outline-offset:-3px}
html body.map-page .pm-mic{position:relative}
html body.map-page .pm-mic::after{content:'';position:absolute;inset:0 -6px}
html body.map-page .rn-selected-filters .pm-chip{position:relative}
html body.map-page .rn-selected-filters .pm-chip::after{content:'';position:absolute;inset:-5px 0}
@media(max-width:899px){body.pm-app-page.rn-design .rn-search-row .pm-search{font-size:16px}}