/**
 * Travel Station Tour Manager — Frontend CSS
 *
 * Base structural styles for all dynamic tour widgets.
 * Intentionally minimal — Elementor and the theme control final appearance.
 * All classes use .ts- prefix to avoid conflicts.
 *
 * @package TravelStationTourManager
 */

/* ── Editor Placeholder (shown in Elementor editor when data is empty) ── */
.ts-editor-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 24px;
	background: #f7f7f7;
	border: 1px dashed #ccc;
	border-radius: 6px;
	color: #aaa;
	font-size: 13px;
	text-align: center;
	min-height: 80px;
}

/* ── Tour Highlights ─────────────────────────────────────────────────── */
.ts-tour-highlights {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ts-highlight-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.ts-highlight-icon {
	flex-shrink: 0;
	line-height: 1.5;
}

.ts-highlight-text {
	line-height: 1.5;
}

/* ── Tour Itinerary Accordion ────────────────────────────────────────── */
.ts-tour-itinerary {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ts-itinerary-item {
	overflow: hidden;
}

.ts-itinerary-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
	padding: 14px 16px;
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	line-height: 1.4;
}

.ts-itinerary-trigger:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.ts-itinerary-day-num {
	font-weight: 700;
	white-space: nowrap;
}

.ts-itinerary-separator {
	opacity: .5;
}

.ts-itinerary-title {
	flex: 1;
}

.ts-itinerary-icon {
	flex-shrink: 0;
	margin-left: auto;
	transition: transform .25s ease;
	display: flex;
	align-items: center;
}

.ts-itinerary-trigger[aria-expanded="true"] .ts-itinerary-icon {
	transform: rotate(180deg);
}

.ts-itinerary-body {
	padding: 0 16px 16px;
}

.ts-itinerary-body[hidden] {
	display: none;
}

.ts-itinerary-body.ts-animating {
	overflow: hidden;
	transition: max-height .3s ease;
}

.ts-itinerary-description {
	line-height: 1.7;
}

/* ── Tour Inclusions & Exclusions ────────────────────────────────────── */
.ts-tour-inc-exc-wrap {
	background-color: #f3f6fc;
	border: 1px solid #1a56db;
	border-radius: 12px;
	padding: 24px;
}

.ts-tour-inc-exc {
	display: flex;
	flex-wrap: wrap;
}

.ts-tour-inc-exc--two-col > .ts-inc-exc-col {
	flex: 1;
	min-width: 250px;
}

.ts-tour-inc-exc--two-col > .ts-inc-exc-col--inclusions {
	border-right: 1px solid #e5e7eb;
	padding-right: 32px;
	margin-right: 32px;
}

@media (max-width: 768px) {
	.ts-tour-inc-exc--two-col > .ts-inc-exc-col--inclusions {
		border-right: none;
		border-bottom: 1px solid #e5e7eb;
		padding-right: 0;
		margin-right: 0;
		padding-bottom: 32px;
		margin-bottom: 32px;
	}
}

.ts-tour-inc-exc--one-col > .ts-inc-exc-col {
	flex: 1 1 100%;
}

.ts-inc-exc-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.ts-inc-exc-header-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ts-inc-exc-label {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #111827;
}

.ts-inc-exc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.ts-inc-exc-item {
	display: flex;
	align-items: center;
	gap: 12px;
	line-height: 1.5;
	padding: 14px 0;
	border-bottom: 1px solid #e5e7eb;
}

.ts-inc-exc-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.ts-dot-icon {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.ts-dot-inc {
	background-color: #10b981;
}

.ts-dot-exc {
	background-color: #ef4444;
}

.ts-item-text {
	font-size: 15px;
	color: #374151;
}

/* ── Tour Transport Cards ─────────────────────────────────────────────── */
.ts-tour-transport {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 1024px) {
	.ts-tour-transport {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.ts-tour-transport {
		grid-template-columns: 1fr;
	}
}

.ts-transport-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: #f3f6fc;
	border: 1px solid #1a56db;
	border-radius: 12px;
}

.ts-transport-card-body {
	display: flex;
	flex-direction: column;
	padding: 24px;
	text-align: center;
}

.ts-transport-category-wrap {
	margin-bottom: 16px;
}

.ts-transport-category {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #1a56db;
	color: #fff;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
}

.ts-dot {
	width: 6px;
	height: 6px;
	background-color: #fff;
	border-radius: 50%;
	display: inline-block;
}

.ts-transport-title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
	color: #111827;
}

.ts-transport-divider {
	height: 1px;
	background-color: #e5e7eb;
	width: 100%;
	margin: 16px 0;
}

.ts-transport-meta-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	text-align: left;
}

.ts-transport-meta-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ts-meta-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	background-color: #fcd34d;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #111827;
}

.ts-meta-text {
	display: flex;
	flex-direction: column;
}

.ts-meta-label {
	font-size: 14px;
	color: #1a56db;
	font-weight: 600;
}

.ts-meta-value {
	font-size: 16px;
	color: #111827;
	font-weight: 600;
}

.ts-transport-card-image {
	margin-top: auto;
	overflow: hidden;
}

.ts-transport-card-image img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.ts-transport-card:hover .ts-transport-card-image img {
	transform: scale(1.03);
}

/* ── Tour Umrah Hotels Cards ───────────────────────────────────────────── */
.ts-tour-umrah-hotels {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ts-hotel-card {
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ts-hotel-badge-wrap {
	display: flex;
	align-items: center;
}

.ts-hotel-subheading-badge {
	background-color: #fdbc5a;
	color: #1a1b1d;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: inline-block;
}

.ts-hotel-heading {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	color: #194fa2;
	font-family: inherit;
}

.ts-hotel-desc {
	color: #475569;
	font-size: 14px;
	line-height: 1.6;
}

.ts-hotel-desc p {
	margin: 0;
}

.ts-hotel-gallery-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
	margin-top: 8px;
}

@media (max-width: 900px) {
	.ts-hotel-gallery-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.ts-hotel-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ts-hotel-gallery-item {
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 4/3;
	background-color: #e2e8f0;
}

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

.ts-hotel-gallery-item:hover img {
	transform: scale(1.05);
}

/* ── Tour Gallery ────────────────────────────────────────────────────── */
.ts-tour-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

@media (max-width: 768px) {
	.ts-tour-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ts-gallery-item {
	position: relative;
	overflow: hidden;
}

.ts-gallery-item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.35);
	opacity: 0;
	transition: opacity .25s;
	pointer-events: none;
}

.ts-gallery-item:hover::after {
	opacity: 1;
}

.ts-gallery-item img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.ts-gallery-item:hover img {
	transform: scale(1.04);
}

.ts-gallery-link {
	display: block;
	cursor: zoom-in;
}

/* ── Lightbox ────────────────────────────────────────────────────────── */
.ts-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ts-lightbox[hidden] {
	display: none;
}

.ts-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.88);
	cursor: pointer;
}

.ts-lightbox-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 90vw;
	max-height: 90vh;
	gap: 12px;
}

.ts-lightbox-img-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

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

.ts-lightbox-close,
.ts-lightbox-prev,
.ts-lightbox-next {
	background: rgba(255,255,255,.15);
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
}

.ts-lightbox-close:hover,
.ts-lightbox-prev:hover,
.ts-lightbox-next:hover {
	background: rgba(255,255,255,.3);
}

.ts-lightbox-close {
	position: absolute;
	top: -50px;
	right: 0;
}

.ts-lightbox-prev {
	position: fixed;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.ts-lightbox-next {
	position: fixed;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.ts-lightbox-caption {
	color: rgba(255,255,255,.8);
	font-size: .85em;
	text-align: center;
	max-width: 80vw;
	min-height: 18px;
}

.ts-lightbox-counter {
	color: rgba(255,255,255,.5);
	font-size: .8em;
}

/* ── Tour FAQs Accordion ─────────────────────────────────────────────── */
.ts-tour-faq {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ts-faq-item {
	overflow: hidden;
}

.ts-faq-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
	padding: 14px 16px;
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	line-height: 1.4;
}

.ts-faq-trigger:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.ts-faq-question {
	flex: 1;
	font-weight: 600;
}

.ts-faq-icon {
	flex-shrink: 0;
	margin-left: auto;
	transition: transform .25s ease;
	display: flex;
	align-items: center;
}

.ts-faq-trigger[aria-expanded="true"] .ts-faq-icon {
	transform: rotate(180deg);
}

.ts-faq-answer {
	padding: 0 16px 16px;
	line-height: 1.7;
}

.ts-faq-answer[hidden] {
	display: none;
}

.ts-no-data {
	color: #999;
	font-style: italic;
}

/* ── Hotels & Pricing Table Widget Styling (Reference Design) ───────── */
.ts-hotels-container * {
	box-sizing: border-box;
}

.ts-hotels-container {
	font-family: inherit;
	color: #1e293b;
	margin: 0 auto;
	line-height: 1.6;
	width: 100%;
}

.ts-hotels-header {
	margin-bottom: 24px;
}

.ts-hotels-main-title {
	font-size: 32px;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 8px;
	letter-spacing: -0.5px;
}

.ts-hotels-sub-title {
	font-size: 18px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 16px;
}

.ts-hotels-nav-pills {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 10px;
	margin-bottom: 24px;
	scrollbar-width: thin;
}

.ts-hotels-nav-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 9999px;
	font-size: 13.5px;
	font-weight: 600;
	color: #475569;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.2s ease;
}

.ts-hotels-nav-pill:hover {
	border-color: #cbd5e1;
	background: #f1f5f9;
	color: #0f172a;
}

.ts-hotels-nav-pill.active {
	background: #194FA2;
	color: #ffffff;
	border-color: #194FA2;
	box-shadow: 0 4px 12px rgba(25, 79, 162, 0.25);
}

.ts-hotels-table-card {
	background-color: #F3F3FD;
	border: 1px solid #194FA2;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 15px rgba(25, 79, 162, 0.06);
	margin-bottom: 24px;
}

.ts-hotels-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	text-align: left;
	background: #ffffff;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
}

.ts-hotels-table thead tr {
	background-color: #194FA2;
	color: #ffffff;
}

.ts-hotels-table th {
	padding: 16px 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-right: 1px solid rgba(255, 255, 255, 0.15);
	border-bottom: none;
}

.ts-hotels-table th:last-child {
	border-right: none;
}

.ts-hotels-table th.ts-col-cat {
	width: 18%;
}

.ts-hotels-table th.ts-col-hotels {
	width: 40%;
}

.ts-hotels-table th.ts-col-price {
	width: 42%;
}

.ts-hotels-table tbody tr {
	border-bottom: none;
}

.ts-hotels-table td {
	padding: 24px 20px;
	vertical-align: top;
	border-right: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
}

.ts-hotels-table td:last-child {
	border-right: none;
}

.ts-hotels-table tbody tr:last-child td {
	border-bottom: none;
}

.ts-category-cell {
	width: 18%;
}

.ts-badge-wrap {
	display: inline-block;
}

.ts-category-badge {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.ts-badge-standard {
	background-color: #e0f2fe;
	color: #0284c7;
	border: 1px solid #bae6fd;
}

.ts-badge-deluxe {
	background-color: #fef3c7;
	color: #d97706;
	border: 1px solid #fde68a;
}

.ts-badge-executive {
	background-color: #f3e8ff;
	color: #9333ea;
	border: 1px solid #e9d5ff;
}

.ts-category-subtag {
	font-size: 12px;
	color: #64748b;
	margin-top: 8px;
	font-weight: 500;
}

.ts-hotels-list-cell {
	width: 36%;
}

.ts-hotels-list-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #94a3b8;
	letter-spacing: 0.5px;
	margin-bottom: 12px;
}

.ts-hotel-tags {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ts-hotel-tag {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13.5px;
	font-weight: 600;
	color: #334155;
}

.ts-hotel-tag-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ts-pricing-tiers-cell {
	width: 46%;
}

.ts-tier-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ts-tier-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px 18px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.ts-tier-item:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ts-tier-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ts-tier-occupancy {
	font-size: 13px;
	font-weight: 800;
	color: #1e293b;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.ts-tier-inclusions {
	font-size: 11.5px;
	color: #64748b;
	font-weight: 500;
}

.ts-tier-price {
	font-size: 15.5px;
	font-weight: 800;
	color: #194FA2;
	white-space: nowrap;
	margin-left: 16px;
}

.ts-hotels-summary-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 24px 0 20px;
}

.ts-summary-card {
	background-color: #0d5c3a;
	color: #ffffff;
	border-radius: 14px;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 4px 15px rgba(13, 92, 58, 0.15);
}

.ts-summary-left {
	display: flex;
	flex-direction: column;
}

.ts-summary-tag {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #a7f3d0;
	margin-bottom: 4px;
	display: block;
}

.ts-summary-title {
	font-size: 18px;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 4px;
}

.ts-summary-desc {
	font-size: 11.5px;
	color: #e2e8f0;
	opacity: 0.9;
}

.ts-summary-right {
	text-align: right;
	white-space: nowrap;
}

.ts-summary-price {
	font-size: 22px;
	font-weight: 800;
	color: #ffffff;
}

.ts-summary-unit {
	font-size: 10.5px;
	color: #cbd5e1;
	font-weight: 500;
}

.ts-notice-bar {
	background: #fffdf0;
	border: 1px solid #fef08a;
	border-radius: 10px;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 14px;
	color: #854d0e;
	font-size: 13px;
	margin-top: 20px;
}

.ts-notice-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: #fef08a;
	color: #ca8a04;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 800;
	flex-shrink: 0;
}

.ts-notice-text {
	line-height: 1.5;
}

@media (max-width: 991px) {
	.ts-hotels-summary-cards {
		grid-template-columns: 1fr;
	}

	.ts-hotels-table, 
	.ts-hotels-table thead, 
	.ts-hotels-table tbody, 
	.ts-hotels-table th, 
	.ts-hotels-table td, 
	.ts-hotels-table tr {
		display: block;
	}

	.ts-hotels-table thead {
		display: none;
	}

	.ts-hotels-table tbody tr {
		padding: 16px;
		border-bottom: 2px solid #e2e8f0;
	}

	.ts-hotels-table td {
		width: 100% !important;
		padding: 10px 0;
	}

	.ts-tier-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.ts-tier-price {
		margin-left: 0;
		align-self: flex-start;
	}
}

