/* Travel Business Core - front-end styles for the tbc shortcodes.
   Loaded only on pages that use a tbc shortcode.
   To restyle the whole site, change the variables in the :root block below. */

:root {
	--tbc-primary: var(--e-global-color-primary, #0E5A66);
	--tbc-secondary: var(--e-global-color-secondary, #F28C28);
	--tbc-dark: var(--e-global-color-text, #1B1B1B);
	--tbc-light: var(--e-global-color-accent, #F7F4EE);
	--tbc-white: var(--e-global-color-ttwhite, #FFFFFF);
	--tbc-radius: 12px;
	--tbc-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
	--tbc-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.14);
	--tbc-gap: 24px;
}

/* ---------- Shared ---------- */

.tbc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--tbc-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: inherit;
	color: var(--tbc-dark);
}

@media (min-width: 768px) {
	.tbc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	.tbc-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tbc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--tbc-white);
	border-radius: var(--tbc-radius);
	box-shadow: var(--tbc-shadow);
	overflow: hidden;
	color: var(--tbc-dark);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.tbc-card:hover {
		transform: translateY(-6px);
		box-shadow: var(--tbc-shadow-hover);
	}
}

.tbc-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--tbc-light);
	overflow: hidden;
}

.tbc-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tbc-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
}

.tbc-card__title {
	margin: 0;
	color: var(--tbc-primary);
	font-size: 1.25rem;
	line-height: 1.3;
}

.tbc-card__meta {
	margin: 0;
	font-size: 0.95rem;
	opacity: 0.85;
}

.tbc-card__rate {
	margin: 0;
	color: var(--tbc-primary);
	font-size: 1.1rem;
	font-weight: 700;
}

.tbc-card__desc {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
}

.tbc-card__actions {
	margin-top: auto;
	padding-top: 8px;
}

.tbc-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--tbc-primary);
	color: var(--tbc-white);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.tbc-card__media .tbc-badge {
	position: absolute;
	top: 12px;
	left: 12px;
}

.tbc-badge--ribbon {
	background: var(--tbc-secondary);
	color: var(--tbc-dark);
	top: 12px;
	left: auto;
	right: 12px;
}

.tbc-card__media .tbc-badge--ribbon {
	left: auto;
	right: 12px;
}

.tbc-ticks {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
}

.tbc-ticks li {
	position: relative;
	margin: 0 0 6px;
	padding-left: 26px;
	line-height: 1.5;
}

.tbc-ticks li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--tbc-primary);
	font-weight: 700;
}

/* Buttons */

.tbc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 24px;
	border: 2px solid var(--tbc-secondary);
	border-radius: 999px;
	background: var(--tbc-secondary);
	color: var(--tbc-dark);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tbc-btn:hover {
	background: var(--tbc-primary);
	border-color: var(--tbc-primary);
	color: var(--tbc-white);
	text-decoration: none;
}

.tbc-btn--block {
	width: 100%;
}

.tbc-btn:focus-visible,
.tbc-details__summary:focus-visible,
.tbc-slider__btn:focus-visible,
.tbc-slider__track:focus-visible,
.tbc-contact-buttons__btn:focus-visible {
	outline: 3px solid var(--tbc-primary);
	outline-offset: 3px;
}

/* Home page fleet section (class tbc-fleet on the Elementor container):
   4 cards in a row on wide screens, 2 on tablet and small laptops, 1 on mobile.
   Scoped to .tbc-fleet so other [tbc_vehicles] uses keep the default grid. */

@media (min-width: 1025px) {
	.tbc-fleet .tbc-grid--vehicles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.tbc-fleet .tbc-grid--vehicles {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Softer text: add the CSS class tbc-muted to any Elementor widget. */

.tbc-muted {
	opacity: 0.78;
}

/* Notice shown to logged-in admins only */

.tbc-notice {
	margin: 0;
	padding: 14px 18px;
	border: 1px dashed var(--tbc-primary);
	border-radius: var(--tbc-radius);
	background: var(--tbc-light);
	color: var(--tbc-dark);
	font-size: 0.95rem;
}

/* ---------- Packages ---------- */

.tbc-price {
	margin: 0;
	color: var(--tbc-dark);
	font-size: 0.95rem;
}

.tbc-price__amount {
	color: var(--tbc-primary);
	font-size: 1.35rem;
	font-weight: 700;
}

.tbc-price__note {
	display: block;
	font-size: 0.85rem;
	opacity: 0.8;
}

.tbc-details {
	border-top: 1px solid var(--tbc-light);
	padding-top: 4px;
}

.tbc-details__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	color: var(--tbc-primary);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.tbc-details__summary::-webkit-details-marker {
	display: none;
}

.tbc-details__summary::after {
	content: "+";
	font-size: 1.4rem;
	line-height: 1;
}

.tbc-details[open] > .tbc-details__summary::after {
	content: "\2212";
}

.tbc-details__body {
	padding: 8px 0 12px;
}

.tbc-details__heading {
	margin: 12px 0 8px;
	color: var(--tbc-dark);
	font-size: 1rem;
}

.tbc-itinerary {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
}

.tbc-itinerary li {
	margin: 0 0 8px;
	line-height: 1.5;
}

.tbc-itinerary__day {
	display: block;
	color: var(--tbc-primary);
	font-weight: 700;
}

/* ---------- Reviews ---------- */

.tbc-review__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tbc-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--tbc-primary);
	color: var(--tbc-white);
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1;
	overflow: hidden;
}

.tbc-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tbc-review__name {
	margin: 0;
	color: var(--tbc-dark);
	font-size: 1.05rem;
	line-height: 1.3;
}

.tbc-review__city {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.8;
}

.tbc-stars {
	display: inline-flex;
	gap: 2px;
	color: var(--tbc-secondary);
	font-size: 1.2rem;
	line-height: 1;
}

.tbc-stars__off {
	color: var(--tbc-light);
	text-shadow: 0 0 1px var(--tbc-dark);
}

.tbc-review__text {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.65;
}

.tbc-review__trip {
	margin: 0;
	color: var(--tbc-primary);
	font-size: 0.9rem;
	font-weight: 700;
}

/* Slider (CSS scroll-snap, tiny JS only for the buttons) */

.tbc-slider {
	position: relative;
}

.tbc-slider__track {
	display: flex;
	gap: var(--tbc-gap);
	margin: 0;
	padding: 6px 4px 18px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 4px;
	-webkit-overflow-scrolling: touch;
}

.tbc-slider__track > .tbc-card {
	flex: 0 0 88%;
	scroll-snap-align: start;
}

@media (min-width: 768px) {
	.tbc-slider__track > .tbc-card {
		flex-basis: calc(50% - (var(--tbc-gap) / 2));
	}
}

@media (min-width: 1025px) {
	.tbc-slider__track > .tbc-card {
		flex-basis: calc(33.333% - (var(--tbc-gap) * 2 / 3));
	}
}

.tbc-slider__nav {
	display: flex;
	justify-content: center;
	gap: 12px;
}

.tbc-slider__nav[hidden] {
	display: none;
}

.tbc-slider__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid var(--tbc-primary);
	border-radius: 50%;
	background: var(--tbc-white);
	color: var(--tbc-primary);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tbc-slider__btn:hover:not(:disabled) {
	background: var(--tbc-primary);
	color: var(--tbc-white);
}

.tbc-slider__btn:disabled {
	opacity: 0.4;
	cursor: default;
}

@media (prefers-reduced-motion: no-preference) {
	.tbc-slider__track {
		scroll-behavior: smooth;
	}
}

/* ---------- Contact buttons [tbc_contact_buttons] ---------- */

.tbc-contact-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.tbc-contact-buttons__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border: 2px solid var(--tbc-primary);
	border-radius: 999px;
	background-color: var(--tbc-primary);
	color: var(--tbc-white);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tbc-contact-buttons__btn:hover {
	background-color: var(--tbc-secondary);
	border-color: var(--tbc-secondary);
	color: var(--tbc-dark);
	text-decoration: none;
}

.tbc-contact-buttons__icon {
	display: block;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	fill: currentColor;
}

/* Hero variant: compact outline buttons for dark backgrounds. */
.tbc-contact-buttons--hero .tbc-contact-buttons__btn {
	padding: 0 18px;
	background-color: transparent;
	border-color: var(--tbc-white);
	color: var(--tbc-white);
}

.tbc-contact-buttons--hero .tbc-contact-buttons__btn:hover,
.tbc-contact-buttons--hero .tbc-contact-buttons__btn:focus-visible {
	background-color: var(--tbc-white);
	border-color: var(--tbc-white);
	color: var(--tbc-primary);
}

.tbc-contact-buttons--hero .tbc-contact-buttons__btn--email {
	width: 48px;
	padding: 0;
}

.tbc-contact-buttons--hero .tbc-contact-buttons__btn--email .tbc-contact-buttons__label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}
