body.profile-page {
	background-color: #f5f7fb !important;
	background-image:
		radial-gradient(1200px 280px at 50% 0%, rgba(0, 62, 124, 0.11), rgba(0, 62, 124, 0.00)),
		radial-gradient(circle at 14px 14px, rgba(0, 62, 124, 0.06) 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: #111827;
	--bs-body-bg: #f5f7fb;
	--gridkit-sticky-bg: #f5f7fb;
}

/* ----------------------------------------
   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 .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;
}

.profile-cover-slideshow .profile-cover-indicators {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
}

.profile-cover-slideshow .profile-cover-dot {
	width: 10px;
	height: 10px;
	border: 0;
	padding: 0;
	background: rgba(255,255,255,.6);
}

.profile-cover-slideshow .profile-cover-dot.active {
	background: #fff;
}


/* ----------------------------------------
  Dark mode styles 
------------------------------------------- */

body.profile-page-dark {
	background-color: #050811 !important;
	background-image:
		radial-gradient(1200px 300px at 50% 0%, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.00)),
		radial-gradient(circle at 16px 16px, rgba(226, 232, 255, 0.06) 1px, rgba(226, 232, 255, 0.00) 1px);
	background-size: auto, 26px 26px;
	background-attachment: fixed;
	color: #f5f7ff;
	--bs-body-bg: #050811;
	--gridkit-sticky-bg: #121a33;
	--profile-surface: #0f1729;
	--profile-surface-raised: #121a33;
}

/* 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-description {
	color: #e2e8ff;
}

body.profile-page-dark .text-muted {
	color: #a0aec0 !important;
}

body.profile-page-dark footer {
	background-color: #020617;
}

body.profile-page-dark .backbuttons a {
	color: #e0e5ff;
}

body.profile-page-dark .profile-cover-slideshow .profile-cover-indicators .profile-cover-dot {
	background: rgba(15,23,42,.8);
}

body.profile-page-dark .profile-cover-slideshow .profile-cover-indicators .profile-cover-dot.active {
	background: #e5e7eb;
}

body.profile-page-dark .gridkit-card .card,
body.profile-page-dark .gridkit-card-grid .card {
	background-color: #020617 !important;
	color: #e5e7eb !important;
	border-color: #1f2937 !important;
}

body.profile-page-dark .gridkit-card .card-title,
body.profile-page-dark .gridkit-card .card-text {
	color: #e5e7eb !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: #020617;
	border: 1px solid #1f2937;
	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 .offer-gallery {
	background-color: #020617;
	border: 1px solid #1f2937 !important;

}

body.profile-page-dark .offer-mainimage {
	background-color: #020617 !important;
	border-color: #1f2937 !important;
}

body.profile-page-dark .offer-gallery .offer-thumbs img {
	background-color: #020617;
	border-color: #1f2937;
}

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: #1f2937;
}

body.profile-page-dark .gridkit-pagination-wrapper-top,
body.profile-page-dark .gridkit-pagination-wrapper-bottom {
	border-color: #1f2937 !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;
}