


.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: hsl(var(--bg-primary));
  position: relative;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0.8);
}

.gallery-main:hover .main-image {
  transform: scale(1);
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 100px;
  gap: 0.75rem;
  width: 100%;
}

.thumbnail {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-base);
  opacity: 0.7;
  position: relative;
  background: hsl(var(--bg-primary));
}

.thumbnail:nth-child(1) {
  grid-column: span 3;
  grid-row: span 2;
}

.thumbnail:nth-child(2) {
  grid-column: span 2;
  grid-row: span 1;
}

.thumbnail:nth-child(3) {
  grid-column: span 1;
  grid-row: span 1;
}

.thumbnail:nth-child(4) {
  grid-column: span 2;
  grid-row: span 1;
}

.thumbnail:nth-child(5) {
  grid-column: span 2;
  grid-row: span 1;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: hsl(var(--primary));
  opacity: 1;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0.8);
}

.thumbnail:hover img,
.thumbnail.active img {
  transform: scale(1);
}

@media (max-width: 768px) {
  .gallery-thumbnails {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 90px;
    gap: 0.5rem;
  }

  .thumbnail:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .thumbnail:nth-child(2) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .thumbnail:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .thumbnail:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .thumbnail:nth-child(5) {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .gallery-thumbnails {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 80px;
    gap: 0.5rem;
  }

  .thumbnail:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .thumbnail:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .thumbnail:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .thumbnail:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .thumbnail:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--text-primary));
}

.modal-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
}

.star-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--accent));
}

.rating-text {
  color: hsl(var(--text-muted));
  font-size: 0.875rem;
}

.modal-description {
  color: hsl(var(--text-muted));
  line-height: 1.7;
  font-size: 0.95rem;
}

.modal-features {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
}

.features-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: hsl(var(--text-muted));
  margin-bottom: 1rem;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: hsl(var(--text-muted));
  font-size: 0.9rem;
}

.features-list li::before {
  content: "✓";
  color: hsl(var(--secondary));
  font-weight: 700;
  font-size: 1.1rem;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: hsl(var(--text-muted));
}

.spec-value {
  font-size: 0.95rem;
  color: hsl(var(--text-primary));
  font-weight: 500;
}

.modal-actions {
  display: flex;
  gap: 1rem;
}

.modal-actions .btn {
  flex: 1;
}
/* Icon styling for contact info */
.icon-primary {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.icon-secondary {
  background: hsl(var(--secondary) / 0.1);
  color: hsl(var(--secondary));
}

.icon-accent {
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
}

@media (max-width: 900px) {
  .contact-info-card {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .contact-info-card {
    flex: 1 1 100%;
  }

  .contact-info {
    flex-direction: column;
  }

  .contact-icon {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0.375rem;
  }

  .contact-icon svg {
    width: 0.875rem;
    height: 0.875rem;
  }
}