/**
 * My Bookings Styles
 */

/* Container */
.uaeauto-my-bookings {
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px 0;
}

/* Header */
.uaeauto-bookings-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 30px;
}

.uaeauto-bookings-header h2 {
	margin: 0;
	font-size: 28px;
}

/* Status Filters */
.uaeauto-status-filters {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
}

.uaeauto-status-filters a {
	padding: 8px 16px;
	background: #f0f0f0;
	color: #555;
	text-decoration: none;
	border-radius: 20px;
	font-size: 14px;
	transition: all 0.3s;
}

.uaeauto-status-filters a:hover {
	background: #e0e0e0;
	color: #333;
}

.uaeauto-status-filters a.active {
	background: #0073aa;
	color: #fff;
}

/* Bookings List */
.uaeauto-bookings-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Booking Card */
.uaeauto-booking-card {
	display: flex;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s;
}

.uaeauto-booking-card:hover {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.uaeauto-booking-image {
	width: 200px;
	min-height: 150px;
	flex-shrink: 0;
	background: #f5f5f5;
}

.uaeauto-booking-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.uaeauto-booking-image .uaeauto-no-image {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ccc;
}

.uaeauto-booking-image .uaeauto-no-image .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
}

.uaeauto-booking-info {
	flex: 1;
	padding: 20px;
	display: flex;
	flex-direction: column;
}

.uaeauto-booking-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 15px;
	margin-bottom: 10px;
}

.uaeauto-car-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

/* Booking Status */
.uaeauto-booking-status {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.uaeauto-status-pending {
	background: #fff3e0;
	color: #e65100;
}

.uaeauto-status-confirmed {
	background: #e3f2fd;
	color: #1565c0;
}

.uaeauto-status-active {
	background: #e8f5e9;
	color: #2e7d32;
}

.uaeauto-status-completed,
.uaeauto-status-closed {
	background: #f5f5f5;
	color: #666;
}

.uaeauto-status-cancelled {
	background: #fce4e4;
	color: #c62828;
}

/* Booking Dates */
.uaeauto-booking-dates {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #666;
	font-size: 14px;
	margin-bottom: 10px;
}

.uaeauto-date-range {
	display: flex;
	align-items: center;
	gap: 5px;
}

.uaeauto-date-range .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #999;
}

.uaeauto-duration {
	color: #999;
}

/* Booking Total */
.uaeauto-booking-total {
	margin-bottom: 15px;
	font-size: 18px;
	color: #0073aa;
}

/* Booking Actions */
.uaeauto-booking-actions {
	display: flex;
	gap: 10px;
	margin-top: auto;
}

/* No Bookings */
.uaeauto-no-bookings {
	text-align: center;
	padding: 60px 20px;
	background: #f9f9f9;
	border-radius: 8px;
}

.uaeauto-no-bookings p {
	margin: 0 0 20px;
	color: #666;
	font-size: 16px;
}

/* Pagination */
.uaeauto-pagination {
	margin-top: 30px;
	text-align: center;
}

.uaeauto-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 3px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #555;
	transition: all 0.3s;
}

.uaeauto-pagination .page-numbers:hover {
	background: #f5f5f5;
}

.uaeauto-pagination .page-numbers.current {
	background: #0073aa;
	border-color: #0073aa;
	color: #fff;
}

/* Booking Details */
.uaeauto-booking-details {
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px 0;
}

.uaeauto-details-header {
	margin-bottom: 30px;
}

.uaeauto-back-link {
	display: inline-block;
	margin-bottom: 15px;
	color: #0073aa;
	text-decoration: none;
	font-size: 14px;
}

.uaeauto-back-link:hover {
	text-decoration: underline;
}

.uaeauto-details-header h2 {
	margin: 0 0 10px;
	font-size: 28px;
}

/* Details Grid */
.uaeauto-details-grid {
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 30px;
}

.uaeauto-details-main {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

/* Detail Section */
.uaeauto-detail-section {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
}

.uaeauto-detail-section h3 {
	margin: 0 0 15px;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f0;
}

/* Car Info */
.uaeauto-car-info {
	display: flex;
	gap: 20px;
}

.uaeauto-car-info .uaeauto-car-image {
	width: 150px;
	height: 100px;
	object-fit: cover;
	border-radius: 4px;
}

.uaeauto-car-info .uaeauto-car-details h4 {
	margin: 0 0 5px;
	font-size: 18px;
}

.uaeauto-car-info .uaeauto-car-details p {
	margin: 0;
	color: #666;
	font-size: 14px;
}

/* Detail Table */
.uaeauto-detail-table {
	width: 100%;
}

.uaeauto-detail-table th,
.uaeauto-detail-table td {
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

.uaeauto-detail-table th {
	text-align: left;
	font-weight: 500;
	color: #666;
	width: 150px;
}

.uaeauto-detail-table tr:last-child th,
.uaeauto-detail-table tr:last-child td {
	border-bottom: none;
}

/* Payment Summary */
.uaeauto-payment-summary {
	position: sticky;
	top: 20px;
}

.uaeauto-summary-table {
	width: 100%;
}

.uaeauto-summary-table td {
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
}

.uaeauto-summary-table td:last-child {
	text-align: right;
	font-weight: 500;
}

.uaeauto-summary-table tr:last-child td {
	border-bottom: none;
}

.uaeauto-summary-table .uaeauto-total-row td {
	padding-top: 15px;
	border-top: 2px solid #ddd;
	font-size: 16px;
}

.uaeauto-summary-table .uaeauto-salik-actual td {
	color: #666;
	font-style: italic;
}

/* Badges */
.uaeauto-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 500;
	margin-left: 5px;
}

.uaeauto-badge-held {
	background: #fff3e0;
	color: #e65100;
}

.uaeauto-badge-released {
	background: #e8f5e9;
	color: #2e7d32;
}

.uaeauto-badge-refunded {
	background: #e3f2fd;
	color: #1565c0;
}

/* Photos Grid */
.uaeauto-photos-group {
	margin-bottom: 20px;
}

.uaeauto-photos-group:last-child {
	margin-bottom: 0;
}

.uaeauto-photos-group h4 {
	margin: 0 0 5px;
	font-size: 14px;
	font-weight: 600;
}

.uaeauto-photos-group small {
	color: #999;
	font-size: 12px;
}

.uaeauto-photos-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.uaeauto-photos-grid img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: 4px;
	transition: transform 0.3s;
}

.uaeauto-photos-grid img:hover {
	transform: scale(1.05);
}

/* Cancellation Policy */
.uaeauto-cancellation-policy {
	margin-top: 15px;
	color: #666;
	line-height: 1.5;
}

/* Error */
.uaeauto-error {
	text-align: center;
	padding: 60px 20px;
	background: #fce4e4;
	border-radius: 8px;
	color: #c62828;
}

.uaeauto-error a {
	color: #c62828;
}

/* Login Required */
.uaeauto-login-required {
	text-align: center;
	padding: 60px 20px;
	background: #f9f9f9;
	border-radius: 8px;
}

/* Buttons */
.uaeauto-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.3s;
}

.uaeauto-btn-primary {
	background: #0073aa;
	color: #fff;
}

.uaeauto-btn-primary:hover {
	background: #005a87;
	color: #fff;
}

.uaeauto-btn-secondary {
	background: #f0f0f0;
	color: #333;
}

.uaeauto-btn-secondary:hover {
	background: #e0e0e0;
	color: #333;
}

.uaeauto-btn-danger {
	background: #dc3545;
	color: #fff;
}

.uaeauto-btn-danger:hover {
	background: #c82333;
	color: #fff;
}

.uaeauto-btn-small {
	padding: 8px 14px;
	font-size: 13px;
}

.uaeauto-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Responsive */
@media (max-width: 900px) {
	.uaeauto-details-grid {
		grid-template-columns: 1fr;
	}

	.uaeauto-payment-summary {
		position: static;
	}
}

@media (max-width: 600px) {
	.uaeauto-bookings-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.uaeauto-booking-card {
		flex-direction: column;
	}

	.uaeauto-booking-image {
		width: 100%;
		height: 180px;
	}

	.uaeauto-booking-header {
		flex-direction: column;
	}

	.uaeauto-booking-actions {
		flex-direction: column;
	}

	.uaeauto-booking-actions .uaeauto-btn {
		width: 100%;
	}

	.uaeauto-car-info {
		flex-direction: column;
	}

	.uaeauto-car-info .uaeauto-car-image {
		width: 100%;
		height: 150px;
	}
}
