/*
 * ds-location.css: STAFF PREVIEW ONLY (18 Nov 2026, design rollout prep)
 * Restyles the location page template (public/cms_content/location.html, page_layout 'location', ~961 active pages).
 * Loaded only when BOTH the EXPOHIRE_STAFF and EXPOHIRE_DS_PREVIEW=1 cookies are set (same gate as fragments/header.html),
 * after ds-chrome.css + ds-content.css, which define the --g / --ink / --line ... variables on body.ds and already
 * restyle buttons, cards and form controls. The template adds body.ds-loc via a one-line script.
 * Every rule is scoped to body.ds.ds-loc #contents, so nothing else on the site is affected.
 *
 * Deliberately NOT styled (owned by the separate Bootstrap 5 class fix, ds-bootstrap5-compat.css):
 *   .usp-list .faq-list .city-cross-links .row.g-3 .border-start .ps-3 .accordion*, and the set-dates form.
 * Rollback: delete this file and restore location.html from beta-check/backup-location-restyle-20261118-130247/.
 */

/* ---------- Hero (desktop carousel caption; both template branches) ---------- */
body.ds.ds-loc #contents > .row > .col > .carousel { margin-top: 12px; }
body.ds.ds-loc #contents > .row > .col > .carousel .carousel-inner { border-radius: var(--r) !important; box-shadow: var(--shadow-sm); }
/* Dark overlay only where the caption shows (>= 992px); below that the title sits in #page-title */
@media (min-width: 992px) {
	body.ds.ds-loc #contents > .row > .col > .carousel .carousel-item::after {
		content: ""; position: absolute; inset: 0; pointer-events: none;
		background: linear-gradient(90deg, rgba(15, 26, 20, .78) 0%, rgba(15, 26, 20, .45) 45%, rgba(15, 26, 20, 0) 75%);
	}
}
body.ds.ds-loc #contents > .row > .col > .carousel .carousel-caption {
	z-index: 2; left: 40px; right: auto; bottom: 50%; transform: translateY(50%);
	max-width: 560px; padding: 0; text-align: left;
}
body.ds.ds-loc #contents > .row > .col > .carousel .carousel-caption > :is(h1, h2) {
	background: none !important; color: #fff !important; text-align: left !important;
	text-transform: none !important; padding: 0 !important; margin: 0 0 10px !important;
	font-family: var(--font); font-size: 2.25rem; font-weight: 700; line-height: 1.12; letter-spacing: -.01em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
body.ds.ds-loc #contents > .row > .col > .carousel .carousel-caption > h1::before {
	content: ""; display: block; width: 44px; height: 4px; border-radius: 2px;
	background: var(--g); margin-bottom: 14px;
}
body.ds.ds-loc #contents > .row > .col > .carousel .carousel-caption > p {
	background: none !important; color: rgba(255, 255, 255, .92) !important; text-align: left !important;
	padding: 0 !important; font-size: 1.05rem; font-weight: 400 !important; line-height: 1.5;
}

/* ---------- Mobile title block (#page-title, < 992px) ---------- */
body.ds.ds-loc #contents > .row > .col > #page-title {
	border: 1px solid var(--line) !important; border-radius: var(--r); overflow: hidden;
	background: #fff; box-shadow: var(--shadow-sm); margin-top: 12px;
}
body.ds.ds-loc #contents > .row > .col > #page-title > h2 {
	background: #fff !important; color: var(--ink) !important; text-align: left !important;
	text-transform: none !important; font-family: var(--font); font-size: 1.5rem; font-weight: 700; line-height: 1.2;
	padding: 18px 18px 6px !important; border-top: 4px solid var(--g);
}
body.ds.ds-loc #contents > .row > .col > #page-title > p {
	background: #fff !important; color: var(--ink-2) !important; text-align: left !important;
	font-weight: 400 !important; padding: 0 18px 18px !important; line-height: 1.55;
}

/* ---------- Body copy (#main-content: page_content) ---------- */
body.ds.ds-loc #contents #main-content { color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
body.ds.ds-loc #contents #main-content > p { margin: 0 0 1rem; }
body.ds.ds-loc #contents #main-content > h2 {
	color: var(--ink); font-family: var(--font); font-size: 1.6rem; font-weight: 700; line-height: 1.2;
	letter-spacing: -.01em; text-transform: none; margin: 2rem 0 .75rem;
}
body.ds.ds-loc #contents #main-content > h2:first-child { margin-top: 0; }
body.ds.ds-loc #contents #main-content > h3 {
	color: var(--ink); font-family: var(--font); font-size: 1.2rem; font-weight: 700; line-height: 1.3;
	text-transform: none; margin: 1.5rem 0 .5rem;
}
body.ds.ds-loc #contents #main-content > h4 { color: var(--ink); font-size: 1.05rem; font-weight: 700; text-transform: none; margin: 1.25rem 0 .5rem; }
body.ds.ds-loc #contents #main-content > hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
body.ds.ds-loc #contents #main-content > p > a:not(.btn),
body.ds.ds-loc #contents #main-content > ul:not([class]) a:not(.btn),
body.ds.ds-loc #contents #main-content > ol:not([class]) a:not(.btn) {
	color: var(--g-700); font-weight: 500; text-decoration: underline;
	text-decoration-color: rgba(71, 124, 21, .35); text-underline-offset: 3px;
}
body.ds.ds-loc #contents #main-content > p > a:not(.btn):hover,
body.ds.ds-loc #contents #main-content > ul:not([class]) a:not(.btn):hover,
body.ds.ds-loc #contents #main-content > ol:not([class]) a:not(.btn):hover { color: var(--ink); text-decoration-color: var(--g); }

/* Plain (unclassed) lists only, so .usp-list / .faq-list / .city-cross-links are left alone */
body.ds.ds-loc #contents #main-content > ul:not([class]) { list-style: none; padding-left: 0; margin: 0 0 1.25rem; }
body.ds.ds-loc #contents #main-content > ul:not([class]) > li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; }
body.ds.ds-loc #contents #main-content > ul:not([class]) > li::before {
	content: ""; position: absolute; left: .25rem; top: .62em; width: 7px; height: 7px;
	border-radius: 50%; background: var(--g);
}
body.ds.ds-loc #contents #main-content > ol:not([class]) { padding-left: 1.4rem; margin: 0 0 1.25rem; }
body.ds.ds-loc #contents #main-content > ol:not([class]) > li { margin-bottom: .5rem; padding-left: .25rem; }
body.ds.ds-loc #contents #main-content > ol:not([class]) > li::marker { color: var(--g-700); font-weight: 700; }

body.ds.ds-loc #contents #main-content > p > img,
body.ds.ds-loc #contents #main-content > img { border-radius: var(--r-sm); max-width: 100%; height: auto; }

/* ---------- Sidebar cards (carriage calculator, local venues, area links, events, venue finder) ---------- */
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card { overflow: hidden; }
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card > .card-header.bg-primary {
	background-color: var(--g-50) !important; color: var(--ink); border-bottom: 1px solid var(--line);
	border-top: 4px solid var(--g); font-family: var(--font); font-size: .95rem; font-weight: 700;
	text-transform: none !important; letter-spacing: 0;
}
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card > .card-header.bg-primary h5 {
	color: var(--ink); font-family: var(--font); font-size: .95rem; font-weight: 700; text-transform: none !important;
}
/* Area/venue card headers are a full-width btn link; flatten it into a plain heading link */
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card > .card-header.p-0 .btn-block {
	background: transparent; border: 0; border-radius: 0; color: var(--ink); text-align: left;
	padding: .75rem 1.25rem; font-size: .95rem; white-space: normal;
}
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card > .card-header.p-0 .btn-block:hover { color: var(--g-700); background: transparent; }
body.ds.ds-loc #contents #main-content + .col-lg-3 > :is(#location-venues, #location-children, #location-siblings) > .card-body {
	color: var(--muted); line-height: 1.75; padding: .75rem 1.25rem !important;
}
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card > .card-body a:not(.btn) { color: var(--ink-2); }
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card > .card-body a:not(.btn):hover { color: var(--g-700); text-decoration: underline; }

/* Carriage calculator */
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card.border-primary { border-color: var(--line) !important; }
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card.border-primary > .card-body { padding: 0 1rem !important; }
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card.border-primary > .card-body > h6 {
	color: var(--ink); font-family: var(--font); font-size: 1rem; font-weight: 700; text-transform: none !important;
	text-align: left !important; margin: 1rem 0 .5rem !important; padding: 0 !important;
}
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card.border-primary > .card-body > p { color: var(--ink-2); padding: 0 !important; }
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card.border-primary > .card-footer { background: #fff; padding: .75rem 1rem 1rem !important; border-top: 0; }
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card.border-primary > .card-footer .input-group {
	border: 1px solid #cfd6ce; border-radius: 999px; overflow: hidden; flex-wrap: nowrap;
}
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card.border-primary > .card-footer .input-postcode { height: 40px; padding-left: 1rem; text-transform: uppercase; }
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card.border-primary > .card-footer .input-group-append .btn { padding: 0 1rem; white-space: nowrap; }

/* ---------- Category grid below the content ---------- */
body.ds.ds-loc #contents > .row > .col > .container > .same-category .expo-product-card-new {
	border-radius: var(--r) !important; box-shadow: var(--shadow-sm) !important;
	border: 1px solid var(--line) !important; overflow: hidden;
	transition: box-shadow .15s ease, transform .15s ease;
}
body.ds.ds-loc #contents > .row > .col > .container > .same-category .expo-product-card-new:hover {
	box-shadow: var(--shadow) !important; transform: translateY(-2px);
}
body.ds.ds-loc #contents > .row > .col > .container > .same-category .expo-product-card-new img { border-radius: 0 !important; }

@media (max-width: 991.98px) {
	body.ds.ds-loc #contents #main-content + .col-lg-3 { margin-top: 1rem; }
}
@media (max-width: 767.98px) {
	body.ds.ds-loc #contents #main-content > h2 { font-size: 1.35rem; margin-top: 1.5rem; }
	body.ds.ds-loc #contents #main-content > h3 { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
	body.ds.ds-loc #contents > .row > .col > .container > .same-category .expo-product-card-new { transition: none; }
	body.ds.ds-loc #contents > .row > .col > .container > .same-category .expo-product-card-new:hover { transform: none; }
}

/* =====================================================================
 * Hero/benchmark polish (18 Nov 2026, staff preview only; showcase page /manchester-event-hire).
 * General-purpose: applies to every location page. Matches the beta homepage hero (dark 100deg overlay,
 * white title, pill CTAs) and card family. Backup: beta-check/backup-hero-location-20261118-131929/.
 * ===================================================================== */

/* Hero: homepage-style overlay and CTA row (.ds-loc-cta is emitted by location.html for DS renders only) */
@media (min-width: 992px) {
	body.ds.ds-loc #contents > .row > .col > .carousel .carousel-item::after {
		background: linear-gradient(100deg, rgba(10, 20, 14, .9) 0%, rgba(10, 20, 14, .7) 42%, rgba(10, 20, 14, .2) 80%);
	}
	body.ds.ds-loc #contents > .row > .col > .carousel .carousel-caption { left: 48px; max-width: 600px; }
	body.ds.ds-loc #contents > .row > .col > .carousel .carousel-caption > :is(h1, h2) {
		font-size: clamp(2.1rem, 1.2rem + 1.6vw, 2.75rem); letter-spacing: -.02em; text-wrap: balance;
	}
	body.ds.ds-loc #contents > .row > .col > .carousel .carousel-caption > p { font-size: 1.1rem; color: #dfe7e1 !important; max-width: 34em; text-wrap: pretty; }
}
body.ds.ds-loc #contents .ds-loc-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
body.ds.ds-loc #contents .ds-loc-cta .btn {
	display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px;
	font-family: var(--font); font-size: .95rem; font-weight: 700; text-transform: none !important; letter-spacing: 0;
}
body.ds.ds-loc #contents .ds-loc-cta .btn-primary { background: var(--g); border-color: var(--g); color: var(--ink); }
body.ds.ds-loc #contents .ds-loc-cta .btn-primary:hover { background: #fff; border-color: #fff; color: var(--ink); }
body.ds.ds-loc #contents .ds-loc-cta .btn-outline-light { background: transparent; border: 2px solid rgba(255, 255, 255, .7); color: #fff; }
body.ds.ds-loc #contents .ds-loc-cta .btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
body.ds.ds-loc #contents .ds-loc-cta .btn:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; }

/* Mobile/tablet (< 992px): show the real caption (with its h1) as a dark panel under the photo and hide the
   duplicate h2 block (#page-title), so phones get a visible h1. Markup is unchanged for normal visitors. */
@media (max-width: 991.98px) {
	body.ds.ds-loc #contents > .row > .col > #page-title { display: none !important; }
	body.ds.ds-loc #contents > .row > .col > .carousel .carousel-inner { background: var(--dark); }
	body.ds.ds-loc #contents > .row > .col > .carousel .carousel-caption.d-none {
		display: block !important; position: static; transform: none; max-width: none;
		padding: 20px 20px 22px; background: var(--dark); color: #fff;
	}
	body.ds.ds-loc #contents > .row > .col > .carousel .carousel-caption > :is(h1, h2) { font-size: 1.65rem; }
	body.ds.ds-loc #contents > .row > .col > .carousel .carousel-caption > h1::before { margin-bottom: 12px; }
	body.ds.ds-loc #contents > .row > .col > .carousel .carousel-caption > p { font-size: 1rem; color: #dfe7e1 !important; }
	body.ds.ds-loc #contents .ds-loc-cta { margin-top: 16px; }
	body.ds.ds-loc #contents .ds-loc-cta .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; padding: 0 18px; }
}

/* Carriage calculator: lead with the figure; keep the postcode box clear of the sticky header when the hero CTA jumps to it */
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card.border-primary > .card-body > h6 { font-size: 1.15rem; line-height: 1.25; }
body.ds.ds-loc #contents #hire-form-postcode { scroll-margin-top: 260px; }
body.ds.ds-loc #contents #hire-form-postcode:focus { box-shadow: none; }
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card.border-primary > .card-footer .input-group:focus-within {
	border-color: var(--g-700); box-shadow: 0 0 0 3px rgba(130, 188, 65, .25);
}

/* Venue / area / sibling link lists: pill chips instead of a bullet-separated run-on paragraph.
   font-size: 0 hides the literal "•" / &nbsp; separators; the links restore their own size. */
body.ds.ds-loc #contents #main-content + .col-lg-3 > :is(#location-venues, #location-children, #location-siblings) > .card-body {
	font-size: 0; line-height: 0; display: flex; flex-wrap: wrap; gap: 6px; padding: .85rem 1rem 1rem !important;
}
body.ds.ds-loc #contents #main-content + .col-lg-3 > :is(#location-venues, #location-children, #location-siblings) > .card-body > a {
	display: inline-block; font-size: .8125rem; line-height: 1.3; padding: 5px 11px; border: 1px solid var(--line);
	border-radius: 999px; background: #fff; color: var(--ink-2); text-decoration: none; font-weight: 500;
}
body.ds.ds-loc #contents #main-content + .col-lg-3 > :is(#location-venues, #location-children, #location-siblings) > .card-body > a:hover {
	border-color: var(--g); background: var(--g-50); color: var(--ink); text-decoration: none;
}

/* "Start planning your event" date form (same treatment as the category-page preview) */
body.ds.ds-loc #contents #set-dates-form { background: var(--g-50) !important; border: 1px solid var(--g-100) !important; border-radius: var(--r) !important; box-shadow: var(--shadow-sm); }
body.ds.ds-loc #contents #set-dates-form > h5.bg-primary {
	background: var(--dark) !important; color: #fff; font-family: var(--font); font-weight: 700; font-size: 15px; letter-spacing: .04em;
	border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0 !important; padding: 12px 16px !important;
}
body.ds.ds-loc #contents #set-dates-form .form-control { border-radius: var(--r-sm); border-color: var(--line); background: #fff; min-height: 36px; }
body.ds.ds-loc #contents #set-dates-form .form-control:focus { border-color: var(--g-700); box-shadow: 0 0 0 3px rgba(130, 188, 65, .25); }
body.ds.ds-loc #contents #set-dates-form h6 { color: var(--muted); }
body.ds.ds-loc #contents #set-dates-form .btn { border-radius: 999px; }
/* Phones: the blank form is a fixed bottom bar (combined.css); keep it square-cornered there */
@media (max-width: 782px) {
	body.ds.ds-loc #contents #set-dates-form.set-dates-form-blank { border-radius: 0 !important; box-shadow: 0 -8px 24px -12px rgba(15, 26, 20, .35); }
	body.ds.ds-loc #contents #set-dates-form.set-dates-form-blank > h5.bg-primary { border-radius: 0 !important; padding: 9px 12px !important; font-size: 13px; }
}

/* Link lists as tidy rows (labels like "Display Cabinet Hire Manchester" are too long for chips).
   Block flow, not flex: flex turns the hidden "•" text runs into gap-spaced anonymous items. */
body.ds.ds-loc #contents #main-content + .col-lg-3 > :is(#location-venues, #location-children, #location-siblings) > .card-body {
	display: block; padding: .25rem 1rem .5rem !important;
}
body.ds.ds-loc #contents #main-content + .col-lg-3 > :is(#location-venues, #location-children, #location-siblings) > .card-body > a {
	display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0;
	padding: 8px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none;
	font-size: .875rem; line-height: 1.35;
}
body.ds.ds-loc #contents #main-content + .col-lg-3 > :is(#location-venues, #location-children, #location-siblings) > .card-body > a:last-of-type { border-bottom: 0; }
body.ds.ds-loc #contents #main-content + .col-lg-3 > :is(#location-venues, #location-children, #location-siblings) > .card-body > a::after {
	content: "\203A"; color: var(--g-700); font-size: 1.1rem; line-height: 1; flex: none;
}
body.ds.ds-loc #contents #main-content + .col-lg-3 > :is(#location-venues, #location-children, #location-siblings) > .card-body > a:hover { background: none; color: var(--g-700); }
/* Legacy theme uppercases h6; event names in the Upcoming Events card read better in sentence case */
body.ds.ds-loc #contents #main-content + .col-lg-3 > .card > .card-body h6 { text-transform: none !important; }

/* < 992px: the template's main .row (-15px margins) sits in a .col.px-1 (4px padding), so phones scrolled ~11px sideways */
@media (max-width: 991.98px) {
	body.ds.ds-loc #contents > .row > .col > .row.my-3 { margin-left: -.25rem; margin-right: -.25rem; }
}

/* Hero CTA "Check delivery cost": land with the calculator card below the sticky header (anchor targets #hire-form-postcode) */
html:has(> body.ds.ds-loc) { scroll-padding-top: min(400px, 45vh); }
@media (max-width: 991.98px) {
	html:has(> body.ds.ds-loc) { scroll-padding-top: min(360px, 45vh); }
}
