/* Tour Grid Display — frontend styles, prefix tgd- */

.tgd-wrap {
	--tgd-accent: #b8732e;
	box-sizing: border-box;
}
.tgd-wrap * {
	box-sizing: border-box;
}

.tgd-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) {
	.tgd-grid.tgd-cols-3,
	.tgd-grid.tgd-cols-4,
	.tgd-grid.tgd-cols-5,
	.tgd-grid.tgd-cols-6 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 768px) {
	.tgd-grid.tgd-cols-2 { grid-template-columns: repeat(2, 1fr); }
	.tgd-grid.tgd-cols-3 { grid-template-columns: repeat(3, 1fr); }
	.tgd-grid.tgd-cols-4 { grid-template-columns: repeat(4, 1fr); }
	.tgd-grid.tgd-cols-5 { grid-template-columns: repeat(5, 1fr); }
	.tgd-grid.tgd-cols-6 { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 480px) {
	.tgd-grid { grid-template-columns: 1fr; }
}

.tgd-card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tgd-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.tgd-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.tgd-card-media {
	position: relative;
	aspect-ratio: 1200 / 700 !important;
	overflow: hidden !important;
	background: #f1f1f1;
}
.tgd-card-media::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 45%;
	background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0));
	pointer-events: none;
}
.tgd-card-img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
	transition: transform 0.3s ease;
}
.tgd-card:hover .tgd-card-img {
	transform: scale(1.05);
}
.tgd-card-img-placeholder {
	background: linear-gradient(135deg, #e5e5e5, #f1f1f1);
}

.tgd-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--tgd-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	line-height: 1.4;
}

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

.tgd-card-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 8px;
	color: #1a1a1a;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tgd-card-duration {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #6b6b6b;
	margin-bottom: 10px;
}
.tgd-icon-clock {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	padding: 2px;
	border-radius: 50%;
	background: var(--tgd-accent, #b8732e);
	color: #fff;
	box-sizing: border-box;
}

.tgd-card-footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
	margin-top: 4px;
}

.tgd-card-price {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}
.tgd-price-label {
	font-size: 10px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.tgd-price-value {
	font-size: 17px;
	font-weight: 700;
	color: var(--tgd-accent);
}

.tgd-cta-btn {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: var(--tgd-accent);
	padding: 7px 14px;
	border-radius: 6px;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}
.tgd-card:hover .tgd-cta-btn {
	opacity: 0.85;
}

/* List style */
.tgd-style-list .tgd-grid {
	grid-template-columns: 1fr !important;
	gap: 14px;
}
.tgd-style-list .tgd-card-link {
	display: flex;
	flex-direction: row;
}
.tgd-style-list .tgd-card-media {
	width: 220px;
	flex-shrink: 0;
	aspect-ratio: auto;
}
.tgd-style-list .tgd-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
@media (max-width: 600px) {
	.tgd-style-list .tgd-card-link {
		flex-direction: column;
	}
	.tgd-style-list .tgd-card-media {
		width: 100%;
	}
}

/* Carousel style */
.tgd-style-carousel {
	position: relative;
}
.tgd-carousel-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 6px;
	scrollbar-width: thin;
}
.tgd-carousel-track .tgd-card {
	flex: 0 0 260px;
	scroll-snap-align: start;
}
.tgd-carousel-controls {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-bottom: 10px;
}
.tgd-carousel-btn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: #333;
	transition: background 0.15s ease;
}
.tgd-carousel-btn:hover {
	background: #f3f3f3;
}

/* Actions row */
.tgd-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
}
.tgd-load-more-btn,
.tgd-view-all-btn {
	display: inline-block;
	padding: 10px 24px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid var(--tgd-accent);
	background: transparent;
	color: var(--tgd-accent);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.tgd-load-more-btn:hover,
.tgd-view-all-btn:hover {
	background: var(--tgd-accent);
	color: #fff;
}
.tgd-load-more-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.tgd-empty {
	text-align: center;
	color: #888;
	padding: 24px 0;
}

/* Admin color field */
.tgd-color-field {
	max-width: 120px;
}
