/* Section Title */
.our-fleet-h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
  color: var(--color-primary);
  padding: 20px 15px;
  background: linear-gradient(to bottom, #f0f4f8 0%, #ffffff 100%);
  position: relative;
}

.our-fleet-h1:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 2px;
}

/* Fleet Container Grid */
.fleet-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Desktop default */
  gap: 30px;
  padding:20px;
  margin: 0 auto;
  max-width: 1400px;
}

/* Card Styles */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  min-height: 360px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.card:hover .card-img {
  transform: scale(1.05);
}

/* Favorite Icon */
.card .fav {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.2em;
  background: rgba(255, 255, 255, 0.9);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.card .fav:hover {
  color: #ff6b6b;
  transform: scale(1.1);
}

.card .fav.active {
  color: #ff4d4d;
  transform: scale(1.1);
}

/* Text */
.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-primary);
  text-align: center;
}

.year {
  font-size: 0.85em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  text-align: center;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 15px;
}

.features span {
  background: #f5f7fa;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8em;
  display: flex;
  align-items: center;
}

.features i {
  margin-right: 5px;
  color: var(--color-primary);
}

/* Button */
.view-photos {
  background: none;
  color: var(--color-primary);
  padding: 10px 18px;
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
  text-align: center;
}

.view-photos:hover {
  background: linear-gradient(135deg, #1e90ff, var(--color-primary));
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.photo-gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: row; /* two columns */
  padding: 20px;
  box-sizing: border-box;
  z-index: 9999;
}

/* Left thumbnails column */
.photo-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 100%;
  width: 120px; /* fixed width for thumbnails */
  margin-right: 20px;
  padding-right: 5px;
}

.photo-gallery-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.photo-gallery-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.active-thumb {
  border-color: #1e90ff;
  box-shadow: 0 0 10px #1e90ff;
}

/* Right main image column */
.photo-gallery-main {
  flex: 1; /* take remaining space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.photo-gallery-img {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s;
}

.photo-gallery-img:hover {
  transform: scale(1.02);
}

/* Navigation buttons inside main image */
.photo-gallery-nav {
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.photo-gallery-btn {
  background: rgba(30, 144, 255, 0.7);
  color: #fff;
  border: none;
  padding: 12px 25px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 18px;
  transition: background 0.3s, transform 0.2s;
}

.photo-gallery-btn:hover {
  background: rgba(30, 144, 255, 1);
  transform: scale(1.05);
}

/* Close button */
.photo-gallery-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 1000; /* ensure it’s above other elements */
}

.photo-gallery-close:hover {
  color: #ff4c4c;
  transform: scale(1.3);
}

/* ===========================
   RESPONSIVE BREAKPOINTS
=========================== */

/* 3 Columns */
@media (max-width: 1200px) {
  .fleet-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2 Columns */
@media (max-width: 768px) {
  .fleet-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 Column */
@media (max-width: 480px) {
  .fleet-container {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 15px;
    min-height: 340px;
  }

  .card-img {
    height: 140px;
  }
}

/* Touch Devices – Disable Hover Effects */
@media (hover: none) {
  .card:hover { transform: none; }
  .card:hover .card-img { transform: none; }
  .view-photos:hover { transform: none; }
}
