/* Container */
.listing-hero {
  display: flex;
  gap: 10px;
  position: relative;
  margin-bottom: 10px;
  max-height: 430px;
  margin-left: 10px;
  margin-right: 10px;
}

/* Main Image (big left) */
.hero-image {
  flex: 1;                 /* takes remaining space */
  max-height: 410px;
  border-radius: 3px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
 
  display: block;
  border-radius: 3px;
}

/* Thumbnails Grid (right side) */
.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(2, 300px); /* 2 columns */
  grid-auto-rows: 200px;                  /* row height */
  gap: 10px;
  height: 410px;                          /* match main image */
  overflow-y: auto;                       /* vertical scroll if more than 4 images */
  overflow-x: hidden;
}

/* Each thumbnail */
.thumbnail-grid img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.thumbnail-grid img:hover {
  transform: scale(1.05);
}

/* Active thumbnail highlight */
.active-thumb {
  border: 1px solid #0074cc;
  border-radius: 3px;
}

/* Photo Count Overlay */
.photo-count {
  position: absolute;
  right: 20px;
  bottom: 12px;
}

.count-btn {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.count-btn img {
  height: 16px;
  margin-bottom: -2px;
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .listing-hero {
    flex-direction: column;
    max-height: none;
  }
  
  .photo-count {
    position: absolute;
    right: 20px;
    bottom: 90px;
}

  .hero-image {
    height: 100%
        object-fit: cover;
        width: 100%;
  }

  .thumbnail-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
    width: 100%;
  }

  .thumbnail-grid img {
    flex: 0 0 auto;
    width: 100px;
    height: 65px;
  }
}
