/* Photo modal styles */
#photo-modal,
#gallery-modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
}

#photo-modal.show,
#gallery-modal.show {
  display: flex;
}

#upload-status {
  color: var(--color-green);
}

#photo-modal .photo-content,
#gallery-modal .photo-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  max-height: 90%;
  overflow: auto;
  position: relative;
}

#lightbox {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1060;
}

/* Ensure lightbox becomes visible when toggled */
#lightbox.show {
  display: flex;
}
#lightbox .modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}
#lightbox .modal-content img {
  max-width: 100%;
  max-height: 100%;
}
#lightbox .prev,
#lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}
#lightbox .prev { left: 10px; }
#lightbox .next { right: 10px; }
#lightbox .close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Occupancy modal styles */
#occ-modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
}
#occ-modal.show { display: flex; }
#occ-modal .photo-content { background:#fff; padding:20px; border-radius:10px; width:300px; position:relative; }
#occ-close { position:absolute; top:10px; right:10px; background:none; border:none; font-size:1.2rem; cursor:pointer; }
.occ-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 2px;
}

.occ-item__content {
  flex: 1;
  min-width: 0;
}

#photo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-dark);
}

#photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.photo-item {
  position: relative;
}
.photo-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}
.photo-item button {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 2px #000;
}
.photo-item .delete-photo {
  top: 2px;
  right: 2px;
}

#suggestionsModal .modal-content {
  background-color: #fff;
}

#suggestionsModal #suggestionsList,
#suggestionsModal #suggestionsList li {
  background-color: #fff;
}



.suggest-icon-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--color-orange);

  outline: none;
  box-shadow: none;
}

.text-muted {
  opacity: 0.5;
}
