/**
 * Tour Core - Frontend Styles
 *
 * Responsive grid, cards, buttons, single service page.
 *
 * @package TourCore
 */

/* ========================================
   Section
   ======================================== */
.tc-tours-section {
	padding: 40px 0;
	max-width: 1140px;
	margin: 0 auto;
}

/* ========================================
   Grid Layout
   ======================================== */
.tc-tours-grid {
	display: grid;
	gap: 24px;
	padding: 0 16px;
}

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

.tc-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.tc-cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* ========================================
   Card
   ======================================== */
.tc-tour-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
}

.tc-tour-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Card Link */
.tc-card-link,
.tc-card-link:visited {
	text-decoration: none !important;
	color: inherit !important;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.tc-card-link:hover,
.tc-card-link:focus {
	text-decoration: none !important;
	color: inherit !important;
}

/* Card Image */
.tc-card-image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #f0f0f0;
}

.tc-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.tc-tour-card:hover .tc-card-image img {
	transform: scale(1.05);
}

/* Card Duration Badge */
.tc-card-duration {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.3px;
	z-index: 1;
	backdrop-filter: blur(4px);
}

/* Card Content */
.tc-card-content {
	padding: 16px 20px 12px;
	flex: 1;
}

.tc-card-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
	color: #1a1a1a;
}

/* Card Rating Badge (image overlay, top-right) */
.tc-card-rating-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.3px;
	z-index: 1;
	backdrop-filter: blur(4px);
}

.tc-card-rating-badge .tc-star-icon {
	flex-shrink: 0;
}

/* Stars (used on single page) */
.tc-stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	color: #f59e0b;
}

.tc-star {
	flex-shrink: 0;
}

.tc-card-desc {
	font-size: 14px;
	line-height: 1.5;
	color: #555;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ========================================
   Card Action (CTA area)
   ======================================== */
.tc-card-action {
	padding: 12px 20px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-top: 1px solid #f0f0f0;
}

/* Price */
.tc-card-price {
	display: flex;
	flex-direction: column;
}

.tc-price-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #888;
	font-weight: 600;
}

.tc-price-value {
	font-size: 18px;
	font-weight: 800;
	color: #1a1a1a;
}

/* ========================================
   Buttons
   ======================================== */
.tc-btn,
.tc-btn:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	line-height: 1.4;
	white-space: nowrap;
}

.tc-btn:hover,
.tc-btn:focus {
	text-decoration: none !important;
}

/* Detail button */
.tc-btn-detail,
.tc-btn-detail:visited {
	background: #f0f6fc;
	color: #2271b1 !important;
}

.tc-btn-detail:hover {
	background: #2271b1;
	color: #fff !important;
}

/* Contact button */
.tc-btn-contact,
.tc-btn-contact:visited {
	background: #0073aa;
	color: #fff !important;
}

.tc-btn-contact:hover {
	background: #005a87;
	color: #fff !important;
}

/* WhatsApp button */
.tc-btn-whatsapp,
.tc-btn-whatsapp:visited {
	background: #25D366;
	color: #fff !important;
}

.tc-btn-whatsapp:hover {
	background: #1da851;
	color: #fff !important;
}

/* More button */
.tc-more-wrapper {
	text-align: center;
	margin-top: 32px;
	padding: 0 16px;
}

.tc-btn-more,
.tc-btn-more:visited {
	background: #1a1a1a;
	color: #fff !important;
	padding: 14px 32px;
	font-size: 15px;
	border-radius: 10px;
}

.tc-btn-more:hover {
	background: #333;
	color: #fff !important;
}

/* Icon inside buttons */
.tc-icon {
	flex-shrink: 0;
}

/* ========================================
   Single Tour Page
   ======================================== */
.tc-single-tour {
	max-width: 960px;
	margin: 0 auto;
	padding: 40px 16px;
}

.tc-single-hero {
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 32px;
	aspect-ratio: 16 / 7;
	background: #f0f0f0;
}

.tc-single-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tc-single-content {
	margin-bottom: 40px;
}

.tc-single-content h1 {
	font-size: 32px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 12px;
	color: #1a1a1a;
}

.tc-single-excerpt {
	font-size: 18px;
	line-height: 1.6;
	color: #555;
	margin: 0 0 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #eee;
}

.tc-single-body {
	font-size: 16px;
	line-height: 1.8;
	color: #333;
	margin-bottom: 32px;
}

.tc-single-body h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 32px 0 12px;
}

.tc-single-body h3 {
	font-size: 20px;
	font-weight: 600;
	margin: 24px 0 10px;
}

.tc-single-body p {
	margin: 0 0 16px;
}

.tc-single-body ul,
.tc-single-body ol {
	margin: 0 0 16px;
	padding-left: 24px;
}

.tc-single-body img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* ========================================
   Tour Quick Info
   ======================================== */
.tc-tour-quick-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	padding: 20px;
	background: #f8fafb;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	margin-bottom: 32px;
}

.tc-quick-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.tc-quick-item .tc-icon {
	color: #2271b1;
	flex-shrink: 0;
	margin-top: 2px;
}

.tc-quick-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #888;
	font-weight: 600;
	margin-bottom: 2px;
}

.tc-quick-item strong {
	font-size: 15px;
	color: #1a1a1a;
}

/* ========================================
   Itinerary Timeline
   ======================================== */
.tc-single-itinerary {
	margin: 40px 0;
}

.tc-single-itinerary h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 24px;
	color: #1a1a1a;
}

.tc-itinerary-timeline {
	position: relative;
	padding-left: 32px;
}

.tc-itinerary-timeline::before {
	content: '';
	position: absolute;
	left: 11px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #e0e0e0;
}

.tc-timeline-day {
	position: relative;
	margin-bottom: 24px;
}

.tc-timeline-day:last-child {
	margin-bottom: 0;
}

.tc-timeline-marker {
	position: absolute;
	left: -32px;
	top: 0;
}

.tc-day-number {
	display: inline-block;
	background: #2271b1;
	color: #fff;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.tc-timeline-content {
	background: #f8fafb;
	border: 1px solid #e9ecef;
	border-radius: 10px;
	padding: 20px;
}

.tc-timeline-content h3 {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #1a1a1a;
}

.tc-timeline-content p {
	font-size: 15px;
	line-height: 1.7;
	color: #555;
	margin: 0;
}

/* ========================================
   Include / Exclude
   ======================================== */
.tc-include-exclude {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 40px 0;
}

.tc-ie-column {
	padding: 20px;
	border-radius: 12px;
}

.tc-ie-include {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
}

.tc-ie-exclude {
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.tc-ie-column h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 12px;
}

.tc-ie-include h3 {
	color: #166534;
}

.tc-ie-include h3 .tc-icon {
	color: #16a34a;
}

.tc-ie-exclude h3 {
	color: #991b1b;
}

.tc-ie-exclude h3 .tc-icon {
	color: #dc2626;
}

.tc-ie-column ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tc-ie-column li {
	padding: 6px 0;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tc-ie-column li:last-child {
	border-bottom: none;
}

.tc-ie-include li::before {
	content: '\2713 ';
	color: #16a34a;
	font-weight: 700;
	margin-right: 6px;
}

.tc-ie-exclude li::before {
	content: '\2717 ';
	color: #dc2626;
	font-weight: 700;
	margin-right: 6px;
}

/* ========================================
   Departure Schedule
   ======================================== */
.tc-departure-schedule {
	margin: 40px 0;
}

.tc-departure-schedule h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 20px;
	color: #1a1a1a;
}

.tc-departure-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 10px;
}

.tc-departure-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: #f8fafb;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #333;
}

.tc-departure-item .tc-icon {
	color: #2271b1;
	flex-shrink: 0;
}

/* ========================================
   Related Tours
   ======================================== */
.tc-related-tours {
	border-top: 1px solid #eee;
	padding-top: 40px;
}

.tc-related-tours h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 24px;
	color: #1a1a1a;
}

/* ========================================
   Gallery Section (Single Tour)
   ======================================== */
.tc-single-gallery {
	margin: 40px 0;
}

.tc-single-gallery h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 20px;
	color: #1a1a1a;
}

.tc-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.tc-gallery-link {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	aspect-ratio: 4 / 3;
}

.tc-gallery-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.tc-gallery-link:hover img {
	transform: scale(1.05);
}

.tc-gallery-link::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	transition: background 0.3s ease;
}

.tc-gallery-link:hover::after {
	background: rgba(0, 0, 0, 0.15);
}

/* Lightbox Overlay */
.tc-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tc-lightbox-overlay.tc-lightbox-active {
	opacity: 1;
	visibility: visible;
}

.tc-lightbox-content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
}

.tc-lightbox-content img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 4px;
	display: block;
}

.tc-lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 32px;
	cursor: pointer;
	padding: 4px 8px;
	line-height: 1;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.tc-lightbox-close:hover {
	opacity: 1;
}

.tc-lightbox-prev,
.tc-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	padding: 12px 16px;
	border-radius: 4px;
	opacity: 0.7;
	transition: opacity 0.2s, background 0.2s;
}

.tc-lightbox-prev:hover,
.tc-lightbox-next:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.25);
}

.tc-lightbox-prev {
	left: -50px;
}

.tc-lightbox-next {
	right: -50px;
}

.tc-lightbox-counter {
	text-align: center;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	margin-top: 12px;
}

/* ========================================
   FAQ Section (Single Service)
   ======================================== */
.tc-single-faq {
	margin: 40px 0;
}

.tc-single-faq h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 20px;
	color: #1a1a1a;
}

.tc-faq-accordion {
	border: 1px solid #e9ecef;
	border-radius: 12px;
	overflow: hidden;
}

.tc-faq-entry {
	border-bottom: 1px solid #e9ecef;
}

.tc-faq-entry:last-child {
	border-bottom: none;
}

.tc-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 18px 20px;
	background: #fff;
	border: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	text-align: left;
	gap: 12px;
	transition: background 0.2s;
}

.tc-faq-question:hover {
	background: #f8f9fa;
	color: #1a1a1a;
}

.tc-faq-entry.tc-faq-open .tc-faq-question {
	background: #f0fdf4;
	color: #166534;
}

.tc-faq-entry.tc-faq-open .tc-faq-question:hover {
	background: #dcfce7;
	color: #166534;
}

.tc-faq-chevron {
	flex-shrink: 0;
	transition: transform 0.3s ease;
	color: #666;
}

.tc-faq-entry.tc-faq-open .tc-faq-chevron {
	transform: rotate(180deg);
}

.tc-faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.tc-faq-entry.tc-faq-open .tc-faq-answer {
	max-height: 500px;
}

.tc-faq-answer p {
	padding: 0 20px 18px;
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #444;
}

/* Single CTA */
.tc-single-cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.tc-single-cta .tc-btn {
	padding: 14px 28px;
	font-size: 16px;
}

/* Contact Box (sidebar-style) */
.tc-contact-box {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 40px;
}

.tc-contact-box h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #1a1a1a;
}

.tc-contact-box .tc-contact-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tc-contact-box .tc-btn {
	justify-content: center;
	width: 100%;
}

.tc-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* Breadcrumb */
.tc-breadcrumb {
	font-size: 13px;
	color: #888;
	margin-bottom: 20px;
}

.tc-breadcrumb a {
	color: #2271b1;
	text-decoration: none;
}

.tc-breadcrumb a:hover {
	text-decoration: underline;
}

.tc-breadcrumb .tc-breadcrumb-sep {
	margin: 0 6px;
	color: #ccc;
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 1023px) {
	.tc-cols-3,
	.tc-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}

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

	.tc-single-content h1 {
		font-size: 26px;
	}

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

	.tc-lightbox-prev { left: 8px; }
	.tc-lightbox-next { right: 8px; }
}

/* Mobile */
@media (max-width: 767px) {
	.tc-tours-section {
		padding: 24px 0;
	}

	.tc-tours-grid {
		gap: 16px;
	}

	.tc-cols-2,
	.tc-cols-3,
	.tc-cols-4 {
		grid-template-columns: 1fr;
	}

	.tc-card-title {
		font-size: 16px;
	}

	.tc-card-desc {
		font-size: 13px;
	}

	.tc-card-action {
		flex-direction: column;
		align-items: stretch;
	}

	.tc-card-action .tc-btn {
		justify-content: center;
	}

	.tc-more-wrapper {
		margin-top: 20px;
	}

	.tc-btn-more {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	/* Single page mobile */
	.tc-single-tour {
		padding: 20px 16px;
	}

	.tc-tour-quick-info {
		grid-template-columns: 1fr;
	}

	.tc-include-exclude {
		grid-template-columns: 1fr;
	}

	.tc-itinerary-timeline {
		padding-left: 24px;
	}

	.tc-timeline-marker {
		left: -24px;
	}

	.tc-day-number {
		font-size: 11px;
		padding: 3px 7px;
	}

	.tc-single-content h1 {
		font-size: 22px;
	}

	.tc-single-excerpt {
		font-size: 15px;
	}

	.tc-single-cta {
		flex-direction: column;
	}

	.tc-single-cta .tc-btn {
		width: 100%;
		justify-content: center;
	}

	.tc-related-grid {
		grid-template-columns: 1fr;
	}

	.tc-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	.tc-lightbox-prev,
	.tc-lightbox-next {
		padding: 8px 12px;
		font-size: 22px;
	}

	.tc-lightbox-prev { left: 5px; }
	.tc-lightbox-next { right: 5px; }

	.tc-faq-question {
		font-size: 14px;
		padding: 14px 16px;
	}

	.tc-faq-answer p {
		padding: 0 16px 14px;
		font-size: 14px;
	}
}
