/*
Theme Name:        All In One Hotel Booking WP Theme
Description:       Mobile-first theme for the All In One Booking Core plugin: homepage with search, listing results with filters, listing details, category and location pages. The theme only shows data; all bookings and listings live in the plugin.
Version:           0.5.2
Requires at least: 6.4
Requires PHP:      8.1
Author:            All In One Hotel Booking
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       all-in-one-hotel-booking-wp-theme
*/

/* ---------- Tokens ---------- */
:root {
	--jbt-ink: #1b2a2f;
	--jbt-muted: #5b6b70;
	--jbt-line: #dde4e6;
	--jbt-bg: #ffffff;
	--jbt-soft: #f3f7f8;
	--jbt-brand: #0e6b72;
	--jbt-brand-dark: #0a5157;
	--jbt-accent: #f2a93b;
	--jbt-radius: 12px;
	--jbt-shadow: 0 2px 10px rgba(20, 40, 45, 0.08);
	--jbt-gap: 20px;
}

/* ---------- Base (logical properties, so RTL works without extra CSS) ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Bengali", "Noto Naskh Arabic", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--jbt-ink);
	background: var(--jbt-bg);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--jbt-brand);
}

a:hover {
	color: var(--jbt-brand-dark);
}

h1,
h2,
h3 {
	line-height: 1.25;
	margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h3 { font-size: 1.1rem; }

:focus-visible {
	outline: 3px solid var(--jbt-accent);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.jbt-skip {
	position: absolute;
	inset-inline-start: -999px;
	top: 0;
	background: var(--jbt-ink);
	color: #fff;
	padding: 8px 14px;
	z-index: 100;
}

.jbt-skip:focus {
	inset-inline-start: 8px;
}

.jbt-container {
	width: 100%;
	max-width: 1160px;
	margin-inline: auto;
	padding-inline: 16px;
}

.jbt-content {
	padding-block: 32px;
}

/* ---------- Header ---------- */
.jbt-header {
	background: #fff;
	border-block-end: 1px solid var(--jbt-line);
	position: sticky;
	top: 0;
	z-index: 50;
}

.jbt-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	flex-wrap: wrap;
}

.jbt-site-title {
	font-size: 1.3rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--jbt-brand);
}

.jbt-nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--jbt-line);
	border-radius: 8px;
	font-size: 1.4rem;
	line-height: 1;
	padding: 8px 12px;
	cursor: pointer;
}

.jbt-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.jbt-menu a {
	text-decoration: none;
	color: var(--jbt-ink);
	font-weight: 500;
}

.jbt-menu a:hover {
	color: var(--jbt-brand);
}

/* ---------- Buttons and forms ---------- */
.jbt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 10px;
	border: 1px solid var(--jbt-line);
	background: #fff;
	color: var(--jbt-ink);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.jbt-btn:hover {
	border-color: var(--jbt-brand);
	color: var(--jbt-brand);
}

.jbt-btn-primary {
	background: var(--jbt-brand);
	border-color: var(--jbt-brand);
	color: #fff;
}

.jbt-btn-primary:hover {
	background: var(--jbt-brand-dark);
	border-color: var(--jbt-brand-dark);
	color: #fff;
}

.jbt-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-block-end: 14px;
}

.jbt-field label,
.jbt-fieldset legend {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--jbt-muted);
}

.jbt-field input,
.jbt-field select {
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--jbt-line);
	border-radius: 10px;
	font: inherit;
	background: #fff;
	color: var(--jbt-ink);
	width: 100%;
}

.jbt-hint {
	font-size: 0.85rem;
	color: var(--jbt-muted);
	margin: 0 0 14px;
}

/* ---------- Hero and search ---------- */
.jbt-hero {
	background: linear-gradient(135deg, var(--jbt-brand-dark), var(--jbt-brand));
	color: #fff;
	padding-block: 48px 56px;
}

.jbt-hero p {
	margin: 0 0 24px;
	opacity: 0.92;
	max-width: 620px;
}

.jbt-search {
	display: grid;
	gap: 12px;
	background: #fff;
	color: var(--jbt-ink);
	padding: 16px;
	border-radius: var(--jbt-radius);
	box-shadow: var(--jbt-shadow);
}

.jbt-search .jbt-field {
	margin: 0;
}

.jbt-search .jbt-btn {
	width: 100%;
}

/* ---------- Sections and cards ---------- */
.jbt-section {
	padding-block: 36px;
}

.jbt-section:nth-of-type(even) {
	background: var(--jbt-soft);
}

.jbt-section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-block-end: 16px;
}

.jbt-section-head h2 {
	margin: 0;
}

.jbt-link {
	font-weight: 600;
}

.jbt-grid {
	display: grid;
	gap: var(--jbt-gap);
	grid-template-columns: 1fr;
}

.jbt-card {
	background: #fff;
	border: 1px solid var(--jbt-line);
	border-radius: var(--jbt-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--jbt-shadow);
}

.jbt-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--jbt-soft);
}

.jbt-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jbt-card-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #dfeaec, #eef4f5);
}

.jbt-badge {
	position: absolute;
	inset-block-start: 10px;
	inset-inline-start: 10px;
	background: var(--jbt-accent);
	color: #1b2a2f;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 999px;
}

.jbt-card-body {
	padding: 14px 16px 16px;
}

.jbt-card-type {
	margin: 0 0 2px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--jbt-brand);
}

.jbt-card-title {
	margin: 0 0 4px;
}

.jbt-card-title a {
	color: var(--jbt-ink);
	text-decoration: none;
}

.jbt-card-title a:hover {
	color: var(--jbt-brand);
}

.jbt-card-place {
	margin: 0 0 8px;
	color: var(--jbt-muted);
	font-size: 0.9rem;
}

.jbt-card-meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 0.9rem;
	color: var(--jbt-muted);
}

.jbt-price {
	font-weight: 700;
	color: var(--jbt-ink);
}

.jbt-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.jbt-chips a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid var(--jbt-line);
	border-radius: 999px;
	background: #fff;
	color: var(--jbt-ink);
	font-weight: 600;
	text-decoration: none;
}

.jbt-chips a:hover {
	border-color: var(--jbt-brand);
	color: var(--jbt-brand);
}

.jbt-chip-count {
	font-size: 0.8rem;
	background: var(--jbt-soft);
	border-radius: 999px;
	padding: 0 8px;
	color: var(--jbt-muted);
}

/* ---------- Listing list ---------- */
.jbt-archive {
	padding-block: 28px 48px;
}

.jbt-archive-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-block-end: 20px;
}

.jbt-archive-head h1 {
	margin: 0;
}

.jbt-count {
	margin: 0;
	color: var(--jbt-muted);
	flex: 1 1 auto;
}

.jbt-filter-toggle {
	display: none;
}

.jbt-archive-layout {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

.jbt-filters {
	background: var(--jbt-soft);
	border-radius: var(--jbt-radius);
	padding: 16px;
	align-self: start;
}

.jbt-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.jbt-fieldset {
	border: 0;
	margin: 0 0 14px;
	padding: 0;
}

.jbt-check {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
}

.jbt-actions {
	display: flex;
	gap: 10px;
}

.jbt-empty {
	text-align: center;
	padding-block: 48px;
}

.navigation.pagination {
	margin-block-start: 28px;
}

.navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.navigation .page-numbers {
	min-width: 40px;
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border: 1px solid var(--jbt-line);
	border-radius: 10px;
	text-decoration: none;
	color: var(--jbt-ink);
}

.navigation .page-numbers.current {
	background: var(--jbt-brand);
	border-color: var(--jbt-brand);
	color: #fff;
}

/* ---------- Single listing ---------- */
.jbt-single {
	padding-block: 28px 56px;
}

.jbt-single-head {
	margin-block-end: 16px;
}

.jbt-gallery {
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr 1fr;
	margin-block-end: 24px;
	border-radius: var(--jbt-radius);
	overflow: hidden;
}

.jbt-gallery-item {
	background: var(--jbt-soft);
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.jbt-gallery-item.is-main {
	grid-column: 1 / -1;
	aspect-ratio: 16 / 9;
}

.jbt-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jbt-single-layout {
	display: grid;
	gap: 28px;
	grid-template-columns: 1fr;
}

.jbt-facts {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	color: var(--jbt-muted);
}

.jbt-block {
	padding-block: 20px;
	border-block-start: 1px solid var(--jbt-line);
}

.jbt-amenities {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px 16px;
}

.jbt-amenities li::before {
	content: "\2713";
	color: var(--jbt-brand);
	margin-inline-end: 8px;
	font-weight: 700;
}

.jbt-bookbox {
	border: 1px solid var(--jbt-line);
	border-radius: var(--jbt-radius);
	padding: 20px;
	box-shadow: var(--jbt-shadow);
	background: #fff;
}

.jbt-bookbox-price {
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0 0 12px;
}

/* ---------- Footer ---------- */
.jbt-footer {
	background: var(--jbt-ink);
	color: #cfdadd;
	padding-block: 28px;
	margin-block-start: 40px;
}

.jbt-footer a {
	color: #fff;
}

.jbt-footer-inner {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.jbt-copy {
	margin: 0;
	font-size: 0.9rem;
}

/* ---------- Wider screens (mobile first) ---------- */
@media (max-width: 767px) {
	.jbt-nav-toggle {
		display: inline-block;
	}

	.jbt-nav {
		display: none;
		width: 100%;
		padding-block-end: 12px;
	}

	.jbt-nav.is-open {
		display: block;
	}

	.jbt-nav .jbt-menu {
		flex-direction: column;
		gap: 8px;
	}

	.jbt-filter-toggle {
		display: inline-flex;
	}

	.jbt-filters {
		display: none;
	}

	.jbt-filters.is-open {
		display: block;
	}
}

@media (min-width: 768px) {
	.jbt-search {
		grid-template-columns: 2fr 1fr 110px auto;
		align-items: end;
	}

	.jbt-search .jbt-btn {
		width: auto;
	}

	.jbt-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.jbt-gallery {
		grid-template-columns: 2fr 1fr 1fr;
		grid-template-rows: 1fr 1fr;
	}

	.jbt-gallery-item,
	.jbt-gallery-item.is-main {
		aspect-ratio: auto;
	}

	.jbt-gallery-item.is-main {
		grid-column: 1;
		grid-row: 1 / span 2;
		min-height: 360px;
	}

	.jbt-gallery-single {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.jbt-gallery-single .jbt-gallery-item.is-main {
		grid-row: auto;
	}

	.jbt-footer-inner {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

@media (min-width: 1024px) {
	.jbt-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.jbt-archive-layout {
		grid-template-columns: 280px 1fr;
	}

	.jbt-archive .jbt-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.jbt-single-layout {
		grid-template-columns: 1fr 340px;
	}

	.jbt-single-side {
		position: sticky;
		top: 88px;
		align-self: start;
	}
}

@media (min-width: 1280px) {
	.jbt-archive .jbt-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}


/* ---------- Ratings, reviews, ads (v0.2.0) ---------- */
.jbt-card-rating { margin: 0 0 4px; font-size: 0.9rem; font-weight: 600; color: var(--jbt-ink); }
.jbt-card-rating a { color: inherit; text-decoration: none; }
.jbt-card-rating span { color: var(--jbt-accent); }
.jbm-reviews { margin-block-start: 32px; }
.jbm-review { padding-block: 14px; border-block-start: 1px solid var(--jbt-line); }
.jbm-review p { margin: 0 0 6px; }
.jbm-reply { margin: 8px 0 0; padding-inline-start: 14px; border-inline-start: 3px solid var(--jbt-line); color: var(--jbt-muted); }
.jbm-ad { margin-block: 20px; text-align: center; }
.jbm-ad-label { display: block; color: var(--jbt-muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }


/* ---------- Customizer helpers (v0.2.0) ---------- */
.jbt-header-cta { margin-inline-start: 8px; }
.jbt-header-centered .jbt-header-inner { justify-content: center; text-align: center; }
.jbt-footer-widgets { display: grid; gap: 24px; grid-template-columns: 1fr; padding-block: 24px; }
.jbt-footer-widgets .widget-title { font-size: 1rem; margin: 0 0 8px; }
@media (min-width: 768px) {
	.jbt-footer-widgets { grid-template-columns: repeat(var(--jbt-cols, 3), 1fr); }
}

/* Special offer badge and host page */
.jbt-card-media .jbt-badge-offer { top: auto; bottom: 10px; background: #b45309; color: #fff; }
.jbt-badge-inline { position: static; display: inline-block; }
.jbt-host .jbt-grid { margin-top: 1.5rem; }

/* ---------- Mobile polish and Elementor (v0.3.0) ---------- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video, iframe, svg { max-width: 100%; height: auto; }
input, select, textarea { font-size: 16px; } /* stops iPhone from zooming into fields */
.jbt-btn, .jbt-nav a, .jbt-menu a, button, select, input[type="date"] { min-height: 44px; }
.jbt-table-wrap, .jbm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.jbt-elementor-page .jbt-main { padding: 0; }
.jbt-elementor-page .jbt-main > .elementor { width: 100%; }
.jbt-grid-sc { margin-block: 8px; }
@media (min-width: 768px) {
	.jbt-grid-sc.jbt-cols-1 { grid-template-columns: 1fr; }
	.jbt-grid-sc.jbt-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.jbt-grid-sc.jbt-cols-3 { grid-template-columns: repeat(3, 1fr); }
	.jbt-grid-sc.jbt-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Booking bar at the bottom of the phone screen on a listing page */
.jbt-book-bar { display: none; }
@media (max-width: 1023px) {
	.jbt-book-bar {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: #fff; border-block-start: 1px solid var(--jbt-line); box-shadow: 0 -4px 14px rgba(0,0,0,.08);
	}
	.jbt-book-bar-price { font-weight: 700; }
	.jbt-single { padding-block-end: 76px; }
	.jbt-single-side { scroll-margin-top: 80px; }
}

/* ---------- Modern look (v0.4.0) ---------- */
:root {
	--jbt-grad: linear-gradient(135deg, var(--jbt-brand), var(--jbt-brand-dark));
	--jbt-ring: 0 0 0 3px rgba(14, 107, 114, 0.18);
	--jbt-lift: 0 12px 30px rgba(20, 40, 45, 0.14);
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--jbt-brand); box-shadow: var(--jbt-ring); }

/* Header */
.jbt-header { background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); border-block-end: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 1px 14px rgba(20, 40, 45, 0.06); }
.jbt-menu a { padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.jbt-menu a:hover { background: var(--jbt-soft); }

/* Buttons */
.jbt-btn { border-radius: 12px; transition: transform .15s, box-shadow .15s, border-color .15s, color .15s; }
.jbt-btn-primary { background: var(--jbt-grad); border-color: transparent; box-shadow: 0 6px 16px rgba(14, 107, 114, 0.28); }
.jbt-btn-primary:hover { background: var(--jbt-grad); border-color: transparent; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(14, 107, 114, 0.35); }

/* Hero and search */
.jbt-hero { background: radial-gradient(900px 360px at 88% -10%, rgba(242, 169, 59, 0.38), transparent 62%), var(--jbt-grad); padding-block: 64px 76px; }
.jbt-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; letter-spacing: -0.01em; }
.jbt-search { border-radius: 18px; box-shadow: var(--jbt-lift); }

/* Listing cards */
.jbt-card { border-radius: 16px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.jbt-card:hover { transform: translateY(-4px); box-shadow: var(--jbt-lift); }
.jbt-card-media img { transition: transform .5s; }
.jbt-card:hover .jbt-card-media img { transform: scale(1.05); }
.jbt-badge { border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }

/* Single listing */
.jbt-single { background: linear-gradient(180deg, var(--jbt-soft), #fff 380px); }
.jbt-single-head h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.2; margin-block: 4px 8px; }
.jbt-gallery { border-radius: 18px; gap: 6px; box-shadow: var(--jbt-shadow); }
.jbt-gallery-item img { transition: transform .5s; }
.jbt-gallery-item:hover img { transform: scale(1.04); }
.jbt-facts { gap: 10px; margin-block-end: 12px; }
.jbt-facts li { background: #fff; border: 1px solid var(--jbt-line); border-radius: 999px; padding: 7px 16px; color: var(--jbt-ink); font-size: 0.92rem; box-shadow: 0 1px 4px rgba(20, 40, 45, 0.05); }
.jbt-single-main .jbt-block { background: #fff; border: 1px solid var(--jbt-line); border-radius: 18px; padding: 22px; margin-block: 16px; box-shadow: var(--jbt-shadow); }
.jbt-single-main .jbt-block > h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin: 0 0 14px; }
.jbt-single-main .jbt-block > h2::before { content: ""; width: 5px; height: 1.15em; border-radius: 3px; background: linear-gradient(var(--jbt-brand), var(--jbt-accent)); flex: none; }
/* Headings typed inside the description stay in proportion */
.jbt-prose { line-height: 1.75; overflow-wrap: anywhere; }
.jbt-prose > *:first-child { margin-top: 0; }
.jbt-prose h1, .jbt-prose h2 { font-size: 1.35rem; line-height: 1.3; margin: 1.2em 0 .5em; }
.jbt-prose h3, .jbt-prose h4 { font-size: 1.12rem; line-height: 1.35; margin: 1.1em 0 .4em; }
.jbt-prose img { border-radius: 12px; }
.jbt-amenities { gap: 10px; }
.jbt-amenities li { background: var(--jbt-soft); border: 1px solid var(--jbt-line); border-radius: 12px; padding: 9px 12px; }
.jbt-amenities li::before { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--jbt-brand); color: #fff; font-size: 12px; }

/* Booking box */
.jbt-bookbox { padding: 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--jbt-line); box-shadow: var(--jbt-lift); }
.jbt-bookbox-price { margin: 0; padding: 18px 22px; background: var(--jbt-grad); color: #fff; font-size: 1.25rem; }
.jbt-bookbox .jbm-box { border: 0; box-shadow: none; border-radius: 0; padding: 20px 22px; }
.jbt-bookbox .jbm-wa-wrap { margin: 0; padding: 0 22px 22px; }
.jbt-bookbox > .jbt-hint { padding: 20px 22px; margin: 0; }
@media (min-width: 1024px) {
	.jbt-single-side { position: sticky; top: 88px; align-self: start; }
}

/* Footer */
.jbt-footer { background: linear-gradient(135deg, var(--jbt-ink), #0d2f33); }

@media (prefers-reduced-motion: reduce) {
	.jbt-card, .jbt-card-media img, .jbt-gallery-item img, .jbt-btn { transition: none; }
	.jbt-card:hover, .jbt-btn-primary:hover { transform: none; }
}

/* ---------- Search box alignment fix (v0.4.3) ---------- */
.jbt-search { grid-template-columns: minmax(0, 1fr); }
.jbt-search .jbt-field { min-width: 0; }
.jbt-search input,
.jbt-search select { width: 100%; min-width: 0; box-sizing: border-box; height: 46px; }
.jbt-search .jbt-btn { height: 46px; display: inline-flex; align-items: center; justify-content: center; }

@media (min-width: 600px) and (max-width: 1099px) {
	.jbt-search { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
	.jbt-search .jbt-field-grow { grid-column: 1 / -1; }
	.jbt-search .jbt-btn { grid-column: 1 / -1; width: 100%; }
}

@media (min-width: 1100px) {
	.jbt-search {
		grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, .8fr) auto;
		align-items: end;
	}
	.jbt-search .jbt-btn { width: auto; padding-inline: 28px; }
}

/* ---------- Pages, account, tables, footer: colourful look (v0.5.0) ---------- */
.jbt-page-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	padding-block: 38px 64px;
	background:
		radial-gradient(520px 220px at 88% 0%, rgba(242, 169, 59, 0.55), transparent 70%),
		radial-gradient(420px 200px at 8% 110%, rgba(94, 214, 196, 0.35), transparent 70%),
		linear-gradient(135deg, var(--jbt-brand-dark), var(--jbt-brand) 60%, #18909a);
}
.jbt-page-hero h1 { color: #fff; margin: 6px 0 0; font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.15; }
.jbt-crumbs { margin: 0; font-size: 0.9rem; opacity: 0.9; display: flex; flex-wrap: wrap; gap: 6px; }
.jbt-crumbs a { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.16); padding: 2px 12px; border-radius: 999px; }
.jbt-crumbs a:hover { background: rgba(255, 255, 255, 0.28); }

.jbt-page-body { margin-block-start: -40px; position: relative; padding-block-end: 48px; }
.jbt-page-body .jbt-article {
	background: #fff;
	border-radius: 22px;
	padding: clamp(18px, 4vw, 34px);
	box-shadow: var(--jbt-lift);
	border: 1px solid rgba(14, 107, 114, 0.08);
	border-block-start: 5px solid var(--jbt-accent);
	min-width: 0;
}
.jbt-page-body .jbt-article > *:first-child { margin-block-start: 0; }

/* Section headings with a colour bar */
.jbt-page-body h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; margin: 1.6em 0 0.7em; }
.jbt-page-body h2::before { content: ""; width: 6px; height: 1.2em; border-radius: 4px; background: linear-gradient(180deg, var(--jbt-accent), var(--jbt-brand)); flex: none; }

/* My account */
.jbm-account > p:first-child {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
	margin: 0 0 8px; padding: 14px 18px; border-radius: 16px;
	background: linear-gradient(135deg, #e6f6f4, #fff4de);
	border: 1px solid rgba(14, 107, 114, 0.12);
	font-weight: 600;
}
.jbm-account > p:first-child a { background: #fff; padding: 6px 14px; border-radius: 999px; text-decoration: none; box-shadow: 0 2px 8px rgba(20, 40, 45, 0.08); font-size: 0.92rem; }
.jbm-account > p:first-child a:hover { background: var(--jbt-brand); color: #fff; }
.jbm-account h2 + p { margin: 0 0 12px; padding: 22px; text-align: center; border: 2px dashed #bcd9db; border-radius: 16px; background: #f6fbfb; color: var(--jbt-muted); }
.jbm-account .jbm-form { box-shadow: none; background: #fbfdfd; border-color: #d6e6e8; }
.jbm-account .jbm-form > .jbm-button,
.jbm-account .jbm-form > button.jbm-button { width: auto; justify-self: start; padding-inline: 34px; }

/* Tables (bookings, price lines) */
.jbm-table-wrap { border: 1px solid #dbe8ea; border-radius: 16px; overflow: auto; box-shadow: 0 4px 14px rgba(20, 40, 45, 0.05); }
.jbm-bookings { width: 100%; border-collapse: collapse; margin: 0; }
.jbm-bookings th { background: linear-gradient(135deg, var(--jbt-brand), var(--jbt-brand-dark)); color: #fff; font-size: 0.82rem; letter-spacing: .04em; text-transform: uppercase; padding: 12px 14px; text-align: start; white-space: nowrap; }
.jbm-bookings td { padding: 12px 14px; border-block-start: 1px solid #eaf1f2; }
.jbm-bookings tbody tr:nth-child(even) { background: #f7fbfb; }
.jbm-bookings tbody tr:hover { background: #fff4de; }

/* Footer */
.jbt-footer { border-block-start: 5px solid var(--jbt-accent); color: #cfe3e5; }
.jbt-footer-widgets { padding-block: 40px 16px; }
.jbt-footer h1, .jbt-footer h2, .jbt-footer h3, .jbt-footer .widget-title { font-size: 0.95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--jbt-accent); margin: 0 0 12px; }
.jbt-footer ul { list-style: none; margin: 0; padding: 0; }
.jbt-footer li { padding: 4px 0; }
.jbt-footer a { color: #fff; text-decoration: none; opacity: .9; }
.jbt-footer a:hover { opacity: 1; color: var(--jbt-accent); }
.jbt-footer-inner { border-block-start: 1px solid rgba(255, 255, 255, 0.14); margin-block-start: 16px; padding-block: 18px; }
.jbt-copy { margin: 0; font-size: 0.9rem; opacity: .85; }

@media (max-width: 600px) {
	.jbt-page-hero { padding-block: 28px 56px; }
	.jbm-bookings th, .jbm-bookings td { padding: 10px; }
}
.jbm-bookings td { white-space: nowrap; }

/* ---------- Sign in form (WordPress login form) ---------- */
#loginform, .jbm-account #loginform {
	display: grid; gap: 14px; margin: 0; padding: 18px;
	border: 1px solid #d6e6e8; border-radius: 16px; background: #fbfdfd;
	box-shadow: 0 6px 22px rgba(20, 40, 45, 0.07);
}
#loginform p { margin: 0; }
#loginform label { display: block; font-size: 14px; font-weight: 600; color: var(--jbt-ink); margin-block-end: 4px; }
#loginform input[type="text"], #loginform input[type="password"], #loginform input[type="email"] {
	display: block; width: 100%; min-height: 46px; padding: 10px 12px; box-sizing: border-box;
	border: 1px solid #cfd8dc; border-radius: 10px; background: #fff; font: inherit;
}
#loginform .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; }
#loginform .login-remember input { width: 18px; height: 18px; accent-color: var(--jbt-brand); }
#loginform input[type="submit"], #loginform .button-primary {
	width: 100%; min-height: 48px; border: 0; border-radius: 12px; cursor: pointer;
	background: linear-gradient(135deg, var(--jbt-brand), var(--jbt-brand-dark)); color: #fff;
	font: inherit; font-weight: 700; box-shadow: 0 8px 18px rgba(14, 107, 114, 0.28);
	transition: transform .15s, box-shadow .15s;
}
#loginform input[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(14, 107, 114, 0.34); }
.jbm-account-grid a[href*="lostpassword"] { display: inline-block; margin-block-start: 12px; font-weight: 600; }
.jbm-account-grid > div > h2:first-child { margin-block-start: 0; }
.jbm-account-grid .jbm-form > .jbm-button, .jbm-account-grid .jbm-form > button.jbm-button { width: 100%; justify-self: stretch; }
