/* --- Modal Carousel Arrows --- */
.modal-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(34, 40, 49, 0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.22);
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
  opacity: 0.92;
  transition: background 0.2s, transform 0.2s;
}
.modal-carousel-arrow:hover {
  background: #2196f3;
  transform: translateY(-50%) scale(1.12);
}
.modal-left-arrow {
  left: 24px;
}
.modal-right-arrow {
  right: 24px;
}
/* --- Baby Seat Checkbox Styling --- */
.booking-modal-form .form-row label[for^="babySeat"],
.booking-modal-form .form-row label input[type="checkbox"][name="babySeat"] {
  cursor: pointer;
}
.booking-modal-form .form-row label input[type="checkbox"][name="babySeat"] {
  accent-color: #2196f3;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(33,150,243,0.08);
  transition: box-shadow 0.2s;
}
.booking-modal-form .form-row label input[type="checkbox"][name="babySeat"]:hover {
  box-shadow: 0 2px 8px rgba(33,150,243,0.18);
}
.booking-modal-form .form-row label {
  background: #f5faff;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1.08rem;
  color: #1a2a3a;
  box-shadow: 0 1px 4px rgba(33,150,243,0.07);
  margin-bottom: 0;
}
/* --- Car Image Carousel Arrows --- */
.carousel-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}
.carousel-arrow {
  background: rgba(34, 40, 49, 0.75);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin: 0 8px;
  pointer-events: auto;
}
.carousel-arrow:hover {
  background: #2196f3;
  transform: scale(1.12);
}
.car-image-wrapper {
  position: relative;
}
/* Global Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: #222;
  padding: 18px 40px;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 2rem;
  margin-right: 2px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 38px;
  margin: 0;
  padding: 0;
}

nav a {
  color: #222;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  background: #e6f2ff;
  color: #005b96;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Remove button styles since Sign In and Register are deleted */
.header-btn,
.header-btn.sign-in,
.header-btn.register {
  display: none;
}

/* Banner */
.banner {
  position: relative;
  background: url('pictures/background.jpg') center center/cover no-repeat;
  padding: 100px 20px 90px 20px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 91, 150, 0.55); /* blue overlay */
  z-index: 1;
}

.banner h1,
.banner p {
  position: relative;
  z-index: 2;
}

.banner h1 {
  font-size: 28px;
  margin-bottom: 18px;
  font-weight: 500;
}

.banner p {
  font-size: 22px;
  font-weight: 400;
  max-width: 900px;
  margin: 0 auto;
}

/* Cars */
.cars {
  padding: 40px;
  background-color: #fff;
}

.car-listings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.car-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

.car-card.modern {
  max-width: 400px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  background: #fff;
  padding: 0;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.car-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Keeps a nice wide ratio, adjust as needed */
  overflow: hidden;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background: #222; /* fallback background */
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* Fill the box, crop if needed */
  object-position: center;
  display: block;
}

.car-card-header {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.car-card-header .badge {
  pointer-events: auto;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  margin-right: 6px;
}

.badge.available {
  background: #eafbe7;
  color: #2e7d32;
  border: 1px solid #b2dfdb;
}

.badge.type {
  background: #e3e9f7;
  color: #2d3a5a;
  border: 1px solid #b0b8d1;
}

.car-card-body {
  padding: 18px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.car-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.car-title-row h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.rating {
  color: #ffb400;
  font-weight: 600;
  font-size: 1rem;
}

.car-details-row {
  display: flex;
  gap: 16px;
  color: #555;
  font-size: 0.98rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.feature-tags span {
  background: #f5f5f5;
  color: #333;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 13px;
}

.feature-tags .more {
  background: #e3e9f7;
  color: #2d3a5a;
}

.rental-rates {
  background: #fafbfc;
  border-radius: 12px;
  padding: 12px 10px;
  margin-bottom: 10px;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.save {
  font-size: 12px;
  color: #2196f3;
  margin-left: 8px;
}

.save-blue {
  background: #eaf4ff;
  border-radius: 8px;
}

.save-green {
  background: #eafbe7;
  border-radius: 8px;
}

.save-purple {
  background: #f6eaff;
  border-radius: 8px;
}

.save.best {
  color: #a259f7;
  font-weight: bold;
}

.book-modern {
  width: 100%;
  background: #11142d;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.book-modern:hover {
  background: #005b96;
}

/* --- Footer --- */
.site-footer {
  background: #151e29;
  color: #e6eaf1;
  padding: 48px 0 0 0;
  font-size: 16px;
  margin-top: 40px;
  border-top: 1.5px solid #22304a;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 32px 40px;
}

.footer-col.company {
  width: 100%;
  max-width: none;
  margin: 0 auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: none;
  box-shadow: none;
  padding: 0;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  justify-content: center;
}

.footer-logo-icon {
  font-size: 2.3rem;
  color: #2196f3;
}

.footer-logo-text {
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.footer-desc {
  margin: 18px 0 22px 0;
  color: #c9d6e3;
  font-size: 1.13rem;
  max-width: 600px;
  line-height: 1.6;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #bfc8d6;
  font-size: 1.13rem;
  justify-content: center;
  text-align: center;
}

.footer-contact-icon {
  font-size: 1.25rem;
}

.footer-social {
  margin-top: 18px;
  display: flex;
  gap: 18px;
}

.footer-social img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1) grayscale(1);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-social img:hover {
  opacity: 1;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #e6eaf1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #2196f3;
  text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #22304a;
  margin-top: 0;
  padding: 18px 40px 18px 40px;
  text-align: center;
  color: #bfc8d6;
  font-size: 15px;
  display: block;
  background: #151e29;
}

.footer-bottom a {
  color: #bfc8d6;
  text-decoration: none;
  margin: 0 4px;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #2196f3;
  text-decoration: underline;
}

/* --- Responsive Footer --- */
.site-footer {
  background: #151e29;
  color: #e6eaf1;
  padding: 48px 0 0 0;
  font-size: 16px;
  margin-top: 40px;
  border-top: 1.5px solid #22304a;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 32px 40px;
}

.footer-col.company {
  width: 100%;
  max-width: none;
  margin: 0 auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: none;
  box-shadow: none;
  padding: 0;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  justify-content: center;
}

.footer-logo-icon {
  font-size: 2.3rem;
  color: #2196f3;
}

.footer-logo-text {
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.footer-desc {
  margin: 18px 0 22px 0;
  color: #c9d6e3;
  font-size: 1.13rem;
  max-width: 600px;
  line-height: 1.6;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #bfc8d6;
  font-size: 1.13rem;
  justify-content: center;
  text-align: center;
}

.footer-contact-icon {
  font-size: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid #22304a;
  margin-top: 0;
  padding: 18px 40px 18px 40px;
  text-align: center;
  color: #bfc8d6;
  font-size: 15px;
  display: block;
  background: #151e29;
}

.footer-bottom a {
  color: #bfc8d6;
  text-decoration: none;
  margin: 0 4px;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #2196f3;
  text-decoration: underline;
}

/* Responsive styles for footer */
@media (max-width: 900px) {
  .footer-content {
    padding: 0 12px 32px 12px;
  }
  .footer-desc {
    font-size: 1.03rem;
    max-width: 95vw;
  }
  .footer-logo-text {
    font-size: 1.25rem;
  }
  .footer-contact-row {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .footer-content {
    padding: 0 4px 24px 4px;
  }
  .footer-col.company {
    padding: 0;
  }
  .footer-logo-row {
    flex-direction: column;
    gap: 4px;
  }
  .footer-desc {
    font-size: 0.97rem;
    margin: 12px 0 16px 0;
  }
  .footer-contact-row {
    font-size: 0.97rem;
    gap: 6px;
    margin-bottom: 8px;
    flex-direction: column;
  }
}

/* --- Responsive Header for Mobile --- */
@media (max-width: 700px) {
  header {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 2vw 10px 2vw;
    gap: 0;
    border-bottom: 1.5px solid #e3e9f7;
    box-shadow: 0 2px 8px rgba(44,62,80,0.04);
  }
  .header-left {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    width: 100%;
  }
  .logo-icon {
    font-size: 2.1rem;
  }
  .logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
  }
  nav {
    width: 100%;
    margin: 0 0 8px 0;
    display: flex;
    justify-content: center;
  }
  nav ul {
    flex-direction: row;
    justify-content: center;
    gap: 18px;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  nav ul li {
    width: auto;
    margin: 0;
  }
  nav a {
    display: block;
    width: auto;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 1.08rem;
    margin-bottom: 0;
    text-align: center;
  }
  .header-right {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
  }
  .header-contact {
    font-size: 1.15rem;
    padding: 10px 0;
    gap: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: background 0.2s;
    background: #f5faff;
    margin-bottom: 2px;
  }
  .header-contact:hover {
    background: #e6f2ff;
    color: #005b96;
  }
}
@media (max-width: 400px) {
  .logo-icon {
    font-size: 1.4rem;
  }
  .logo-text {
    font-size: 1.05rem;
  }
  .header-contact {
    font-size: 1rem;
    padding: 8px 0;
  }
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.image-modal.active {
  display: flex;
}

.image-modal .modal-content {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
  background: #fff;
}

.close-modal {
  position: absolute;
  top: 32px;
  right: 48px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #ffd700;
}

/* Booking Modal */
.booking-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.35);
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
}

.booking-modal.active {
  display: flex;
}

.booking-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 900px;
  width: 95vw;
  margin: 40px auto;
  padding: 32px 32px 24px 32px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  animation: fadeIn 0.2s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: none;}
}

.close-booking-modal {
  position: absolute;
  top: 18px;
  right: 28px;
  color: #222;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s;
}

.close-booking-modal:hover {
  color: #005b96;
}

.booking-modal-content h2 {
  margin-top: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.modal-desc {
  color: #888;
  font-size: 1rem;
  margin-bottom: 18px;
}

.booking-modal-flex {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.booking-modal-vehicle {
  background: #fafbfc;
  border-radius: 16px;
  padding: 18px 18px 18px 18px;
  min-width: 240px;
  max-width: 260px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.booking-modal-vehicle h3 {
  margin-top: 0;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
}

#modal-car-img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #eee;
}

.modal-car-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.modal-car-details {
  color: #555;
  font-size: 0.98rem;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-rates {
  width: 100%;
}

.modal-rates h4 {
  margin: 10px 0 8px 0;
  font-size: 1rem;
  font-weight: 500;
}

.modal-rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 6px;
  background: #fff;
  border: 1px solid #f0f0f0;
}

.modal-rate-row.save-blue { background: #eaf4ff; }
.modal-rate-row.save-green { background: #eafbe7; }
.modal-rate-row.save-purple { background: #f6eaff; }
.save { font-size: 12px; color: #2196f3; margin-left: 8px; }
.save.best { color: #a259f7; font-weight: bold; }

.booking-modal-form {
  flex: 2 1 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.form-row > * {
  flex: 1;
}

.booking-modal-form label {
  font-size: 0.98rem;
  font-weight: 500;
  margin-bottom: 2px;
  display: block;
}

.booking-modal-form input,
.booking-modal-form select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  font-size: 1rem;
  margin-bottom: 4px;
  background: #fafbfc;
  transition: border 0.2s;
}

.booking-modal-form input:focus,
.booking-modal-form select:focus {
  border: 1.5px solid #005b96;
  outline: none;
}

.booking-modal-form h4 {
  margin: 10px 0 6px 0;
  font-size: 1.08rem;
  font-weight: 600;
}

.form-row.buttons {
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.cancel-btn {
  background: #fff;
  color: #222;
  border: 1px solid #bbb;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cancel-btn:hover {
  background: #f4f4f4;
}

.confirm-btn {
  background: #005b96;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}

.confirm-btn:hover {
  background: #003f6b;
}

/* Add to style.css */
.total-row {
  justify-content: flex-end;
  gap: 18px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #005b96;
  margin-bottom: 10px;
}

.rental-summary-box {
  border: 1.5px solid #e3e9f7;
  border-radius: 14px;
  background: #fff;
  padding: 18px 18px 12px 18px;
  margin-bottom: 18px;
  max-width: 320px;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.rental-summary-title {
  font-weight: 600;
  font-size: 1.13rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #222;
}

.rental-summary-icon {
  font-size: 1.2rem;
}

.rental-summary-details {
  color: #222;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rental-summary-total {
  font-size: 1.35rem;
  font-weight: bold;
  color: #222;
  margin-top: 2px;
}

.rental-summary-savings {
  color: #1ca21c;
  font-size: 1rem;
  margin-top: 4px;
  font-weight: 500;
}

/* Features Row Section */
.features-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  padding: 38px 0 18px 0;
  background: #fff;
  margin-bottom: 0;
  flex-wrap: wrap;
}
.feature-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 120px;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.feature-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #11142d;
  text-align: center;
  letter-spacing: 0.2px;
}
@media (max-width: 700px) {
  .features-row {
    gap: 18px;
    padding: 22px 0 8px 0;
  }
  .feature-box {
    min-width: 90px;
  }
  .feature-title {
    font-size: 1.02rem;
  }
  .feature-icon {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }
}