/* General wrapper */
.taxi-wrapper {
  max-width: 720px;
  margin: 30px auto;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #333;
}

/* Tabs (Outstation / Local / Airport / Tour) */
.tabs {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 14px 12px;
  border-radius: 8px;
  background: #f7f7f7;
  border: 1px solid #ddd;
  color: #444;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tab:hover {
  background: #eee;
}
.tab.active {
  background: #0073aa;
  border-color: #0073aa;
  color: #fff;
  font-weight: 600;
}

/* Panel container */
.panel {
  background: #fff;
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}
.panel label {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
}
.panel input,
.panel select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border 0.2s, box-shadow 0.2s;
}
.panel input:focus,
.panel select:focus {
  border-color: #0073aa;
  box-shadow: 0 0 4px rgba(0,115,170,0.3);
  outline: none;
}

/* Search / Action buttons */
.taxi-search-btn {
  display: inline-block;
  background: #4166F5;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 20px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.3s ease;
}
.taxi-search-btn:hover {
  background: #e68900;
}
#taxi-package-btn {
  background: #0073aa;
}
#taxi-package-btn:hover {
  background: #005f8d;
}

/* Results page styling */
#taxi-results-root {
  max-width: 760px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
#taxi-results-root h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #0073aa;
}

/* Payment page styling */
#taxi-payment-summary {
  max-width: 720px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
#taxi-payment-summary h3 {
  margin-bottom: 15px;
  color: #0073aa;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .tabs {
    flex-direction: column;
    gap: 10px;
  }
  .tab {
    width: 100%;
  }
  .taxi-search-btn {
    width: 100%;
    text-align: center;
  }
}

/* ===== NEW CLEAN CARD LAYOUT ===== */

/* Car Cards Styling */
.car-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e5e9;
  transition: all 0.3s ease;
}

.car-card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Top Section */
.car-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.car-name {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
  line-height: 1.3;
}

.car-seats {
  font-size: 14px;
  color: #718096;
  margin: 5px 0 0 0;
}

.car-price {
  font-size: 20px;
  font-weight: 700;
  color: #2d3748;
  text-align: right;
}

.car-price-period {
  display: block;
  font-size: 12px;
  color: #718096;
  font-weight: normal;
}

/* Middle Section - Icons */
.car-features {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon {
  font-size: 20px;
  margin-bottom: 5px;
  color: #4a5568;
}

.feature-text {
  font-size: 12px;
  color: #718096;
}

/* Bottom Section - Buttons */
.car-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.book-now-btn {
  flex: 2;
  background: #3182ce;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
}

.book-now-btn:hover {
  background: #2c5aa0;
}

.details-btn {
  flex: 1;
  background: #f7fafc;
  color: #4a5568;
  border: 1px solid #e2e8f0;
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 14px;
}

.details-btn:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

/* Details Section */
.car-details {
  margin-top: 15px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.details-section {
  margin-bottom: 15px;
}

.details-section:last-child {
  margin-bottom: 0;
}

.details-title {
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 10px;
}

.details-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-item {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #4a5568;
}

.detail-included {
  color: #38a169;
  margin-right: 8px;
  font-weight: bold;
}

.detail-excluded {
  color: #e53e3e;
  margin-right: 8px;
  font-weight: bold;
}

/* Responsive Design for Car Cards */
@media (max-width: 768px) {
  .car-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .car-price {
    text-align: left;
    margin-top: 10px;
  }
  
  .car-features {
    justify-content: space-between;
  }
  
  .car-actions {
    flex-direction: column;
  }
  
  .book-now-btn,
  .details-btn {
    width: 100%;
  }
  
  .details-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .car-card {
    padding: 15px;
  }
  
  .car-features {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .feature-item {
    flex: 1;
    min-width: 80px;
  }
}

/* ===== UPDATED CAR CARD LAYOUT WITH IMAGES ===== */

.car-card {
  background: white;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e5e9;
  transition: all 0.3s ease;
  overflow: hidden;
}

.car-card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.car-card-inner {
  display: flex;
  align-items: stretch;
  min-height: 140px;
}

.car-image-section {
  flex: 0 0 160px;
  position: relative;
}

.car-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.car-content-section {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Top Section */
.car-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.car-name {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
  line-height: 1.3;
}

.car-seats {
  font-size: 14px;
  color: #718096;
  margin: 5px 0 0 0;
}

.car-price {
  font-size: 20px;
  font-weight: 700;
  color: #2d3748;
  text-align: right;
}

.car-price-period {
  display: block;
  font-size: 12px;
  color: #718096;
  font-weight: normal;
}

/* Middle Section - Icons */
.car-features {
  display: flex;
  justify-content: space-around;
  margin: 15px 0;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon {
  font-size: 20px;
  margin-bottom: 5px;
  color: #4a5568;
}

.feature-text {
  font-size: 12px;
  color: #718096;
}

/* Bottom Section - Buttons */
.car-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.book-now-btn {
  flex: 2;
  background: #3182ce;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
}

.book-now-btn:hover {
  background: #2c5aa0;
}

.details-btn {
  flex: 1;
  background: #f7fafc;
  color: #4a5568;
  border: 1px solid #e2e8f0;
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 14px;
}

.details-btn:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

/* Details Section */
.car-details {
  margin: 0;
  padding: 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.details-section {
  margin-bottom: 15px;
}

.details-section:last-child {
  margin-bottom: 0;
}

.details-title {
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 10px;
}

.details-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-item {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #4a5568;
}

.detail-included {
  color: #38a169;
  margin-right: 8px;
  font-weight: bold;
}

.detail-excluded {
  color: #e53e3e;
  margin-right: 8px;
  font-weight: bold;
}

/* Responsive Design for Car Cards with Images */
@media (max-width: 768px) {
  .car-card-inner {
    flex-direction: column;
  }
  
  .car-image-section {
    flex: 0 0 160px;
    width: 100%;
  }
  
  .car-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .car-price {
    text-align: left;
    margin-top: 10px;
  }
  
  .car-features {
    justify-content: space-between;
  }
  
  .car-actions {
    flex-direction: column;
  }
  
  .book-now-btn,
  .details-btn {
    width: 100%;
  }
  
  .details-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .car-content-section {
    padding: 15px;
  }
  
  .car-features {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .feature-item {
    flex: 1;
    min-width: 80px;
  }
  
  .car-image-section {
    flex: 0 0 140px;
  }
}

/* ===== OLD STYLES (KEPT FOR BACKWARD COMPATIBILITY) ===== */

.car-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  margin-bottom: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.car-option img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 15px;
}

.car-option .details {
  flex: 1;
  font-size: 15px;
}

.car-option .book-btn {
  background: #0073aa;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.car-option .book-btn:hover {
  background: #005f8d;
}

/* Booking Results Page Styling */
.taxi-results-wrapper h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #333;
}

.taxi-results-wrapper h4 {
  margin-top: 20px;
  font-size: 18px;
  color: #444;
}

.car-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.car-option img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
}

.car-option .details {
  flex: 1;
  font-size: 15px;
  color: #333;
}

.car-option .details strong {
  font-size: 16px;
  color: #000;
}

.car-option .book-btn {
  background: #0073aa;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.car-option .book-btn:hover {
  background: #005f8d;
}

/* Uniform Car Images */
.car-option img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
  flex-shrink: 0;
}

/* Old taxi result items (backward compatibility) */
.taxi-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.taxi-result-item img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
  flex-shrink: 0;
}

.taxi-result-item div {
  flex-grow: 1;
  font-size: 15px;
  line-height: 1.4;
  color: #333;
}

.taxi-result-item .book-btn {
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
  margin-left: 20px;
  white-space: nowrap;
}

.taxi-result-item .book-btn:hover {
  background: #ffcc00;
  color: #000;
}

/* Responsive for mobile */
@media (max-width: 600px) {
  .taxi-result-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .taxi-result-item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  .taxi-result-item .book-btn {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
}