/* Homepage category grid */
.jab-category-grid-wrap {
	max-width: 960px;
	margin: 0 auto 2.5rem;
	padding: 0 1rem;
}

.jab-category-grid__heading {
	font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
	font-weight: 700;
	margin: 0 0 1.25rem;
	text-align: center;
	color: #1a1a1a;
}

.jab-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.jab-category-grid__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e3e3e3;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.jab-category-grid__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.jab-category-grid__media {
	display: block;
	aspect-ratio: 640 / 420;
	background: #eee;
	overflow: hidden;
}

.jab-category-grid__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jab-category-grid__body {
	padding: 1rem 1.1rem 1.15rem;
}

.jab-category-grid__title {
	display: block;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
	margin-bottom: 0.35rem;
}

.jab-category-grid__provider {
	display: block;
	font-size: 1.0625rem;
	color: #555;
	line-height: 1.4;
}

/* Bokadirekt-style catalog */
.jab-catalog {
	max-width: 920px;
	margin: 0 auto;
	color: #1a1a1a;
}

.jab-catalog__heading {
	font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 1.5rem;
}

.jab-catalog__group {
	margin-bottom: 2rem;
}

.jab-catalog__group-head {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #e5e5e5;
}

.jab-catalog__group-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
}

.jab-catalog__group-count {
	font-size: 1.0625rem;
	color: #666;
}

.jab-catalog__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.jab-service-row {
	margin: 0 0 0.85rem;
	padding: 0;
	border: 0;
}

.jab-service-row__plate {
	background: #f7f7f7;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	padding: 1.1rem 1.25rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.jab-service-row__main {
	display: grid;
	grid-template-columns: minmax(0, 60%) minmax(0, 40%);
	gap: 1rem 1.5rem;
	align-items: center;
}

.jab-service-row__col--text {
	min-width: 0;
}

.jab-service-row__col--action {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	text-align: right;
	gap: 0.75rem;
	padding-left: 1rem;
	border-left: 1px solid #ddd;
}

.jab-service-row__title-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1rem;
	margin-bottom: 0.25rem;
}

.jab-service-row__title {
	font-size: 1.4375rem;
	font-weight: 600;
	margin: 0;
	line-height: 1.35;
}

.jab-service-row__duration {
	font-size: 1.0625rem;
	color: #555;
	white-space: nowrap;
}

.jab-service-row__provider {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	color: #777;
}

.jab-service-row__desc {
	margin: 0.35rem 0 0.5rem;
	font-size: 1.0625rem;
	line-height: 1.55;
	color: #444;
}

.jab-service-row__desc.is-collapsed .jab-service-row__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.jab-service-row__toggle {
	border: 0;
	background: none;
	padding: 0;
	font-size: 1.0625rem;
	color: #2c5282;
	cursor: pointer;
	text-decoration: underline;
	margin-bottom: 0.35rem;
}

.jab-service-row__price {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 700;
	color: #111;
}

.jab-catalog-btn,
button.jab-catalog-btn {
	display: inline-block;
	min-width: 6.5rem;
	padding: 0.65rem 1.35rem;
	border: 0;
	border-radius: 999px;
	background-color: #1a1a1a;
	color: #fff;
	font-size: 1.125rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.jab-catalog-btn:hover,
.jab-catalog-btn:focus-visible,
.jab-catalog-btn.is-active,
button.jab-catalog-btn:hover,
button.jab-catalog-btn:focus-visible {
	background-color: #333;
	color: #fff;
}

.jab-service-row__book {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px dashed #ddd;
}

.jab-service-row__book .jab-booking {
	max-width: none;
	margin: 0;
	border: 1px solid #e8e8e8;
}

/* Legacy card layout */
.jab-services {
	display: grid;
	gap: 1.5rem;
	max-width: 720px;
	margin: 0 auto;
}

.jab-service-card {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	background: #fff;
	font-size: 1.0625rem;
	line-height: 1.55;
}

.jab-service-card__title {
	font-size: 1.4375rem;
	font-weight: 600;
	margin: 0 0 0.35rem;
	line-height: 1.35;
}

.jab-service-card__provider {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	color: #666;
}

.jab-service-card__desc {
	font-size: 1.0625rem;
	line-height: 1.55;
	color: #444;
}

.jab-service-card__meta {
	display: flex;
	gap: 1rem;
	color: #555;
	font-size: 1.125rem;
	font-weight: 600;
}

.jab-button {
	display: inline-block;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	border: 1px solid #333;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	background: #f7f7f7;
}

.jab-button--primary,
.jab-booking .jab-button--primary {
	background-color: #1a1a1a;
	border-color: #1a1a1a;
	border-radius: 999px;
	color: #fff;
	font-weight: 600;
	padding: 0.65rem 1.35rem;
}

.jab-button--primary:hover,
.jab-button--primary:focus-visible,
.jab-booking .jab-button--primary:hover,
.jab-booking .jab-button--primary:focus-visible {
	background-color: #333;
	border-color: #333;
	color: #fff;
}

.jab-booking {
	max-width: 520px;
	margin: 1rem auto;
	padding: 1.25rem 1.5rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	color: #1a1a1a;
}

.jab-booking__title,
.jab-booking__panel-title,
.jab-booking__meta {
	color: #1a1a1a;
}

.jab-booking__title {
	font-size: 1.375rem;
	font-weight: 600;
	margin: 0 0 0.35rem;
	line-height: 1.35;
}

.jab-booking__meta {
	font-size: 1.0625rem;
}

.jab-booking__steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	font-size: 0.9375rem;
}

.jab-booking__steps--extended {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	font-size: 0.875rem;
}

@media (max-width: 720px) {
	.jab-booking__steps--extended {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 420px) {
	.jab-booking__steps--extended {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.jab-booking__steps li {
	text-align: center;
	padding: 0.6rem 0.5rem;
	border-radius: 8px;
	background: #ececec;
	color: #333;
	line-height: 1.3;
	font-weight: 500;
}

.jab-booking__steps li.is-active {
	background: #1a1a1a;
	color: #fff;
	font-weight: 700;
}

.jab-booking__steps li.is-done {
	background: #d8d8d8;
	color: #222;
}

.jab-booking__steps li.is-clickable {
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.jab-booking__steps li.is-clickable:hover {
	background: #c4c4c4;
}

.jab-booking__steps li.is-clickable:focus-visible {
	outline: 2px solid #2c5282;
	outline-offset: 2px;
}

@media (max-width: 420px) {
	.jab-booking__steps {
		grid-template-columns: 1fr;
	}
}

.jab-booking__panel-title {
	margin: 0 0 0.75rem;
	font-size: 1.3125rem;
	font-weight: 600;
}

.jab-booking__selected-summary,
.jab-booking__hint {
	font-size: 1.125rem;
	color: #444;
	margin: 0 0 0.75rem;
	line-height: 1.45;
}

.jab-calendar__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.jab-booking .jab-calendar__prev,
.jab-booking .jab-calendar__next {
	border: 1px solid #bbb;
	background: #fff;
	color: #111;
	border-radius: 50%;
	width: 2.875rem;
	height: 2.875rem;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	min-height: 0;
	font-size: 1.5625rem;
}

.jab-calendar__month {
	font-size: 1.4375rem;
	font-weight: 700;
	text-transform: capitalize;
	color: #111;
}

.jab-calendar__weekdays,
.jab-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.25rem;
}

.jab-calendar__weekdays {
	margin-bottom: 0.35rem;
	font-size: 1.0625rem;
	color: #333;
	text-align: center;
	font-weight: 600;
}

.jab-calendar__weekdays span {
	display: block;
	padding: 0.25rem 0;
}

.jab-calendar__cell {
	min-height: 3.375rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jab-booking .jab-calendar__day {
	width: 3.125rem;
	height: 3.125rem;
	border: 1px solid transparent;
	border-radius: 50%;
	background: #fff;
	color: #222;
	cursor: default;
	font-size: 1.25rem;
	font-weight: 500;
	padding: 0;
	min-height: 0;
	line-height: 3.125rem;
	text-align: center;
}

.jab-booking .jab-calendar__day.is-available {
	border-color: #888;
	font-weight: 700;
	color: #111;
	cursor: pointer;
}

.jab-booking .jab-calendar__day.is-available:hover {
	background: #f0f0f0;
}

.jab-booking .jab-calendar__day.is-selected {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}

.jab-booking .jab-calendar__day:disabled {
	color: #aaa;
	background: #fafafa;
	opacity: 1;
}

.jab-time-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr));
	gap: 0.6rem;
	margin-bottom: 1rem;
}

.jab-booking [data-jab-slots] {
	font-size: 1.125rem;
	line-height: 1.45;
}

.jab-booking .jab-time-slot {
	border: 1px solid #888;
	background: #fff;
	color: #111;
	border-radius: 8px;
	padding: 0.85rem 0.6rem;
	cursor: pointer;
	font-size: 1.1875rem;
	font-weight: 600;
	min-height: 0;
	width: auto;
	line-height: 1.3;
}

.jab-time-slot:hover,
.jab-time-slot.is-selected {
	border-color: #1a1a1a;
	background: #1a1a1a;
	color: #fff;
}

.jab-booking__back {
	border: 0;
	background: none;
	color: #2c5282;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
	margin-bottom: 0.75rem;
	font-size: 1.125rem;
}

.jab-booking__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.jab-booking__error {
	color: #b32d2e;
	font-weight: 600;
}

.jab-slots .jab-slot {
	display: inline-block;
	margin: 0.25rem 0.5rem 0.25rem 0;
	padding: 0.35rem 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
}

.jab-booking__customer {
	border: none;
	margin: 1rem 0;
	padding: 0;
}

.jab-booking__form input[type="text"],
.jab-booking__form input[type="email"],
.jab-booking__form input[type="tel"],
.jab-booking__form select {
	width: 100%;
	max-width: 100%;
}

.jab-booking__lead {
	font-size: 0.875rem;
	color: #444;
	margin: 0 0 0.75rem;
}

.jab-booking__account-msg {
	font-size: 0.875rem;
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	background: #eef6ff;
	color: #1a365d;
	margin: 0 0 0.75rem;
}

.jab-booking__account-msg.is-error {
	background: #fde8e8;
	color: #9b1c1c;
}

.jab-booking__terms {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.jab-booking__payments {
	border: 0;
	margin: 0 0 1rem;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}

.jab-payment-option {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	gap: 0.15rem 0.65rem;
	align-items: start;
	padding: 0.75rem 0.85rem;
	border: 1px solid #ccc;
	border-radius: 10px;
	cursor: pointer;
	background: #fff;
}

.jab-payment-option:has(input:checked) {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
}

.jab-payment-option input {
	margin-top: 0.2rem;
}

.jab-payment-option__label {
	font-weight: 700;
	color: #111;
}

.jab-payment-option__desc {
	grid-column: 2;
	font-size: 0.8125rem;
	color: #555;
}

.jab-invoice-pay-details {
	margin-top: 0.35rem;
}

.jab-invoice-pay-details__company {
	margin-bottom: 0.65rem;
	font-size: 0.8125rem;
	line-height: 1.45;
}

.jab-invoice-pay-details ul {
	margin: 0.25rem 0 0;
	padding-left: 1.1rem;
}

.jab-invoice-pay-details__hint {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	color: #666;
}

@media (max-width: 720px) {
	.jab-service-row__main {
		grid-template-columns: 1fr;
	}

	.jab-service-row__col--action {
		align-items: stretch;
		text-align: left;
		padding-left: 0;
		border-left: 0;
		border-top: 1px solid #ddd;
		padding-top: 0.85rem;
	}

	.jab-catalog-btn {
		width: 100%;
		text-align: center;
	}
}

/* Provider profile (Bokadirekt-style place page) */
.jab-profile-page-wrap {
	padding: 1.5rem 1rem 3rem;
}

.jab-profile {
	max-width: 960px;
	margin: 0 auto;
	color: #1a1a1a;
}

.jab-profile__hero {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 1.75rem;
	align-items: start;
	margin-bottom: 2.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e5e5e5;
}

.jab-profile__photo {
	width: 200px;
	height: 200px;
	object-fit: cover;
	border-radius: 12px;
	background: #f0f0f0;
}

.jab-profile__photo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
	font-weight: 700;
	color: #888;
}

.jab-profile__company {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	color: #666;
}

.jab-profile__name {
	margin: 0 0 0.35rem;
	font-size: clamp(1.75rem, 2vw + 1rem, 2.35rem);
	font-weight: 700;
	line-height: 1.15;
}

.jab-profile__hero .jab-profile__tagline {
	margin: 0 0 0.75rem;
	font-size: 1.3125rem;
	line-height: 1.55;
	color: #444;
}

.jab-profile__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-bottom: 1rem;
}

.jab-profile__stars {
	color: #f5a623;
	letter-spacing: 0.05em;
}

.jab-profile__star--empty {
	color: #ccc;
}

.jab-profile__rating-meta {
	font-size: 0.95rem;
	color: #555;
}

.jab-profile__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	font-size: 0.95rem;
}

.jab-profile__nav a {
	color: #1a6fb5;
	text-decoration: none;
	font-weight: 600;
}

.jab-profile__nav a:hover {
	text-decoration: underline;
}

.jab-profile__section {
	margin-bottom: 2.75rem;
	scroll-margin-top: 1.5rem;
}

.jab-profile__section-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 1rem;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid #222;
}

.jab-profile__gallery {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 0.75rem;
}

.jab-profile__gallery img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.jab-profile__reviews {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.jab-profile__review {
	padding: 1rem 0;
	border-bottom: 1px solid #eee;
}

.jab-profile__review-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
}

.jab-profile__review-head time {
	color: #777;
	margin-left: auto;
}

.jab-profile__review-form-wrap {
	background: #f7f7f7;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	padding: 1.25rem;
	max-width: 520px;
}

.jab-profile__review-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.jab-profile__review-form input,
.jab-profile__review-form select,
.jab-profile__review-form textarea {
	width: 100%;
	max-width: 100%;
}

.jab-profile__review-submit {
	margin: 1rem 0 0;
}

.jab-profile__review-form button.jab-catalog-btn {
	font-family: inherit;
	background-color: #1a1a1a;
	color: #fff;
}

.jab-profile__review-form button.jab-catalog-btn:hover,
.jab-profile__review-form button.jab-catalog-btn:focus-visible {
	background-color: #333;
	color: #fff;
}

.jab-profile__about {
	font-size: 1.125rem;
	line-height: 1.65;
}

.jab-profile__legal {
	margin-top: 1rem;
	font-size: 0.9rem;
	color: #666;
}

.jab-profile__certs {
	list-style: none;
	margin: 0;
	padding: 0;
}

.jab-profile__cert {
	padding: 0.85rem 0;
	border-bottom: 1px solid #eee;
}

.jab-profile__cert h3 {
	margin: 0 0 0.25rem;
	font-size: 1.1rem;
}

.jab-profile__cert h3 span {
	font-weight: 400;
	color: #666;
}

.jab-profile__notice {
	padding: 0.75rem 1rem;
	background: #eef6ff;
	border-left: 4px solid #1a6fb5;
	margin-bottom: 1rem;
}

.jab-catalog--profile .jab-catalog__heading {
	display: none;
}

@media (max-width: 640px) {
	.jab-profile__hero {
		grid-template-columns: 1fr;
	}

	.jab-profile__photo,
	.jab-profile__photo--placeholder {
		width: 100%;
		max-width: 280px;
		height: auto;
		aspect-ratio: 1;
	}
}
