/* Fun Places specific styles */

/* Map styles */
.map-container {
  height: 300px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.info-row {
  margin-bottom: 1.5rem;
}

.info-label {
  font-weight: 600;
  color: var(--primary-color);
}

.tips-section {
  background-color: rgba(78, 205, 196, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid var(--secondary-color);
}

.warning-section {
  background-color: rgba(255, 107, 107, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

/* Gallery styles */
.gallery-carousel {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  max-width: 400px; /* Set a max-width for portrait mode */
  margin-left: auto;
  margin-right: auto;
}

.gallery-carousel img {
  width: 100%;
  height: 550px; /* Taller height for portrait mode */
  object-fit: cover;
  border-radius: 10px;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.thumbnail-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.thumbnail {
  width: 60px;
  height: 80px; /* Taller thumbnail for portrait mode */
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
  position: relative;
}

.thumbnail.active {
  opacity: 1;
  border: 2px solid var(--primary-color);
}

/* Video styles */
.video-container {
  width: 100%;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  border-radius: 10px;
}

video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
}

.thumbnail.video-thumb::after {
  content: '\f04b';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Contributors styles */
.contributors-section {
  margin-bottom: 1.5rem;
}

.contributor-avatar {
  transition: transform 0.2s ease-in-out;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}

.contributor-avatar:hover {
  transform: scale(1.1);
  z-index: 2;
}

.contributor-avatar img,
.contributor-avatar div {
  object-fit: cover;
}

.view-all-contributors {
  text-decoration: none;
}

/* Comments section styles */
.comments-list {
  margin-top: 1rem;
}

.comment-item {
  border-radius: 10px;
  transition: transform 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.comment-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.comment-avatar {
  min-width: 50px;
}

.comment-form textarea {
  border-radius: 10px;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.comment-form button {
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
}

/* Reply styles */
.reply-item {
  background-color: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.replies-container {
  margin-left: 1.5rem;
  border-left: 2px solid rgba(0, 0, 0, 0.1);
  padding-left: 1rem;
}

.reply-form {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 10px;
  border: 1px dashed rgba(0, 0, 0, 0.1);
}

.comments-icon {
  color: #8a2be2; /* BlueViolet purple */
}

/* Modern Gallery Styles */
.modern-gallery-container {
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-gallery-container .gallery-carousel {
  position: relative;
  height: 70vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  max-width: none;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
  display: block;
}

.image-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-background {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(0.4);
  z-index: 1;
}

.image-container a {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.gallery-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
}

.gallery-video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  outline: none;
  border-radius: 8px;
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-container:hover .video-overlay {
  opacity: 1;
}

.placeholder-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.placeholder-content {
  text-align: center;
  color: #666;
  font-size: 1.2rem;
}

.placeholder-content i {
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Image counter for mobile */
.image-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10;
}

/* Swipe indicator */
.swipe-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInOut 3s infinite;
  z-index: 10;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Mobile dots indicator */
.dots-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0 0 15px 15px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background: var(--primary-color, #007bff);
  transform: scale(1.2);
}

/* Desktop thumbnail navigation */
.modern-gallery-container .thumbnail-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0 0 15px 15px;
  max-width: none;
  margin: 0;
}

.modern-gallery-container .thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.modern-gallery-container .thumbnail:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modern-gallery-container .thumbnail.active {
  border-color: var(--primary-color, #007bff);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.thumbnail-wrapper {
  position: relative;
  cursor: pointer;
}

.video-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.placeholder-thumbnail {
  width: 80px;
  height: 60px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  color: #666;
  font-size: 1.2rem;
}

.placeholder-thumbnail:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.placeholder-thumbnail.active {
  border-color: var(--primary-color, #007bff);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modern-gallery-container .gallery-carousel {
    height: 60vh;
    min-height: 300px;
    max-height: 500px;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  }

  .image-container {
    padding: 10px;
  }

  .gallery-image {
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  }

  .image-counter {
    top: 15px;
    right: 15px;
    font-size: 0.8rem;
    padding: 6px 10px;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.6);
  }

  .swipe-indicator {
    bottom: 15px;
    padding: 6px 12px;
    font-size: 0.7rem;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.6);
  }

  .dots-indicator {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }

  .dot {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 480px) {
  .modern-gallery-container .gallery-carousel {
    height: 50vh;
    min-height: 250px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  }

  .image-container {
    padding: 8px;
  }

  .gallery-image {
    border-radius: 10px;
  }

  .image-counter {
    top: 10px;
    right: 10px;
    font-size: 0.75rem;
    padding: 4px 8px;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.7);
  }

  .swipe-indicator {
    bottom: 10px;
    padding: 4px 8px;
    font-size: 0.65rem;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.7);
  }

  .swipe-indicator span {
    display: none;
  }
}
