body.profile-page {
	/* Profile theme variables (overrideable) */
	--profile-bg: #f5f7fb;
	--profile-bg-accent-1: rgba(0,62,124,0.11);
	--profile-bg-accent-2: rgba(0,62,124,0.06);
	--profile-gridkit-panel-bg: #fffaf1;
	--profile-text: #111827;
	--profile-surface: #ffffff;
	--profile-border-light: rgba(15,23,42,0.06);
	--profile-shadow-md: rgba(15,23,42,0.08);
	--profile-accent: #003e7c;

	background-color: var(--profile-bg) !important;
	background-image:
		radial-gradient(1200px 280px at 50% 0%, var(--profile-bg-accent-1), rgba(0, 62, 124, 0.00)),
		radial-gradient(circle at 14px 14px, var(--profile-bg-accent-2) 1px, rgba(0, 62, 124, 0.00) 1px);
	background-size: auto, 22px 22px;
	background-attachment: fixed;
	height: 100%;
	margin: 0;
	padding: 0;
	padding-top: 70px !important;
	scroll-behavior: auto;
	-webkit-text-size-adjust: 100% !important;
	-ms-text-size-adjust: 100% !important;
	touch-action: manipulation;
	color: var(--profile-text);
	--bs-body-bg: var(--profile-bg);
	--gridkit-sticky-bg: var(--profile-gridkit-panel-bg);
	--gridkit-has-searchpanel-bg: var(--profile-gridkit-panel-bg);
}

/* ----------------------------------------
   Light mode header: visually distinct
   (so it's obvious this isn't the main site)
------------------------------------------- */

body.profile-page:not(.profile-page-dark) header.profile-page {
	background: linear-gradient(180deg, rgba(0, 62, 124, 0.96), rgba(0, 62, 124, 0.90)) !important;
	color: #ffffff !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
	box-shadow: 0 12px 34px rgba(15, 23, 42, 0.18);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

body.profile-page:not(.profile-page-dark) header.profile-page a,
body.profile-page:not(.profile-page-dark) header.profile-page .text-white {
	color: #ffffff !important;
}

body.profile-page:not(.profile-page-dark) header.profile-page a:hover {
	color: #ffffff !important;
}

body.profile-page:not(.profile-page-dark) header.profile-page .topbar-logo {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

header.profile-page {
	position: fixed !important;
	z-index: 1030 !important;
	top: 0 !important;
	width: 100% !important;
}

.topbar-logo {
	height: 50px;
	width: 50px;
}


/* ----------------------------------------
   Light mode card / GridKit alap stílusok 
------------------------------------------- */

body.profile-page .card {
	background-color: #ffffff;
	border-color: rgba(15,23,42,0.06);
	border-top: 1px solid rgba(15,23,42,0.06);
	box-shadow: 0 10px 30px rgba(15,23,42,0.08);
}

body.profile-page .profile-description {
	color: #111827;
}

body.profile-page .text-muted {
	color: #6b7280 !important;
}

body.profile-page footer {
	background-color: #111827;
}

/* Light mode footer: match header look */
body.profile-page:not(.profile-page-dark) footer {
	background: linear-gradient(180deg, rgba(0, 62, 124, 0.92), rgba(0, 62, 124, 0.98)) !important;
	color: #ffffff !important;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

body.profile-page:not(.profile-page-dark) footer a {
	color: rgba(255, 255, 255, 0.95) !important;
}

body.profile-page:not(.profile-page-dark) footer a:hover {
	color: #ffffff !important;
}

body.profile-page:not(.profile-page-dark) footer h5::after {
	background: linear-gradient(90deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.90) 60%, rgba(255,255,255,0.55) 100%) !important;
}

body.profile-page .gridkit-card,
body.profile-page .gridkit-card .card,
body.profile-page .gridkit-card-grid .gridkit-card,
body.profile-page .gridkit-card-grid .card {
	background-color: #ffffff;
	color: #111827;
	border-color: rgba(15,23,42,0.06);
}

body.profile-page .gridkit-card .card-title,
body.profile-page .gridkit-card .card-text {
	color: #111827;
}

body.profile-page .offer-mainimage {
	background-color: #0b1220;
}

body.profile-page .offer-thumbs img {
	background-color: #ffffff;
}

body.profile-page .gridkit-card-price {
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	padding: 10px 16px;
	margin: 12px 0;
	text-align: right;
	font-weight: 700;
	font-size: 20px;
	color: #003e7c;
	box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

/* ----------------------------------------
  Light mode - GridKit sticky paginator bar
  (prevents white background from --bs-body-bg)
------------------------------------------- */

body.profile-page .gridkit-pagination.gridkit-pagination-sticky-top.gridkit-pagination-is-stuck,
body.profile-page .gridkit-pagination.gridkit-pagination-sticky-bottom.gridkit-pagination-is-stuck {
	background: var(--gridkit-sticky-bg) !important;
}

.profile-cover-slideshow {
	position: relative;
	width: 100%;
	aspect-ratio: 1300 / 300; /* 13:3 */
	min-height: 0;
}

@supports not (aspect-ratio: 1300 / 300) {
	.profile-cover-slideshow {
		height: auto;
	}
	.profile-cover-slideshow::before {
		content: "";
		display: block;
		padding-top: 23.0769%; /* 300 / 1300 */
	}
}

.backbuttons a {
	color: #000;
	text-decoration: none;
	font-weight: bold;
}

.profile-cover-slideshow .profile-cover-slide {
	position: absolute;
	inset: 0;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity .6s ease;
}

.profile-cover-slideshow .profile-cover-slide.active {
	opacity: 1;
	z-index: 1;
}

.profile-cover-slideshow .profile-cover-map-slide {
	background: #dbe4ef;
}

.profile-header-map {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 100%;
	overflow: hidden;
	cursor: pointer;
	text-decoration: none;
	background: #e5e7eb;
	color: inherit;
}

.profile-header-map::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.profile-header-map-render {
	display: block;
	position: absolute;
	inset: 0;
	z-index: 1;
}

.profile-header-map-render.leaflet-container .leaflet-control-attribution {
	font-size: 10px;
	line-height: 1.2;
}

.profile-map-unavailable {
	display: flex;
	position: relative;
	z-index: 3;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #e5e7eb;
	color: #475467;
	font-weight: 700;
}

.profile-cover-slideshow .profile-cover-indicators {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	padding: 5px 6px;
	background: rgba(15, 23, 42, .46);
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .28);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	z-index: 4;
}

.profile-cover-slideshow .profile-cover-dot {
	width: 10px;
	height: 10px;
	border: 1px solid rgba(15, 23, 42, .52);
	padding: 0;
	background: rgba(255, 255, 255, .72);
	box-shadow: 0 1px 3px rgba(15, 23, 42, .35);
	transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.profile-cover-slideshow .profile-cover-dot:hover,
.profile-cover-slideshow .profile-cover-dot:focus-visible {
	background: #fff;
	transform: scale(1.08);
}

.profile-cover-slideshow .profile-cover-dot:focus-visible {
	outline: 2px solid var(--profile-accent);
	outline-offset: 2px;
}

.profile-cover-slideshow .profile-cover-dot.active {
	background: #fff;
	border-color: rgba(15, 23, 42, .78);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 1px 4px rgba(15, 23, 42, .5);
}


/* ----------------------------------------
  Dark mode styles 
------------------------------------------- */

body.profile-page-dark {
	/* Dark profile theme variables */
	--profile-bg-dark: #050811;
	--profile-bg-dark-accent-1: rgba(37,99,235,0.16);
	--profile-bg-dark-accent-2: rgba(226,232,255,0.06);
	--profile-text-dark: #f5f7ff;
	--profile-sticky-dark: #121a33;
	--profile-surface: #0f1729;
	--profile-surface-raised: #121a33;
	--profile-border-dark: rgba(148, 163, 184, 0.18);
	--profile-border-strong-dark: rgba(148, 163, 184, 0.28);
	--profile-muted-dark: #aab4c8;

	background-color: var(--profile-bg-dark) !important;
	background-image:
		radial-gradient(1200px 300px at 50% 0%, var(--profile-bg-dark-accent-1), rgba(37, 99, 235, 0.00)),
		radial-gradient(circle at 16px 16px, var(--profile-bg-dark-accent-2) 1px, rgba(226, 232, 255, 0.00) 1px);
	background-size: auto, 26px 26px;
	background-attachment: fixed;
	color: var(--profile-text-dark);
	--bs-body-bg: var(--profile-bg-dark);
	--gridkit-sticky-bg: var(--profile-sticky-dark);
}

/* Dark mode header/footer: distinct from main site */
body.profile-page-dark header.profile-page {
	background: linear-gradient(180deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 41, 0.94)) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
	box-shadow: 0 14px 40px rgba(0,0,0,0.35);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

body.profile-page-dark header.profile-page a,
body.profile-page-dark header.profile-page .text-white {
	color: #f5f7ff !important;
}

body.profile-page-dark header.profile-page .topbar-logo {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

body.profile-page-dark footer {
	background: linear-gradient(180deg, rgba(15, 23, 41, 0.96), rgba(2, 6, 23, 0.98)) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.10);
}

body.profile-page-dark footer a {
	color: rgba(245, 247, 255, 0.95) !important;
}

body.profile-page-dark footer a:hover {
	color: #ffffff !important;
}

body.profile-page-dark footer h5::after {
	background: linear-gradient(90deg, rgba(37,99,235,0.30) 0%, rgba(245,247,255,0.85) 60%, rgba(37,99,235,0.30) 100%) !important;
}

body.profile-page-dark a {
	color: #e0e5ff;
}

body.profile-page-dark a:hover {
	color: #ffffff;
}

body.profile-page-dark .card {
	background-color: #0f1729;
	color: #f5f7ff;
}

body.profile-page-dark .profile-card {
	background: linear-gradient(180deg, rgba(18, 26, 51, 0.94), rgba(15, 23, 41, 0.98));
	border: 1px solid var(--profile-border-dark);
	border-radius: 8px;
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
	color: var(--profile-text-dark);
}

body.profile-page-dark .profile-card .border-top {
	border-top-color: var(--profile-border-dark) !important;
}

body.profile-page-dark .profile-cover-slideshow {
	background: #050811;
	border-bottom: 1px solid var(--profile-border-dark);
}

body.profile-page-dark .profile-cover-map-slide {
	background: #0b1220;
}

body.profile-page-dark .profile-description {
	color: #e2e8ff;
}

body.profile-page-dark .text-muted {
	color: #a0aec0 !important;
}

body.profile-page-dark .backbuttons a {
	color: #e0e5ff;
}

body.profile-page-dark .profile-cover-slideshow .profile-cover-indicators {
	background: rgba(2, 6, 23, .58);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

body.profile-page-dark .profile-cover-slideshow .profile-cover-indicators .profile-cover-dot {
	background: rgba(255, 255, 255, .72);
	border-color: rgba(226, 232, 240, .88);
}

body.profile-page-dark .profile-cover-slideshow .profile-cover-indicators .profile-cover-dot.active {
	background: #fff;
	border-color: #fff;
}

body.profile-page-dark .gridkit-card,
body.profile-page-dark .gridkit-card .card,
body.profile-page-dark .gridkit-card-grid .gridkit-card,
body.profile-page-dark .gridkit-card-grid .card {
	background-color: var(--profile-surface) !important;
	color: #e5e7eb !important;
	border-color: var(--profile-border-dark) !important;
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22) !important;
}

body.profile-page-dark .gridkit-card .card-title,
body.profile-page-dark .gridkit-card .card-text {
	color: #e5e7eb !important;
}

body.profile-page-dark .fm-offers-card-grid {
	--fm-card-border: var(--profile-border-dark);
	--fm-card-border-hover: rgba(239, 68, 68, 0.42);
	--fm-card-panel: #0b1220;
	--fm-card-text: #f5f7ff;
	--fm-card-muted: var(--profile-muted-dark);
	--fm-card-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
	--fm-card-shadow-hover: 0 18px 34px rgba(0, 0, 0, 0.34);
}

body.profile-page-dark .fm-offers-card-grid .fm-offer-card {
	background: linear-gradient(180deg, #10182b 0%, #0d1426 100%) !important;
	border-color: var(--profile-border-dark) !important;
	box-shadow: var(--fm-card-shadow) !important;
}

body.profile-page-dark .fm-offers-card-grid.gridkit-card-hover-soft .fm-offer-card:hover:not(.gridkit-selected) {
	background: linear-gradient(180deg, #121c33 0%, #0f1729 100%) !important;
	border-color: var(--fm-card-border-hover) !important;
	box-shadow: var(--fm-card-shadow-hover) !important;
}

body.profile-page-dark .fm-offers-card-grid .fm-offer-card-media,
body.profile-page-dark .fm-offers-card-grid .fm-offer-card .gridkit-img-wrap {
	background: linear-gradient(180deg, #111827 0%, #0b1220 100%) !important;
	border-bottom-color: var(--profile-border-dark) !important;
}

body.profile-page-dark .fm-offers-card-grid .fm-offer-card-title,
body.profile-page-dark .fm-offers-card-grid .fm-offer-card-title a {
	color: var(--fm-card-text) !important;
}

body.profile-page-dark .fm-offers-card-grid .fm-offer-card-title a:hover {
	color: #fecaca !important;
}

body.profile-page-dark .fm-offers-card-grid .fm-offer-card .gridkit-card-info:not(.fm-offer-card-price) {
	color: var(--fm-card-muted) !important;
}

body.profile-page-dark .fm-offers-card-grid .fm-offer-card .gridkit-card-label {
	color: #eef2ff !important;
}

body.profile-page-dark .fm-offers-card-grid .fm-offer-card .gridkit-card-value {
	color: var(--fm-card-muted) !important;
}

body.profile-page-dark .gridkit-total-count {
	color: #9ca3af !important;
}

body.profile-page-dark .gridkit-pagination-nav .pagination .page-item .page-link {
	background-color: #020617 !important;
	border-color: #1f2937 !important;
	color: #e5e7eb !important;
}

body.profile-page-dark .gridkit-pagination-nav .pagination .page-item:not(.active):not(.disabled) .page-link:hover {
	background-color: #111827 !important;
	border-color: #374151 !important;
	color: #f9fafb !important;
}

body.profile-page-dark .gridkit-pagination-nav .pagination .page-item.active .page-link {
	background-color: #2563eb !important;
	border-color: #2563eb !important;
	color: #f9fafb !important;
}

body.profile-page-dark .gridkit-qm-burger {
	background: #020617;
	border-color: #1f2937;
	color: #e5e7eb;
}

body.profile-page-dark .gridkit-qm-burger:hover {
	background: #111827;
	color: #f9fafb;
}

body.profile-page-dark .gridkit-qm-link {
	color: #e5e7eb;
}

body.profile-page-dark .gridkit-qm-link:hover {
	background: #111827;
}

body.profile-page-dark .gridkit-card-price {
	background-color: #0b1220;
	border: 1px solid var(--profile-border-dark);
	padding: 10px 16px;
	margin: 12px 0;
	text-align: right;
	font-weight: 700;
	font-size: 20px;
	color: #f9fafb;
	box-shadow: 0 4px 12px rgba(15,23,42,0.75);
}

body.profile-page-dark .fm-offers-card-grid .fm-offer-card-price {
	background: #111827 !important;
	border-color: var(--profile-border-dark) !important;
	border-left-color: #ef4444 !important;
	color: #f8fafc !important;
	box-shadow: none !important;
}

body.profile-page-dark .offer-gallery {
	background-color: #020617;
	border: 1px solid var(--profile-border-dark) !important;
}

body.profile-page-dark .offer-detail-layout {
	--offer-surface: #0f1729;
	--offer-subtle: #121a33;
	--offer-border: var(--profile-border-dark);
	--offer-text: #f5f7ff;
	--offer-muted: var(--profile-muted-dark);
	--offer-accent: #93c5fd;
	--bs-border-color: var(--profile-border-dark);
	color: var(--offer-text);
}

body.profile-page-dark .offer-media-panel,
body.profile-page-dark .offer-summary-panel {
	background: linear-gradient(180deg, #10182b 0%, #0f1729 100%);
	border-color: var(--offer-border) !important;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

body.profile-page-dark .offer-title,
body.profile-page-dark .offer-section-title,
body.profile-page-dark .offer-meta-list dd,
body.profile-page-dark .offer-attrs-grid .attr,
body.profile-page-dark .offer-attrs-grid .fw-semibold {
	color: #f5f7ff;
}

body.profile-page-dark .offer-meta-list > div,
body.profile-page-dark .offer-attrs-grid .attr {
	background: rgba(18, 26, 51, 0.92);
	border-color: var(--offer-border);
}

body.profile-page-dark .offer-description {
	color: #d7deec;
}

body.profile-page-dark .offer-section {
	border-top-color: var(--offer-border);
}

body.profile-page-dark .offer-category-link {
	color: #bfdbfe;
}

body.profile-page-dark .offer-category-link:hover,
body.profile-page-dark .offer-category-link:focus {
	color: #dbeafe;
}

body.profile-page-dark .offer-price {
	background: #10251b;
	border-color: rgba(74, 222, 128, 0.22);
	border-left-color: #22c55e;
	color: #bbf7d0;
}

body.profile-page-dark .offer-mainimage {
	background: linear-gradient(180deg, #111827 0%, #020617 100%) !important;
	border-color: var(--offer-border) !important;
}

body.profile-page-dark .offer-moreinfo a {
	color: #bfdbfe;
}

body.profile-page-dark .offer-moreinfo a:hover {
	color: #ffffff;
}

body.profile-page-dark .offer-external-disclaimer {
	background: rgba(124, 45, 18, 0.26);
	border-color: rgba(251, 146, 60, 0.32);
	color: #fed7aa;
}

body.profile-page-dark .offer-external-disclaimer__title {
	color: #ffedd5;
}

body.profile-page-dark .offer-external-disclaimer__icon {
	background: rgba(255, 247, 237, 0.1);
	color: #fdba74;
	box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.28);
}

body.profile-page-dark .offer-external-disclaimer__link {
	color: #ffedd5;
}

body.profile-page-dark .offer-external-disclaimer__link:hover {
	color: #ffffff;
}

body.profile-page-dark .offer-city-map-card {
	background: #0b1220;
	border-color: var(--offer-border);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

body.profile-page-dark .offer-city-map-title {
	color: #f5f7ff;
	border-bottom-color: var(--offer-border);
}

body.profile-page-dark .offer-city-map-canvas {
	background: #111827;
}

body.profile-page-dark .offer-city-map-fallback {
	background: #020617;
	border-color: var(--offer-border);
	color: #bfdbfe;
	box-shadow: none;
}

body.profile-page-dark .offer-city-map-fallback:hover,
body.profile-page-dark .offer-city-map-fallback:focus {
	color: #ffffff;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

body.profile-page-dark .offer-contact #contact {
	padding: 1rem;
	border: 1px solid var(--offer-border);
	border-radius: 8px;
	background: linear-gradient(180deg, #10182b 0%, #0f1729 100%);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
	color: var(--offer-text);
}

body.profile-page-dark .contact-button-header .contact-title {
	color: #f5f7ff;
}

body.profile-page-dark .contact-actions .btn-secondary {
	background-color: #182236;
	border-color: var(--offer-border);
	color: #e5e7eb;
}

body.profile-page-dark .contact-actions .btn-secondary:hover {
	background-color: #202b44;
	border-color: var(--profile-border-strong-dark);
	color: #ffffff;
}

body.profile-page-dark #contact-msg {
	color: #e5e7eb;
}

body.profile-page-dark #contact-msg .alert-warning {
	background-color: rgba(251, 191, 36, 0.12);
	border-color: rgba(251, 191, 36, 0.28);
	color: #fde68a;
}

body.profile-page-dark #contact-msg .alert-success {
	background-color: rgba(34, 197, 94, 0.12);
	border-color: rgba(34, 197, 94, 0.28);
	color: #bbf7d0;
}

body.profile-page-dark .offer-gallery .offer-thumbs img {
	background-color: #020617;
	border-color: var(--offer-border);
}

body.profile-page-dark .offer-gallery .offer-thumbs .active img {
	background-color: #111827;
	border-color: #2563eb;
}

body.profile-page-dark .gridkit-card-grid.gridkit-card-hover-soft .gridkit-card:hover:not(.gridkit-selected),
body.profile-page-dark .gridkit-card-grid.gridkit-card-hover-strong .gridkit-card:hover:not(.gridkit-selected) {
    background-color: #0e1431 !important;
    box-shadow: 0 12px 30px rgba(15,23,42,0.9);
}

/* GridKit uses Bootstrap border utilities (e.g. .border) in places.
   Ensure dark mode doesn't get a light/white border. */
body.profile-page-dark .gridkit-root,
body.profile-page-dark .gridkit-pagination {
	--bs-border-color: var(--profile-border-dark);
}

body.profile-page-dark .gridkit-root .fm-offers-grid-toolbar,
body.profile-page-dark .gridkit-root .fm-offers-grid-toolbar.gridkit-pagination-has-searchpanel,
body.profile-page-dark .gridkit-root .fm-offers-grid-toolbar.gridkit-pagination-sticky-top.gridkit-pagination-is-stuck {
	background: var(--profile-surface-raised) !important;
	background-color: var(--profile-surface-raised) !important;
	border-color: var(--profile-border-dark) !important;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
	color: #e5e7eb;
}

body.profile-page-dark .gridkit-root .fm-offers-grid-toolbar.gridkit-pagination-has-searchpanel:not(.gridkit-search-panel-collapsed) > .gridkit-pagination-wrapper {
	border-bottom-color: var(--profile-border-dark) !important;
}

body.profile-page-dark .gridkit-root .fm-offers-grid-toolbar .gridkit-sort-select,
body.profile-page-dark .gridkit-root .fm-offers-grid-toolbar .gridkit-pagesize-select,
body.profile-page-dark .gridkit-root .fm-offers-grid-toolbar .gridkit-search-input,
body.profile-page-dark .gridkit-root .fm-offers-grid-toolbar .gridkit-search-select,
body.profile-page-dark .gridkit-root .fm-offers-grid-toolbar .gridkit-search-from,
body.profile-page-dark .gridkit-root .fm-offers-grid-toolbar .gridkit-search-to,
body.profile-page-dark .gridkit-root .fm-offers-grid-toolbar .gridkit-search-multiselect-trigger {
	background-color: #020617 !important;
	border-color: var(--profile-border-dark) !important;
	color: #e5e7eb !important;
	box-shadow: none !important;
}

body.profile-page-dark .gridkit-root .fm-offers-grid-toolbar .gridkit-search-label {
	color: var(--profile-muted-dark) !important;
}

body.profile-page-dark .gridkit-root .fm-offers-grid-toolbar .gridkit-pagination-nav .pagination .page-item .page-link {
	background-color: #0b1220 !important;
	border-color: var(--profile-border-dark) !important;
	color: #e5e7eb !important;
	box-shadow: none !important;
}

body.profile-page-dark .gridkit-root .fm-offers-grid-toolbar .gridkit-pagination-nav .pagination .page-item:not(.active):not(.disabled) .page-link:hover {
	background-color: #111827 !important;
	border-color: var(--profile-border-strong-dark) !important;
	color: #ffffff !important;
}

body.profile-page-dark .gridkit-root .fm-offers-grid-toolbar .gridkit-pagination-nav .pagination .page-item.active .page-link {
	background-color: #2563eb !important;
	border-color: #2563eb !important;
	color: #ffffff !important;
}

body.profile-page-dark .gridkit-pagination-wrapper-top,
body.profile-page-dark .gridkit-pagination-wrapper-bottom {
	border-color: var(--profile-border-dark) !important;
}
body.profile-page-dark .gridkit-pagination-wrapper {
	color: #e5e7eb;
}

/* ----------------------------------------
  Dark mode - GridKit sticky paginator bar
  (prevents white background from --bs-body-bg)
------------------------------------------- */

body.profile-page-dark .gridkit-pagination.gridkit-pagination-sticky-top.gridkit-pagination-is-stuck,
body.profile-page-dark .gridkit-pagination.gridkit-pagination-sticky-bottom.gridkit-pagination-is-stuck {
	background: var(--gridkit-sticky-bg) !important;
}

/* GridKit update: combined paginator + search panel block (desktop filters)
   Ensure border/background match dark surface */
body.profile-page-dark .gridkit-pagination.gridkit-pagination-has-searchpanel {
	--bs-border-color: #1f2937;
	--gridkit-pagination-block-bg: transparent;
	background: var(--profile-surface-raised) !important;
	border: 1px solid #1f2937 !important;
}

body.profile-page-dark .gridkit-pagination.gridkit-pagination-has-searchpanel .gridkit-search-panel {
	background: transparent !important;
	border: 0 !important;
	border-top: 0 !important;
	box-shadow: none !important;
}

body.profile-page-dark .gridkit-pagination.gridkit-pagination-has-searchpanel .gridkit-pagination-wrapper {
	background: transparent !important;
}

/* Non-sticky paginator wrapper: match dark border color */
body.profile-page-dark .gridkit-pagination:not(.gridkit-pagination-sticky-top):not(.gridkit-pagination-sticky-bottom):not(.gridkit-pagination-has-searchpanel) .gridkit-pagination-wrapper {
	border-color: #1f2937;
}

body.profile-page-dark .gridkit-pagination.gridkit-pagination-sticky-top.gridkit-pagination-is-stuck {
	border-bottom: 1px solid #1f2937 !important;
}

body.profile-page-dark .gridkit-pagination.gridkit-pagination-sticky-bottom.gridkit-pagination-is-stuck {
	border-top: 1px solid #1f2937 !important;
}

@media (max-width: 991.98px) {
	body.profile-page-dark .gridkit-pagination.gridkit-pagination-sticky-top.gridkit-pagination-is-stuck::after {
		background: #1f2937 !important;
	}
	body.profile-page-dark .gridkit-pagination.gridkit-pagination-sticky-bottom.gridkit-pagination-is-stuck::before {
		background: #1f2937 !important;
	}
}

body.profile-page-dark .gridkit-pagesize-select,
body.profile-page-dark .gridkit-sort-select {
	background-color: #020617;
	color: #e5e7eb;
	border-color: #1f2937;
}

body.profile-page-dark .gridkit-pagesize-select option,
body.profile-page-dark .gridkit-sort-select option {
	background-color: #020617;
	color: #e5e7eb;
}

body.profile-page-dark .gridkit-pagination-nav .pagination .page-item.disabled .page-link {
	color: #4b5563 !important;
	background-color: transparent !important;
	border-color: transparent !important;
}

body.profile-page-dark .gridkit-qm-overlay {
	background: rgba(15,23,42,0.75);
}

body.profile-page-dark .gridkit-qm-row .gridkit-qm-cell {
	background: rgba(15,23,42,0.85);
	color: #e5e7eb;
}

/* ----------------------------------------
  Dark mode - Search + filter form controls
------------------------------------------- */

body.profile-page-dark .form-control,
body.profile-page-dark .form-select,
body.profile-page-dark input[type="text"],
body.profile-page-dark input[type="search"],
body.profile-page-dark input[type="number"],
body.profile-page-dark input[type="email"],
body.profile-page-dark input[type="tel"],
body.profile-page-dark input[type="url"],
body.profile-page-dark textarea,
body.profile-page-dark select {
    background-color: #020617 !important;
    color: #e5e7eb !important;
    border: 1px solid #1f2937 !important;
}

body.profile-page-dark .form-control::placeholder,
body.profile-page-dark input::placeholder,
body.profile-page-dark textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

/* Focus state */
body.profile-page-dark .form-control:focus,
body.profile-page-dark .form-select:focus,
body.profile-page-dark input:focus,
body.profile-page-dark textarea:focus,
body.profile-page-dark select:focus {
    border-color: #2563eb !important;
    outline: 0 !important;
	box-shadow: inset 0 0 0 0.2rem rgba(37, 99, 235, 0.25) !important;
}

/* Dropdown list colors (where supported) */
body.profile-page-dark select option {
    background-color: #020617;
    color: #e5e7eb;
}

body.profile-page-dark .gridkit-multiselect-overlay {
	background-color: #020617;
	color: #e5e7eb;
	border-color: #1f2937;
}

body.profile-page-dark .gridkit-ms-chip {
	background: rgba(37, 99, 235, 0.22);
	border-color: rgba(37, 99, 235, 0.35);
	color: #bfdbfe;
}

body.profile-page-dark .gridkit-ms-chip-more {
	background: rgba(148, 163, 184, 0.14);
	border-color: rgba(148, 163, 184, 0.22);
	color: #e5e7eb;
}

body.profile-page-dark .gridkit-multiselect-option:hover {
	background: rgba(37, 99, 235, 0.18);
}

body.profile-page-dark .gridkit-multiselect-actions {
	border-top-color: #1f2937;
}

/* Filters: avoid double background panels in dark mode.
   Keep the form controls styled, but make wrapper blocks transparent. */
body.profile-page-dark .gridkit-filter,
body.profile-page-dark .gridkit-filters,
body.profile-page-dark .gridkit-filter-panel,
body.profile-page-dark .gridkit-search,
body.profile-page-dark .gridkit-searchbar {
	color: #e5e7eb;
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.profile-page-dark .gridkit-search-panel {
	/* When it's not inside the unified container, keep it as a panel */
	background: var(--profile-surface-raised) !important;
	border: 1px solid #1f2937 !important;
	box-shadow: 0 2px 6px rgba(15,23,42,0.75) !important;
}

body.profile-page-dark .gridkit-pagination.gridkit-pagination-has-searchpanel .gridkit-search-panel {
	/* Inside unified container, don't create a second panel */
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.profile-page-dark .gridkit-search-label,
body.profile-page-dark .gridkit-search-range-sep {
	color: #e5e7eb !important;
}

body.profile-page-dark .gridkit-filter-panel label,
body.profile-page-dark .gridkit-filter-panel .form-label,
body.profile-page-dark .gridkit-filters label,
body.profile-page-dark .gridkit-filters .form-label {
	color: #e5e7eb !important;
}

body.profile-page-dark .gridkit-filter-panel .input-group-text,
body.profile-page-dark .gridkit-filters .input-group-text {
	background-color: #020617 !important;
	color: #e5e7eb !important;
	border-color: #1f2937 !important;
}

/* ----------------------------------------
  Dark mode - Mobile filter drawer (GridKit)
  GridKit mobile UI uses light surfaces by default.
  Override those so the panel doesn't "fall apart" in dark mode.
------------------------------------------- */

body.profile-page-dark .gridkit-search-panel-mobile-enter {
	background: var(--profile-surface-raised) !important;
	border-color: #1f2937 !important;
	box-shadow: 4px 0 18px rgba(0,0,0,0.55) !important;
}

body.profile-page-dark .gridkit-search-panel-mobile-header {
	background: #0b1220 !important;
	border-bottom-color: #1f2937 !important;
	box-shadow: 0 1px 2px rgba(0,0,0,.35) !important;
}

body.profile-page-dark .gridkit-search-panel-mobile-close {
	color: #e5e7eb !important;
}

/* Drawer already provides the surface; keep the inner panel neutral */
body.profile-page-dark .gridkit-search-panel-mobile-enter .gridkit-search-panel {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

/* Mobile layout uses per-field "cards" with white background */
body.profile-page-dark .gridkit-search-field-group {
	background: unset !important;
	box-shadow: unset !important;
}

/* Keep labels readable in mobile mode (GridKit bumps font size there) */
body.profile-page-dark .gridkit-search-panel-mobile-enter .gridkit-search-label {
	color: #e5e7eb !important;
}

/* Reset button is light by default; darken it in dark mode */
body.profile-page-dark .gridkit-search-actions .pagination .gridkit-search-reset-item .page-link {
	background-color: #111827 !important;
	border-color: #1f2937 !important;
	color: #e5e7eb !important;
}

body.profile-page-dark .gridkit-search-actions .pagination .gridkit-search-reset-item .page-link:hover {
	background-color: #0b1220 !important;
	border-color: #374151 !important;
	color: #f9fafb !important;
}

/* Dark mode - scrollbar styling (best-effort)
   Note: native <select> dropdown scrollbars are browser/OS controlled. */
body.profile-page-dark .gridkit-search-panel-mobile-enter .gridkit-search-panel-inner,
body.profile-page-dark .gridkit-multiselect-options {
	scrollbar-width: thin;
	scrollbar-color: #374151 #0b1220;
}

body.profile-page-dark .gridkit-search-panel-mobile-enter .gridkit-search-panel-inner::-webkit-scrollbar,
body.profile-page-dark .gridkit-multiselect-options::-webkit-scrollbar {
	width: 10px;
}

body.profile-page-dark .gridkit-search-panel-mobile-enter .gridkit-search-panel-inner::-webkit-scrollbar-thumb,
body.profile-page-dark .gridkit-multiselect-options::-webkit-scrollbar-thumb {
	background-color: #374151;
	border-radius: 999px;
	border: 2px solid #0b1220;
}

body.profile-page-dark .gridkit-search-panel-mobile-enter .gridkit-search-panel-inner::-webkit-scrollbar-track,
body.profile-page-dark .gridkit-multiselect-options::-webkit-scrollbar-track {
	background-color: #0b1220;
}
