/* ====================================
   CAR DETAILS PAGE STYLES
   ==================================== */

:root {
  --car-accent: #ff6600;
  --car-accent-dark: #df5600;
  --car-accent-soft: #fff2e8;
  --car-text: #212529;
  --car-text-soft: #667085;
  --car-border: #e7e7eb;
  --car-surface: #ffffff;
  --car-surface-soft: #f8f9fb;
  --car-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.cars-details-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 20px 56px;
  min-height: calc(100vh - 300px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--car-text-soft);
}

.breadcrumb a {
  color: var(--car-accent);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--car-accent-dark);
}

.car-details-container {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 36px;
  background:
    radial-gradient(circle at top right, rgba(255, 102, 0, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
  border: 1px solid rgba(255, 102, 0, 0.12);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--car-shadow);
}

.car-images-section,
.car-info-section {
  min-width: 0;
}

.car-images-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.main-image-wrapper {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.1 / 1;
  border: 0;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  cursor: zoom-in;
  background:
    linear-gradient(145deg, rgba(255, 102, 0, 0.1), rgba(255, 255, 255, 0.88)),
    #f5f7fa;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.main-image-wrapper:hover .main-image {
  transform: scale(1.04);
}

.image-preview-pill {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(33, 37, 41, 0.72);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.promo-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dc3545 0%, #f66c7b 100%);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 16px 24px rgba(220, 53, 69, 0.24);
}

.thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 12px;
}

.thumbnail-button {
  border: 2px solid transparent;
  background: #fff;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.thumbnail-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 102, 0, 0.4);
}

.thumbnail-button.active {
  border-color: var(--car-accent);
  box-shadow: 0 14px 28px rgba(255, 102, 0, 0.18);
}

.thumbnail {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.car-info-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.car-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--car-border);
}

.car-header h1 {
  margin: 0;
  color: var(--car-text);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
}

.price-section {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 12px;
}

.price,
.discounted-price {
  color: var(--car-accent);
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.original-price {
  color: #9a9fad;
  font-size: 18px;
  text-decoration: line-through;
  font-weight: 700;
}

.price-label {
  color: var(--car-text-soft);
  font-size: 16px;
  font-weight: 600;
}

.car-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.spec-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 102, 0, 0.12);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 20px;
}

.spec-box i {
  flex-shrink: 0;
  color: var(--car-accent);
  font-size: 24px;
  margin-top: 2px;
}

.spec-label {
  margin: 0 0 6px;
  color: var(--car-text-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-value {
  margin: 0;
  color: var(--car-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.car-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.booking-lock-notice {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 102, 0, 0.16);
  background: linear-gradient(180deg, #fff6ee 0%, #fffdf9 100%);
}

.booking-lock-notice strong {
  color: var(--car-accent-dark);
  font-size: 15px;
}

.booking-lock-notice p {
  margin: 0;
  color: var(--car-text-soft);
  line-height: 1.6;
}

.btn-book,
.btn-confirm {
  border: 0;
  border-radius: 16px;
  padding: 15px 24px;
  font-size: 16px;
  font-family: 'Noto Serif Lao', serif;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--car-accent) 0%, #ff8d3c 100%);
  box-shadow: 0 18px 34px rgba(255, 102, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-book:hover,
.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(255, 102, 0, 0.28);
}

.btn-back {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 102, 0, 0.2);
  color: var(--car-accent);
  background: #fff;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-back:hover {
  transform: translateY(-2px);
  color: var(--car-accent-dark);
  border-color: rgba(255, 102, 0, 0.45);
}

.booking-terms-section {
  margin-top: 28px;
  padding: 32px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, #fffdfb 0%, #ffffff 100%);
  border: 1px solid rgba(255, 102, 0, 0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.section-heading {
  margin-bottom: 24px;
}

.section-eyebrow {
  margin: 0 0 8px;
  color: var(--car-accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  margin: 0 0 10px;
  color: var(--car-text);
  font-size: clamp(26px, 3vw, 34px);
}

.section-description {
  margin: 0;
  max-width: 720px;
  color: var(--car-text-soft);
  line-height: 1.6;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.terms-card {
  padding: 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
  border: 1px solid rgba(255, 102, 0, 0.1);
}

.terms-card h3 {
  margin: 0 0 14px;
  color: var(--car-accent);
  font-size: 17px;
  font-weight: 800;
}

.terms-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.terms-card li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 18px;
  color: var(--car-text);
  line-height: 1.6;
}

.terms-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--car-accent);
}

.terms-card li:last-child {
  margin-bottom: 0;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(15, 23, 42, 0.52);
  padding: 22px;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  width: min(920px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: linear-gradient(135deg, var(--car-accent) 0%, #ff8d3c 100%);
  color: #fff;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.close-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  padding: 26px;
}

.modal-body form {
  display: grid;
  gap: 18px;
}

.modal-body form,
.modal-body form * {
  box-sizing: border-box;
}

.booking-car-info {
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff7f1 0%, #ffffff 100%);
  border: 1px solid rgba(255, 102, 0, 0.12);
}

.booking-car-info h3 {
  margin: 0 0 8px;
  color: var(--car-text);
  font-size: 20px;
}

.booking-car-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.booking-car-price-label,
.booking-car-price-unit {
  color: var(--car-text-soft);
  font-size: 14px;
  font-weight: 700;
}

.booking-car-price-value {
  color: var(--car-accent);
  font-size: 20px;
  font-weight: 800;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: var(--car-text);
  font-size: 14px;
  font-weight: 700;
}

.required-mark {
  color: #dc3545;
}

.form-group input,
.form-group select,
.flatpickr-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--car-border);
  background: #fff;
  color: var(--car-text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.flatpickr-input:focus {
  outline: none;
  border-color: rgba(255, 102, 0, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1);
}

.location-select-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: stretch;
}

.map-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 102, 0, 0.18);
  background: var(--car-accent-soft);
  color: var(--car-accent);
  text-decoration: none;
  font-size: 22px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.map-link-btn:hover {
  transform: translateY(-1px);
  background: var(--car-accent);
  color: #fff;
}

.map-link-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;
}

.map-link-btn.is-disabled:hover {
  transform: none;
  background: var(--car-accent-soft);
  color: var(--car-accent);
}

.fee-options {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: var(--car-surface-soft);
  border: 1px solid var(--car-border);
}

.radio-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.radio-label:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 102, 0, 0.2);
}

.radio-label input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--car-accent);
}

.fee-label-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: var(--car-text);
  line-height: 1.5;
}

.fee-option-amount {
  color: var(--car-accent);
  font-weight: 800;
  white-space: nowrap;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.delivery-fee-group {
  gap: 6px;
}

.delivery-fee-auto-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 102, 0, 0.14);
  background:
    linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
}

.delivery-fee-note {
  margin: 0;
  color: var(--car-text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.delivery-fee-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(255, 102, 0, 0.08);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.delivery-fee-line.is-active {
  border-color: rgba(255, 102, 0, 0.28);
  background: rgba(255, 102, 0, 0.06);
}

.delivery-fee-line.total {
  border-color: rgba(255, 102, 0, 0.16);
  background: rgba(255, 102, 0, 0.08);
}

.delivery-fee-label {
  color: var(--car-text);
  font-size: 14px;
  font-weight: 700;
}

.delivery-fee-value {
  color: var(--car-accent);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.delivery-fee-line.total .delivery-fee-value {
  font-size: 15px;
}

.compact-fee-options {
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
}

.compact-fee-options .radio-label {
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 12px;
  border-radius: 12px;
}

.compact-fee-options .radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
}

.compact-fee-options .fee-label-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
}

.compact-fee-options .fee-option-text {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
}

.compact-fee-options .fee-option-amount {
  font-size: 14px;
}

.booking-datetime-row {
  gap: 10px;
  align-items: start;
}

.booking-datetime-row .compact-field {
  gap: 6px;
  min-width: 0;
}

.booking-datetime-row .compact-field label {
  font-size: 13px;
}

.booking-datetime-row .compact-field input,
.booking-datetime-row .compact-field .flatpickr-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.2;
}

.booking-datetime-row .compact-field .flatpickr-input[readonly] {
  background: #fff;
}

.rental-summary {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
  border: 1px solid rgba(255, 102, 0, 0.12);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  color: var(--car-text);
  border-bottom: 1px dashed rgba(102, 112, 133, 0.16);
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row.total {
  padding-top: 14px;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 102, 0, 0.12);
  border-bottom: 0;
}

.summary-row.deposit,
.summary-row.remaining {
  border: 0;
  padding: 14px 16px;
  border-radius: 16px;
}

.summary-row.deposit {
  background: rgba(255, 102, 0, 0.1);
}

.summary-row.remaining {
  background: rgba(34, 197, 94, 0.12);
}

.summary-label {
  font-weight: 700;
}

.summary-value {
  color: var(--car-accent);
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.summary-row.remaining .summary-value {
  color: #1f8b46;
}

.image-preview-modal {
  z-index: 2400;
  background: rgba(0, 0, 0, 0.9);
}

.image-preview-dialog {
  position: relative;
  width: min(1100px, 100%);
  height: min(86vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview-full {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.image-preview-close,
.image-preview-nav {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.image-preview-close {
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  font-size: 30px;
}

.image-preview-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 26px;
}

.image-preview-nav.prev {
  left: 12px;
}

.image-preview-nav.next {
  right: 12px;
}

.image-preview-counter {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.flatpickr-calendar {
  border-radius: 18px;
  border: 1px solid rgba(255, 102, 0, 0.12);
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.16);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--car-accent);
  border-color: var(--car-accent);
}

.flatpickr-day.today {
  border-color: var(--car-accent);
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 102, 0, 0.55);
  border-radius: 999px;
}

/* Field Validation Error Styles */
.field-error,
.form-group input.field-error,
.form-group select.field-error,
.flatpickr-input.field-error,
.time-picker.field-error {
  border-color: #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.08) !important;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1) !important;
}

/* Booking Summary Styles */
.booking-summary {
  text-align: left;
  font-size: 14px;
  line-height: 1.8;
  font-family: 'Noto Serif Lao', serif;
  font-weight: 700;
}

.booking-summary-header {
  background: #f8f9fb;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.booking-summary-car {
  margin: 8px 0;
  color: #667085;
  font-size: 15px;
}

.booking-summary-row {
  margin: 8px 0;
  color: #212921;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.booking-summary-label {
  font-weight: 600;
  flex-shrink: 0;
}

.booking-summary-value {
  text-align: right;
  flex-grow: 1;
  color: #212529;
}

.booking-summary-footer {
  background: #fff7f1;
  border: 1px solid rgba(255, 102, 0, 0.2);
  padding: 16px;
  border-radius: 12px;
}

.booking-summary-deposit {
  color: #ff6600;
  font-weight: 800;
}

.swal2-confirm {
  font-family: 'Noto Serif Lao', serif;
  font-weight: 800;
}

.swal2-cancel {
  font-family: 'Noto Serif Lao', serif;
  font-weight: 700;
}

/* Custom Time Picker Styles */
.time-picker-wrapper {
  position: relative;
  width: 100%;
}

.time-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
  color: #212529;
  gap: 8px;
  line-height: 1.2;
}

.time-picker:hover {
  border-color: var(--car-accent);
}

.time-picker:focus-within {
  border-color: var(--car-accent);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.time-picker .time-display {
  font-weight: 600;
  font-size: 13px;
  flex-grow: 1;
}

.time-picker i {
  color: #999;
  font-size: 16px;
}

.time-picker.active i {
  color: var(--car-accent);
}

.time-picker-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 2605;
  display: none;
  padding: 12px;
  width: 100%;
  margin-top: -1px;
}

.time-picker-scroll {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
}

.time-hour,
.time-minute {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
  padding: 0 8px;
  flex: 1 1 0;
  min-width: 72px;
  align-items: center;
}

.time-separator {
  font-size: 24px;
  font-weight: 800;
  margin: 0 4px;
  align-self: center;
  color: #666;
}

.time-option {
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
  color: #666;
  min-width: 50px;
}

.time-option:hover {
  background: #f0f0f0;
  color: var(--car-accent);
}

.time-option.selected {
  background: rgba(255, 102, 0, 0.2);
  color: var(--car-accent);
  font-weight: 800;
}

.time-option.disabled {
  color: #d3d3d3;
  cursor: not-allowed;
  background: #f9f9f9;
}

.time-option.disabled:hover {
  background: #f9f9f9;
  color: #d3d3d3;
}

/* Scrollbar styling for time picker */
.time-hour::-webkit-scrollbar,
.time-minute::-webkit-scrollbar {
  width: 6px;
}

.time-hour::-webkit-scrollbar-thumb,
.time-minute::-webkit-scrollbar-thumb {
  background: rgba(255, 102, 0, 0.4);
  border-radius: 3px;
}

.time-hour::-webkit-scrollbar-track,
.time-minute::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

/* Mobile responsiveness for time picker */
@media (max-width: 480px) {
  .time-picker {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .time-picker .time-display {
    font-size: 12px;
  }
  
  .time-picker i {
    font-size: 14px;
  }
  
  .time-option {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 40px;
  }
  
  .time-separator {
    font-size: 18px;
    margin: 0 2px;
  }
}


@media (max-width: 1080px) {
  .car-details-container {
    grid-template-columns: 1fr;
  }

  .terms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .cars-details-main {
    padding: 24px 14px 44px;
  }

  .car-details-container,
  .booking-terms-section {
    padding: 22px;
    border-radius: 22px;
  }

  .car-specs-grid,
  .terms-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 12px;
  }

  .modal-content {
    border-radius: 22px;
    max-height: calc(100vh - 24px);
  }

  .modal-header,
  .modal-body {
    padding: 20px;
  }

  .fee-label-copy,
  .summary-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-value {
    text-align: left;
  }

  .image-preview-dialog {
    height: min(78vh, 620px);
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    font-size: 12px;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .location-select-group {
    grid-template-columns: 1fr 48px;
  }

  .image-preview-nav {
    width: 44px;
    height: 44px;
  }

  /* Fix date/time input overflow on mobile */
  .booking-datetime-row .compact-field input,
  .booking-datetime-row .compact-field .flatpickr-input {
    font-size: 11px;
    padding: 6px 10px;
    height: 36px;
    min-height: 36px;
  }

  .form-group input,
  .form-group select,
  .flatpickr-input {
    font-size: 12px;
    padding: 8px 10px;
  }
}
