/*
 * Finderji theme stylesheet.
 *
 * Loaded after the Default theme's compiled Bootstrap 5 bundle and after the
 * admin-driven `theme-styles` CSS, and before Admin → Themes → Custom CSS, so
 * an admin can still override anything here without editing the theme.
 *
 * Sections:
 *   1. Tokens          5. Hero + search      9. Footer
 *   2. Base            6. Sections           10. Core pages polish
 *   3. Buttons         7. Category cards     11. Dark mode
 *   4. Header/drawer   8. Listing cards
 */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--fj-blue: #1D70B8;
	--fj-blue-dark: #175b96;
	--fj-blue-soft: #EFF6FF;
	--fj-pink: #E84A7F;
	--fj-pink-soft: #FDF2F8;
	--fj-yellow: #FBE122;
	--fj-yellow-dark: #f5d90a;
	--fj-ink: #1F2937;
	--fj-ink-strong: #111827;
	--fj-ink-btn: #1A202C;
	--fj-muted: #6B7280;
	--fj-faint: #9CA3AF;
	--fj-line: #E5E7EB;
	--fj-line-soft: #F3F4F6;
	--fj-page: #F9FAFB;
	--fj-surface: #FFFFFF;
	--fj-radius-sm: 6px;
	--fj-radius: 8px;
	--fj-radius-lg: 12px;
	--fj-shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
	--fj-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
	--fj-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
	--fj-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--fj-header-h: var(--header-navbar-height, 72px);

	/* Bootstrap hooks, so core components pick up the brand */
	--bs-primary: var(--fj-blue);
	--bs-primary-rgb: 29, 112, 184;
	--bs-link-color: var(--fj-blue);
	--bs-link-color-rgb: 29, 112, 184;
	--bs-link-hover-color: var(--fj-blue-dark);
	--bs-link-hover-color-rgb: 23, 91, 150;
	--bs-body-font-family: var(--fj-font);
	--bs-body-color: var(--fj-ink);
	--bs-border-color: var(--fj-line);
	--bs-border-radius: var(--fj-radius);
	--bs-border-radius-lg: var(--fj-radius-lg);
	--theme-heading-font: var(--fj-font);
}

/* 2. Base ------------------------------------------------------------------ */
body.fj {
	font-family: var(--fj-font);
	font-size: 15px;
	color: var(--fj-ink);
	background-color: var(--fj-page);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.fj h1, body.fj h2, body.fj h3, body.fj h4, body.fj h5, body.fj h6 {
	font-family: var(--fj-font);
	letter-spacing: -0.01em;
}

.fj-container {
	width: 100%;
	max-width: calc(1152px + 64px);
	margin: 0 auto;
	padding: 0 16px;
}

@media (min-width: 768px) {
	.fj-container { padding: 0 32px; }
}

.fj-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--fj-blue);
	text-decoration: none;
	white-space: nowrap;
}

.fj-link:hover { text-decoration: underline; color: var(--fj-blue-dark); }

/* The homepage hands spacing to the Finderji sections. */
body.fj #homepage.main-container { padding: 0; margin: 0; }
body.fj #homepage > .page-section { margin: 0; padding: 0; }
body.fj.is-sectioned-page .page-section.prevent-header-overlap:first-child {
	padding-top: 0 !important;
}

/* 3. Buttons --------------------------------------------------------------- */
.fj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border: 0;
	border-radius: var(--fj-radius-sm);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
}

.fj-btn:active { transform: scale(.98); }
.fj-btn--lg { padding: 12px 20px; font-size: 15px; }

.fj-btn--primary { background: var(--fj-blue); color: #fff; }
.fj-btn--primary:hover, .fj-btn--primary:focus { background: var(--fj-blue-dark); color: #fff; }

.fj-btn--accent { background: var(--fj-yellow); color: var(--fj-ink-btn); box-shadow: var(--fj-shadow-sm); }
.fj-btn--accent:hover, .fj-btn--accent:focus { background: var(--fj-yellow-dark); color: var(--fj-ink-btn); }

/* the small dark "+" disc used on every Add Listing button */
.fj-plus,
body.fj .btn-highlight::before {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	border-radius: 50%;
	background: var(--fj-ink-btn);
	color: var(--fj-yellow);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

/* The header menu's "button" item (Admin → Menus) becomes the yellow CTA. */
body.fj .btn-highlight {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 0;
	border-radius: var(--fj-radius-sm);
	background: var(--fj-yellow);
	color: var(--fj-ink-btn) !important;
	font-size: 14px;
	font-weight: 600;
	box-shadow: var(--fj-shadow-sm);
	transition: background-color .15s ease, transform .1s ease;
}

body.fj .btn-highlight::before { content: "+"; }
body.fj .btn-highlight > i { display: none; }
body.fj .btn-highlight:hover, body.fj .btn-highlight:focus { background: var(--fj-yellow-dark); color: var(--fj-ink-btn) !important; }
body.fj .btn-highlight:active { transform: scale(.98); }

/* Core Bootstrap buttons */
body.fj .btn { border-radius: var(--fj-radius-sm); font-weight: 600; }
body.fj .btn-primary {
	--bs-btn-bg: var(--fj-blue);
	--bs-btn-border-color: var(--fj-blue);
	--bs-btn-hover-bg: var(--fj-blue-dark);
	--bs-btn-hover-border-color: var(--fj-blue-dark);
	--bs-btn-active-bg: var(--fj-blue-dark);
	--bs-btn-active-border-color: var(--fj-blue-dark);
	--bs-btn-disabled-bg: var(--fj-blue);
	--bs-btn-disabled-border-color: var(--fj-blue);
	background-image: none !important;
}
body.fj .btn-outline-primary {
	--bs-btn-color: var(--fj-blue);
	--bs-btn-border-color: var(--fj-blue);
	--bs-btn-hover-bg: var(--fj-blue);
	--bs-btn-hover-border-color: var(--fj-blue);
	--bs-btn-active-bg: var(--fj-blue);
}
body.fj .btn-warning {
	--bs-btn-bg: var(--fj-yellow);
	--bs-btn-border-color: var(--fj-yellow);
	--bs-btn-color: var(--fj-ink-btn);
	--bs-btn-hover-bg: var(--fj-yellow-dark);
	--bs-btn-hover-border-color: var(--fj-yellow-dark);
	--bs-btn-hover-color: var(--fj-ink-btn);
}

/* 4. Header + drawer ------------------------------------------------------- */
.fj-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1030;
	transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.fj-header--solid,
.fj-header.is-scrolled {
	background: var(--fj-surface);
	border-bottom: 1px solid var(--fj-line);
	box-shadow: var(--fj-shadow-sm);
}

.fj-header--overlay:not(.is-scrolled) {
	background: transparent;
	border-bottom: 1px solid transparent;
}

/* Non-homepage content starts below the fixed header. */
body.fj:not(.is-sectioned-page) > main { padding-top: var(--fj-header-h); }

.fj-nav__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: var(--fj-header-h);
}

.fj-header--overlay:not(.is-scrolled) .fj-nav__inner { padding-top: 6px; }

.fj-brand {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	user-select: none;
	flex-shrink: 0;
}

.fj-brand__mark { width: 36px; height: 36px; overflow: visible; }
.fj-brand__word {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1;
}
.fj-brand__finder { color: var(--fj-blue); }
.fj-brand__ji { color: var(--fj-pink); }
.fj-brand--sm .fj-brand__word { font-size: 24px; }

@media (min-width: 768px) {
	.fj-brand__mark { width: 44px; height: 44px; }
	.fj-brand__word { font-size: 34px; }
	.fj-header--solid .fj-brand__mark, .fj-header.is-scrolled .fj-brand__mark { width: 38px; height: 38px; }
	.fj-header--solid .fj-brand__word, .fj-header.is-scrolled .fj-brand__word { font-size: 30px; }
}

.fj-flag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--fj-muted);
	cursor: pointer;
	text-decoration: none;
}
.fj-flag img { width: 24px; height: auto; border-radius: 3px; }
.fj-flag i { font-size: 11px; }

.fj-menu {
	flex-direction: row;
	align-items: center;
	gap: 22px;
	margin-left: auto;
}

.fj-menu .nav-link,
.fj-drawer__menu .nav-link {
	padding: 6px 0;
	color: var(--fj-ink) !important;
	font-size: 14px;
	font-weight: 600;
	background: none;
	transition: color .15s ease;
}

.fj-menu .nav-link:hover, .fj-menu .nav-link:focus,
.fj-drawer__menu .nav-link:hover, .fj-drawer__menu .nav-link:focus { color: var(--fj-blue) !important; }

.fj-menu .nav-link > i,
.fj-drawer__menu .nav-link > i { color: var(--fj-muted); margin-right: 2px; }

.fj-menu .dropdown-menu,
.fj-drawer .dropdown-menu {
	border: 1px solid var(--fj-line);
	border-radius: var(--fj-radius);
	box-shadow: var(--fj-shadow-lg);
	padding: 6px;
	font-size: 14px;
}

.fj-menu .dropdown-menu { margin-top: 10px !important; }

body.fj .dropdown-item {
	border-radius: var(--fj-radius-sm);
	padding: 7px 12px;
	color: var(--fj-ink);
}
body.fj .dropdown-item:hover, body.fj .dropdown-item:focus { background: var(--fj-blue-soft); color: var(--fj-blue); }
body.fj .dropdown-item.active, body.fj .dropdown-item:active { background: var(--fj-blue); color: #fff; }

.fj-burger {
	margin-left: auto;
	width: 46px;
	height: 40px;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	border: 0;
	border-radius: var(--fj-radius-sm);
	background: var(--fj-surface);
	box-shadow: var(--fj-shadow-sm);
	transition: transform .1s ease;
}
.fj-burger:active { transform: scale(.95); }
.fj-burger span { display: block; width: 24px; height: 2px; border-radius: 2px; background: #4A5568; }
.fj-header--solid .fj-burger, .fj-header.is-scrolled .fj-burger { box-shadow: none; border: 1px solid var(--fj-line); }

.fj-drawer.offcanvas { width: 288px; border-left: 0; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
.fj-drawer__head { padding: 16px 20px; border-bottom: 1px solid var(--fj-line); }
.fj-drawer__body { padding: 12px 20px 20px; }
.fj-drawer__menu { gap: 2px; }
.fj-drawer__menu > .nav-item > .nav-link { padding: 10px 0; font-size: 16px; font-weight: 500; }
.fj-drawer__menu .dropdown-menu { position: static !important; transform: none !important; box-shadow: none; margin: 0 0 8px; }
.fj-drawer__menu .btn-highlight { width: 100%; justify-content: center; padding: 11px 16px; margin: 10px 0; }

/* 5. Hero + search --------------------------------------------------------- */
.fj-hero {
	position: relative;
	width: 100%;
	height: 340px;
	overflow: hidden;
	background: #E5E7EB;
}

@media (min-width: 768px) { .fj-hero { height: 460px; } }
@media (min-width: 992px) { .fj-hero { height: 500px; } }

.fj-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.fj-hero__fade-top {
	position: absolute;
	inset: 0 0 auto 0;
	height: 112px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, .75), rgba(255, 255, 255, .35) 50%, transparent);
	pointer-events: none;
}

.fj-hero__fade-bottom {
	display: none;
	position: absolute;
	inset: auto 0 0 0;
	height: 144px;
	background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent);
	pointer-events: none;
}

@media (min-width: 768px) {
	.fj-hero__fade-top { height: 128px; }
	.fj-hero__fade-bottom { display: block; }
}

.fj-hero__content {
	position: absolute;
	inset: auto 0 20px 0;
	z-index: 2;
	padding: 0 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

@media (min-width: 768px) { .fj-hero__content { bottom: 48px; } }

.fj-hero__text { display: none; margin-bottom: 20px; }

.fj-hero__title {
	margin: 0 0 8px;
	color: #fff;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.025em;
	text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

@media (min-width: 992px) { .fj-hero__title { font-size: 36px; } }

.fj-hero__subtitle {
	margin: 0;
	color: rgba(255, 255, 255, .95);
	font-size: 16px;
	font-weight: 500;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.fj-search {
	display: none;
	width: 100%;
	max-width: 768px;
	align-items: center;
	gap: 8px;
	padding: 8px;
	background: var(--fj-surface);
	border-radius: var(--fj-radius);
	box-shadow: var(--fj-shadow-lg);
}

.fj-search__field {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0 12px;
	color: var(--fj-faint);
	cursor: text;
}

.fj-search__field i { font-size: 18px; line-height: 1; }
.fj-search__field--q { flex: 1 1 auto; border-right: 1px solid var(--fj-line); }
.fj-search__field--loc { flex: 0 0 192px; position: relative; }

.fj-search__field input {
	width: 100%;
	padding: 8px 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--fj-ink);
	font-size: 14px;
}

.fj-search__field input::placeholder { color: var(--fj-faint); }

.fj-search__submit { padding: 10px 24px; }
.fj-search__add { padding: 10px 20px; flex-shrink: 0; }

@media (min-width: 768px) {
	.fj-hero__text { display: block; }
	.fj-search { display: flex; }
	.fj-hero__add-mobile { display: none; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
	.fj-search__add span:last-child { display: none; }
	.fj-search__add { padding: 10px 12px; }
}

/* the city autocomplete dropdown must sit above the hero */
.fj-hero .autocomplete-suggestions,
body.fj .autocomplete-suggestions { z-index: 1050 !important; text-align: left; }

/* 6. Sections -------------------------------------------------------------- */
.fj-section { padding: 24px 0; }

@media (min-width: 768px) { .fj-section { padding: 32px 0; } }

.fj-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.fj-section__title {
	margin: 0;
	color: var(--fj-ink-strong);
	font-size: 18px;
	font-weight: 700;
}

.fj-section__sub {
	margin: 2px 0 0;
	color: var(--fj-muted);
	font-size: 13px;
}

@media (min-width: 768px) {
	.fj-section__title { font-size: 20px; }
	.fj-section__sub { font-size: 14px; }
}

/* 7. Category cards -------------------------------------------------------- */
.fj-categories { padding-top: 0; padding-bottom: 8px; }

/* Mobile: an edge-to-edge list with dividers, like the mockup */
.fj-categories .fj-section__head { display: none; }
.fj-categories > .fj-container { padding: 0; }

.fj-cat-grid {
	display: grid;
	grid-template-columns: 1fr;
	background: var(--fj-surface);
	border-top: 1px solid var(--fj-line);
	border-bottom: 1px solid var(--fj-line);
}

.fj-cat { background: var(--fj-surface); overflow: hidden; }
.fj-cat + .fj-cat { border-top: 1px solid var(--fj-line); }

.fj-cat__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	transition: background-color .15s ease;
}

.fj-cat__row:hover { background: var(--fj-page); }

.fj-cat__link {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.fj-cat__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	color: #5A6577;
	font-size: 22px;
	line-height: 1;
}

.fj-cat__text { display: flex; flex-direction: column; min-width: 0; }

.fj-cat__name {
	color: #374151;
	font-size: 15.5px;
	line-height: 1.3;
	transition: color .15s ease;
}

.fj-cat__link:hover .fj-cat__name { color: var(--fj-blue); }

.fj-cat__count { display: none; margin-top: 2px; color: var(--fj-faint); font-size: 12px; }

.fj-cat__toggle {
	position: relative;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	padding: 0;
	border: 1px solid var(--fj-muted);
	border-radius: 50%;
	background: transparent;
	color: #4B5563;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

/* plus / minus drawn with two bars so it stays centred at any size */
.fj-cat__toggle::before,
.fj-cat__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 1.5px;
	border-radius: 1px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform .2s ease;
}

.fj-cat__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.fj-cat__toggle:not(.collapsed)::after { transform: translate(-50%, -50%) rotate(0deg); }

.fj-cat__subs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 10px 16px 14px;
	background: rgba(249, 250, 251, .8);
	border-top: 1px solid var(--fj-line-soft);
}

.fj-chip {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid var(--fj-line);
	border-radius: var(--fj-radius-sm);
	background: var(--fj-surface);
	color: #374151;
	font-size: 12px;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.fj-chip:hover, .fj-chip:focus { background: var(--fj-blue); border-color: var(--fj-blue); color: #fff; }
.fj-chip--all { color: var(--fj-blue); font-weight: 600; }

/* Tablet/desktop: separate cards, 2 then 4 columns */
@media (min-width: 768px) {
	.fj-categories { padding-top: 40px; padding-bottom: 16px; }
	.fj-categories .fj-section__head { display: flex; }
	.fj-categories > .fj-container { padding: 0 32px; }

	.fj-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
		background: transparent;
		border: 0;
	}

	.fj-cat,
	.fj-cat + .fj-cat {
		align-self: start;
		border: 1px solid var(--fj-line);
		border-radius: var(--fj-radius-lg);
		box-shadow: var(--fj-shadow-sm);
		transition: box-shadow .15s ease, border-color .15s ease;
	}

	.fj-cat:hover { border-color: rgba(29, 112, 184, .5); box-shadow: var(--fj-shadow); }
	.fj-cat--pink:hover { border-color: rgba(232, 74, 127, .5); }

	.fj-cat__row { padding: 20px; }
	.fj-cat__row:hover { background: transparent; }

	.fj-cat__icon {
		width: 44px;
		height: 44px;
		flex-basis: 44px;
		border-radius: var(--fj-radius);
		background: var(--fj-blue-soft);
		color: var(--fj-blue);
		font-size: 22px;
	}

	.fj-cat--pink .fj-cat__icon { background: var(--fj-pink-soft); color: var(--fj-pink); }

	.fj-cat__name { font-size: 16px; font-weight: 600; }
	.fj-cat__count { display: block; }

	.fj-cat__toggle {
		width: 28px;
		height: 28px;
		flex-basis: 28px;
		border-color: #D1D5DB;
	}

	.fj-cat:hover .fj-cat__toggle { background: var(--fj-blue); border-color: var(--fj-blue); color: #fff; }
	.fj-cat--pink:hover .fj-cat__toggle { background: var(--fj-pink); border-color: var(--fj-pink); }

	.fj-cat__subs { padding: 12px 20px 16px; }
}

@media (min-width: 992px) {
	.fj-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 8. Listing cards --------------------------------------------------------- */
.fj-listings { padding-top: 24px; }

.fj-card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 576px) { .fj-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .fj-card-grid { gap: 20px; } }
@media (min-width: 992px) {
	.fj-card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.fj-card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* on the search page the sidebar takes room, so cap at 3 columns */
body.fj .col-lg-9 .fj-card-grid--4,
body.fj .col-md-9 .fj-card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1200px) {
	body.fj .col-lg-9 .fj-card-grid--4,
	body.fj .col-md-9 .fj-card-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.fj-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--fj-surface);
	border: 1px solid var(--fj-line);
	border-radius: var(--fj-radius-lg);
	box-shadow: var(--fj-shadow-sm);
	transition: box-shadow .15s ease, border-color .15s ease;
}

.fj-card:hover { border-color: rgba(29, 112, 184, .4); box-shadow: var(--fj-shadow); }

.fj-card__media {
	position: relative;
	display: block;
	height: 176px;
	overflow: hidden;
	background: var(--fj-line);
}

.fj-card__media picture { display: block; width: 100%; height: 100%; }

.fj-card__media img,
.fj-card__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	transition: transform .3s ease;
}

.fj-card:hover .fj-card__media img { transform: scale(1.05); }

.fj-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	max-width: calc(100% - 110px);
	padding: 4px 10px;
	overflow: hidden;
	border-radius: 4px;
	background: rgba(255, 255, 255, .95);
	box-shadow: var(--fj-shadow-sm);
	color: var(--fj-ink);
	font-size: 11px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
	backdrop-filter: blur(4px);
}

.fj-card__ribbon {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--fj-yellow);
	box-shadow: var(--fj-shadow-sm);
	color: var(--fj-ink-btn);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.fj-card__photos {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 2px 7px;
	border-radius: 4px;
	background: rgba(17, 24, 39, .65);
	color: #fff;
	font-size: 11px;
	font-weight: 500;
}

.fj-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 16px;
}

.fj-card__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 4px;
}

.fj-card__price {
	min-width: 0;
	color: var(--fj-blue);
	font-size: 16px;
	font-weight: 800;
	overflow-wrap: anywhere;
}

.fj-card__price * { color: inherit !important; font-size: inherit !important; }

.fj-card__time { flex-shrink: 0; color: var(--fj-faint); font-size: 11px; white-space: nowrap; }

.fj-card__title {
	display: -webkit-box;
	margin: 0 0 8px;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.375;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.fj-card__title a { color: var(--fj-ink-strong); text-decoration: none; transition: color .15s ease; }
.fj-card:hover .fj-card__title a, .fj-card__title a:hover { color: var(--fj-blue); }

.fj-card__reviews { margin-bottom: 8px; font-size: 12px; }

.fj-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--fj-line-soft);
}

.fj-card__loc {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	color: var(--fj-muted);
	font-size: 12px;
	text-decoration: none;
}

.fj-card__loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-card__loc i { color: var(--fj-faint); font-size: 13px; }
.fj-card__loc:hover { color: var(--fj-blue); }

.fj-fav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	border-radius: 50%;
	color: var(--fj-faint);
	font-size: 15px;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

.fj-fav:hover { background: var(--fj-pink-soft); color: var(--fj-pink); }
.fj-fav .bi-heart-fill { color: var(--fj-pink); }

.fj-listings__more { margin-top: 24px; text-align: center; }

/* 9. Footer ---------------------------------------------------------------- */
.fj-footer { margin-top: 32px; }

.fj-footer > .container-fluid {
	margin-top: 0 !important;
	background: var(--fj-surface) !important;
	border-top: 1px solid var(--fj-line) !important;
	color: var(--fj-muted) !important;
	font-size: 14px;
}

.fj-footer > .container-fluid > .container { max-width: 1152px; }
.fj-footer h4 { color: var(--fj-ink-strong); font-size: 13px !important; letter-spacing: .04em; }
.fj-footer a { color: var(--fj-muted) !important; text-decoration: none; }
.fj-footer a:hover { color: var(--fj-ink) !important; }

.fj-footer__brand { display: inline-block; margin-right: 8px; vertical-align: -1px; }
.fj-footer__brand .fj-brand__word { font-size: 16px; font-weight: 700; }
.fj-footer__brand .fj-brand__finder { color: var(--fj-blue) !important; }
.fj-footer__brand .fj-brand__ji { color: var(--fj-pink) !important; }

.fj-footer .social-links a { font-size: 22px; }

/* 10. Core pages polish ----------------------------------------------------- */
body.fj .card {
	border-color: var(--fj-line);
	border-radius: var(--fj-radius-lg);
	box-shadow: var(--fj-shadow-sm);
}

body.fj .card-header { background: var(--fj-surface); border-bottom-color: var(--fj-line-soft); }
body.fj .card-header:first-child { border-radius: var(--fj-radius-lg) var(--fj-radius-lg) 0 0; }

body.fj .form-control,
body.fj .form-select,
body.fj .select2-container--default .select2-selection--single,
body.fj .select2-container--default .select2-selection--multiple {
	border-color: #D1D5DB;
	border-radius: var(--fj-radius);
}

body.fj .form-control:focus,
body.fj .form-select:focus {
	border-color: var(--fj-blue);
	box-shadow: 0 0 0 3px rgba(29, 112, 184, .15);
}

body.fj .form-label,
body.fj label.col-form-label { color: #374151; font-weight: 600; }

body.fj .badge.text-bg-primary,
body.fj .bg-primary { background-color: var(--fj-blue) !important; }
body.fj .text-primary { color: var(--fj-blue) !important; }
body.fj .border-primary { border-color: var(--fj-blue) !important; }

body.fj .page-link { color: var(--fj-blue); border-color: var(--fj-line); }
body.fj .page-item.active .page-link,
body.fj .active > .page-link { background: var(--fj-blue); border-color: var(--fj-blue); color: #fff; }

body.fj .nav-pills .nav-link.active { background: var(--fj-blue); }
body.fj .nav-tabs .nav-link.active { color: var(--fj-blue); font-weight: 600; }

body.fj .breadcrumb { font-size: 13px; }
body.fj .breadcrumb a { color: var(--fj-blue); text-decoration: none; }

body.fj .modal-content { border: 0; border-radius: var(--fj-radius-lg); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
body.fj .modal-header { border-bottom-color: var(--fj-line); }
body.fj .modal-footer { border-top-color: var(--fj-line); }

/* the search page's own top search bar */
body.fj .search-row .search-col > div,
body.fj .search-row .btn { border-color: var(--fj-blue) !important; }

/* 11. Dark mode (only when the admin allows the toggle) --------------------- */
[data-bs-theme="dark"] body.fj,
body.fj[data-bs-theme="dark"] {
	--fj-surface: #111827;
	--fj-page: #0B1220;
	--fj-ink: #E5E7EB;
	--fj-ink-strong: #F9FAFB;
	--fj-line: #1F2937;
	--fj-line-soft: #1F2937;
	--fj-blue-soft: rgba(29, 112, 184, .18);
	--fj-pink-soft: rgba(232, 74, 127, .18);
}

[data-bs-theme="dark"] .fj-cat__name { color: var(--fj-ink); }
[data-bs-theme="dark"] .fj-chip { color: var(--fj-ink); }
[data-bs-theme="dark"] .fj-card__badge { background: rgba(17, 24, 39, .9); color: var(--fj-ink); }
[data-bs-theme="dark"] .fj-cat__subs { background: rgba(255, 255, 255, .03); }
[data-bs-theme="dark"] .fj-search__field input { color: var(--fj-ink-strong); }

/* Mobile quick search above the first listing block (hidden from 768px up) */
.fj-msearch {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	padding: 8px 12px;
	background: var(--fj-surface);
	border: 1px solid var(--fj-line);
	border-radius: var(--fj-radius);
	box-shadow: var(--fj-shadow-sm);
	color: var(--fj-faint);
}
.fj-msearch i { font-size: 18px; }
.fj-msearch input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--fj-ink); font-size: 14px; }
.fj-listings + .fj-listings .fj-msearch,
#homepage > .page-section ~ .page-section ~ .page-section .fj-msearch { display: none; }
@media (min-width: 768px) { .fj-msearch { display: none; } }

/* 14. Mobile quick actions, flat drawer menu, bottom bar (v1.1) ------------- */
.fj-nav__quick {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.fj-nav__quick + .fj-burger { margin-left: 0; }

.fj-quick {
	height: 40px;
	min-width: 40px;
	padding: 0 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: var(--fj-radius-sm);
	background: var(--fj-surface);
	color: var(--fj-ink) !important;
	box-shadow: var(--fj-shadow-sm);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.fj-quick i { font-size: 17px; }
.fj-quick--add { background: var(--fj-yellow); color: var(--fj-ink-btn) !important; }
.fj-quick--add:hover { background: var(--fj-yellow-dark); }
.fj-header--solid .fj-quick:not(.fj-quick--add),
.fj-header.is-scrolled .fj-quick:not(.fj-quick--add) { box-shadow: none; border: 1px solid var(--fj-line); }

/* Drawer: every entry is a plain, always-visible link */
.fj-drawer.offcanvas { background: var(--fj-surface); color: var(--fj-ink); }
.fj-drawer__menu,
.fj-drawer__menu > li { display: block !important; visibility: visible !important; opacity: 1 !important; }
.fj-drawer__menu > .nav-item { border-bottom: 1px solid var(--fj-line-soft); }
.fj-drawer__menu > .nav-item:last-child { border-bottom: 0; }
.fj-drawer__menu > .nav-item > .nav-link { display: flex; align-items: center; gap: 10px; padding: 13px 0; }
.fj-drawer__menu > .nav-item > .btn-highlight { display: flex; }
.fj-drawer__group { padding: 10px 0 6px; }
.fj-drawer__group-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--fj-muted);
	margin-bottom: 2px;
}
.fj-drawer__group-title i { margin-right: 4px; }
.fj-drawer__sub { margin: 0; padding: 0; }
.fj-drawer__sub a,
.fj-drawer__sub .dropdown-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	color: var(--fj-ink) !important;
	background: none !important;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	white-space: normal;
}
.fj-drawer__sub a:hover { color: var(--fj-blue) !important; }
.fj-drawer__sub i { width: 18px; color: var(--fj-muted); text-align: center; }

/* Bottom menu bar */
.fj-bottomnav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1029;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	align-items: end;
	height: calc(62px + env(safe-area-inset-bottom, 0px));
	padding: 0 4px env(safe-area-inset-bottom, 0px);
	background: var(--fj-surface);
	border-top: 1px solid var(--fj-line);
	box-shadow: 0 -4px 12px rgba(0, 0, 0, .06);
}
.fj-bottomnav__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 62px;
	color: var(--fj-muted) !important;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.fj-bottomnav__item i { font-size: 19px; }
.fj-bottomnav__item.is-active { color: var(--fj-blue) !important; }
.fj-bottomnav__item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-bottomnav__plus {
	width: 46px;
	height: 46px;
	margin-top: -22px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--fj-yellow);
	color: var(--fj-ink-btn);
	border: 4px solid var(--fj-surface);
	box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}
.fj-bottomnav__plus i { font-size: 18px; }
.fj-bottomnav__item--add { color: var(--fj-ink) !important; }

/* Keep the page end clear of the bar (phones/tablets only) */
@media (max-width: 1199.98px) {
	body.fj { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
}

/* Owner's promo / announcement box (Homepage → Text Area) */
.fj-promo { padding: 4px 0 8px; }
@media (min-width: 768px) { .fj-promo { padding: 8px 0 12px; } }
.fj-promo__card {
	position: relative;
	overflow: hidden;
	padding: 16px 14px 14px;
	border: 1px solid var(--fj-line);
	border-radius: var(--fj-radius-lg);
	background: #fff;
	color: #0f172a;
	box-shadow: var(--fj-shadow);
}
@media (min-width: 768px) { .fj-promo__card { padding: 20px 20px 18px; } }
.fj-promo__card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--fj-blue), var(--fj-pink), var(--fj-yellow), var(--fj-blue));
	background-size: 300% 100%;
	animation: fj-promo-flash 4s linear infinite;
}
@keyframes fj-promo-flash {
	from { background-position: 0 0; }
	to { background-position: 300% 0; }
}
@media (prefers-reduced-motion: reduce) {
	.fj-promo__card::before { animation: none; }
}
.fj-promo__title { font-size: 17px; font-weight: 800; color: #0f172a; margin: 0 0 10px; }
.fj-promo__body { font-size: 14px; }
.fj-promo__body img { max-width: 100%; height: auto; }
/* Pasted grids: never wider than the phone */
.fj-promo__body [style*="minmax(300px"] { grid-template-columns: 1fr !important; }
@media (min-width: 640px) {
	.fj-promo__body [style*="minmax(300px"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 992px) {
	.fj-promo__body [style*="minmax(300px"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
/* The promo keeps its own light colours in dark mode, like a printed flyer */
[data-bs-theme="dark"] .fj-promo__card { background: #fff; color: #0f172a; border-color: #334155; }
[data-bs-theme="dark"] .fj-drawer.offcanvas { background: var(--fj-surface); }

/* 15. Uploaded logo (Admin → Settings → App Logo) (v1.1.1) ------------------ */
.fj-brand__img { display: block; width: auto; height: 42px; max-width: 220px; object-fit: contain; }
@media (min-width: 768px) {
	.fj-brand__img { height: 62px; max-width: 300px; }
	.fj-header--solid .fj-brand__img, .fj-header.is-scrolled .fj-brand__img { height: 52px; }
}
.fj-brand--sm .fj-brand__img { height: 36px; }
.fj-footer__brand .fj-brand__img { display: inline-block; height: 24px; vertical-align: middle; }

/* 16. Drawer: flat login links, countries, info links (v1.2) --------------- */
.fj-drawer__menu > .fj-drawer__flat > a,
.fj-drawer__menu > .fj-drawer__flat > .dropdown-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 0;
	color: var(--fj-ink) !important;
	background: none !important;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	white-space: normal;
}
.fj-drawer__menu > .fj-drawer__flat > a:hover { color: var(--fj-blue) !important; }
.fj-drawer__menu > .fj-drawer__flat i { width: 18px; color: var(--fj-muted); text-align: center; }

.fj-drawer__block { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--fj-line); }
.fj-drawer__countries { display: grid; gap: 2px; margin: 6px 0 0; padding: 0; }
.fj-drawer__country {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	margin: 0 -10px;
	border-radius: var(--fj-radius);
	color: var(--fj-ink) !important;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}
.fj-drawer__country img { width: 22px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); flex: none; }
.fj-drawer__country span { flex: 1; }
.fj-drawer__country i { color: var(--fj-blue); font-size: 18px; }
.fj-drawer__country:hover { background: var(--fj-line-soft); }
.fj-drawer__country.is-current { background: var(--fj-blue-soft); color: var(--fj-blue) !important; font-weight: 600; }

.fj-drawer__info ul { margin: 0; padding: 0; display: grid; gap: 2px; }
.fj-drawer__info a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	color: var(--fj-muted) !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}
.fj-drawer__info a:hover { color: var(--fj-blue) !important; }
.fj-drawer__info i { width: 18px; text-align: center; }
