/**
 * Fleet & Single Car Styles (doi_xe)
 * Thu Đoàn Ô Tô Tự Lái Hà Giang
 */

/* Grid layout */
.thudoan-car-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin: 25px 0 35px;
}

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

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

@media (max-width: 1024px) {
	.thudoan-car-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 640px) {
	.thudoan-car-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* ============================================================
   1. CAR CARD COMPONENT
   ============================================================ */
.thudoan-car-card {
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
	border: 1px solid #E5E7EB;
	display: flex;
	flex-direction: column;
	transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
	position: relative;
	height: 100%;
}

.thudoan-car-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 32px rgba(26, 102, 255, 0.15);
	border-color: #1A66FF;
}

/* Card Media */
.thudoan-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #F3F4F6;
}

.thudoan-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
	display: block;
}

.thudoan-car-card:hover .thudoan-card-media img {
	transform: scale(1.06);
}

/* Badges */
.thudoan-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #1A66FF;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 20px;
	box-shadow: 0 3px 8px rgba(26, 102, 255, 0.4);
	letter-spacing: 0.5px;
	z-index: 2;
}

.thudoan-category-pill {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(26, 27, 30, 0.85);
	backdrop-filter: blur(4px);
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 9px;
	border-radius: 6px;
	z-index: 2;
}

/* Card Body */
.thudoan-card-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.thudoan-card-title {
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 12px;
	min-height: 45px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.thudoan-card-title a {
	color: #1A1B1E;
	text-decoration: none;
	transition: color 0.2s ease;
}

.thudoan-card-title a:hover {
	color: #1A66FF;
}

/* Quick specs row */
.thudoan-card-specs {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 12px;
	background: #F8F9FA;
	border-radius: 8px;
	margin-bottom: 14px;
	border: 1px solid #E5E7EB;
}

.spec-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	font-weight: 600;
	color: #4B5563;
}

.spec-item i {
	color: #1A66FF;
	font-size: 13.5px;
}

/* Card Footer: Price row on top + 2 balanced buttons below */
.thudoan-card-footer {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #F0F2F5;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.thudoan-price-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 0 2px;
}

.thudoan-price-row .price-label {
	font-size: 11px;
	color: #6B7280;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.3px;
}

.thudoan-price-row .price-value {
	font-size: 19px;
	font-weight: 800;
	color: #1A66FF;
	line-height: 1;
}

/* Button Actions in Card */
.thudoan-card-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	width: 100%;
}

.thudoan-btn-call {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	background: #1A66FF !important;
	color: #ffffff !important;
	padding: 0 10px !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	box-shadow: 0 3px 10px rgba(26, 102, 255, 0.25) !important;
	transition: all 0.2s ease !important;
	height: 38px !important;
	border: none !important;
	box-sizing: border-box !important;
}

.thudoan-btn-call:hover {
	background: #1554C0 !important;
	color: #ffffff !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 5px 14px rgba(26, 102, 255, 0.35) !important;
}

.thudoan-btn-detail {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 5px !important;
	background: #F3F4F6 !important;
	color: #1F2937 !important;
	padding: 0 10px !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	border: 1px solid #E5E7EB !important;
	transition: all 0.2s ease !important;
	height: 38px !important;
	box-sizing: border-box !important;
}

.thudoan-btn-detail:hover {
	background: #E5E7EB !important;
	color: #111827 !important;
	border-color: #D1D5DB !important;
	transform: translateY(-2px) !important;
}

/* ============================================================
   2. CATEGORY FILTER TABS
   ============================================================ */
.thudoan-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 25px 0 35px;
}

.thudoan-filter-tab {
	padding: 9px 20px;
	border-radius: 30px;
	background: #F3F4F6;
	color: #4B5563;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #E5E7EB;
	transition: all 0.2s ease;
}

.thudoan-filter-tab:hover,
.thudoan-filter-tab.active {
	background: #1A66FF;
	color: #ffffff;
	border-color: #1A66FF;
	box-shadow: 0 4px 12px rgba(26, 102, 255, 0.3);
}

/* ============================================================
   3. PRICING TABLE COMPONENT
   ============================================================ */
.thudoan-pricing-table-wrapper {
	overflow-x: auto;
	margin: 20px 0 30px;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	border: 1px solid #E5E7EB;
	background: #fff;
}

.thudoan-pricing-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	table-layout: fixed;
	min-width: 800px;
}

.thudoan-pricing-table th {
	background: #1A1B1E !important;
	color: #ffffff !important;
	padding: 13px 14px !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	border: none !important;
	line-height: 1.4 !important;
}

.thudoan-pricing-table td {
	padding: 12px 14px !important;
	border-bottom: 1px solid #F0F2F5 !important;
	border-top: none !important;
	border-left: none !important;
	border-right: none !important;
	font-size: 13.5px !important;
	color: #374151 !important;
	vertical-align: middle !important;
}

.thudoan-pricing-table tbody tr:hover {
	background: #FFF7F3 !important;
}

.thudoan-pricing-table .text-left { text-align: left !important; }
.thudoan-pricing-table .text-center { text-align: center !important; }
.thudoan-pricing-table .text-right { text-align: right !important; }

.car-name-cell {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
}

.car-thumb-mini {
	width: 46px !important;
	height: 34px !important;
	object-fit: cover !important;
	border-radius: 6px !important;
	flex-shrink: 0 !important;
	border: 1px solid #E5E7EB !important;
}

.car-title-text a {
	color: #1F2937 !important;
	text-decoration: none !important;
	font-weight: 700 !important;
	font-size: 13.5px !important;
	line-height: 1.35 !important;
	transition: color 0.2s ease !important;
}

.car-title-text a:hover {
	color: #1A66FF !important;
}

.segment-tag {
	background: #F3F4F6;
	color: #4B5563;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 9px;
	border-radius: 4px;
	display: inline-block;
	white-space: nowrap;
	border: 1px solid #E5E7EB;
}

.badge-year {
	background: #EFF6FF;
	color: #1A66FF;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 12px;
	display: inline-block;
	white-space: nowrap;
}

.cell-trans {
	white-space: nowrap;
	font-size: 13px;
	color: #4B5563;
}

.price-cell .price-highlight {
	font-size: 15.5px;
	font-weight: 800;
	color: #1A66FF;
	white-space: nowrap;
}

.btn-table-book {
	background: #1A66FF !important;
	color: #ffffff !important;
	height: 34px !important;
	padding: 0 14px !important;
	border-radius: 6px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 5px !important;
	white-space: nowrap !important;
	box-shadow: 0 2px 8px rgba(26, 102, 255, 0.25) !important;
	transition: all 0.2s ease !important;
	border: none !important;
}

.btn-table-book:hover {
	background: #1554C0 !important;
	color: #ffffff !important;
	transform: translateY(-1px) !important;
}

/* ============================================================
   4. SINGLE CAR PAGE STYLES
   ============================================================ */
.thudoan-single-car-wrapper {
	padding: 30px 0 60px;
}

.thudoan-single-car-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	align-items: start;
	margin-bottom: 45px;
}

@media (max-width: 900px) {
	.thudoan-single-car-grid {
		grid-template-columns: 1fr;
		gap: 25px;
	}
}

.single-car-gallery {
	position: sticky;
	top: 90px;
}

.single-car-main-img {
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	border: 1px solid #E5E7EB;
}

.single-car-main-img img {
	width: 100%;
	height: auto;
	display: block;
}

.single-car-info {
	background: #ffffff;
	border-radius: 14px;
	padding: 28px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
	border: 1px solid #E5E7EB;
}

.single-car-title {
	font-size: 26px;
	font-weight: 800;
	color: #1A1B1E;
	margin: 0 0 12px;
	line-height: 1.3;
}

.single-car-badge-row {
	display: flex;
	gap: 8px;
	margin-bottom: 18px;
}

.single-car-price-hero {
	background: #EFF6FF;
	border: 1px solid #FFE4D9;
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.single-car-price-hero .price-big {
	font-size: 26px;
	font-weight: 900;
	color: #1A66FF;
}

/* Specs Table */
.single-specs-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
}

.single-specs-table tr {
	border-bottom: 1px solid #F3F4F6;
}

.single-specs-table td {
	padding: 11px 0;
	font-size: 13.5px;
}

.single-specs-table td.spec-lbl {
	color: #6B7280;
	width: 40%;
}

.single-specs-table td.spec-lbl i {
	color: #1A66FF;
	margin-right: 6px;
}

.single-specs-table td.spec-val {
	font-weight: 700;
	color: #1F2937;
	text-align: right;
}

/* Single Car CTAs */
.single-car-ctas {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.single-car-ctas .btn-hero-call {
	background: #1A66FF !important;
	color: #ffffff !important;
	padding: 12px !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	text-align: center !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	box-shadow: 0 4px 14px rgba(26, 102, 255, 0.3) !important;
	transition: all 0.2s ease !important;
}

.single-car-ctas .btn-hero-call:hover {
	background: #1554C0 !important;
	transform: translateY(-2px) !important;
}

.single-car-ctas .btn-hero-zalo {
	background: #0068FF !important;
	color: #ffffff !important;
	padding: 12px !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	text-align: center !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	transition: all 0.2s ease !important;
}

.single-car-ctas .btn-hero-zalo:hover {
	background: #0052CC !important;
	transform: translateY(-2px) !important;
}

/* Car Description Box */
.single-car-desc {
	background: #ffffff;
	border-radius: 14px;
	padding: 32px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.05);
	border: 1px solid #E5E7EB;
	margin-bottom: 45px;
	line-height: 1.8;
	font-size: 15px;
	color: #374151;
}

.single-car-desc h2 {
	font-size: 22px;
	font-weight: 800;
	color: #1A1B1E;
	margin: 25px 0 12px;
}

.single-car-desc h3 {
	font-size: 18px;
	font-weight: 700;
	color: #1A1B1E;
	margin: 20px 0 10px;
}

/* Rental Procedures Box */
.rental-procedures-box {
	background: #F8F9FA;
	border-left: 4px solid #1A66FF;
	border-radius: 8px;
	padding: 20px 22px;
	margin: 25px 0;
	border: 1px solid #E5E7EB;
	border-left-width: 4px;
	border-left-color: #1A66FF;
}

.rental-procedures-box h4 {
	color: #1A1B1E;
	font-size: 15.5px;
	font-weight: 700;
	margin: 0 0 10px;
}

.rental-procedures-box ul {
	margin: 0;
	padding-left: 20px;
	font-size: 13.5px;
	color: #4B5563;
}

.rental-procedures-box li {
	margin-bottom: 6px;
}

.text-orange {
	color: #1A66FF;
}
