/* Modern Campground Show Page - New Layout */

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Page Layout */
.show-page {
  background: #f8f9fa;
  min-height: 100vh;
  padding-top: 80px;
  width: 100%;
  overflow-x: hidden;
}

/* Page Header */
.page-header {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1rem;
  word-wrap: break-word;
}

.page-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.location-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 1.1rem;
}

.location-info i {
  color: #0d6efd;
}

.price-info {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: #28a745;
}

.price-label {
  font-size: 1rem;
  color: #6c757d;
}

/* Main Content - Wider Viewport */
.show-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* New Layout Structure */
.main-content {
  width: 100%;
  margin-bottom: 3rem;
}

.details-map-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.details-column {
  width: 100%;
}

.map-column {
  width: 100%;
}

/* Reviews Section at Bottom */
.reviews-section-bottom {
  width: 100%;
  margin-top: 2rem;
}

/* Reviews Grid Layout */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Content Cards */
.content-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Image Gallery */
.image-gallery {
  margin-bottom: 1.5rem;
}

.gallery-main {
  position: relative;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  width: 100%;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-main:hover img {
  transform: scale(1.02);
}

/* Thumbnails */
.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  width: 100%;
}

.thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.thumbnail.active {
  border-color: #0d6efd;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Campground Details */
.campground-details h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.detail-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.detail-content {
  flex: 1;
  min-width: 0;
}

.detail-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.85rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-content p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  word-wrap: break-word;
}

.description {
  font-size: 1rem;
  line-height: 1.6;
  color: #495057;
  margin-bottom: 1.5rem;
  word-wrap: break-word;
}

/* Map */
.map-container {
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
  width: 100%;
}

#map {
  width: 100%;
  height: 100%;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.btn-action {
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-primary-action {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  color: white;
}

.btn-primary-action:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13,110,253,0.3);
}

.btn-danger-action {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
}

.btn-danger-action:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220,53,69,0.3);
}

/* Reviews Section */
.reviews-section {
  margin-top: 0;
  width: 100%;
  position: static !important;
  height: auto !important;
  overflow: visible !important;
  display: block !important;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.reviews-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #212529;
  margin: 0;
}

/* Enhanced Review Form for Bottom Layout */
.reviews-section-bottom .review-form {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  background: #f8f9fa;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Review Form */
.review-form {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.review-form h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  width: 100%;
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: white;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
}

.btn-submit {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40,167,69,0.3);
}

/* Review Cards in Grid */
.reviews-grid .review-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: fit-content;
}

.reviews-grid .review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-color: #0d6efd;
}

/* Review Cards */
.review-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.reviewer-details {
  flex: 1;
  min-width: 0;
}

.reviewer-details h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  word-wrap: break-word;
}

.review-date {
  font-size: 0.85rem;
  color: #6c757d;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #495057;
  margin-bottom: 1rem;
  word-wrap: break-word;
}

.review-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-review-action {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-delete-review {
  background: #dc3545;
  color: white;
}

.btn-delete-review:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* Empty Reviews */
.empty-reviews {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.empty-reviews i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-reviews h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
  .show-page {
    padding-top: 60px;
  }
  
  .show-container {
    padding: 0 1rem !important;
  }
  
  .details-map-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .reviews-section-bottom .review-form {
    padding: 1.5rem;
  }
  
  .content-card {
    padding: 1rem;
  }
  
  .gallery-main {
    height: 250px;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn-action {
    justify-content: center;
  }
  
  .page-header {
    padding: 1.5rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .page-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .price {
    font-size: 1.5rem;
  }
}

/* Tablet Adjustments */
@media (max-width: 992px) and (min-width: 769px) {
  .details-map-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .reviews-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 480px) {
  .content-card {
    padding: 0.75rem;
  }
  
  .thumbnail {
    width: 60px;
    height: 60px;
  }
  
  .detail-item {
    padding: 0.75rem;
  }
  
  .detail-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-card {
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }
.content-card:nth-child(4) { animation-delay: 0.4s; }