/* Tour Manager - front-end styles */




/* Grid list [tour_list] */
.tm-grid {
	display: grid;
	grid-template-columns: repeat(var(--tm-columns, 3), 1fr);
	gap: 24px;
	margin: 20px 0;
}
@media (max-width: 768px) {
	.tm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.tm-grid { grid-template-columns: 1fr; }
}

.tm-card {
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tm-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	transform: translateY(-3px);
}
.tm-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
}
.tm-card-image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f3f3f3;
}
.tm-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tm-card-noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #999;
	font-size: 14px;
}
.tm-card-title {
	padding: 14px 16px;
	font-size: 17px;
	margin: 0;
}

/* Full single tour view - used both on the tour's own page and via [tour_view] */
.tm-single-wrapper {
	width: 100%;
	box-sizing: border-box;
	margin: 40px auto;
	padding: 0 20px;
}
.tm-single-tour {
	margin-bottom: 40px;
}
.tm-single-title {
	font-size: 32px;
	line-height: 1.25;
	margin: 0 0 20px;
}
.tm-single-featured img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	margin-bottom: 24px;
	display: block;
}
.tm-single-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}
.tm-gallery-slider {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	margin-bottom: 24px;
	background: #f3f3f3;
}
.tm-gallery-track {
	display: flex;
	transition: transform 0.3s ease;
}
.tm-slide {
	flex: 0 0 100%;
}
.tm-slide img {
	width: 100%;
	height: 380px;
	object-fit: cover;
	display: block;
}
@media (max-width: 600px) {
	.tm-slide img { height: 240px; }
}
@media (min-width: 1024px) {
	.tm-slide { flex: 0 0 33.3333%; }
	.tm-slide img { height: 300px; }
}
.tm-gallery-prev,
.tm-gallery-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tm-gallery-prev:hover,
.tm-gallery-next:hover {
	background: rgba(0, 0, 0, 0.7);
}
.tm-gallery-prev { left: 10px; }
.tm-gallery-next { right: 10px; }
.tm-gallery-counter {
	position: absolute;
	bottom: 10px;
	right: 14px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 12px;
}

/* Previous / Next tour navigation */
.tm-tour-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #eee;
}
.tm-nav-prev,
.tm-nav-next {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	max-width: 46%;
}
.tm-nav-next {
	margin-left: auto;
	text-align: right;
}
.tm-nav-thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}
.tm-nav-arrow {
	font-size: 20px;
	color: #999;
}
.tm-nav-label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #999;
}
.tm-nav-title {
	display: block;
	font-weight: 600;
	font-size: 14px;
}
@media (max-width: 600px) {
	.tm-nav-thumb { display: none; }
	.tm-nav-prev, .tm-nav-next { max-width: 48%; }
}
.tm-single-description {
	font-size: 16px;
	line-height: 1.7;
}
