/* Sightseeing Modal Specific Styles */
#sightseeingModal {
  z-index: 1002;
}

#sightseeingModal .modal-content {
  width: 800px;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.sightseeing-modal-content {
  display: flex;
  flex-direction: column;
}

/* Tab Navigation */
.sightseeing-tabs {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 20px;
}

.sightseeing-tab {
  flex: 1;
  padding: 12px 16px;
  background: #f9fafb;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.3s ease;
}

.sightseeing-tab:hover {
  background: #f3f4f6;
  color: #374151;
}

.sightseeing-tab.active {
  background: white;
  color: #6C5CE7;
  border-bottom-color: #6C5CE7;
}

/* Tab Content */
.sightseeing-tab-content {
  flex: 1;
  overflow-y: auto;
}

.sightseeing-tab-pane {
  display: none;
}

.sightseeing-tab-pane.active {
  display: block;
}

/* Section Titles */
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin: 24px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.section-title:first-of-type {
  margin-top: 0;
}

/* Form Inputs */
#sightseeingState,
#sightseeingCity,
#sightseeingName,
#sightseeingCategory,
#sightseeingPopular,
#sightseeingActive,
#sightseeingDescription,
#sightseeingLocationLat,
#sightseeingLocationLng,
#sightseeingSpendTime,
#sightseeingPriority,
#ticketAdult,
#ticketChild,
#ticketSenior,
#ticketLadies,
#sightseeingPhotoUpload,
#sightseeingPhotoUrl {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-primary);
  background: #f9fafb;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

#sightseeingState:focus,
#sightseeingCity:focus,
#sightseeingName:focus,
#sightseeingCategory:focus,
#sightseeingPopular:focus,
#sightseeingActive:focus,
#sightseeingDescription:focus,
#sightseeingLocationLat:focus,
#sightseeingLocationLng:focus,
#sightseeingSpendTime:focus,
#sightseeingPriority:focus,
#ticketAdult:focus,
#ticketChild:focus,
#ticketSenior:focus,
#ticketLadies:focus,
#sightseeingPhotoUpload:focus,
#sightseeingPhotoUrl:focus {
  outline: none;
  border-color: #6C5CE7;
  background: white;
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

#sightseeingName::placeholder,
#sightseeingCategory::placeholder,
#sightseeingDescription::placeholder,
#sightseeingLocationLat::placeholder,
#sightseeingLocationLng::placeholder,
#sightseeingSpendTime::placeholder,
#ticketAdult::placeholder,
#ticketChild::placeholder,
#ticketSenior::placeholder,
#ticketLadies::placeholder,
#sightseeingPhotoUrl::placeholder {
  color: #9ca3af;
}

#sightseeingState,
#sightseeingCity,
#sightseeingPopular,
#sightseeingActive,
#sightseeingPriority {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%236B7280' d='M7 11L2 5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
  background-color: #f9fafb;
}

#sightseeingState:focus,
#sightseeingCity:focus,
#sightseeingPopular:focus,
#sightseeingActive:focus,
#sightseeingPriority:focus {
  background-color: white;
}

#sightseeingDescription {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

#sightseeingState option,
#sightseeingCity option,
#sightseeingPopular option,
#sightseeingActive option,
#sightseeingPriority option {
  background: white;
  color: var(--text-primary);
  padding: 12px;
}

/* Opening Hours Styles */
.opening-hours-container {
  margin-bottom: 20px;
}

.day-row {
  display: flex;
  flex-direction: column;
  padding: 12px;
  margin-bottom: 8px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.day-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  cursor: pointer;
}

.day-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.time-slots {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-left: 26px;
}

.time-slots.active {
  display: flex;
}

.time-slot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-primary);
  background: white;
  transition: all 0.3s ease;
}

.time-input:focus {
  outline: none;
  border-color: #6C5CE7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.time-separator {
  color: #6b7280;
  font-size: 14px;
}

.remove-slot-btn {
  padding: 6px 10px;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.remove-slot-btn:hover {
  background: #fecaca;
}

.add-slot-btn {
  margin-left: 26px;
  margin-top: 8px;
  padding: 8px 16px;
  background: #6C5CE7;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.add-slot-btn:hover {
  background: #5b4cdb;
}

/* Gallery Styles */
.url-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.url-input-group input {
  flex: 1;
  margin-bottom: 0;
}

.url-input-group button {
  white-space: nowrap;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
}

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

.gallery-item-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.gallery-item-remove:hover {
  background: rgba(220, 38, 38, 0.9);
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  color: #9ca3af;
  border: 2px dashed #e5e7eb;
  border-radius: 8px;
}
