/*
=========================================
 CUSTOM STYLES UNTUK DAFTAR MOBIL
=========================================
*/

/* Wrapper Utama Kartu Mobil */
.single-car-wrap {
	background-color: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin-bottom: 100px;
	overflow: hidden; /* Penting agar border-radius berfungsi pada gambar */
	transition: all 0.3s ease-in-out;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.single-car-wrap:hover {
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-5px);
}

/* Wadah untuk Gambar Mobil */
.car-list-thumb {
	position: relative;
	overflow: hidden;
}

.car-list-thumb img {
	width: 100%;
	height: 220px;
	object-fit: cover; /* Membuat gambar selalu pas tanpa distorsi */
	transition: transform 0.3s ease;
}

.single-car-wrap:hover .car-list-thumb img {
	transform: scale(1.05); /* Efek zoom pada gambar saat hover */
}

/* Area Informasi Teks di Bawah Gambar */
.car-list-info {
	padding: 50px;
}

.car-list-info h3 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 5px;
}

.car-list-info h3 a {
	color: #333;
	text-decoration: none;
}

.car-list-info h3 a:hover {
	color: #ff761c; /* Warna oranye khas template */
}

.car-list-info h5 {
	font-size: 18px;
	font-weight: 700;
	color: #ff761c;
	margin-bottom: 15px;
}

.car-list-info .text-dark {
	font-size: 14px;
	color: #666 !important;
}

/* Daftar Fitur Mobil (AC, Supir, dll) */
.car-info-list {
	list-style: none;
	padding: 0;
	margin: 15px 0;
	display: flex; /* Membuat item berjajar horizontal */
	flex-wrap: wrap; /* Jika item banyak, akan turun ke baris baru */
	gap: 15px; /* Jarak antar item */
}

.car-info-list li {
	font-size: 14px;
	color: #555;
}

.car-info-list li i {
	margin-right: 5px;
}

/* Wadah untuk Tombol Aksi */
.car-list-btns {
	margin-top: 20px;
	display: flex; /* Membuat tombol berjajar */
	gap: 10px; /* Jarak antar tombol */
}

/* Styling untuk Tombol */
.rent-btn,
.details-btn {
	display: inline-block;
	padding: 10px 15px;
	border-radius: 5px;
	text-align: center;
	text-decoration: none;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: background-color 0.3s ease;
	flex-grow: 1; /* Membuat kedua tombol memiliki lebar yang sama */
}

/* Tombol Utama (Sewa) */
.rent-btn {
	background-color: #ff761c; /* Warna oranye primer */
	color: #fff;
}

.rent-btn:hover {
	background-color: #e6600a;
	color: #fff;
}

/* Tombol Sekunder (Detail) */
.details-btn {
	background-color: #f1f1f1;
	color: #333;
}

.details-btn:hover {
	background-color: #e0e0e0;
	color: #333;
}

/* Styling untuk tombol disabled */
.rent-btn.disabled {
	background-color: #dc3545; /* Warna merah untuk status "Disewa" */
	cursor: not-allowed;
	opacity: 0.8;
}

/*
=========================================
 CUSTOM STYLES UNTUK DETAIL MOBIL
=========================================
*/
.detail-car-gallery {
	position: relative;
	border: 1px solid #eee;
	padding: 10px;
	border-radius: 8px;
}

.detail-car-gallery .main-img {
	width: 100%;
	border-radius: 5px;
}

.detail-car-gallery .zoom-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	background-color: rgba(0, 0, 0, 0.5);
	width: 80px;
	height: 80px;
	line-height: 80px;
	text-align: center;
	border-radius: 50%;
	font-size: 30px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.detail-car-gallery a:hover .zoom-icon {
	opacity: 1;
}

.detail-car-info h2 {
	font-weight: 700;
	color: #333;
}

.detail-car-info .provider-link {
	font-size: 1em;
	color: #666;
	margin-top: -5px;
}

.provider-link a {
	color: #ff761c;
	font-weight: 600;
}

.price-status-container {
	display: flex;
	align-items: center;
	gap: 15px;
}

.price-tag {
	font-size: 1.5em;
	font-weight: 700;
	color: #ff761c;
}

.status-tag {
	padding: 5px 15px;
	color: #fff;
	border-radius: 20px;
	font-size: 0.9em;
	font-weight: 600;
}

.status-tag.available {
	background-color: #28a745; /* hijau */
}

.status-tag.not-available {
	background-color: #dc3545; /* merah */
}

.spec-section h4 {
	font-size: 1.2em;
	font-weight: 600;
	margin-bottom: 15px;
	border-bottom: 2px solid #f1f1f1;
	padding-bottom: 10px;
}

.spec-list,
.facility-list {
	list-style: none;
	padding: 0;
}

.spec-list li,
.facility-list li {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px dashed #eee;
	font-size: 1em;
}

.facility-list li {
	justify-content: flex-start;
	gap: 10px;
}

.spec-list li:last-child,
.facility-list li:last-child {
	border-bottom: none;
}

.action-buttons .btn {
	flex-grow: 1;
}
