/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Discover Snowshoe – Bricks child theme (theme-level styles and behaviours).
 Author:       Discover Snowshoe
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* Roboto (self-hosted variable font) – the original buttons, breadcrumbs and some labels render in Roboto */
@font-face{font-family:"Roboto";font-style:normal;font-weight:100 900;font-display:swap;src:url("assets/fonts/roboto-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
.ds-alt-font{font-family:"Roboto",sans-serif;font-weight:500}
.ds-w500{font-weight:500}

/* ==========================================================================
   Header (absolute over the hero, fades out on scroll – fixed Menu button stays)
   ========================================================================== */
#brx-header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 20;
	pointer-events: none;
}
#brx-header a,
#brx-header button,
#brx-header .ds-header__search {
	pointer-events: auto;
}
.ds-header__logo,
.ds-header__temp,
.ds-header__search {
	opacity: 1;
	transform: translateY(0);
	transition: all .3s ease;
}
body.ds-scrolled .ds-header__logo,
body.ds-scrolled .ds-header__temp,
body.ds-scrolled .ds-header__search {
	opacity: 0;
	transform: translateY(-20px);
	pointer-events: none;
}
.ds-menu-toggle {
	border: 0;
	display: grid;
	grid-template-rows: auto auto;
	justify-items: center;
	align-content: center;
	row-gap: 0;
	padding: 0;
	outline: 0;
}
.ds-menu-toggle:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}
body.ds-scrolled .ds-menu-toggle {
	background-color: rgba(45, 111, 120, .7);
}
body.admin-bar .ds-menu-toggle {
	top: 32px;
}
@media (max-width: 782px) {
	body.admin-bar .ds-menu-toggle {
		top: 46px;
	}
}
.ds-menu-toggle .brxe-text-basic {
	margin-top: -2px;
}

/* Popups: no backdrop padding, full-bleed content */
.brx-popup.ds-fullscreen .brx-popup-content {
	width: 100vw;
	max-width: 100vw;
	min-height: 100vh;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ds-footer-social li a {
	width: 50px;
	height: 50px;
	border: 2px solid #fff;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all .3s ease;
}
.ds-footer-social li a:hover {
	background: #000;
	border-color: #000;
}
@media (max-width: 1024px) {
	.ds-footer-social li a { width: 44px; height: 44px; }
}
@media (max-width: 767px) {
	.ds-footer-social li a { width: 32px; height: 32px; }
}
/* Newsletter button: left aligned text with a short white underline (as original) */
.ds-newsletter-btn {
	justify-content: flex-start;
	position: relative;
}
.ds-newsletter-btn::after {
	content: "";
	position: absolute;
	left: 150px;
	bottom: 12px;
	width: 50px;
	height: 2px;
	background: #fff;
}
@media (max-width: 767px) {
	.ds-newsletter-btn::after { left: 100px; }
}

/* ==========================================================================
   Home page
   ========================================================================== */
/* Hero: dark gradient at the top so the white header stays legible */
.ds-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .4) 15%, rgba(0, 0, 0, 0) 25%);
	pointer-events: none;
	z-index: 1;
}
.ds-hero .brxe-image img {
	display: block;
	width: 100%;
}
/* "Find more in the mountains" slider area (pulled to the right as in the original) */
.mountain-slider-area { max-width: 88vw; margin-left: auto; margin-right: 0; }
@media (max-width: 1440px) {
	.ds-mountain-slider-area, .mountain-slider-area { max-width: 1300px !important; }
}
@media (max-width: 1300px) {
	.ds-carousel-title, .carousal-main-title { font-size: 42px !important; }
}
@media (max-width: 1024px) {
	.ds-carousel-title, .carousal-main-title { font-size: 36px !important; }
}
@media (max-width: 767px) {
	.ds-mountain-slider-area, .mountain-slider-area { max-width: 100% !important; }
	.ds-carousel-title, .carousal-main-title { font-size: 28px !important; }
}
.ds-mountain-carousel .splide__track {
	overflow: visible;
	clip-path: inset(0 -100vw 0 0); /* clip the left clones, let the next slides peek out on the right */
}
.ds-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .17);
	z-index: 1;
	pointer-events: none;
}
.ds-slide img,
.ds-tile__img img,
.ds-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ds-tile__img { position: absolute; inset: 0; }
/* Share bar: teal block on the right (35%) with a white divider */
.ds-share::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 35%;
	height: 100%;
	background: #2F6F78;
	border-left: 10px solid #fff;
	z-index: 1;
}
@media (max-width: 767px) {
	.ds-share::before {
		width: 100%;
		height: calc(50% + 5px);
		top: auto;
		bottom: 0;
		border-left: 0;
		border-top: 10px solid #fff;
	}
}
/* Query loop "no results" text */
.brxe-container .brx-query-no-results,
.ds-events-grid .brx-query-no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 20px 0;
}

/* ==========================================================================
   Inline links inside text (the original kit link style)
   ========================================================================== */
.brxe-text a:not(.brxe-button),
.brxe-text-basic a,
.brxe-post-content a:not(.wp-element-button) {
	font-family: "futura-pt", sans-serif !important;
	font-size: 20px !important;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 1.5px !important;
	color: #2D6F78;
	text-decoration: none;
	transition: color .3s ease;
}
.brxe-text a:not(.brxe-button):hover,
.brxe-text-basic a:hover,
.brxe-post-content a:not(.wp-element-button):hover {
	color: #000;
}
.ds-breadcrumb .separator { color: #2D6F78; }

/* ==========================================================================
   Image hover zoom (gallery tiles, carousels)
   ========================================================================== */
.ds-zoom {
	overflow: hidden;
}
.ds-zoom img {
	transition: transform .8s ease;
}
.ds-zoom:hover img,
a:hover > .ds-zoom img,
.ds-zoom:hover > a img {
	transform: scale(1.2);
}

/* Focus outline reset (as on the original site) */
a:focus {
	outline: 0;
}
a:focus-visible {
	outline: 2px solid #2D6F78;
	outline-offset: 2px;
}

/* ==========================================================================
   Content pages – share bar (class kept from the original: .bg-gradient-border)
   ========================================================================== */
.bg-gradient-border {
	position: relative;
}
.bg-gradient-border::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 35%;
	height: 100%;
	background: #2F6F78;
	border-left: 10px solid #fff;
	z-index: 0;
}
.bg-gradient-border > * { position: relative; z-index: 1; }
@media (max-width: 767px) {
	.bg-gradient-border::before {
		width: 100%;
		height: calc(50% + 5px);
		top: auto;
		bottom: 0;
		border-left: 0;
		border-top: 10px solid #fff;
	}
}
.brx-query-no-results, .brxe-block > .brx-query-no-results { text-align: center; }

/* Wide image carousel (Food & Drink categories row): small centred titles, tight hover zoom */
.ds-wide-carousel .splide__track { overflow: visible; clip-path: inset(0 -100vw 0 -100vw); }
.ds-wide-carousel .ds-slide { height: 100%; }
.ds-wide-carousel .ds-slide__title {
	font-size: 17px; letter-spacing: 3px; bottom: 20px; left: 0; width: 100%; padding: 0 10px;
}
.ds-wide-carousel .ds-slide::before { background: rgba(0, 0, 0, .25); }

/* Category menu (blog archive + single post): single line, "MORE ..." dropdown */
.ds-cat-menu .bricks-nav-menu { flex-wrap: nowrap; }
.ds-cat-menu .bricks-nav-menu > li > a,
.ds-cat-menu .bricks-nav-menu > li > .brx-submenu-toggle > a { white-space: nowrap; }
.ds-cat-menu .sub-menu { min-width: 200px; right: 0; left: auto; }
.ds-cat-menu .sub-menu a { white-space: nowrap; }

/* ==========================================================================
   Blog post body (clean content converted from the original Elementor layouts)
   ========================================================================== */
.ds-post-content img { max-width: 100%; height: auto; }
.ds-post-content h3 { margin: 0 0 6px; }
.ds-post-content h3.ds-upper { text-transform: uppercase; }
body strong, body b { font-weight: 600; }
.ds-post-content p { margin: 0 0 1em; }
.ds-post-content ul, .ds-post-content ol { margin: 0 0 1em; padding-left: 1.4em; }
.ds-post-content hr.ds-hr {
	border: 0;
	border-top: 1px solid #D2DEE2;
	margin: 22px 0 18px;
}
.ds-post-cols {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 40px;
	align-items: start;
	margin-bottom: 15px;
}
.ds-post-cols > .ds-post-col > :last-child { margin-bottom: 0; }
@media (max-width: 767px) {
	.ds-post-cols { grid-template-columns: 1fr; gap: 20px; }
}
.ds-post-cta { text-align: center; margin-top: 40px; }
.ds-post-cta a.wp-element-button {
	display: inline-block;
	font-family: "Roboto", sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 3px;
	color: #2D6F78;
	background: transparent;
	border: 3px solid #2D6F78;
	padding: 15px 20px;
	text-decoration: none;
	transition: all .3s ease;
}
.ds-post-cta a.wp-element-button:hover { color: #000; border-color: #000; }

/* ==========================================================================
   Single event / listing hero, swipe gallery
   ========================================================================== */
.ds-gallery-slider {
	display: flex !important;
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ds-gallery-slider::-webkit-scrollbar { display: none; }
.ds-gallery-slider li {
	flex: 0 0 100%;
	width: 100% !important;
	scroll-snap-align: start;
	height: 100%;
}
.ds-gallery-slider li figure, .ds-gallery-slider li a, .ds-gallery-slider li img {
	display: block; width: 100%; height: 100%; object-fit: cover;
}
.ds-gallery-count {
	position: absolute; right: 0; bottom: 0; z-index: 3;
	background: #0f6a78; color: #fff; font-size: 12px; line-height: 50px; padding: 0 14px; pointer-events: none;
	font-family: "Century Gothic", sans-serif;
}
.ds-hero-single__media { min-height: 260px; }
@media (max-width: 767px) { .ds-hero-single__media { min-height: 220px; } }
.ds-social-icon { transition: color .3s; }
.ds-social-icon:hover { color: #000; }
.ds-info-item a { color: inherit; text-decoration: none; font-family: inherit; font-size: inherit; letter-spacing: 0; }

/* ==========================================================================
   Directory archive
   ========================================================================== */
.ds-listing-section { background-position: bottom right; background-repeat: no-repeat; }
.ds-listing-section .ds-view-btn.is-active { color: #2F6F78; border-bottom-color: #2F6F78; }
.ds-listing-body.ds-map-active, .ds-map-active .ds-listing-body { align-items: flex-start; }
.ds-listing-section.ds-map-active .ds-listing-grid-wrap.brxe-block { width: 60%; grid-template-columns: repeat(2, 1fr); }
.ds-listing-section.ds-map-active .ds-listing-map.brxe-block {
	width: 40%; height: auto; opacity: 1; visibility: visible; position: sticky; top: 0; overflow: visible;
}
@media (max-width: 1024px) { .ds-listing-section.ds-map-active .ds-listing-grid-wrap.brxe-block { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
	.ds-listing-section.ds-map-active .ds-listing-grid-wrap.brxe-block { display: none; }
	.ds-listing-section.ds-map-active .ds-listing-map.brxe-block { width: 100%; }
}
.ds-list-view .ds-listing-grid { grid-template-columns: 1fr; }
.ds-list-view .ds-listing-card { flex-direction: row; align-items: flex-start; padding: 0 14px 0 0; }
.ds-list-view .ds-listing-card > img, .ds-list-view .ds-listing-card > a { width: 285px; max-width: 285px; flex-shrink: 0; }
.all-directory-category .brxe-filter-checkbox label, .brxe-filter-checkbox { font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.all-directory-category ul ul { display: none; }
.all-directory-category .brx-option-count { display: none; }

/* ==========================================================================
   Layout safety: root containers are fluid up to the site width
   ========================================================================== */
html body .brxe-container {
	width: 100%;
	max-width: var(--ds-container, 1180px);
}
/* children of flex rows must be able to shrink */
.brxe-block, .brxe-container, .brxe-div { min-width: 0; }

/* Plan-style post cards: smaller centred thumbnail on phones (as the original) */
@media (max-width: 767px) {
	.ds-post-cards .ds-card-img { width: 76%; align-self: center; }
}
/* Directory filter: top-level categories only (children are hidden, as in the original) */
.all-directory-category .brx-filter-options li:has(label.depth-1),
.all-directory-category .brx-filter-options li:has(label.depth-2) { display: none; }

/* Carousel arrows: Font Awesome carets inside the square outline buttons */
.ds-mountain-carousel .splide__arrow { display: flex; align-items: center; justify-content: center; padding: 0; transform: none; }
.ds-mountain-carousel .splide__arrow:hover { border-color: #000; color: #000; }

/* Query "no results" message is centred (as in the original) */
.bricks-posts-nothing-found { text-align: center; padding: 19px 0 20px; }
.ds-home-events .bricks-posts-nothing-found { padding: 0; }
/* Home cards show only the first category (as the Elementor card skin did) */
.ds-card-badge li:nth-child(n+2) { display: none; }
.ds-card-badge a.bricks-button { padding: 0; background: none; border: 0; }

/* Elementor keeps the bottom margin of the last paragraph in a text block (20px) – same rhythm here */
.brxe-text > p:last-child, .brxe-text > ul:last-child, .brxe-text > ol:last-child { margin-bottom: 20px; }

.ds-wide-carousel .ds-slide.brxe-block { height: 265px; }
@media (max-width: 1024px) { .ds-wide-carousel .ds-slide.brxe-block { height: 240px; } }
@media (max-width: 767px) { .ds-wide-carousel .ds-slide.brxe-block { height: 300px; } }

/* Home tiles: on tablets the second row starts in the 2nd column (as on the original site) */
@media (min-width: 768px) and (max-width: 1024px) {
	.ds-tile--tabstart { grid-column-start: 2; }
}

/* Content pages: the carousel starts flush with the column (no extra column padding) */
.mountain-slider-area .ds-mountain-carousel { margin-left: -10px; }

/* Category menu: items are 10px-padded links in 10px-margin list items (as the original Jet menu) */
.ds-cat-menu .bricks-nav-menu > li { margin: 0 10px !important; }
.ds-cat-menu .bricks-nav-menu > li > .brx-submenu-toggle > button { display: none; }
/* Elementor post thumbnails sit at scale(1.01) at rest */
.ds-post-row__pic { transform: scale(1.01); }
.ds-cat-menu .bricks-nav-menu > li.menu-item-has-children { margin-left: auto !important; }
@media (max-width: 767px) {
	.ds-cat-menu .bricks-nav-menu > li { margin: 0 5px !important; }
}
.ds-cat-menu .bricks-nav-menu { width: 100% !important; }
