
/* Responsive Grid */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.car {
 
  position: relative;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 10px;
  transition: transform 0.3s;
  background-color: #fff;
  
}

.car:hover {
  transform: scale(1.05);
}

.car-img {
  width: 100%;
  height: 180px;
  object-fit: center;
  
}

.car-content {
  padding: 10px;
}

.car-content h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.car-content p {
  font-size: 14px;
  color: #555;
}

.book-now {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #3686d6;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
}

.book-now:hover {
  background-color: #aab3bc;
  color: black;
}

/* Image Gallery */
.image-gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.image-gallery.active {
  display: flex;
}

.gallery-close {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #fff;
  border: none;
  font-size: 30px;
  color: #000;
  cursor: pointer;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  color: #000;
  font-size: 30px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}
@media (max-width: 768px) {
  .gallery-prev,
.gallery-next{
  font-size: 30px;
}

}
.gallery-images img {
  margin-top: 30%;
  max-width: 100%;
  max-height: 60%;
 border-radius: 10px;
}

/* Responsive Grid */
.rentals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  
  .rental {
    position: relative;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: transform 0.3s;
    background-color: #fff;
  }
  
  .rental:hover {
    transform: scale(1.05);
  }
  
  .rental-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
  }
  
  .rental-content {
    padding: 10px;
  }
  
  .rental-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
  }
  
  .rental-content p {
    font-size: 14px;
    color: #555;
  }
  
  .book-now {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
  }
  
  .book-now:hover {
    background-color: #0056b3;
  }
  
  /* Image Gallery */
  .image-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .image-gallery.active {
    display: flex;
  }
  
  .gallery-close1 {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border: none;
    font-size: 30px;
    color: #000;
    cursor: pointer;
  }
  
  .gallery-prev1,
  .gallery-next1 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    color: #000;
    font-size: 30px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
  }
  
  .gallery-prev1 {
    left: 20px;
  }
  
  .gallery-next1 {
    right: 20px;
  }
  
  .gallery-images1 img {
    max-width: 90%;
    max-height: 80%;
  }

  /* Rental Section Styles */
.rental-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #f9f9f9;
}

.rental-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.rental-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.rental-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  max-width: 300px;
  width: 100%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rental-item:hover {
  transform: scale(1.05);
}

.image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.image-container img {
  display: block;
  width: 100%;
  transition: opacity 0.3s ease;
}

.image-container .hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-container:hover .hover-img {
  opacity: 1;
}

.image-container:hover .default-img {
  opacity: 0;
}

.rental-item h3 {
  font-size: 1.2rem;
  margin: 15px 0 10px;
  color: #333;
}

.rental-item p {
  font-size: 0.95rem;
  color: #666;
  padding: 0 15px 15px;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .rental-container {
    flex-direction: column;
    align-items: center;
  }

  .rental-item {
    max-width: 90%;
  }
}

/* TABLE DESIGN*/
/* General Styling */


.table-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

h2 {
  
  text-align: center;
  color: #141515;
  margin-bottom: 20px;
}

/* Table Wrapper for Scroll */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Enables smooth scrolling on mobile devices */
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* Table Styling */
.rental-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  min-width: 700px; /* Ensures horizontal scroll on smaller screens */
}

.rental-table thead th {
  background-color: #25cb7b;
  color: #ffffff;
  padding: 10px;
  text-align: center;
  border: 1px solid #ddd;
}

.rental-table tbody td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}

.rental-table tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

.rental-table tbody tr:hover {
  background-color: #e9ecef;
}

/* Responsive Styling */
@media (max-width: 768px) {
  .table-container {
      padding: 10px;
  }
  .rental-table thead th td {
    
    text-align: left;
    
  }

  h2 {
      font-size: 18px;
  }
}

/* Enquiry Card Styling */
.enquiry-card {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}

.enquiry-card h2 {
  text-align: center;
  color: #007bff;
  margin-bottom: 20px;
}

/* Contact Content Layout */
.contact-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Image Styling */
.image-left, .image-right {
  flex: 1;
}

.image-left img, .image-right img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Contact Details Styling */
.contact-details {
  flex: 2;
}

.contact-details p {
  font-size: 16px;
  margin-bottom: 10px;
}

.contact-details strong {
  color: #333;
}

.contact-details a {
  color: #007bff;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Responsive Styling */
@media (max-width: 768px) {
  .enquiry-card {
      padding: 15px;
  }

  .contact-content {
      flex-direction: column;
      align-items: center;
  }

  .image-left, .image-right {
      width: 100%;
      margin-bottom: 10px;
  }

  .contact-details {
      text-align: center;
  }
}
