/* Tours Page Specific Styles */

.main {
  padding-top: 130px; /* 헤더와 겹치지 않도록 상단 패딩 추가 */
}

.logo {
  cursor: pointer;
}

.tour-subtitle {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin-bottom: 50px;
  font-weight: 400;
}

/* Tours Section */
.tours-section {
  margin-bottom: 80px;
  width: 100%;
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Tour Card */
.tour-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.tour-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.tour-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tour-card:hover .tour-image img {
  transform: scale(1.05);
}

.tour-content {
  padding: 25px;
}

.tour-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.3;
}

.tour-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.tour-price {
  font-size: 24px;
  font-weight: bold;
  color: #4fc3f7;
  margin-bottom: 8px;
}

.tour-duration {
  font-size: 14px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 15px;
}

/* Tour Book Button */
.tour-book-btn {
  background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  margin-top: 5px;
}

.tour-book-btn:hover {
  background: linear-gradient(135deg, #29b6f6 0%, #1976d2 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4);
}

/* Tour Modal */
.tour-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  color: #666;
  background: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close-btn:hover {
  color: #333;
  background: #f5f5f5;
}

.modal-body {
  padding: 30px;
}

.modal-tour-image {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 25px;
}

.modal-tour-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-tour-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.modal-tour-price {
  font-size: 32px;
  font-weight: bold;
  color: #4fc3f7;
  margin-bottom: 10px;
}

.modal-tour-duration {
  font-size: 16px;
  color: #666;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-tour-description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
}

.tour-highlights {
  margin-bottom: 25px;
}

.tour-highlights h4 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.tour-highlights ul {
  list-style: none;
  padding: 0;
}

.tour-highlights li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  font-size: 14px;
  color: #555;
}

.tour-highlights li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4fc3f7;
  font-weight: bold;
}

.tour-booking-btn {
  background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.tour-booking-btn:hover {
  background: linear-gradient(135deg, #29b6f6 0%, #1976d2 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 195, 247, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .main {
    padding-top: 100px; /* 모바일에서 헤더와 겹치지 않도록 패딩 조정 */
  }

  .tour-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .tours-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .tour-card {
    margin: 0 auto;
    max-width: 400px;
  }

  .tour-image {
    height: 200px;
  }

  .tour-content {
    padding: 20px;
  }

  .tour-title {
    font-size: 18px;
  }

  .tour-price {
    font-size: 20px;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-tour-image {
    height: 250px;
  }

  .modal-tour-title {
    font-size: 24px;
  }

  .modal-tour-price {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .main {
    padding-top: 80px; /* 작은 화면에서 헤더와 겹치지 않도록 패딩 조정 */
  }

  .tours-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 5px;
  }

  .tour-content {
    padding: 15px;
  }

  .tour-title {
    font-size: 16px;
  }

  .tour-description {
    font-size: 13px;
  }

  .tour-price {
    font-size: 18px;
  }

  .modal-tour-title {
    font-size: 20px;
  }

  .modal-tour-price {
    font-size: 24px;
  }

  .modal-body {
    padding: 15px;
  }
}

/* Loading and Empty State Messages */
.loading-message {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 18px;
  grid-column: 1 / -1;
}

.loading-message p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loading-message p::before {
  content: "⏳";
  animation: spin 2s linear infinite;
}

.no-tours-message {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 18px;
  grid-column: 1 / -1;
  background: #f9f9f9;
  border-radius: 12px;
  border: 2px dashed #ddd;
}

.no-tours-message p {
  margin: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
