/* Public Frontend Stylesheet for WP Bus Ticket Booking */

.wp-bus-booking-app {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 1100px;
	margin: 30px auto;
	color: #0f172a;
}

/* Hero Section */
.wp-bus-hero {
	background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
	color: #ffffff;
	padding: 40px;
	border-radius: 16px 16px 0 0;
	text-align: center;
	box-shadow: 0 10px 25px -5px rgba(49, 46, 129, 0.3);
}

.wp-bus-hero h2 {
	margin: 0 0 10px 0;
	font-size: 2.2rem;
	font-weight: 700;
	letter-spacing: -0.5px;
	color: #ffffff;
}

.wp-bus-hero p {
	margin: 0;
	color: #c7d2fe;
	font-size: 1.05rem;
}

/* Search Card */
.wp-bus-search-card {
	background: #ffffff;
	padding: 30px;
	border-radius: 0 0 16px 16px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
	margin-bottom: 35px;
	border: 1px solid #e2e8f0;
	border-top: none;
}

.wp-bus-form-grid {
	display: grid;
	grid-template-columns: 2.2fr 45px 2.2fr 1.8fr 1.8fr;
	gap: 15px;
	align-items: end;
}

@media (max-width: 900px) {
	.wp-bus-form-grid {
		grid-template-columns: 1fr;
	}
}

.wp-bus-form-group {
	display: flex;
	flex-direction: column;
}

.wp-bus-form-group label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #475569;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wp-bus-select, .wp-bus-input {
	padding: 12px 14px;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.95rem;
	background-color: #f8fafc;
	transition: all 0.2s ease;
	outline: none;
	width: 100%;
	box-sizing: border-box;
}

.wp-bus-select:focus, .wp-bus-input:focus {
	border-color: #4f46e5;
	background-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.wp-bus-swap-container {
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp-bus-swap-btn {
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	font-size: 1.2rem;
	color: #475569;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp-bus-swap-btn:hover {
	background: #4f46e5;
	color: #ffffff;
	border-color: #4f46e5;
	transform: rotate(180deg);
}

.wp-bus-btn-primary {
	background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
	color: #ffffff;
	border: none;
	padding: 13px 24px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.wp-bus-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

/* Bus Cards Listing */
.wp-bus-results-container {
	margin-top: 30px;
}

.wp-bus-results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.wp-bus-results-header h3 {
	margin: 0;
	font-size: 1.5rem;
	color: #1e293b;
}

.wp-bus-badge {
	background: #e0e7ff;
	color: #3730a3;
	padding: 6px 14px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 0.85rem;
}

.wp-bus-card-item {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 20px;
	display: grid;
	grid-template-columns: 2fr 2fr 1.5fr 1.5fr;
	gap: 20px;
	align-items: center;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	transition: all 0.2s;
}

.wp-bus-card-item:hover {
	border-color: #c7d2fe;
	box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.12);
}

.wp-bus-name-box h4 {
	margin: 0 0 6px 0;
	font-size: 1.15rem;
	color: #1e293b;
}

.wp-bus-type-tag {
	display: inline-block;
	background: #f1f5f9;
	color: #475569;
	font-size: 0.8rem;
	padding: 3px 8px;
	border-radius: 4px;
	font-weight: 500;
}

.wp-bus-timing-box {
	display: flex;
	align-items: center;
	gap: 15px;
}

.wp-bus-timing-col p {
	margin: 0;
	font-weight: 700;
	font-size: 1.1rem;
	color: #0f172a;
}

.wp-bus-timing-col span {
	font-size: 0.8rem;
	color: #64748b;
}

.wp-bus-arrow {
	color: #94a3b8;
	font-size: 1.2rem;
}

.wp-bus-price-box p {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 800;
	color: #059669;
}

.wp-bus-price-box span {
	font-size: 0.8rem;
	color: #64748b;
}

.wp-bus-btn-success {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #ffffff;
	border: none;
	padding: 12px 20px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.wp-bus-btn-success:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* Modal Drawer */
.wp-bus-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.wp-bus-modal-content {
	background: #ffffff;
	border-radius: 16px;
	padding: 30px;
	width: 90%;
	max-width: 900px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.wp-bus-modal-close, .wp-bus-ticket-close {
	position: absolute;
	top: 20px;
	right: 25px;
	font-size: 1.8rem;
	cursor: pointer;
	color: #64748b;
}

.wp-bus-seat-layout-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 30px;
	margin-top: 20px;
}

@media (max-width: 768px) {
	.wp-bus-seat-layout-grid {
		grid-template-columns: 1fr;
	}
}

.wp-bus-seat-map-wrapper {
	background: #f8fafc;
	border: 2px dashed #cbd5e1;
	border-radius: 12px;
	padding: 20px;
}

.wp-bus-driver-cabin {
	background: #e2e8f0;
	text-align: right;
	padding: 8px 15px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.85rem;
	color: #475569;
	margin-bottom: 20px;
}

.wp-bus-seat-legend {
	display: flex;
	gap: 15px;
	font-size: 0.8rem;
	margin-bottom: 20px;
	color: #475569;
}

.legend-item {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	vertical-align: middle;
}

.legend-item.available { background: #ffffff; border: 1.5px solid #cbd5e1; }
.legend-item.selected { background: #4f46e5; border: 1.5px solid #4338ca; }
.legend-item.booked { background: #94a3b8; border: 1.5px solid #64748b; }
.legend-item.ladies { background: #ec4899; border: 1.5px solid #db2777; }

.wp-bus-seat-matrix {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.wp-bus-seat-unit {
	background: #ffffff;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	padding: 12px 6px;
	text-align: center;
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.15s;
	user-select: none;
}

.wp-bus-seat-unit:hover {
	border-color: #4f46e5;
	transform: scale(1.05);
}

.wp-bus-seat-unit.selected {
	background: #4f46e5;
	color: #ffffff;
	border-color: #3730a3;
}

.wp-bus-seat-unit.booked {
	background: #cbd5e1;
	color: #64748b;
	cursor: not-allowed;
	border-color: #94a3b8;
}

.wp-bus-passenger-form-wrapper {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
}

.wp-bus-fare-summary {
	background: #f1f5f9;
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.wp-bus-total-fare {
	font-size: 1.15rem;
	color: #059669;
	margin-top: 10px;
}

/* Ticket Printable Pass */
.wp-bus-ticket-pass {
	text-align: center;
	max-width: 550px;
}

.wp-bus-ticket-badge {
	display: inline-block;
	background: #dcfce7;
	color: #15803d;
	font-weight: 700;
	font-size: 0.75rem;
	padding: 4px 12px;
	border-radius: 12px;
	letter-spacing: 1px;
	margin-bottom: 10px;
}

.wp-bus-ticket-body {
	border: 2px dashed #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	margin: 20px 0;
	text-align: left;
}

.wp-bus-ticket-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 15px;
}

.wp-bus-ticket-row span {
	display: block;
	font-size: 0.8rem;
	color: #64748b;
	text-transform: uppercase;
}

.wp-bus-ticket-row strong {
	font-size: 1.05rem;
	color: #0f172a;
}
