/*
Theme Name: SlovakFinance Core
Theme URI: https://slovakfinance.sk
Author: SlovakFinance
Author URI: https://slovakfinance.sk
Description: Minimal maintained theme replacing Boxcar framework dependencies while keeping frontend parity.
Version: 0.1.22
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: slovakfinance-core
*/

/* Intentionally tiny: visual styles are loaded from template.css/style.css assets. */


/* Header builder parity for template id 1391 */
.elementor-1391 .elementor-element.elementor-element-dc263bb {
	--padding-top: 6px;
	--padding-bottom: 6px;
	--padding-left: 45px;
	--padding-right: 45px;
}

.elementor-1391 .elementor-element.elementor-element-dc263bb:not(.elementor-motion-effects-element-type-background),
.elementor-1391 .elementor-element.elementor-element-dc263bb > .elementor-motion-effects-container > .elementor-motion-effects-layer {
	background-color: #050b20;
}

.elementor-1391 .elementor-element.elementor-element-173c1c9 .navbar-nav.megamenu > li > a {
	color: #ffffff;
	font-weight: 400;
	text-transform: none;
}

.elementor-1391 .elementor-element.elementor-element-173c1c9 .navbar-nav.megamenu > li:hover > a,
.elementor-1391 .elementor-element.elementor-element-173c1c9 .navbar-nav.megamenu > li.active > a {
	color: #ffffff;
}

@media (max-width: 1024px) {
	.elementor-1391 .elementor-element.elementor-element-dc263bb {
		--padding-top: 7px;
		--padding-bottom: 7px;
		--padding-left: 0px;
		--padding-right: 0px;
	}
}

/* Stable native desktop header layout: logo left, menu right */
#sfc-site-header.sfc-simple-header {
	background-color: #050b20;
}


/* Listing detail gallery: enforce desktop split and right 2-column grid. */
.listing-detail-gallery.c-single-listing-gallery .c-single-listing-gallery__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-left: 0;
	margin-right: 0;
}

.listing-detail-gallery.c-single-listing-gallery .c-single-listing-gallery__row > .c-single-listing-gallery__primary-col,
.listing-detail-gallery.c-single-listing-gallery .c-single-listing-gallery__row > .c-single-listing-gallery__secondary-wrap {
	padding-left: 0;
	padding-right: 0;
}

.listing-detail-gallery.c-single-listing-gallery .c-single-listing-gallery__secondary-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.listing-detail-gallery.c-single-listing-gallery .c-single-listing-gallery__secondary-grid .p-popup-image {
	margin-bottom: 0;
	height: 100%;
}

@media (min-width: 992px) {
	.listing-detail-gallery.c-single-listing-gallery .c-single-listing-gallery__primary-col {
		flex: 0 0 calc(58.333333% - 6px);
		max-width: calc(58.333333% - 6px);
	}

	.listing-detail-gallery.c-single-listing-gallery .c-single-listing-gallery__secondary-wrap {
		flex: 0 0 calc(41.666667% - 6px);
		max-width: calc(41.666667% - 6px);
	}
}

@media (max-width: 991px) {
	.listing-detail-gallery.c-single-listing-gallery .c-single-listing-gallery__primary-col,
	.listing-detail-gallery.c-single-listing-gallery .c-single-listing-gallery__secondary-wrap {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/*
 * Main menu: desktop vs mobile header uses Bootstrap `xl` display utilities (1200px).
 * Use 860px+ for desktop bar + megamenu; 859px and below for mobile/offcanvas.
 */
@media (min-width: 860px) {
	#sfc-site-header.sfc-site-header.d-none {
		display: block !important;
	}

	#sfc-mobile-menu.sfc-offcanvas.d-xl-none,
	#sfc-header-mobile.header-mobile.d-xl-none {
		display: none !important;
	}

	.c-menu--desktop .c-menu__sidebar {
		display: none !important;
	}
}

@media (max-width: 859px) {
	#sfc-site-header.sfc-site-header.d-xl-block {
		display: none !important;
	}

	#sfc-mobile-menu.sfc-offcanvas.d-xl-none,
	#sfc-header-mobile.header-mobile.d-xl-none {
		display: block !important;
	}
}
